.product-category-page {
  width: calc(100% - var(--content-edge-gap, 32px));
  max-width: var(--content-max-width, 1360px);
  margin: 24px auto 56px;
  padding: 0 14px;
  box-sizing: border-box;
}

.product-category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.product-category-page h1 {
  margin: 0 0 16px;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
  gap: 14px;
  justify-content: start;
  align-items: stretch;
}

.category-product-card {
  display: grid;
  grid-template-rows: 70% 30%;
  aspect-ratio: 3 / 4.3;
  min-height: 312px;
  color: #000000;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.category-product-card:hover {
  background-color: rgba(230, 198, 138, 0.18);
}

.category-product-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.category-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.category-product-media-primary,
.category-product-media-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.category-product-media-primary {
  opacity: 1;
}

.category-product-media-secondary {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-product-media:hover .category-product-media-secondary {
  opacity: 1;
}

.category-product-media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.category-product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
}

.category-product-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-product-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-product-price {
  margin: auto 0 0;
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .product-category-page {
    width: calc(100% - 24px);
    margin: 16px auto 38px;
    padding: 0 12px;
  }

  .product-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-product-card {
    min-height: 0;
    aspect-ratio: 3 / 4.35;
    grid-template-rows: 68% 32%;
  }

  .category-product-media {
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .category-product-info {
    min-height: 0;
    padding: 10px;
    gap: 4px;
    overflow: visible;
  }

  .category-product-name {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    font-size: clamp(12px, 2.9vw, 14px);
    line-height: 1.3;
  }

  .category-product-description {
    display: none;
  }
}

@media (max-width: 640px) {
  .product-category-grid {
    gap: 12px;
  }

  .category-product-card {
    min-height: 0;
    aspect-ratio: 3 / 4.45;
  }
}

@media (max-width: 360px) {
  .product-category-grid {
    grid-template-columns: 1fr;
  }

  .category-product-card {
    aspect-ratio: 3 / 4.6;
  }
}

@media (hover: none), (pointer: coarse) {
  .category-product-card:hover {
    background-color: #ffffff;
  }

  .category-product-media:hover .category-product-media-secondary {
    opacity: 0;
  }
}
