/* =====================================================================
   About Equine — Components
   Mega menu, mobile nav, search, hero, cards, galleries, filters,
   breadcrumbs, accordions, forms, badges, mini-cart, modals, media art.
   ===================================================================== */

/* ----------------------------------------------------------------- *
 * Art-directed media placeholders (SVG/gradient based — swap for photos)
 * ----------------------------------------------------------------- */
.media { display: block; position: relative; overflow: hidden; background: var(--stone-light); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--ratio-4-5 { aspect-ratio: 4 / 5; }
.media--ratio-1-1 { aspect-ratio: 1 / 1; }
.media--ratio-3-2 { aspect-ratio: 3 / 2; }
.media--ratio-16-9 { aspect-ratio: 16 / 9; }
.media--ratio-3-4 { aspect-ratio: 3 / 4; }

/* Decorative duotone scenes built with layered gradients + motif */
.scene { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--forest); isolation: isolate; }
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 9px);
}
.scene__motif { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
/* Real photo layered over the gradient (drop-in; see _build image helper) */
.scene__photo { position: absolute; inset: 0; z-index: 1; display: block; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene__label {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 3;
  font-family: var(--font-sans); font-size: var(--fs-tiny); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  background: rgba(21,39,31,.5); padding: .35rem .7rem; border-radius: var(--r-pill);
  backdrop-filter: blur(3px);
}
/* Bottom scrim only where text sits over a scene, so plain product photos stay bright */
.dept-card::after, .mega__feature::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(transparent 35%, rgba(21,39,31,.78));
}
.mega__feature > :not(.scene) { position: relative; z-index: 1; }

/* Image hover zoom */
.zoom-parent img, .zoom-parent .scene__motif { transition: transform .7s var(--ease); }
.zoom-parent:hover img, .zoom-parent:hover .scene__motif { transform: scale(1.05); }

/* ----------------------------------------------------------------- *
 * Mega menu (desktop)
 * ----------------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 880;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-top: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), visibility var(--dur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mega { background: var(--surface); }
}
@media (min-width: 1024px) {
  .primary-nav__item { position: static; }
  .primary-nav { position: relative; }
  .primary-nav__item:hover > .mega,
  .primary-nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
}
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: clamp(1.5rem,2.5vw,2.75rem); padding-block: 2.25rem; }
.mega__col h5 { font-family: var(--font-sans); font-size: var(--fs-tiny); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: var(--sp-4); }
.mega__col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.mega__col a { font-size: var(--fs-small); color: var(--charcoal); display: inline-flex; align-items: center; gap: .35rem; }
.mega__col a:hover { color: var(--forest); }
.mega__col a .new-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.mega__feature { border-radius: var(--r-md); overflow: hidden; position: relative; min-height: 220px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; }
.mega__feature .eyebrow { color: var(--gold-soft); }
.mega__feature h4 { color: #fff; font-family: var(--font-serif); font-size: 1.3rem; margin: .3rem 0 .8rem; }
.mega__feature .scene { position: absolute; inset: 0; z-index: -1; }

/* ----------------------------------------------------------------- *
 * Mobile navigation
 * ----------------------------------------------------------------- */
.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 1000; visibility: hidden;
}
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(21,39,31,.45); opacity: 0; transition: opacity var(--dur) var(--ease); }
.mobile-nav[data-open="true"] .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(88vw, 400px);
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-nav[data-open="true"] .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.mobile-nav__body { overflow-y: auto; flex: 1; padding: var(--sp-3) var(--sp-4) var(--sp-7); }
.mobile-nav__search { padding: var(--sp-4); border-bottom: 1px solid var(--line); }
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc__top { display: flex; align-items: stretch; }
.m-acc__link { flex: 1; display: flex; align-items: center; padding: 1rem .5rem; font-weight: 600; font-size: 1.05rem; color: var(--charcoal); }
.m-acc__toggle { width: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.m-acc__toggle svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.m-acc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-acc__panel { display: none; padding: 0 .5rem var(--sp-4); }
.m-acc__panel[data-open="true"] { display: block; }
.m-acc__panel a { display: block; padding: .55rem .75rem; color: var(--text-muted); font-size: var(--fs-small); border-left: 2px solid var(--line); }
.m-acc__panel a:hover { color: var(--forest); border-color: var(--gold); }
.mobile-nav__foot { padding: var(--sp-4); border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.mobile-nav__foot a { font-size: var(--fs-small); color: var(--text-muted); display: inline-flex; align-items: center; gap: .5rem; }

/* ----------------------------------------------------------------- *
 * Search
 * ----------------------------------------------------------------- */
.search-field { position: relative; width: 100%; }
.search-field input {
  width: 100%; padding: .7rem 2.6rem .7rem 1rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-small);
  transition: border-color var(--dur) var(--ease);
}
.search-field input:focus { border-color: var(--forest); outline: none; }
.search-field__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); }
.search-field__btn svg { width: 18px; height: 18px; }

