/* ==================================================
   Explore Category Pages
   Branded browsing pages: calmer than Explore, but still distinctly Full Faith.
   ================================================== */

.category-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.category-page * {
  min-width: 0;
}

.category-page img,
.category-page svg {
  max-width: 100%;
}

.category-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 70px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--cream) 0%, #f5ecdf 100%);
}

.category-hero::before,
.category-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.category-hero::before {
  top: -120px;
  right: -80px;
  width: 390px;
  height: 300px;
  border: 1px solid rgba(197, 154, 74, 0.18);
  border-radius: 52% 48% 58% 42%;
  transform: rotate(-10deg);
}

.category-hero::after {
  bottom: -120px;
  left: -90px;
  width: 250px;
  height: 250px;
  border: 46px solid rgba(47, 125, 120, 0.045);
  border-radius: 50%;
}

.category-page-jewelry .category-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #efe2cf 100%);
}

.category-page-kits .category-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #e0efec 100%);
}

.category-page-gifts .category-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #f2dfda 100%);
}

.category-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(50px, 8vw, 115px);
}

.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-breadcrumb a {
  color: var(--teal-dark);
}

.category-breadcrumb a:hover,
.category-breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.category-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 5.8vw, 5.1rem);
  line-height: 0.98;
}

.category-hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.72;
}

.category-hero-action {
  margin-top: 26px;
}

.category-hero-visual {
  position: relative;
  display: grid;
  justify-self: end;
  place-items: center;
  width: min(39vw, 470px);
  min-height: 320px;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

/* Match the clean artwork treatment used by the main navigation-page heroes,
   without applying the signature/Ichthys reveal reserved for those pages. */
.category-hero-visual::before {
  position: absolute;
  inset: 10% 4% 4%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, rgba(225, 193, 126, 0.22) 0%, rgba(244, 226, 188, 0.15) 40%, rgba(197, 154, 74, 0.05) 62%, transparent 76%);
  border: 0;
  border-radius: 50%;
  content: "";
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

.category-hero-visual-jewelry,
.category-hero-visual-kits,
.category-hero-visual-gifts {
  color: inherit;
  background: transparent;
}

.category-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-hero-art img {
  display: block;
  width: min(100%, 450px);
  height: auto;
  max-height: 350px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 24px rgba(51, 47, 45, 0.14));
}

/* The old label and underline made the hero artwork read like a clickable card. */
.category-hero-visual-label,
.category-hero-visual-line {
  display: none;
}

.category-subcategory-section {
  position: relative;
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(58px, 7vw, 90px);
  background: #fff;
}

.category-subcategory-section::after {
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  bottom: -46px;
  width: 120px;
  height: 120px;
  border: 22px solid rgba(47, 125, 120, 0.04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.category-subcategory-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.category-subcategory-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.05rem);
}

.category-subcategory-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Keep category/subcategory landing previews compact instead of allowing
   their source images to expand to the full content width. */
.category-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 360px));
  gap: 24px;
  align-items: stretch;
}

.category-subcategory-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  color: var(--charcoal);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(51, 47, 45, 0.10);
  border-radius: 28px 64px 28px 28px;
  box-shadow: 0 18px 42px rgba(51, 47, 45, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-subcategory-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 5px;
  background: var(--gold);
  content: "";
}

.category-subcategory-card-accent-1::after {
  background: var(--teal);
}

.category-subcategory-card-accent-2::after {
  background: var(--coral);
}

.category-subcategory-card:hover,
.category-subcategory-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(197, 154, 74, 0.34);
  box-shadow: 0 24px 50px rgba(51, 47, 45, 0.13);
}

.category-subcategory-card:focus-visible {
  outline: 3px solid rgba(47, 125, 120, 0.24);
  outline-offset: 4px;
}

.category-subcategory-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #f6ecdd, #e6d3ae);
}

.category-subcategory-card-accent-1 .category-subcategory-media {
  background: linear-gradient(145deg, #e7f2ef, #bcd9d4);
}

.category-subcategory-card-accent-2 .category-subcategory-media {
  background: linear-gradient(145deg, #f8e7e2, #edc1b6);
}

.category-subcategory-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-subcategory-card:hover .category-subcategory-media img,
.category-subcategory-card:focus-visible .category-subcategory-media img {
  transform: scale(1.025);
}

.category-subcategory-monogram {
  color: rgba(51, 47, 45, 0.22);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 700;
}

.category-subcategory-body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.category-subcategory-eyebrow {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-subcategory-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.category-subcategory-body p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.62;
}

.category-subcategory-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.category-subcategory-action span {
  transition: transform 180ms ease;
}

.category-subcategory-card:hover .category-subcategory-action span,
.category-subcategory-card:focus-visible .category-subcategory-action span {
  transform: translateX(4px);
}

.category-catalog-section {
  position: relative;
  min-height: 52vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(251,247,239,.98));
}

.category-catalog-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px), var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,154,74,.28), transparent);
  content: "";
  transform: translateX(-50%);
}

.category-catalog-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(51,47,45,.08);
}

.category-catalog-heading > div {
  max-width: 760px;
}

.category-result-note {
  display: inline-flex;
  margin-top: -8px;
  margin-bottom: 26px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(47,125,120,.055);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-empty-state {
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
}

.catalog-empty-state[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .category-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 34px;
  }

  .category-hero-visual {
    width: min(34vw, 330px);
    min-height: 250px;
  }

  .category-hero-art img {
    max-height: 285px;
  }

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

@media (max-width: 700px) {
  .category-hero {
    padding: 42px 0 48px;
  }

  .category-hero::before {
    top: -85px;
    right: -130px;
    width: 280px;
    height: 220px;
  }

  .category-hero::after {
    display: none;
  }

  .category-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-hero-content {
    max-width: none;
  }

  .category-hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11.5vw, 3.35rem);
    overflow-wrap: break-word;
  }

  .category-hero-copy {
    font-size: 0.98rem;
  }

  .category-hero-action {
    width: 100%;
    max-width: 310px;
    justify-content: center;
  }

  .category-hero-visual {
    justify-self: center;
    width: min(88vw, 390px);
    min-height: 230px;
    margin: 4px auto 0;
  }

  .category-hero-art img {
    width: min(100%, 380px);
    max-height: 285px;
  }

  .category-subcategory-section {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .category-subcategory-heading {
    margin-bottom: 24px;
  }

  .category-subcategory-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-subcategory-card {
    width: 100%;
    max-width: 430px;
    border-radius: 24px 50px 24px 24px;
  }

  .category-subcategory-media {
    aspect-ratio: 1.7 / 1;
  }

  .category-subcategory-body {
    padding: 20px 20px 22px;
  }

  .category-catalog-section {
    padding-top: 62px;
  }

  .category-catalog-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .category-page .explore-filter-chips {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
  }

  .category-page .explore-product-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .category-page .explore-product-card,
  .category-page .product-image,
  .category-page .product-info,
  .category-page .explore-product-actions {
    width: 100%;
    max-width: 100%;
  }
}

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

  .category-page .explore-product-card {
    max-width: 300px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-hero::before,
  .category-hero-art img,
  .category-subcategory-card,
  .category-subcategory-media img,
  .category-subcategory-action span {
    transition: none;
    transform: none;
  }
}

/* Shop All reuses the category-page browsing system with a neutral Full Faith treatment. */
.category-page-shop-all .category-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #f2e8d9 58%, #e6efec 100%);
}

.category-hero-visual-shop,
.category-hero-art-shop {
  color: inherit;
  background: transparent;
}

.category-hero-art-shop img {
  object-fit: contain;
  padding: 0;
}
