/* ============================================================
   NAJE — Custom Shopify theme
   Design tokens modeled on najejewelry.com (Impulse-inspired)
   ============================================================ */

:root {
  /* Colors — warm editorial palette */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f2ec;         /* warm cream */
  --color-bg-deep: #f0ebe3;
  --color-text: #1a1816;           /* warm near-black */
  --color-text-light: #8a8378;
  --color-border: #e9e3d9;
  --color-accent: #108474;         /* teal */
  --color-accent-dark: #0c6457;
  --color-gold: #c9a14a;           /* refined antique gold */
  --color-gold-bright: #fedb00;
  --color-gold-soft: #f3ead2;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-sale: #b23b2e;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;   /* editorial serif */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Barlow Semi Condensed', 'Outfit', sans-serif;

  --fs-h1: clamp(2.6rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.7rem);
  --fs-body: 1.02rem;
  --fs-small: 0.8125rem;

  /* Layout */
  --page-width: 1340px;
  --gutter: 1.5rem;
  --radius: 12px;
  --radius-lg: 4px;                /* sharper, editorial corners */
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(26,24,22,.05);
  --shadow-md: 0 18px 50px -20px rgba(26,24,22,.28);
  --transition: 0.45s cubic-bezier(.22,1,.36,1);

  --header-height: 80px;
  --announce-height: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.page-width { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .35rem; }
.section-heading .subheading {
  font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; color: var(--color-accent); font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-accent); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .85rem; line-height: 1;
  padding: 1rem 2.25rem; border-radius: var(--radius-pill);
  background: var(--color-text); color: var(--color-white);
  transition: var(--transition); border: 1.5px solid var(--color-text);
}
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: #fff; }
.btn--gold { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-black); }
.btn--gold:hover { background: var(--color-black); border-color: var(--color-black); color: #fff; }
.btn--light { background: #fff; color: var(--color-text); border-color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--color-text); border-color: #fff; transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ---------- Forms ---------- */
input, select, textarea {
  font-family: inherit; font-size: 1rem; padding: .85rem 1rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-accent); }

/* ============================================================
   HEADER
   ============================================================ */
.announcement-bar {
  background: var(--color-text); color: #fff; text-align: center;
  font-family: var(--font-accent); letter-spacing: .1em; text-transform: uppercase;
  font-size: .72rem; line-height: var(--announce-height); height: var(--announce-height);
  overflow: hidden;
}
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-height); gap: 1rem;
}
.header__nav { display: flex; gap: 1.6rem; }
.header__nav a {
  font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .06em;
  font-size: .82rem; font-weight: 600; padding: .25rem 0; position: relative;
}
.header__nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--color-accent); transition: var(--transition);
}
.header__nav a:hover::after { width: 100%; }
/* Header dropdown menus */
.header__nav-item { position: relative; display: inline-flex; align-items: center; }
.header__nav-link { display: inline-flex; align-items: center; gap: .25rem; }
.nav-caret { display: inline-flex; transition: transform .3s ease; }
.nav-caret svg { width: 13px; height: 13px; }
.header__nav-item.has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.header__dropdown {
  position: absolute; top: 100%; left: 0; margin-top: .5rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .6rem; min-width: 210px;
  display: flex; flex-direction: column; gap: .05rem; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition);
}
.header__nav-item.has-dropdown:hover .header__dropdown,
.header__nav-item.has-dropdown:focus-within .header__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header__dropdown a {
  padding: .55rem .75rem; border-radius: 7px; white-space: nowrap;
  font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; font-weight: 600;
}
.header__dropdown a::after { display: none; }
.header__dropdown a:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.header__dropdown-group { display: flex; flex-direction: column; padding-top: .35rem; }
.header__dropdown-heading { padding: .45rem .75rem .2rem; font-family: var(--font-accent); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-light); }
.mobile-nav__child { padding-left: 1.1rem !important; font-size: .78rem !important; color: var(--color-text-light); }
.mobile-nav__child--2 { padding-left: 2rem !important; }

