/* =====================================================================
   ROCCO · main.css
   Order: tokens · base · utilities · header · drawers/popovers · hero
          feature strip · section header · product card · carousel
          banners · triple promo · categories · footer · 404 · responsive
   Spec: clothing-store-homepage-spec.md (single source of truth)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-accent-1: #181616;
  --c-accent-2: #F7F7F7;
  --c-accent-3: #3A3535;
  --c-accent-4: #B2B2B2;
  --c-accent-5: #FFFFFF;
  --c-accent-6: #000000;
  --c-line: #0000001A;
  --c-muted: #00000099;
  --c-warm: #F4F1EE;
  --c-bg: #FFFFFF;

  --hero-main: #FBF3F0;
  --hero-top: #EFF4FA;
  --hero-bottom: #F0FAEF;
  --banner-1: linear-gradient(180deg, #D8DCD8 0%, #E8E9EB 50%);
  --banner-2: linear-gradient(85deg, #EFEDEE 0%, #CFCBC8 100%);
  --promo-1: #F1EFE0;
  --promo-2: #EFF4FA;
  --promo-3: #F7EFEF;

  --space-l: min(6vh, 50px);
  --space-xs: calc(var(--space-l) * 0.1);
  --space-s: calc(var(--space-l) * 0.2);
  --space-m: calc(var(--space-l) * 0.4);
  --space-xl: calc(var(--space-l) * 1.5);
  --space-xxl: calc(var(--space-l) * 2);
  --gutter: 30px;
  --section-gap: 30px;
  --grid-gap: 12px;
  --panel-gap: 12px;
  --radius: 6px;

  --font: 'Montserrat', 'Montserrat Fallback', sans-serif;
  --t: .3s ease;
  --t-slow: .4s ease;
  --shadow-arrow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-accent-6);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; text-transform: uppercase; color: var(--c-accent-6); }
h1 { font-size: 68px; line-height: 1.05; }
h2 { font-size: 48px; line-height: 1.2; }
h3 { font-size: 38px; line-height: 1.3; }
h4 { font-size: 30px; line-height: 1.3; }
h5 { font-size: 20px; line-height: 1.4; }
h6 { font-size: 16px; line-height: 1.5; }
/* Typographic roles decoupled from heading level (semantic order: h1 > h2 > h3) */
.t-h4 { font-size: 30px; line-height: 1.3; }
.t-h5 { font-size: 20px; line-height: 1.4; }
/* Metric-matched fallback so the swap to Montserrat does not shift layout */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 112%; ascent-override: 87%; descent-override: 23%; line-gap-override: 0%;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-accent-6); transition: color var(--t); }
a:hover { color: var(--c-muted); }
button { font-family: inherit; color: inherit; }
img, svg { display: block; }
input, button, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--c-accent-6); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Utilities ---------- */
.page { max-width: 2600px; margin: 0 auto; }
.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { margin-top: var(--section-gap); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: var(--c-accent-6); cursor: pointer;
  transition: color var(--t);
}
.icon-btn:hover { color: var(--c-muted); }

/* Primary solid button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px;
  background: var(--c-accent-6); color: var(--c-accent-5);
  border: 1px solid var(--c-accent-6); border-radius: 0;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .8px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.btn:hover { background: var(--c-accent-5); color: var(--c-accent-6); }
/* Outlined button (product card hover) */
.btn--outline {
  width: 174px; height: 40px; padding: 11px;
  background: var(--c-accent-5); color: var(--c-accent-6);
}
.btn--outline:hover { background: var(--c-accent-6); color: var(--c-accent-5); }

