/* Product category page — single category view (?cat=pure) */

#product-category-page #main-header {
  background-color: color-mix(in srgb, var(--color-green-800) 94%, transparent);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: var(--shadow-header);
}

#product-category-page .pc-shell {
  --bs-gutter-x: 0;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--shell-pad-start) var(--shell-pad-end);
}

/* --- Intro / category heading --- */
#product-category-page .pc-intro {
  --pc-intro-breathe: clamp(3rem, 6vw, 5rem);
  --pc-header-clear: clamp(2.25rem, 4vw + 1rem, 6.125rem);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--pc-header-clear) + var(--pc-intro-breathe));
  padding-bottom: var(--pc-intro-breathe);
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 55%, var(--color-mint) 100%);
  text-align: center;
}

#product-category-page .pc-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--color-green-800) 7%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 88% 80%, color-mix(in srgb, var(--color-red) 5%, transparent) 0%, transparent 38%);
  pointer-events: none;
}

#product-category-page .pc-intro > .container {
  position: relative;
  z-index: 1;
}

#product-category-page .pc-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.65vw + 0.4rem, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-green-800);
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

#product-category-page .pc-back:hover {
  color: var(--color-red);
}

#product-category-page .pc-intro .section-label--red {
  color: var(--color-red);
  letter-spacing: var(--letter-spacing-label);
}

#product-category-page .pc-intro .section-headline {
  max-width: min(40rem, 100%);
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

#product-category-page .pc-intro__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.9vw + 0.55rem, 1.2rem);
  font-style: italic;
  font-weight: 700;
  color: var(--color-green-700);
  margin: 0 auto 0.75rem;
  max-width: min(36rem, 100%);
}

#product-category-page .pc-intro .section-body {
  color: var(--color-text-muted);
  max-width: min(40rem, 100%);
  margin-inline: auto;
}

/* --- Product grid --- */
#product-category-page .pc-catalog {
  background: var(--color-white);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

#product-category-page {
  --pc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pc-enter-duration: 0.75s;
}

#product-category-page .pc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

#product-category-page .pc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-cream);
  border-radius: clamp(12px, 1vw, 16px);
  border: 1px solid color-mix(in srgb, var(--color-green-800) 10%, transparent);
  border-top: 4px solid var(--color-green-700);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

#product-category-page .pc-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--color-red);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--color-green-900) 10%, transparent);
}

#product-category-page .pc-card-enter {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity var(--pc-enter-duration) var(--pc-ease-out),
    transform var(--pc-enter-duration) var(--pc-ease-out);
  transition-delay: var(--pc-enter-delay, 0ms);
}

#product-category-page .pc-card-enter.is-visible,
#product-category-page .anim-stagger.visible > .pc-card-enter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#product-category-page .pc-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--color-white);
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  margin: clamp(0.65rem, 1.2vw, 0.85rem);
  margin-bottom: 0;
  border-radius: clamp(10px, 0.9vw, 14px);
}

#product-category-page .pc-card__visual img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform calc(var(--pc-enter-duration) + 0.1s) var(--pc-ease-out);
}

#product-category-page .pc-card:hover .pc-card__visual img {
  transform: scale(1.04);
}

#product-category-page .pc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(0.75rem, 1.2vw, 1rem);
  padding-top: clamp(0.5rem, 1vw, 0.75rem);
}

#product-category-page .pc-card__name {
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 0.7vw + 0.45rem, 0.9375rem);
  font-weight: 700;
  color: var(--color-green-800);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

#product-category-page .pc-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: auto;
}

#product-category-page .pc-card__size {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: clamp(0.625rem, 0.5vw + 0.38rem, 0.75rem);
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.2;
}

#product-category-page .pc-card__link {
  font-size: clamp(0.625rem, 0.5vw + 0.38rem, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green-800);
  transition: color var(--transition);
}

#product-category-page .pc-card:hover .pc-card__link {
  color: var(--color-red);
}

@media (max-width: 1199.98px) {
  #product-category-page .pc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  #product-category-page .pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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