.search-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(21,39,31,.5); display: none; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
.search-overlay[data-open="true"] { display: flex; }
.search-overlay__box { width: min(640px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-overlay__field { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-overlay__field svg { width: 22px; height: 22px; color: var(--forest); flex: none; }
.search-overlay__field input { flex: 1; border: none; font-size: 1.2rem; background: none; }
.search-overlay__field input:focus { outline: none; }
.search-overlay__results { max-height: 52vh; overflow-y: auto; }
.search-result { display: flex; gap: .9rem; padding: .75rem 1.25rem; align-items: center; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--ivory-soft); }
.search-result .media { width: 52px; height: 52px; border-radius: var(--r-sm); flex: none; }
.search-result__name { font-weight: 600; font-size: var(--fs-small); }
.search-result__meta { font-size: var(--fs-tiny); color: var(--text-muted); }
.search-result__price { margin-left: auto; font-weight: 650; color: var(--forest); }
.search-empty, .search-hint { padding: 1.5rem 1.25rem; color: var(--text-muted); font-size: var(--fs-small); }

/* ----------------------------------------------------------------- *
 * Hero
 * ----------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(540px, 82vh, 800px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg .scene { width: 100%; height: 100%; }
/* Fine grid + gold glow (futuristic depth) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 85% at 72% 35%, #000, transparent 72%);
  mask-image: radial-gradient(80% 85% at 72% 35%, #000, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 90% at 90% 110%, rgba(192,160,99,.22), transparent 55%),
    linear-gradient(98deg, rgba(14,26,20,.9) 0%, rgba(21,39,31,.62) 42%, rgba(21,39,31,.12) 100%);
}
.hero__inner { padding-block: clamp(3rem,8vw,6rem); max-width: 640px; animation: hero-rise .9s var(--ease-out) both; }
.hero h1 {
  color: #fff; font-size: var(--fs-hero); margin-bottom: 1.2rem;
  background: linear-gradient(102deg, #ffffff 0%, #f4e7c7 58%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero p { font-size: 1.2rem; color: rgba(245,241,230,.92); margin-bottom: 2rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.5rem; font-size: var(--fs-small); color: rgba(245,241,230,.85); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold-soft); }

/* Page banner (interior hero) */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -3; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 90% at 78% 30%, #000, transparent 72%);
  mask-image: radial-gradient(70% 90% at 78% 30%, #000, transparent 72%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 100% at 95% 100%, rgba(192,160,99,.16), transparent 55%),
    linear-gradient(110deg, rgba(14,26,20,.88), rgba(34,38,42,.5));
}
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 720px; }
.page-hero h1 { color: #fff; margin: .5rem 0 1rem; }
.page-hero p { color: rgba(245,241,230,.9); font-size: 1.12rem; max-width: 56ch; }

/* ----------------------------------------------------------------- *
 * Category & editorial cards
 * ----------------------------------------------------------------- */
.dept-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: var(--r-xl); overflow: hidden; color: #fff; padding: 1.75rem; isolation: isolate; transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur) var(--ease); }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dept-card .scene { position: absolute; inset: 0; z-index: -1; }
.dept-card__body { position: relative; z-index: 2; }
.dept-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .5rem; }
.dept-card p { color: rgba(245,241,230,.88); font-size: var(--fs-small); margin-bottom: 1rem; max-width: 34ch; }

.collection-card { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur) var(--ease); }
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.collection-card .media { aspect-ratio: 3/4; }
.collection-card__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem; background: linear-gradient(transparent, rgba(21,39,31,.8)); color: #fff; }
.collection-card__label h4 { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; }
.collection-card__label span { font-size: var(--fs-tiny); color: var(--gold-soft); letter-spacing: .08em; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.feature-split--reverse .feature-split__media { order: 2; }
.feature-split__media { border-radius: var(--r-lg); overflow: hidden; }
.feature-split__media .scene { min-height: 460px; }
.feature-split__body { max-width: 52ch; }

/* ----------------------------------------------------------------- *
 * Product card
 * ----------------------------------------------------------------- */
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease); }
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); z-index: 4; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--line-strong); }
.product-card:hover::before { transform: scaleX(1); }
.product-card__media { position: relative; }
.product-card__media .media, .product-card__media .scene { aspect-ratio: 4/5; }
.product-card__badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .4rem; z-index: 3; }
.product-card__wish { position: absolute; top: .55rem; right: .55rem; z-index: 3; width: 38px; height: 38px; border-radius: var(--r-pill); background: rgba(255,253,247,.9); display: inline-flex; align-items: center; justify-content: center; color: var(--charcoal); box-shadow: var(--shadow-sm); }
.product-card__wish:hover { color: var(--sale); }
.product-card__wish svg { width: 19px; height: 19px; }
.product-card__wish[aria-pressed="true"] { color: var(--sale); }
.product-card__wish[aria-pressed="true"] svg { fill: var(--sale); }
.product-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card__brand { font-size: var(--fs-tiny); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 650; }
.product-card__name { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.product-card__name a::after { content: ""; position: absolute; inset: 0; }
.product-card__swatches { display: flex; gap: .35rem; margin-top: .25rem; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.product-card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: baseline; gap: .5rem; }
/* Keep interactive controls above the whole-card link overlay (name a::after) */
.product-card [data-add] { position: relative; z-index: 2; }
.product-card__swatches { position: relative; z-index: 2; }
.price { font-weight: 700; color: var(--forest); font-size: 1.05rem; }
.price--was { color: var(--text-faint); font-weight: 500; text-decoration: line-through; font-size: var(--fs-small); }
.price--sale { color: var(--sale); }

.badge { display: inline-flex; align-items: center; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem; border-radius: var(--r-sm); line-height: 1; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--forest); color: #fff; }
.badge--best { background: var(--gold); color: var(--forest-deep); }
.badge--soft { background: var(--ivory-soft); color: var(--text-muted); border: 1px solid var(--line); }

/* ----------------------------------------------------------------- *
 * Breadcrumbs
 * ----------------------------------------------------------------- */
.breadcrumbs { font-size: var(--fs-tiny); color: var(--text-muted); padding-block: var(--sp-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }
.breadcrumbs svg { width: 13px; height: 13px; color: var(--text-faint); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }
.page-hero .breadcrumbs { color: rgba(245,241,230,.75); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs [aria-current="page"] { color: #fff; }
.page-hero .breadcrumbs svg { color: rgba(245,241,230,.5); }

/* ----------------------------------------------------------------- *
 * Category / shop layout with filters
 * ----------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.shop-toolbar__count { font-size: var(--fs-small); color: var(--text-muted); }
.shop-toolbar__controls { display: flex; gap: var(--sp-3); align-items: center; }
.select {
  appearance: none; -webkit-appearance: none; padding: .6rem 2.2rem .6rem .9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-small); font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a2c' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
}
.filters { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-2) var(--sp-4) var(--sp-4); }
.filter-group { border-bottom: 1px solid var(--line); padding-block: var(--sp-3); }
.filter-group:last-child { border-bottom: none; }
.filter-group > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 650; font-size: var(--fs-small); list-style: none; padding-block: .4rem; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.filter-group[open] > summary svg { transform: rotate(180deg); }
.filter-opts { display: grid; gap: .55rem; padding-top: var(--sp-3); }
.check { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-small); cursor: pointer; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--forest); }
.check .count { margin-left: auto; color: var(--text-faint); font-size: var(--fs-tiny); }
.filter-price { display: flex; align-items: center; gap: .5rem; padding-top: var(--sp-3); }
.filter-price input { width: 100%; padding: .5rem .6rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font-size: var(--fs-small); }
.filters__actions { margin-top: var(--sp-4); display: grid; gap: .5rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-4); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; background: var(--ivory-soft); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-tiny); font-weight: 600; }
.chip button { display: inline-flex; color: var(--text-muted); }
.chip svg { width: 13px; height: 13px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.no-results { text-align: center; padding: var(--sp-8) var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--text-muted); }
.no-results svg { width: 44px; height: 44px; color: var(--stone-dark); margin: 0 auto var(--sp-3); }

/* Desktop: the filters container is a sticky sidebar; its dialog chrome is hidden */
.filter-fab { display: none; }
.filters-dialog { position: sticky; top: calc(var(--header-h) + 1rem); }
.filters-dialog__scrim, .filters-dialog__head, .filters-dialog__foot { display: none; }

/* Subcategory pills */
.subcats { display: flex; flex-wrap: wrap; gap: .6rem; }
.subcat-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); background: var(--surface); transition: all var(--dur) var(--ease); }
.subcat-pill:hover { border-color: var(--forest); color: var(--forest); background: var(--ivory-soft); }

/* ----------------------------------------------------------------- *
 * Product detail
 * ----------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stone-light); aspect-ratio: 1 / 1; }
.gallery__main .scene, .gallery__main .media { aspect-ratio: 1/1; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery__thumb { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--stone-light); }
.gallery__thumb[aria-current="true"] { border-color: var(--forest); }
.gallery__thumb .scene, .gallery__thumb .media { width: 100%; height: 100%; }

.pdp__brand { font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 650; }
.pdp h1 { margin: .4rem 0 .6rem; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.pdp__price { display: flex; align-items: baseline; gap: .7rem; margin-block: var(--sp-3); }
.pdp__price .price { font-size: 1.6rem; }
.pdp__short { color: var(--text-muted); margin-bottom: var(--sp-4); }
.opt-group { margin-block: var(--sp-4); }
.opt-group__label { display: flex; justify-content: space-between; font-size: var(--fs-small); font-weight: 650; margin-bottom: .6rem; }
.opt-group__label a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.opt-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { min-width: 48px; padding: .6rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-small); font-weight: 600; cursor: pointer; transition: all var(--dur) var(--ease); }
.opt:hover { border-color: var(--forest); }
.opt[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; }
.opt--color { width: 42px; height: 42px; padding: 0; border-radius: 50%; position: relative; }
.opt--color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--forest); border-color: var(--surface); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--forest); font-size: 1.2rem; }
.qty button:hover { background: var(--ivory-soft); }
.qty input { width: 48px; text-align: center; border: none; background: none; font-weight: 650; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp__actions { display: flex; gap: var(--sp-3); margin-block: var(--sp-5); flex-wrap: wrap; }
.pdp__actions .btn { flex: 1; min-width: 180px; }
.pdp__assurances { display: grid; gap: .7rem; padding: var(--sp-4); background: var(--ivory-soft); border-radius: var(--r-md); border: 1px solid var(--line); }
.pdp__assurances li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-small); list-style: none; }
.pdp__assurances svg { width: 20px; height: 20px; color: var(--forest); flex: none; margin-top: 1px; }
.pdp__meta { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--sp-4); display: grid; gap: .3rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table th, .spec-table td { text-align: left; padding: .75rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-sans); font-weight: 650; color: var(--charcoal); }
.spec-table td { color: var(--text-muted); }

.safety-note { display: flex; gap: .8rem; padding: var(--sp-4); border: 1px solid var(--gold); background: #fbf6ea; border-radius: var(--r-md); font-size: var(--fs-small); }
.safety-note svg { width: 24px; height: 24px; color: var(--bronze); flex: none; }

/* Tabs / accordion content sections */
.info-accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem .25rem; font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); text-align: left; }
.acc__btn svg { width: 22px; height: 22px; color: var(--forest); transition: transform var(--dur) var(--ease); flex: none; }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel-inner { overflow: hidden; }
.acc__panel-inner > div { padding: 0 .25rem 1.4rem; }