/* Text link ("SHOP NOW", "VIEW ALL") */
.tl {
  display: inline-block;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .8px; text-transform: uppercase;
  color: var(--c-accent-6); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.tl:hover { color: var(--c-muted); }

/* Hover reveal (promo banners) */
.hov { opacity: 0; transition: opacity var(--t); }
.banner:hover .hov, .promo:hover .hov,
.banner:focus-within .hov, .promo:focus-within .hov { opacity: 1; }

/* Image slot: placeholder tile + real image on top.
   The <img> covers the label once a real file is dropped in. */
.img-slot { position: relative; overflow: hidden; }
.img-slot__shade {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 18px 22px;
}
.img-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.img-slot--contain img { object-fit: contain; object-position: center bottom; }
.ph {
  font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(0, 0, 0, .32); text-align: center;
}

/* ---------- 4. Header ---------- */
.site-header { background: var(--c-bg); position: relative; z-index: 40; }
.header__row1 {
  height: 71px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__left { display: flex; align-items: center; gap: 14px; }
.header__burger { display: none; margin-left: -10px; }

/* Wordmark: ONE component, used in header, sticky header and footer.
   Header: /assets/images/logo-wordmark.svg (ROCCO only, 19px tall per spec).
   Footer: /assets/images/logo.svg (ROCCO + SARTORIA MODERNA, 150px wide). */
.wordmark {
  display: inline-flex; align-items: center; height: 19px;
  color: var(--c-accent-6); text-decoration: none;
}
.wordmark img { display: block; height: 19px; width: auto; }
.wordmark--footer { width: 150px; height: auto; margin-bottom: 24px; }
.wordmark--footer img { width: 150px; height: auto; }

/* Search */
.search { position: relative; width: 443px; max-width: 100%; height: 51px; display: flex; align-items: center; margin: 0; }
.search__icon { position: absolute; left: 10px; top: 16px; color: var(--c-accent-6); pointer-events: none; }
.search__input {
  width: 100%; height: 51px; padding: 13px 24px 13px 34px;
  font-size: 17px; line-height: 24px; letter-spacing: -.2px; color: var(--c-accent-6);
  background: var(--c-bg); border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; outline: none;
  appearance: none; -webkit-appearance: none;
}
.search__input::-webkit-search-decoration, .search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input:focus-visible { outline: none; border-bottom-color: var(--c-accent-6); }
.search__results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--c-bg); border: 1px solid var(--c-line); border-top: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  max-height: 380px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.search.is-open .search__results { opacity: 1; visibility: visible; transform: none; }
.sr { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--c-accent-6); transition: background-color var(--t); }
.sr:hover, .sr:focus-visible { background: var(--c-accent-2); color: var(--c-accent-6); outline-offset: -2px; }
.sr__thumb { flex: 0 0 40px; width: 40px; height: 60px; background: var(--c-accent-2); border-radius: 3px; }
.sr__thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 0; }
.sr__title { flex: 1 1 auto; font-size: 12px; line-height: 1.33; color: var(--c-accent-1); }
.sr__price { font-size: 14px; font-weight: 500; }
.sr__empty { padding: 18px 14px; font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .8px; }

/* Utility links */
.util { display: flex; align-items: center; gap: 32px; }
.ulink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 12px; font-weight: 500; line-height: 1.1; letter-spacing: .8px; text-transform: uppercase;
  color: var(--c-accent-6); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
  transition: color var(--t);
}
.ulink:hover { color: var(--c-muted); }
.search-toggle { display: none; }
.cart-icon { position: relative; display: inline-flex; width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -8px; right: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-accent-6); color: var(--c-accent-5);
  font-size: 10px; font-weight: 500; line-height: 16px; text-align: center; letter-spacing: 0;
}

/* 24/7 help popover */
.help { position: relative; }
.popover {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 50; width: 260px;
  background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.help.is-open .popover { opacity: 1; visibility: visible; transform: none; }
.popover__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; margin-bottom: 14px; }
.popover__link { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; line-height: 1.4; letter-spacing: -.2px; text-decoration: none; }
.popover__link svg { flex: 0 0 18px; }

/* Mobile search row (tablet toggle, mobile always) */
.msearch { display: none; padding: 0 var(--gutter) 8px; }
.msearch.is-open { display: block; }
.msearch .search { width: 100%; height: 44px; }
.msearch .search__input { height: 44px; padding: 10px 24px 10px 30px; font-size: 14px; }
.msearch .search__icon { top: 13px; left: 4px; }

