/* ==================================================
   Full Faith Shopping Hero System v1
   Compact editorial heroes for Shop, categories, and product-type pages.
   Website-owned runtime; presentation data comes from canonical Page/Category records.
   ================================================== */

[data-shopping-hero] {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--charcoal);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(247, 238, 224, 0.90));
  border-bottom: 1px solid var(--border);
}

/* Reserve the final hero footprint while the data-driven runtime initializes. */
[data-shopping-hero]:empty {
  min-height: 205px;
}

[data-shopping-hero][data-shopping-hero-page="shop"]:empty {
  min-height: 330px;
}

.shopping-hero {
  position: relative;
  isolation: isolate;
}

.shopping-hero::after {
  position: absolute;
  right: clamp(28px, 7vw, 108px);
  bottom: 22px;
  width: clamp(52px, 6vw, 92px);
  height: 2px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.58);
  content: "";
  pointer-events: none;
  z-index: 0;
}

.shopping-hero[data-decorative-style="none"]::after {
  display: none;
}

.shopping-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}

/* Main Shop remains slightly more prominent than category/audience banners. */
.shopping-hero--shop-main .shopping-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 300px;
  gap: clamp(36px, 6vw, 80px);
  padding-block: 24px;
}

/* Category/audience/product-family heroes intentionally use the shallow,
   wide banner proportion shown in the approved shopping hero examples. */
.shopping-hero--category .shopping-hero__grid,
.shopping-hero--product-type .shopping-hero__grid {
  grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.24fr);
  min-height: 205px;
  gap: clamp(24px, 3.5vw, 52px);
  padding-block: 0;
}

.shopping-hero__content {
  max-width: 760px;
}

.shopping-hero--category .shopping-hero__content,
.shopping-hero--product-type .shopping-hero__content {
  max-width: 455px;
  padding-block: 18px;
}

.shopping-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.shopping-hero__breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

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

.shopping-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.shopping-hero__title {
  max-width: 760px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.shopping-hero--category .shopping-hero__title,
.shopping-hero--product-type .shopping-hero__title {
  margin-bottom: 7px;
  font-size: clamp(2.45rem, 3.8vw, 3.45rem);
  line-height: 0.94;
}

.shopping-hero__description {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.52;
}

.shopping-hero--category .shopping-hero__description,
.shopping-hero--product-type .shopping-hero__description {
  max-width: 430px;
  font-size: 0.9rem;
  line-height: 1.38;
}

.shopping-hero__cta {
  margin-top: 20px;
}

/* Main Shop imagery remains contained and editorial. */
.shopping-hero--shop-main .shopping-hero__media {
  position: relative;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  height: min(270px, 23vw);
  min-height: 220px;
  pointer-events: none;
}

/* Category/audience/product-type imagery uses one full-height right-side banner
   treatment so parent categories and their child product types stay visually
   consistent. It extends to the viewport edge like the approved examples. */
.shopping-hero--category .shopping-hero__media,
.shopping-hero--product-type .shopping-hero__media {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  display: block;
  width: calc(100% + max(20px, calc((100vw - var(--container)) / 2)));
  height: 205px;
  min-height: 205px;
  margin-right: min(-20px, calc((var(--container) - 100vw) / 2));
  overflow: hidden;
  pointer-events: none;
}

.shopping-hero__picture,
.shopping-hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.shopping-hero--shop-main .shopping-hero__image {
  object-fit: contain;
  object-position: var(--shopping-hero-image-position, center center);
  filter: drop-shadow(0 18px 24px rgba(51, 47, 45, 0.10));
}

/* Categories and product types share the same full-bleed image behavior. */
.shopping-hero--category .shopping-hero__image,
.shopping-hero--product-type .shopping-hero__image {
  object-fit: cover;
  object-position: var(--shopping-hero-image-position, center center);
  padding: 0;
  filter: none;
}

@media (max-width: 980px) {
  [data-shopping-hero]:empty {
    min-height: 190px;
  }

  [data-shopping-hero][data-shopping-hero-page="shop"]:empty {
    min-height: 292px;
  }

  .shopping-hero--shop-main .shopping-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.75fr);
    min-height: 264px;
    gap: 28px;
    padding-block: 22px;
  }

  .shopping-hero--category .shopping-hero__grid,
  .shopping-hero--product-type .shopping-hero__grid {
    grid-template-columns: minmax(285px, 0.82fr) minmax(0, 1.18fr);
    min-height: 190px;
    gap: 22px;
  }

  .shopping-hero--category .shopping-hero__media,
  .shopping-hero--product-type .shopping-hero__media {
    height: 190px;
    min-height: 190px;
  }

  .shopping-hero--category .shopping-hero__title,
  .shopping-hero--product-type .shopping-hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .shopping-hero--shop-main .shopping-hero__media {
    width: min(100%, 360px);
    height: 230px;
    min-height: 200px;
  }
}

@media (max-width: 700px) {
  [data-shopping-hero]:empty,
  [data-shopping-hero][data-shopping-hero-page="shop"]:empty {
    min-height: 0;
  }

  [data-shopping-hero] {
    overflow: clip;
  }

  .shopping-hero::after {
    right: 22px;
    bottom: 18px;
    width: 48px;
  }

  .shopping-hero--shop-main .shopping-hero__grid,
  .shopping-hero--category .shopping-hero__grid,
  .shopping-hero--product-type .shopping-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding-block: 26px 0;
  }

  .shopping-hero--shop-main .shopping-hero__grid {
    padding-bottom: 22px;
  }

  .shopping-hero--category .shopping-hero__content,
  .shopping-hero--product-type .shopping-hero__content {
    max-width: 38rem;
    padding-block: 0;
  }

  .shopping-hero__breadcrumb {
    margin-bottom: 9px;
    font-size: 0.7rem;
  }

  .shopping-hero__eyebrow {
    margin-bottom: 7px;
    font-size: 0.69rem;
  }

  .shopping-hero__title,
  .shopping-hero--category .shopping-hero__title,
  .shopping-hero--product-type .shopping-hero__title {
    margin-bottom: 9px;
    font-size: clamp(2.25rem, 10.5vw, 3.35rem);
    line-height: 0.97;
    overflow-wrap: break-word;
  }

  .shopping-hero__description,
  .shopping-hero--category .shopping-hero__description,
  .shopping-hero--product-type .shopping-hero__description {
    max-width: 38rem;
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .shopping-hero__cta {
    margin-top: 17px;
  }

  .shopping-hero--shop-main .shopping-hero__media {
    justify-self: center;
    width: min(100%, 420px);
    height: clamp(175px, 50vw, 235px);
    min-height: 0;
  }

  .shopping-hero--category .shopping-hero__media,
  .shopping-hero--product-type .shopping-hero__media {
    justify-self: stretch;
    width: calc(100% + 40px);
    height: clamp(155px, 42vw, 205px);
    min-height: 0;
    margin: 0 -20px;
  }
}

@media (max-width: 420px) {
  .shopping-hero--shop-main .shopping-hero__grid,
  .shopping-hero--category .shopping-hero__grid,
  .shopping-hero--product-type .shopping-hero__grid {
    padding-top: 23px;
  }

  .shopping-hero--category .shopping-hero__media,
  .shopping-hero--product-type .shopping-hero__media {
    height: 155px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shopping-hero *,
  .shopping-hero *::before,
  .shopping-hero *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