/* ----------------------------------------------------------------- *
 * FAQ, tables, feature strips
 * ----------------------------------------------------------------- */
.feature-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }
.feature-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.feature-item__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ivory-soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); }
.feature-item__icon svg { width: 26px; height: 26px; }
.feature-item h4 { font-family: var(--font-serif); font-size: 1.15rem; }
.feature-item p { font-size: var(--fs-small); color: var(--text-muted); }

.guide-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease); }
.guide-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); z-index: 4; }
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--line-strong); }
.guide-card:hover::before { transform: scaleX(1); }
.guide-card .media, .guide-card .scene { aspect-ratio: 16/10; }
.guide-card__body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.guide-card__cat { font-size: var(--fs-tiny); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 650; }
.guide-card h3 { font-size: 1.25rem; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card__excerpt { font-size: var(--fs-small); color: var(--text-muted); }
.guide-card__meta { margin-top: auto; padding-top: .6rem; font-size: var(--fs-tiny); color: var(--text-faint); }
.guide-card { position: relative; }

.faq-list .acc__btn { font-size: 1.1rem; }

/* ----------------------------------------------------------------- *
 * Newsletter & forms
 * ----------------------------------------------------------------- */
.newsletter { background: var(--charcoal); color: var(--text-invert); border-radius: var(--r-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--stone); margin: .75rem auto 1.75rem; max-width: 50ch; }
.newsletter__form { display: flex; gap: .6rem; max-width: 480px; margin-inline: auto; flex-wrap: wrap; }
.newsletter__form input { flex: 1; min-width: 220px; padding: .95rem 1.2rem; border-radius: var(--r-pill); border: 1.5px solid rgba(245,241,230,.25); background: rgba(245,241,230,.08); color: #fff; }
.newsletter__form input::placeholder { color: rgba(245,241,230,.6); }
.newsletter__note { font-size: var(--fs-tiny); color: var(--stone-dark); margin-top: 1rem; }

.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-weight: 650; font-size: var(--fs-small); margin-bottom: .4rem; }
.form-field .req { color: var(--sale); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); font-size: var(--fs-body); transition: border-color var(--dur) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest); outline: none; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field__hint { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: .35rem; }
.form-note { font-size: var(--fs-small); padding: var(--sp-4); border-radius: var(--r-md); background: var(--ivory-soft); border: 1px solid var(--line); color: var(--text-muted); }
.form-status { margin-top: var(--sp-3); font-size: var(--fs-small); font-weight: 600; }
.form-status--ok { color: var(--success); }