/* Main nav + mega menus */
.header__nav {
  position: relative; height: 40px;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.nav__list { height: 100%; display: flex; align-items: center; justify-content: space-around; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__item--dropdown { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; height: 100%; padding: 0 8px;
  font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase;
  color: var(--c-accent-6); text-decoration: none; transition: color var(--t);
}
.nav__link:hover { color: var(--c-muted); }
.mega, .dropdown {
  position: absolute; top: 100%; z-index: 45;
  background: var(--c-bg); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mega { left: 0; right: 0; padding: 32px var(--gutter) 36px; display: grid; grid-template-columns: 1fr 1fr 1fr 320px; gap: 32px; }
.dropdown { left: 0; min-width: 220px; padding: 16px 0; border: 1px solid var(--c-line); border-top: 0; }
.nav__item:hover > .mega, .nav__item:hover > .dropdown,
.nav__item.is-open > .mega, .nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.mega__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; margin-bottom: 14px; }
.mega__list a, .dropdown a {
  display: block; padding: 4px 0; font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: -.2px;
  color: var(--c-accent-6); text-decoration: none;
}
.dropdown a { padding: 4px 24px; }
.mega__list a:hover, .dropdown a:hover { color: var(--c-muted); }
.mega__promo { display: block; position: relative; height: 240px; border-radius: var(--radius); background: var(--c-accent-2); text-decoration: none; }
.mega__promo .img-slot__shade { padding: 14px 18px; align-items: flex-start; }
.mega__promo-txt { position: absolute; left: 24px; bottom: 22px; }
.mega__promo-txt strong { display: block; font-size: 16px; font-weight: 400; line-height: 1.5; text-transform: uppercase; margin-bottom: 6px; }

/* Sticky header (JS clones .header__row1 into it) */
.sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  transform: translateY(-100%); transition: transform var(--t);
}
.sticky-header.is-visible { transform: none; }

/* ---------- 5. Drawers + overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.overlay.is-visible { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90; width: 400px; max-width: 92vw;
  background: var(--c-bg); display: flex; flex-direction: column;
  transition: transform .35s ease, visibility .35s;
  visibility: hidden;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  flex: 0 0 60px; height: 60px; padding: 0 16px 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
}
.drawer__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 24px; }
.drawer__foot { flex: 0 0 auto; padding: 16px 24px 24px; border-top: 1px solid var(--c-line); }

/* Mini cart */
.cart-empty { font-size: 12px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--c-muted); padding: 24px 0; text-align: center; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cart-item__thumb { flex: 0 0 56px; width: 56px; height: 84px; background: var(--c-accent-2); border-radius: 4px; }
.cart-item__thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 0; }
.cart-item__body { flex: 1 1 auto; min-width: 0; }
.cart-item__title { font-size: 12px; line-height: 1.33; color: var(--c-accent-1); text-decoration: none; display: block; }
.cart-item__price { margin-top: 6px; font-size: 14px; font-weight: 500; }
.cart-item__remove { margin-top: 6px; font-size: 12px; color: var(--c-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.cart-item__remove:hover { color: var(--c-accent-6); }
.cart-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.drawer__foot .btn { width: 100%; }

/* Mobile menu drawer */
.mnav__list > li { border-bottom: 1px solid var(--c-line); }
.mnav__row { display: flex; align-items: center; justify-content: space-between; }
.mnav__link, .mnav__toggle {
  display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto;
  min-height: 48px; padding: 12px 0;
  font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase;
  color: var(--c-accent-6); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.mnav__toggle svg { transition: transform var(--t); flex: 0 0 16px; }
.mnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__sub { display: none; padding: 0 0 12px 14px; }
.mnav__sub.is-open { display: block; }
.mnav__sub .mnav__toggle, .mnav__sub .mnav__link { font-weight: 400; text-transform: none; min-height: 44px; padding: 10px 0; letter-spacing: -.2px; }
.mnav__sub .mnav__group { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .8px; }
.mnav__secondary { margin-top: 24px; }
.mnav__secondary .mnav__link { font-weight: 400; text-transform: none; letter-spacing: -.2px; }
.mnav__util { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.mnav__util .mnav__link { gap: 10px; justify-content: flex-start; font-size: 12px; letter-spacing: .8px; }

/* ---------- 6. Hero ---------- */
.hero {
  margin-top: 12px;
  display: grid; grid-template-columns: 57.7fr 42.3fr; gap: var(--panel-gap); height: 500px;
}
.hero__slider { position: relative; height: 500px; border-radius: var(--radius); overflow: hidden; }
.hero__slider .swiper, .hero__slider .swiper-slide { height: 100%; }
.panel { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--c-accent-2); }
.panel--hero-main { background: var(--hero-main); }
.panel--hero-top { background: var(--hero-top); }
.panel--hero-bottom { background: var(--hero-bottom); }
.panel__img { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.panel__img .img-slot__shade { background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.06) 45%, rgba(0,0,0,.09) 100%); }
/* Real hero photos fade into the panel colour on their left edge (spec 3.2.1) */
.panel__img img {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 28%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 28%);
}
/* Transparent cut-outs (PNG / WebP with alpha): no grey tile, no left fade, the
   panel colour shows through and the figures sit on the bottom edge. */
.panel__img--cutout .img-slot__shade { display: none; }
.panel__img--cutout img { -webkit-mask-image: none; mask-image: none; object-position: center bottom; }
/* Slide 2 (summer couple): wider window, focal point just right of centre. */
.panel__img--summer { width: 66%; }
.panel__img--summer img { object-position: 55% bottom; }
.panel--side .panel__img { width: 45%; }
.panel--side .img-slot__shade { padding: 14px 18px; background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.06) 50%, rgba(0,0,0,.09) 100%); }
.panel__txt {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-left: 38px; padding-right: 24px; max-width: 440px;
}
.panel--side .panel__txt { max-width: 330px; }
.panel__txt p { margin-top: 6px; }
.panel__txt .tl { margin-top: 22px; }
.hero__side { display: flex; flex-direction: column; gap: 10px; height: 500px; }
.hero__side .panel { flex: 1 1 0; height: 245px; }