.header__logo { text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.header__logo img { max-height: 42px; margin: 0 auto; width: auto; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.1rem; }
.header__actions button, .header__actions a { display: inline-flex; }
.header__icon svg { width: 22px; height: 22px; stroke: var(--color-text); fill: none; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--color-accent); color: #fff;
  font-size: .65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-link { position: relative; }
.header__menu-toggle { display: none; }

/* ============================================================
   HERO / SLIDESHOW
   ============================================================ */
.hero { position: relative; }
.hero__slide {
  position: relative; min-height: clamp(420px, 70vh, 760px);
  display: flex; align-items: center; overflow: hidden;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.hero__content { position: relative; z-index: 2; max-width: 560px; color: #fff; padding: 2rem 0; }
.hero__content--center { margin: 0 auto; max-width: 720px; }
.hero__content--center .btn { margin: 0 auto; }
.hero__content.is-light { color: var(--color-text); }
.hero__subheading {
  font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .2em;
  font-size: .85rem; font-weight: 600; margin-bottom: 1rem; display: block;
}
.hero__title { font-size: var(--fs-h1); margin-bottom: 1rem; }
.hero__text { font-size: 1.1rem; margin-bottom: 1.75rem; opacity: .95; }

/* ============================================================
   FEATURED COLLECTIONS / PRODUCT GRID
   ============================================================ */
.collection-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);   /* fill the row evenly, no empty right column */
}
@media (max-width: 989px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
.collection-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collection-card:hover img { transform: scale(1.06); }
.collection-card__label {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem;
}

.product-grid {
  display: grid; gap: 2.5rem 1.75rem;
  grid-template-columns: repeat(4, 1fr);   /* exactly 4 per row on desktop */
}
@media (max-width: 989px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { position: relative; }
.product-card__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-bg-alt); aspect-ratio: 1/1; margin-bottom: .85rem;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease, transform .6s ease; }
.product-card__media img.product-card__img--alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__img--alt { opacity: 1; }
.product-card:hover .product-card__img--main { opacity: 0; }
.product-card__badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: var(--color-gold); color: var(--color-black);
  font-family: var(--font-accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: .68rem; padding: .3rem .65rem; border-radius: var(--radius-pill);
}
.product-card__badge--sale { background: var(--color-sale); color: #fff; }
.product-card__quick-add {
  position: absolute; left: 50%; bottom: .85rem; transform: translate(-50%, 12px);
  opacity: 0; transition: var(--transition); white-space: nowrap;
  pointer-events: none;   /* never block clicks on the product link while hidden */
}
.product-card:hover .product-card__quick-add { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.product-card__title { font-size: .98rem; font-weight: 500; margin: 0 0 .25rem; }
.product-card__price { font-weight: 600; }
.product-card__price .price--compare { color: var(--color-text-light); text-decoration: line-through; font-weight: 400; margin-right: .4rem; }
.product-card__price .price--sale { color: var(--color-sale); }
.product-card .rating { font-size: .78rem; color: var(--color-gold); margin-bottom: .15rem; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section { position: relative; }
.video-section__wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video-section__wrap video, .video-section__wrap iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-section__content { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }

/* ============================================================
   FEATURED PRODUCT
   ============================================================ */
.featured-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.featured-product__media img { border-radius: var(--radius-lg); width: 100%; }
.featured-product__info .price-large { font-size: 1.6rem; font-weight: 600; margin: .5rem 0 1.25rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 1.75rem; }
.testimonial .stars { color: var(--color-gold); margin-bottom: .75rem; letter-spacing: .1em; }
.testimonial__author { font-weight: 600; margin-top: 1rem; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.product__gallery { display: flex; flex-direction: column; gap: 1rem; }
.product__featured-img { border-radius: var(--radius-lg); overflow: hidden; }
.product__thumbs { display: flex; gap: .65rem; flex-wrap: wrap; }
.product__thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; }
.product__thumbs img.is-active { border-color: var(--color-accent); }
.product__title { margin-bottom: .5rem; }
.product__price { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
.product__price .price--compare { color: var(--color-text-light); text-decoration: line-through; font-weight: 400; font-size: 1.1rem; margin-right: .5rem; }
.product__options { margin-bottom: 1.5rem; }
.product__option-label { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; display: block; }
.variant-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-pill { padding: .6rem 1.1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); font-size: .85rem; }
.variant-pill input { display: none; }
.variant-pill:has(input:checked) { border-color: var(--color-text); background: var(--color-text); color: #fff; }
.product__qty { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); }
.qty-stepper button { width: 40px; height: 44px; font-size: 1.1rem; }
.qty-stepper input { width: 46px; text-align: center; border: 0; padding: 0; }
.product__trust { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .85rem; color: var(--color-text-light); }
.product__accordion { margin-top: 1.5rem; border-top: 1px solid var(--color-border); }
.product__accordion details { border-bottom: 1px solid var(--color-border); }
.product__accordion summary { padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.product__accordion summary::-webkit-details-marker { display: none; }

/* ============================================================
   COLLECTION PAGE
   ============================================================ */
.collection-header { text-align: center; padding: 3rem 0 1.5rem; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.collection-toolbar select { width: auto; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 90; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 90vw);
  background: #fff; z-index: 95; transform: translateX(100%); transition: var(--transition);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { border-radius: var(--radius); }
.cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }

/* Mobile nav drawer */
.mobile-nav { position: fixed; top: 0; left: 0; height: 100%; width: min(340px, 85vw); background: #fff; z-index: 95; transform: translateX(-100%); transition: var(--transition); padding: 1.5rem; overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: .85rem 0; font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; border-bottom: 1px solid var(--color-border); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-text); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr repeat(3, 1fr); gap: 2.25rem; margin-bottom: 3rem; }
.footer__col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem; font-family: var(--font-accent); }
.footer__col a { display: block; padding: .35rem 0; color: rgba(255,255,255,.7); transition: var(--transition); font-size: .92rem; }
.footer__col a:hover { color: var(--color-gold); }
.footer__newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.footer__newsletter form { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(255,255,255,.6); font-size: .82rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social svg { width: 20px; height: 20px; fill: rgba(255,255,255,.7); }
.footer__social a:hover svg { fill: var(--color-gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 990px) {
  .header__nav { display: none; }
  .header__menu-toggle { display: inline-flex; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__logo { text-align: left; }
  .featured-product { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .product__quick-add { display: none; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
[data-animate] { opacity: 0; }
[data-animate].is-visible { animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }

/* ============================================================
   PREMIUM POLISH — editorial luxury layer
   ============================================================ */
body { background: var(--color-bg); letter-spacing: .002em; }

/* Headings: refined serif with light weight + tight leading */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.015em; }
h1 { line-height: 1.02; }
h2 { line-height: 1.06; }

/* Section rhythm — more generous whitespace */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* Section heading: eyebrow + serif + hairline divider */
.section-heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading .subheading {
  display: inline-flex; align-items: center; gap: .7rem; color: var(--color-accent);
  font-family: var(--font-accent); letter-spacing: .28em; font-size: .72rem; font-weight: 600;
}
.section-heading .subheading::before,
.section-heading .subheading::after {
  content: ''; width: 28px; height: 1px; background: currentColor; opacity: .5;
}
.section-heading h2 { margin-top: .6rem; }

/* Buttons: quieter, more refined */
.btn {
  font-size: .72rem; letter-spacing: .18em; padding: 1.05rem 2.5rem; font-weight: 600;
  border-radius: var(--radius-pill); transition: var(--transition);
}
.btn--gold { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.btn--gold:hover { background: var(--color-text); border-color: var(--color-text); }

/* Announcement: scrolling marquee */
.announcement-bar { letter-spacing: .25em; font-size: .68rem; overflow: hidden; }
.announcement-bar .page-width { padding: 0; max-width: none; }
.announcement-marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.announcement-marquee span { padding: 0 2.5rem; white-space: nowrap; }
.announcement-bar:hover .announcement-marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Header: airier, serif logo */
.site-header { border-bottom: 1px solid var(--color-border); backdrop-filter: saturate(1.2); }
.header__logo { font-family: var(--font-display); font-weight: 500; font-size: 1.85rem; letter-spacing: .04em; }
.header__nav a { font-size: .76rem; letter-spacing: .12em; }

/* Hero: cinematic — slow ken-burns zoom, gradient, serif display */
.hero__slide { min-height: clamp(520px, 82vh, 880px); }
.hero__media img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__overlay { background: linear-gradient(180deg, rgba(20,18,16,.28) 0%, rgba(20,18,16,.12) 45%, rgba(20,18,16,.45) 100%); }
.hero__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
.hero__subheading { letter-spacing: .3em; opacity: .92; }
.hero__text { font-family: var(--font-body); font-weight: 300; font-size: 1.15rem; max-width: 30ch; }
.hero__content--center .hero__text { margin-left: auto; margin-right: auto; }
.hero__dots [data-slide-dot] { transition: var(--transition); }
.hero__dots [data-slide-dot].is-active { width: 26px !important; border-radius: 6px !important; }

/* Product cards: clean product-on-white (floating, not cropped) */
.product-card__media-wrap { position: relative; }
.product-card__media {
  position: relative; display: block; aspect-ratio: auto; overflow: hidden;
  background: #ffffff; border: 1px solid #f1ede5;
  border-radius: var(--radius-lg); transition: var(--transition);
}
/* Robust square box (works without aspect-ratio support): a spacer pseudo
   element forces height = width, then images absolutely fill it. */
.product-card__media::before { content: ''; display: block; padding-bottom: 100%; }
.product-card__media img,
.product-card__media img.product-card__img--main,
.product-card__media img.product-card__img--alt {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 1.5%;   /* fills the tile — bigger, clearer product */
}
.product-card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product-card:hover .product-card__media { box-shadow: var(--shadow-md); border-color: #e9e3d9; }
.product-card__title { font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: .01em; }
.product-card__price { font-family: var(--font-body); font-weight: 500; color: var(--color-text); }
.product-card__badge { background: var(--color-text); color: #fff; border-radius: 2px; letter-spacing: .12em; font-size: .6rem; padding: .35rem .7rem; }
.product-card__badge--sale { background: var(--color-sale); }
.product-card .rating { color: var(--color-gold); letter-spacing: .15em; }

/* Collection cards: editorial captions */
.collection-card { border-radius: var(--radius-lg); }
.collection-card__label { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: .01em; }
.collection-card::after {
  content: 'Shop'; position: absolute; left: 1.4rem; bottom: 1.1rem; z-index: 3;
  font-family: var(--font-accent); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: translateY(8px); transition: var(--transition);
}
.collection-card:hover::after { opacity: .85; transform: translateY(0); }

/* Featured product: editorial */
.featured-product__info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.featured-product__media img { border-radius: var(--radius-lg); }
.featured-product .price-large { font-family: var(--font-body); font-weight: 500; }

/* Video / testimonials */
.video-section__wrap { border-radius: var(--radius-lg); }
.video-section__content h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.testimonial { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.testimonial p { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.testimonial .stars { font-style: normal; }

/* Footer: warm dark + serif */
.site-footer { background: #16140f; }
.footer__col h4 { font-family: var(--font-accent); letter-spacing: .18em; }
.footer__brand h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: .02em; text-transform: none; }

/* Feature / trust bar */
.feature-bar { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.feature-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-bar__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; padding: 2.4rem 1rem; }
.feature-bar__item + .feature-bar__item { border-left: 1px solid var(--color-border); }
.feature-bar__item svg { width: 26px; height: 26px; stroke: var(--color-accent); }
.feature-bar__item strong { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.feature-bar__item span { color: var(--color-text-light); font-size: .82rem; }
@media (max-width: 749px) {
  .feature-bar__grid { grid-template-columns: 1fr 1fr; }
  .feature-bar__item:nth-child(3) { border-left: 0; }
  .feature-bar__item:nth-child(odd) { border-left: 0; }
}

/* Feature columns (product page) */
.feature-columns { padding: 2rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.feature-columns__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
.feature-col svg { width: 26px; height: 26px; stroke: var(--color-accent); }
.feature-col strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.feature-col span { color: var(--color-accent); font-size: .85rem; }

/* Product highlights */
.highlights-intro { font-size: 1.05rem; color: var(--color-text); margin-bottom: 2rem; }
.highlights-list { display: grid; gap: 1.5rem; }
.highlight-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; }
.highlight-item p { margin: 0; color: var(--color-text-light); line-height: 1.6; }
.highlight-emoji { font-size: 1.15rem; }
.ig-pill { display: inline-flex; align-items: center; gap: .6rem; margin: 2rem 0 0; padding: .7rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; }
.ig-pill svg { width: 18px; height: 18px; fill: var(--color-accent); }
.highlights-rows { margin-top: 2rem; }
.hl-row { border-top: 1px solid var(--color-border); }
.hl-row:last-child { border-bottom: 1px solid var(--color-border); }
.hl-row summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; }
.hl-row summary::-webkit-details-marker { display: none; }
.hl-row__title { display: flex; align-items: center; gap: .7rem; }
.hl-row__title svg { stroke: var(--color-accent); flex: none; }
.hl-row[open] .faq-chevron { transform: rotate(180deg); }
.hl-row__content { padding: 0 0 1.2rem 1.8rem; color: var(--color-text-light); line-height: 1.6; }

/* Product page — advanced PDP elements */
.product__rating { display: flex; align-items: center; gap: .6rem; margin: -.25rem 0 1rem; }
.product__rating .stars { color: var(--color-gold); letter-spacing: .12em; }
.product__rating-text { font-size: .85rem; color: var(--color-text-light); }
.product__price { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.product__price .price--current { font-size: 1.5rem; font-weight: 600; }
.badge-off { background: var(--color-sale); color: #fff; font-family: var(--font-accent); font-weight: 700; font-size: .72rem; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 4px; text-transform: uppercase; }
.product__benefits { display: grid; gap: .65rem; margin: 1.25rem 0 1.5rem; }
.product__benefits li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; }
.product__benefits li svg { stroke: var(--color-accent); flex: none; margin-top: 2px; }
.product__payments { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; align-items: center; justify-content: center; }
.product__payments .payment-icon { height: 24px; width: auto; }

/* Trust columns — stronger */
.product__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.product__trust span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; font-size: .8rem; color: var(--color-text-light); }
.product__trust span svg { stroke: var(--color-accent); }

/* Proof / lifestyle band */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proof-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.proof-tile::before { content: ''; display: block; padding-bottom: 125%; }
.proof-tile img, .proof-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.proof-tile:hover img { transform: scale(1.06); }
.proof-tile__label {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center; z-index: 2;
  color: #fff; font-family: var(--font-accent); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .9rem; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.proof-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); z-index: 1; }
@media (max-width: 749px) { .proof-grid { grid-template-columns: 1fr 1fr; } .product__trust { gap: .5rem; } }

/* Order tracking */
.order-tracking-form { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; }
.order-tracking-form__row { display: flex; gap: .6rem; }
.order-tracking-form__row input { flex: 1; }
.order-tracking-help { text-align: center; color: var(--color-text-light); }
@media (max-width: 480px) { .order-tracking-form__row { flex-direction: column; } }

/* CTA banner */
.cta-section { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(340px, 45vw, 520px); padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-section--solid { background: linear-gradient(120deg, var(--color-text), #2c2824); }
.cta-section__media, .cta-section__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-section__overlay { position: absolute; inset: 0; }
.cta-section__content { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.cta-section__content[style*="center"] { margin: 0 auto; }
.cta-section__subheading { font-family: var(--font-accent); text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; font-weight: 600; display: block; margin-bottom: 1rem; }
.cta-section__heading { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.cta-section__text { font-size: 1.1rem; opacity: .92; margin-bottom: 1.75rem; }

/* FAQ accordion */
.faq-section .section-heading { margin-bottom: 2.5rem; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(26,24,22,.14); }
.faq-item:first-child { border-top: 1px solid rgba(26,24,22,.14); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem .25rem; cursor: pointer; list-style: none;
  font-size: 1rem; color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { display: flex; align-items: center; gap: .85rem; }
.faq-item__q svg { stroke: var(--color-accent); flex: none; }
.faq-chevron { display: inline-flex; transition: transform .3s ease; color: var(--color-text-light); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item__a { padding: 0 0 1.3rem 2.45rem; color: var(--color-text-light); line-height: 1.65; }
.faq-item__a p { margin: 0 0 .6em; }
@media (max-width: 600px) { .faq-item__a { padding-left: 0; } }

/* Testimonials — auto-scrolling marquee + Trustpilot-style rating */
.testimonials-section { overflow: hidden; }
.testi-summary { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.testi-summary__label { font-weight: 700; color: var(--color-text); }
.testi-summary__score { font-weight: 700; font-size: 1.15rem; }
.testi-summary__max { color: var(--color-text-light); }
.testi-summary__count { text-align: center; color: var(--color-text-light); font-size: .9rem; margin-top: .5rem; }
.testi-summary__count strong { color: var(--color-text); }
.trust-stars { display: inline-flex; gap: 3px; }
.trust-star {
  width: 26px; height: 26px; background: #00b67a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; font-size: 15px; line-height: 1;
}
.trust-stars--sm .trust-star { width: 20px; height: 20px; font-size: 12px; border-radius: 2px; }

.testimonials-marquee { overflow: hidden; width: 100%; padding: .5rem 0 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.testimonials-track { display: flex; gap: 1.5rem; width: max-content; animation: testi-marquee 60s linear infinite; }
.testimonials-section:hover .testimonials-track { animation-play-state: paused; }
@keyframes testi-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi-card {
  flex: 0 0 330px; background: #fff; border-radius: 14px; padding: 1.75rem;
  box-shadow: 0 10px 30px -16px rgba(26,24,22,.25); display: flex; flex-direction: column; gap: .65rem;
}
.testi-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0; }
.testi-card__quote { font-size: .92rem; color: var(--color-text-light); line-height: 1.6; margin: 0; flex: 1; }
.testi-card__author { font-weight: 600; font-size: .9rem; }
@media (max-width: 600px) { .testi-card { flex-basis: 280px; } .testimonials-track { animation-duration: 40s; } }

/* Instagram gallery */
.instagram-section .section-heading { margin-bottom: 2rem; }
.instagram-handle { display: inline-block; margin-top: .5rem; color: var(--color-accent); font-family: var(--font-accent); letter-spacing: .12em; font-size: .85rem; }
.instagram-handle:hover { text-decoration: underline; }
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.instagram-tile { position: relative; display: block; overflow: hidden; }
.instagram-tile::before { content: ''; display: block; padding-bottom: 100%; }
.instagram-tile img, .instagram-tile svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.instagram-tile:hover img { transform: scale(1.07); }
.instagram-tile__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(26,24,22,0); opacity: 0; transition: var(--transition);
}
.instagram-tile:hover .instagram-tile__overlay { background: rgba(26,24,22,.35); opacity: 1; }
.instagram-tile__overlay svg { position: static; width: 30px; height: 30px; fill: #fff; }
@media (max-width: 989px) { .instagram-grid { grid-template-columns: repeat(2, 1fr); } }

/* Selection + focus niceties */
::selection { background: var(--color-gold-soft); color: var(--color-text); }
.product-grid { gap: 2.5rem 1.5rem; }

/* Product cards: centered editorial captions + swatches */
.product-card__info { text-align: center; }
.product-card__title { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; line-height: 1.4; margin-bottom: .4rem; }
.product-card .rating { text-align: center; }
.product-card__price { font-size: .9rem; letter-spacing: .02em; }
.product-card__swatches { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; }
.product-card__swatches .swatch {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; transition: var(--transition);
}
.product-card__swatches .swatch:hover { transform: scale(1.18); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px var(--color-bg), 0 0 0 3px var(--color-text); }

/* ============================================================
   PRODUCT PAGE — premium redesign + animation
   ============================================================ */
.template-product .product { align-items: start; gap: clamp(2rem, 5vw, 5rem); }

/* Sticky buy panel on desktop */
@media (min-width: 991px) {
  .product__details { position: sticky; top: calc(var(--header-height) + 1.5rem); }
}

/* Gallery — elevated, hover zoom, soft frame */
.product__featured-img {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -30px rgba(26,24,22,.4); background: var(--color-bg-alt);
}
.product__featured-img img {
  display: block; width: 100%; transition: opacity .35s ease, transform 1s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.product__featured-img:hover img { transform: scale(1.07); }
.product__featured-img img.is-swapping { opacity: 0; transform: scale(1.02); }
.product__featured-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.0) 40%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 60%);
  background-size: 250% 100%; background-position: 150% 0; transition: background-position 1.1s ease;
}
.product__featured-img:hover::after { background-position: -50% 0; }

.product__thumbs { gap: .55rem; }
.product__thumbs img {
  width: 72px; height: 72px; border-radius: 12px; opacity: .65;
  border: 0; box-shadow: inset 0 0 0 1px var(--color-border);
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.product__thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.product__thumbs img.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--color-accent); }

/* Entrance animation — gallery fades, details stagger up */
.template-product .product__gallery { animation: pdpFade .9s ease both; }
@keyframes pdpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.template-product .product__details > * { animation: pdpUp .7s cubic-bezier(.22,1,.36,1) both; }
.template-product .product__details > *:nth-child(1) { animation-delay: .05s; }
.template-product .product__details > *:nth-child(2) { animation-delay: .12s; }
.template-product .product__details > *:nth-child(3) { animation-delay: .19s; }
.template-product .product__details > *:nth-child(4) { animation-delay: .26s; }
.template-product .product__details > *:nth-child(5) { animation-delay: .33s; }
.template-product .product__details > *:nth-child(6) { animation-delay: .40s; }
.template-product .product__details > *:nth-child(7) { animation-delay: .47s; }
@keyframes pdpUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Title + price flourish */
.product__title { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.02; }
.product__rating .stars { animation: starPop .6s ease both .3s; transform-origin: left; }
@keyframes starPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

/* Benefit checklist — circular badges + hover slide */
.product__benefits li { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.product__benefits li:hover { transform: translateX(5px); }
.product__benefits li svg {
  box-sizing: content-box; width: 13px; height: 13px; padding: 5px;
  background: rgba(16,132,116,.12); border-radius: 50%; stroke: var(--color-accent);
}

/* Add to cart — shimmer + lift */
.product__details .btn--full {
  position: relative; overflow: hidden; letter-spacing: .2em; padding: 1.25rem;
  box-shadow: 0 14px 30px -14px rgba(26,24,22,.6);
}
.product__details .btn--full:hover { transform: translateY(-2px); }
.product__details .btn--full::before {
  content: ''; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.product__details .btn--full:hover::before { left: 170%; }

/* Variant pills — refined */
.variant-pill { transition: var(--transition); }
.variant-pill:hover { border-color: var(--color-text); transform: translateY(-1px); }

/* Trust columns hover */
.product__trust span { transition: transform .3s ease; }
.product__trust span:hover { transform: translateY(-3px); }
.product__trust span:hover svg { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-8deg)} 75%{transform:rotate(8deg)} }

@media (prefers-reduced-motion: reduce) {
  .template-product .product__details > *, .template-product .product__gallery,
  .product__rating .stars { animation: none; }
}