/* ----------------------------------------------------------------- *
 * Mini-cart drawer
 * ----------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 1050; visibility: hidden; }
.drawer[data-open="true"] { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21,39,31,.45); opacity: 0; transition: opacity var(--dur) var(--ease); }
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--dur) var(--ease); box-shadow: var(--shadow-lg); }
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--sp-5); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.cart-line .media { width: 64px; height: 76px; border-radius: var(--r-sm); }
.cart-line__name { font-weight: 600; font-size: var(--fs-small); line-height: 1.3; }
.cart-line__opts { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: .2rem; }
.cart-line__price { font-weight: 650; color: var(--forest); font-size: var(--fs-small); }
.cart-line__remove { font-size: var(--fs-tiny); color: var(--text-muted); text-decoration: underline; margin-top: .4rem; }
.cart-line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); margin-top: .4rem; }
.cart-line__qty button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.cart-line__qty span { min-width: 24px; text-align: center; font-size: var(--fs-small); font-weight: 650; }
.cart-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--text-muted); }
.cart-empty svg { width: 48px; height: 48px; color: var(--stone-dark); margin: 0 auto var(--sp-4); }
.cart-summary { display: flex; justify-content: space-between; margin-bottom: var(--sp-3); font-size: var(--fs-small); }
.cart-summary strong { font-size: 1.2rem; color: var(--forest); }
.cart-demo-note { font-size: var(--fs-tiny); color: var(--text-muted); background: var(--ivory-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .85rem; margin-top: var(--sp-3); display: flex; gap: .5rem; }
.cart-demo-note svg { width: 16px; height: 16px; color: var(--bronze); flex: none; margin-top: 1px; }

/* ----------------------------------------------------------------- *
 * Toast
 * ----------------------------------------------------------------- */