/* Round arrows (hero + carousels) */
.arrow {
  position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: var(--c-accent-5); border: 0; box-shadow: var(--shadow-arrow);
  display: flex; align-items: center; justify-content: center; color: var(--c-accent-6); cursor: pointer;
  transform: translateY(-50%); transition: transform var(--t), opacity var(--t);
}
.arrow:hover { transform: translateY(-50%) scale(1.05); }
.arrow--prev { left: 28px; }
.arrow--next { right: 28px; }
.hero__slider .arrow { top: 50%; }
.arrow.swiper-button-disabled { opacity: .4; cursor: default; }
.arrow.swiper-button-lock { display: none; }

/* ---------- 7. Feature strip ---------- */
.feat { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); }
.feat__box {
  height: 98px; background: var(--c-accent-2); border-radius: var(--radius); padding: 0 30px;
  display: flex; align-items: center; gap: 18px;
}
.feat__box svg { flex: 0 0 28px; color: var(--c-accent-6); }
.feat__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.feat__desc { font-size: 12px; font-weight: 400; line-height: 1.33; margin-top: 4px; }

/* ---------- 8. Section header ---------- */
.section--flash { margin-top: 50px; }
.shead { min-height: 28px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tabs { display: flex; gap: 48px; justify-content: center; }
.tab {
  background: none; border: 0; padding: 0; min-height: 28px; cursor: pointer;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: uppercase;
  color: var(--c-muted); transition: color var(--t);
}
.tab:hover, .tab[aria-selected="true"] { color: var(--c-accent-6); }

/* ---------- 9. Product card ---------- */
.card { position: relative; }
/* Tile background + placeholder label live on .card__media so the link's only
   accessible content is the product title (no label/badge text in its name). */
.card__media {
  position: relative; background: var(--c-accent-2); border-radius: var(--radius);
  transition: background-color var(--t-slow);
}
.card:hover .card__media { background: #F0F0F0; }
.card__media > .ph { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.card__tile {
  position: relative; z-index: 1; display: block; aspect-ratio: 2 / 3;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img--alt { opacity: 0; transition: opacity var(--t-slow); }
.card:hover .card__img--alt { opacity: 1; }
.badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; height: 30px; padding: 5px 12px; pointer-events: none;
  background: var(--c-accent-6); color: var(--c-accent-5);
  font-size: 10px; font-weight: 400; line-height: 2; text-transform: uppercase; border-radius: 0;
}
.badge--new { background: var(--c-accent-2); color: var(--c-muted); }
.card__wish {
  position: absolute; top: 6px; left: 6px; z-index: 3; width: 36px; height: 36px; padding: 8px;
  background: none; border: 0; color: var(--c-accent-6); cursor: pointer;
  opacity: 0; transition: opacity var(--t), color var(--t);
}
.card:hover .card__wish, .card:focus-within .card__wish, .card__wish.is-active { opacity: 1; }
.card__wish .ico-heart-fill { display: none; }
.card__wish.is-active .ico-heart { display: none; }
.card__wish.is-active .ico-heart-fill { display: block; }
.card__cta {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.card:hover .card__cta, .card:focus-within .card__cta { opacity: 1; }
.card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 14px; font-size: 12px; font-weight: 400; line-height: 1.33;
  color: var(--c-accent-1); text-decoration: none;
}
.card__title:hover { color: var(--c-muted); }
.card__rating { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 1px; color: var(--c-accent-1); }
.card__reviews { font-size: 12px; line-height: 1.33; color: var(--c-muted); }
.card__price { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.card__old { color: var(--c-accent-6); opacity: .6; text-decoration: line-through; }

/* ---------- 10. Carousel ---------- */
.carousel { position: relative; --arrow-top: 150px; }
.carousel .swiper { overflow: hidden; }
.carousel .swiper-slide { height: auto; }
.carousel .arrow { top: var(--arrow-top); }
@media (hover: none) { .carousel .arrow { display: none; } }

/* ---------- 11. Wide banners ---------- */
.banner { position: relative; height: 284px; border-radius: var(--radius); overflow: hidden; display: block; }
.banner--1 { background: var(--banner-1); }
.banner--2 { background: var(--banner-2); }
.banner__img { position: absolute; top: 0; bottom: 0; left: 57%; width: 25%; }
.banner--2 .banner__img { left: 55%; width: 30%; }
.banner__img .img-slot__shade { background: rgba(0,0,0,.07); border-radius: var(--radius) var(--radius) 0 0; justify-content: center; align-items: flex-end; padding: 0 12px 16px; }
.banner__txt {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-left: 38px; padding-right: 24px; max-width: 480px;
}
.banner__txt p { margin-top: 6px; }
.banner__txt .tl { margin-top: 22px; }

/* ---------- 12. Triple promo ---------- */
.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); height: 284px; }
.promo { position: relative; height: 284px; border-radius: var(--radius); overflow: hidden; }
.promo--1 { background: var(--promo-1); }
.promo--2 { background: var(--promo-2); }
.promo--3 { background: var(--promo-3); }
.promo__img { position: absolute; bottom: 0; }
.promo--1 .promo__img { right: 0; width: 46%; height: 62%; }
.promo--2 .promo__img { right: 8%; width: 40%; height: 80%; }
.promo--3 .promo__img { right: -6%; width: 52%; height: 50%; }
.promo__img .img-slot__shade { background: rgba(0,0,0,.07); border-radius: var(--radius) var(--radius) 0 0; justify-content: center; align-items: flex-end; padding: 0 12px 14px; }
.promo__txt {
  position: absolute; top: 0; left: 0; z-index: 2; padding: 48px 24px 0 38px; max-width: 60%;
  display: flex; flex-direction: column; align-items: flex-start;
}
.promo__txt .tl { margin-top: 18px; }

/* ---------- 13. Shop by category ---------- */
.cats__title { text-align: center; margin-bottom: 18px; }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--grid-gap); }
.cat { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.cat__img { width: 100%; height: 190px; background: var(--c-accent-2); border-radius: var(--radius); }
.cat__img .img-slot__shade { align-items: center; justify-content: center; padding: 0; }
.cat__img img { object-position: center; transition: transform var(--t-slow); }
.cat__img .img-slot__shade { transition: transform var(--t-slow); }
.cat:hover .cat__img img, .cat:hover .cat__img .img-slot__shade { transform: scale(1.03); }
.cat__lbl { margin-top: 10px; min-height: 28px; display: flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 1.3; text-transform: uppercase; color: var(--c-muted); transition: color var(--t); }
.cat:hover .cat__lbl { color: var(--c-accent-6); }

/* ---------- 14. Footer ---------- */
.site-footer { margin-top: 44px; }
.fband { border-top: 1px solid var(--c-line); }
.fa { padding: 30px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fa__item { display: flex; align-items: center; gap: 16px; }
.fa__item svg { flex: 0 0 32px; color: var(--c-accent-6); }
.fa__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.fa__desc { font-size: 12px; line-height: 1.33; margin-top: 4px; }

.fb { padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fb__txt { width: 30%; min-width: 220px; }
.fb__title { font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.fb__desc { margin-top: 6px; font-size: 12px; line-height: 1.33; max-width: 290px; }
.nl { position: relative; width: 408px; flex: 0 0 auto; margin: 0; }
.nl__input {
  width: 100%; height: 44px; padding: 10px 44px 10px 15px;
  font-size: 14px; line-height: 1.4; letter-spacing: -.2px; color: var(--c-accent-6);
  border: 1px solid var(--c-line); border-radius: 0; background: var(--c-bg); outline: none;
  appearance: none; -webkit-appearance: none;
}
.nl__input:focus-visible { outline: none; border-color: var(--c-accent-6); }
.nl__submit {
  position: absolute; right: 0; top: 0; width: 44px; height: 44px;
  background: none; border: 0; color: var(--c-accent-6); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: color var(--t);
}
.nl__submit:hover { color: var(--c-muted); }
.nl__success { height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 500; letter-spacing: -.2px; }
.nl__error { margin-top: 6px; font-size: 12px; color: var(--c-muted); }
.social { display: flex; gap: 18px; justify-content: flex-end; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-line);
  background: transparent; color: var(--c-accent-6);
  transition: background-color var(--t), color var(--t);
}
.soc:hover { background: var(--c-accent-6); color: var(--c-accent-5); }

.fc { padding: 40px 12px; display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; gap: 24px; }
.fc__contact { display: flex; gap: 56px; font-size: 14px; line-height: 1.4; letter-spacing: -.2px; }
.flink { display: block; font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: -.2px; color: var(--c-accent-6); text-decoration: none; }
.flink:hover { color: var(--c-muted); }
.fc__contact .flink { line-height: 1.4; padding: 3px 0; min-height: 26px; }
.fcol__title { margin-bottom: 18px; font-size: 14px; line-height: 1.3; }
.fcol__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 0; cursor: default; text-align: left;
  font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: uppercase; color: var(--c-accent-6);
}
.fcol__toggle svg { display: none; transition: transform var(--t); }
.fcol__list { display: flex; flex-direction: column; }

.fd { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fd__copy { font-size: 13px; line-height: 1.4; }
.fd__copy a { font-size: 13px; text-decoration: none; }
.fd__links { display: flex; gap: 36px; }

/* ---------- 15. 404 page ---------- */
.notfound { padding: var(--space-xxl) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.notfound .btn { margin-top: 12px; }

/* =====================================================================
   16. Responsive
   Tablet 768 to 1024 · Mobile ≤767 (spec section 6)
   ===================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .search { display: none; }
  .search-toggle { display: inline-flex; }
  .ulink__label { display: none; }
  .util { gap: 20px; }
  .ulink .ico-chev { display: none; }
  .popover { right: -60px; }

  .hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hero__slider { height: 420px; }
  .hero__side { flex-direction: row; height: 220px; }
  .hero__side .panel { height: 220px; }

  .feat__title { font-size: 12px; }
  .feat__desc { font-size: 11px; }
  .feat__box { padding: 0 20px; }

  .mega { grid-template-columns: 1fr 1fr 1fr; }
  .mega__promo { display: none; }

  .triple { height: 240px; }
  .promo { height: 240px; }
  .promo__txt { padding-top: 36px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .fa { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .fb { flex-direction: column; align-items: flex-start; gap: 20px; }
  .fb__txt { width: 100%; }
  .nl { width: 100%; max-width: 408px; }
  .social { justify-content: flex-start; }
  .fc { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 32px 0; }
  .fc__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --section-gap: 24px; }
  .section--flash { margin-top: 32px; }

  /* Header: 60px, hamburger left, logo centred, bag right */
  .header__row1 { height: 60px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0; }
  .header__left { justify-content: center; gap: 0; grid-column: 2; }
  .header__burger { display: inline-flex; grid-column: 1; grid-row: 1; margin-left: -10px; }
  .util { grid-column: 3; justify-content: flex-end; gap: 0; }
  .search-toggle, .help, .ulink--account, .ulink--wish { display: none; }
  .cart-btn { width: 44px; justify-content: center; margin-right: -10px; }
  .msearch { display: block; }
  .msearch .search { display: flex; }
  .header__nav { display: none; }
  .sticky-header .msearch { display: none; }

  .drawer { width: 320px; }

  .hero__slider { height: 380px; }
  .hero .t-h4 { font-size: 24px; }
  .panel__txt { padding-left: 24px; padding-right: 16px; max-width: 80%; }
  .panel__img { width: 55%; }
  .panel__img--summer { width: 62%; }
  .panel__img--summer img { object-position: 52% bottom; }
  .panel__img img {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 45%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 45%);
  }
  .panel__img--cutout img { -webkit-mask-image: none; mask-image: none; }
  .hero__side { flex-direction: column; height: auto; }
  .hero__side .panel { flex: 0 0 auto; height: 200px; }

  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat__box { height: 80px; padding: 0 20px; }

  .shead { flex-wrap: wrap; }
  .shead .t-h5 { flex: 1 1 auto; }
  .tabs { order: 3; width: 100%; justify-content: flex-start; margin-top: 10px; gap: 32px; }

  .carousel .arrow, .hero__slider .arrow { display: none; }

  .banner { height: 240px; }
  .banner__txt { padding-left: 24px; padding-right: 16px; max-width: 64%; }
  .banner__img { left: auto; right: -8%; width: 40%; }
  .banner__txt .t-h4 { font-size: 24px; }

  .triple { grid-template-columns: minmax(0, 1fr); height: auto; }
  .promo { height: 220px; }
  .promo__txt { padding: 36px 16px 0 24px; }

  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat__img { height: 160px; }

  /* Footer stacks; link columns become accordions */
  .site-footer { margin-top: 32px; }
  .fa { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0; }
  .fb { padding: 24px 0; gap: 24px; }
  .fc { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 0 0; }
  .fc__brand { padding-bottom: 24px; }
  .fc__contact { flex-direction: column; gap: 12px; }
  .fcol { border-top: 1px solid var(--c-line); }
  .fcol__title { margin: 0; }
  .fcol__toggle { min-height: 52px; cursor: pointer; }
  .fcol__toggle svg { display: block; }
  .fcol.is-open .fcol__toggle svg { transform: rotate(180deg); }
  .fcol__list { display: none; padding-bottom: 16px; }
  .fcol.is-open .fcol__list { display: flex; }
  .fcol__list .flink { min-height: 40px; display: flex; align-items: center; }
  .fd { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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