.toast-stack { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1200; display: grid; gap: .5rem; width: min(92vw, 360px); }
.toast { background: var(--forest-deep); color: #fff; padding: .85rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: var(--fs-small); display: flex; align-items: center; gap: .6rem; animation: toast-in .3s var(--ease); }
.toast svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- *
 * Misc content blocks
 * ----------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .4rem .9rem; border-radius: var(--r-pill); background: var(--ivory-soft); border: 1px solid var(--line); font-size: var(--fs-tiny); font-weight: 600; }
.callout { border-left: 3px solid var(--gold); background: var(--surface-alt); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0; }
/* Inline content links (intros, FAQ answers, notes) read as links */
.section-head a, .acc__panel a, .callout a, .pdp__meta a, .safety-note a, .cart-demo-note a, .form-note a, .form-field__hint a {
  color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600;
  transition: text-decoration-color var(--dur) var(--ease);
}
.section-head a:hover, .acc__panel a:hover, .callout a:hover { text-decoration-color: var(--forest); }
.toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); background: var(--surface); }
.toc h4 { margin-bottom: var(--sp-3); }
.toc ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.toc a { color: var(--forest); font-size: var(--fs-small); }
.toc a:hover { text-decoration: underline; }

.brand-tile { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--charcoal); text-align: center; transition: all var(--dur) var(--ease); }
.brand-tile:hover { border-color: var(--forest); color: var(--forest); box-shadow: var(--shadow-sm); }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: 2.4rem; color: var(--forest); font-weight: 600; }
.stat__label { font-size: var(--fs-small); color: var(--text-muted); }

.size-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.size-table th, .size-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.size-table thead th { background: var(--forest); color: #fff; font-family: var(--font-sans); font-weight: 650; }
.size-table tbody tr:nth-child(even) { background: var(--ivory-soft); }

.error-hero { text-align: center; padding-block: clamp(4rem, 12vh, 9rem); }
.error-hero__code {
  font-family: var(--font-serif); font-size: clamp(5rem, 18vw, 10rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--forest);
}

/* ---- Modern finishing touches ---- */
/* Soft gold/sage aurora behind dark feature sections */
.section--forest, .section--charcoal { position: relative; overflow: hidden; }
.section--forest::before, .section--charcoal::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 80% at 86% 8%, rgba(192,160,99,.16), transparent 60%),
    radial-gradient(42% 70% at 8% 104%, rgba(143,163,147,.12), transparent 60%);
}
.section--forest > *, .section--charcoal > * { position: relative; z-index: 1; }

/* Newsletter card: gold glow + accent line */
.newsletter { position: relative; overflow: hidden; }
.newsletter::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% -10%, rgba(192,160,99,.18), transparent 60%);
}
.newsletter > * { position: relative; z-index: 1; }

/* Feature icons: subtle gradient ring + lift */
.feature-item__icon {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.feature-item:hover .feature-item__icon { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-glow); color: var(--bronze); }

/* Header icon buttons: gentle press feedback */
.icon-btn { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.icon-btn:hover { transform: translateY(-1px); }

/* Nav links: glow underline */
.primary-nav__item:hover .primary-nav__link::after { box-shadow: 0 0 8px rgba(192,160,99,.7); }

/* Subcat pills & chips: smoother */
.subcat-pill { transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
.subcat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Section eyebrow: tiny leading mark for a modern editorial feel */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold-grad); display: inline-block; }
.section-head--center .eyebrow { justify-content: center; }
