/* ==========================================================================
   Café Coton — Chemises Homme
   Editorial menswear landing page
   Palette: ink #001e36 (primary) / wine #81020c (secondary) / sand neutrals
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ink: #001e36;
  --ink-700: #0a2b45;
  --ink-600: #143f5e;
  --wine: #81020c;
  --wine-hover: #a1030f;

  /* Neutrals (warm, echo the studio backdrop of the product photography) */
  --paper: #ffffff;
  --sand-50: #faf7f2;
  --sand-100: #f2ece2;
  --sand-200: #e6dccb;
  --sand-300: #d3c5ae;

  /* Text */
  --text: #001e36;
  --text-muted: #40566a;
  --text-invert: #ffffff;
  --text-invert-muted: #b9c6d2;

  /* Semantic */
  --surface: var(--paper);
  --surface-alt: var(--sand-50);
  --border: rgba(0, 30, 54, 0.14);
  --border-strong: rgba(0, 30, 54, 0.28);
  --focus: #f0b323;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.4vw, 5.4rem);

  /* Space (4/8 rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --section-y: clamp(64px, 8vw, 128px);

  /* Shape & depth */
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 30, 54, 0.06), 0 4px 12px rgba(0, 30, 54, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 30, 54, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 30, 54, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;

  /* Layers */
  --z-base: 1;
  --z-sticky: 20;
  --z-header: 40;
  --z-drawer: 60;
  --z-top: 100;

  --container: 1280px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--wine);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}

.section--sand {
  background: var(--sand-50);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--dark .eyebrow {
  color: var(--sand-300);
}

.section-title {
  font-size: var(--step-3);
  margin-bottom: var(--space-4);
}

.section-lead {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 62ch;
}

.section--dark .section-lead {
  color: var(--text-invert-muted);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: var(--z-top);
  background: var(--wine);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-3);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--wine);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-md);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.btn__label {
  position: relative;
  z-index: 2;
}

.btn svg {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

/* Wipe fill — the motion carries the "shop now" intent, not decoration */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleY(1);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border-strong);
}

.btn--ghost::after {
  background: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-fg: #fff;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
}

.btn--light::after {
  background: var(--wine);
}

.btn--light:hover,
.btn--light:focus-visible {
  --btn-fg: #fff;
  border-color: var(--wine);
}

.btn--full {
  width: 100%;
}

/* Text link with animated rule */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: var(--space-2);
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   5. Announcement bar + header
   -------------------------------------------------------------------------- */
.announce {
  background: var(--wine);
  color: #fff;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px var(--space-3);
}

.announce strong {
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  color: var(--text-invert);
  transition: box-shadow var(--dur) var(--ease-out);
}

.header.is-stuck {
  box-shadow: 0 6px 24px rgba(0, 30, 54, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header__logo img {
  width: 150px;
  height: auto;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--space-3) 0;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-invert);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 100%;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-invert);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.header__burger {
  display: none;
}

/* Scroll progress */
.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--wine);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-columns: 1fr;
  visibility: hidden;
}

.drawer[data-open="true"] {
  visibility: visible;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 54, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.drawer[data-open="true"] .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: relative;
  margin-left: auto;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--ink);
  color: #fff;
  padding: var(--space-5) var(--space-5) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}

.drawer[data-open="true"] .drawer__panel {
  transform: translateX(0);
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__list {
  display: flex;
  flex-direction: column;
}

.drawer__list a {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: var(--step-2);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-invert);
  overflow: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  min-height: clamp(560px, 82vh, 880px);
  padding-block: var(--space-8) var(--space-7);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero__title {
  font-size: var(--step-4);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.hero__title .accent {
  color: var(--sand-200);
  font-style: italic;
}

.hero__title .highlight {
  position: relative;
  display: inline-block;
  color: #fff;
}

.hero__title .highlight::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--wine);
  z-index: -1;
  transform: scaleX(var(--hl, 1));
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}

/* Ghost CTA sits on the navy hero: invert its outline */
.hero .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero .btn--ghost::after {
  background: #fff;
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  --btn-fg: var(--ink);
  border-color: #fff;
}

.hero__lead {
  color: var(--text-invert-muted);
  font-size: var(--step-1);
  max-width: 48ch;
  margin-bottom: var(--space-5);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

.hero__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__figure {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 32px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  box-shadow: var(--shadow-md);
}

.hero__badge span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__glow {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 2, 12, 0.55) 0%, rgba(0, 30, 54, 0) 65%);
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--sand-300), transparent);
  animation: scroll-hint 2s var(--ease-in-out) infinite;
}

@keyframes scroll-hint {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --------------------------------------------------------------------------
   7. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--sand-100);
  border-block: 1px solid var(--border);
  padding-block: var(--space-4);
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-6);
  will-change: transform;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
}

.marquee__item span {
  color: var(--wine);
}

.marquee__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   8. Collection
   -------------------------------------------------------------------------- */
.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.card-collection {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--sand-100);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.card-collection img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.card-collection:hover img {
  transform: scale(1.04);
}

.card-collection::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 30, 54, 0.86) 0%, rgba(0, 30, 54, 0.12) 52%, transparent 100%);
  z-index: 1;
}

.card-collection__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5);
  color: #fff;
}

.card-collection__title {
  font-size: var(--step-2);
  margin-bottom: var(--space-1);
}

.card-collection__meta {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-200);
  margin-bottom: var(--space-3);
}

.card-collection .link-underline {
  color: #fff;
}

.collection__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.collection__note {
  color: var(--text-muted);
  font-size: var(--step--1);
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   9. Filters + product grid
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.filters__panel {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.filters__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.filters__panel-head h3 {
  font-size: var(--step-1);
}

.filters__reset {
  background: none;
  border: none;
  padding: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters__reset:hover {
  color: var(--wine-hover);
}

.filter-group {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.filter-group__legend {
  display: block;
  width: 100%;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.chip:hover {
  border-color: var(--border-strong);
  background: var(--sand-100);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip[aria-pressed="true"] .chip__check {
  opacity: 1;
  transform: scale(1);
}

.chip__check {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.chip__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex: 0 0 auto;
}

.filters__results {
  min-width: 0;
}

.filters__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.filters__count {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filters__count b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.filters__toggle {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.product:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product[hidden] {
  display: none;
}

.product__media {
  position: relative;
  background: var(--sand-100);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.product:hover .product__media img {
  transform: scale(1.05);
}

.product__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: 6px 10px;
  background: var(--wine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}

.product__title {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.product__attrs {
  font-size: var(--step--1);
  color: var(--text-muted);
  text-transform: capitalize;
}

.product__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.product__price del {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.product__price ins {
  font-size: var(--step-1);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.product__multibuy {
  width: 100%;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--wine);
}

.product__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--space-2);
}

.product__size {
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.product__size:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.product__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product__link:focus-visible {
  outline-offset: -3px;
}

.empty-state {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--sand-50);
}

.empty-state[data-visible="true"] {
  display: flex;
}

.empty-state h3 {
  font-size: var(--step-2);
}

.empty-state p {
  color: var(--text-muted);
  max-width: 40ch;
}

.filters__cta {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10. Offers
   -------------------------------------------------------------------------- */
.offers {
  position: relative;
  overflow: clip;
}

.offers__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
}

.offers__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1);
  will-change: transform;
}

.offers__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.offers__deal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.deal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  backdrop-filter: blur(2px);
}

.deal--wide {
  grid-column: 1 / -1;
  background: var(--wine);
  border-color: var(--wine);
}

.deal__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}

.deal__label {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

.deal--wide .deal__label {
  color: rgba(255, 255, 255, 0.86);
}

.offers__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
}

.offers__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-invert-muted);
}

.offers__list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--sand-200);
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}

.faq__q:hover {
  color: var(--wine);
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.faq__icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq__a {
  overflow: hidden;
  height: 0;
}

.faq__a-inner {
  padding-bottom: var(--space-5);
  color: var(--text-muted);
  max-width: 62ch;
}

.faq__a-inner p + p {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   12. Newsletter / Club
   -------------------------------------------------------------------------- */
.club {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: clip;
}

.club__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.club__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.club__media img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center 25%;
  will-change: transform;
}

.club__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 480px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-200);
}

.field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  color: #fff;
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.field input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.42);
}

.field input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sand-200);
  outline: none;
}

.field__hint {
  font-size: var(--step--1);
  color: var(--text-invert-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.field__error {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  color: #ffb4ac;
}

.field__error svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.field[data-invalid="true"] .field__error {
  display: flex;
}

.field[data-invalid="true"] input[type="email"] {
  border-color: #ffb4ac;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--step--1);
  color: var(--text-invert-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--wine);
  flex: 0 0 auto;
}

.form-status {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
}

.form-status[data-visible="true"] {
  display: flex;
}

.form-status svg {
  width: 20px;
  height: 20px;
  color: var(--sand-200);
  flex: 0 0 auto;
}

.club__perks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.club__perks li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

.club__perks svg {
  width: 18px;
  height: 18px;
  color: var(--sand-200);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #001629;
  color: var(--text-invert-muted);
  padding-block: var(--space-8) var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6) var(--space-5);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand img {
  width: 160px;
  margin-bottom: var(--space-4);
}

.footer__brand p {
  max-width: 34ch;
  font-size: var(--step--1);
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__title {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer__list li + li {
  margin-top: var(--space-1);
}

.footer__list a {
  display: inline-block;
  padding: var(--space-2) 0;
  font-size: var(--step--1);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.footer__list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--step--1);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal a:hover {
  color: #fff;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out);
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.1);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   14. Scroll motion (progressive enhancement)
   JS adds .js-motion to <html>; without JS everything stays visible.
   -------------------------------------------------------------------------- */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.js-motion .product {
  opacity: 0;
  transform: translateY(24px);
}

.js-motion .hero__figure {
  clip-path: inset(0 0 100% 0);
}

.js-motion .hero__title .highlight {
  --hl: 0;
}

.js-motion [data-reveal-mask] > * {
  transform: translateY(100%);
}

.js-motion [data-reveal-mask] {
  overflow: hidden;
}

.js-motion [data-reveal-clip] {
  clip-path: inset(0 0 100% 0);
}

.js-motion .word {
  display: inline-block;
  transform: translateY(110%);
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: var(--space-7) var(--space-8);
  }

  .hero__media {
    order: -1;
  }

  .hero__figure {
    width: min(100%, 380px);
  }

  .hero__scroll {
    display: none;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .filters__panel {
    position: static;
  }

  .filters__panel[data-collapsed="true"] {
    display: none;
  }

  .filters__toggle {
    display: inline-flex;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .faq__aside {
    position: static;
  }

  .offers__inner,
  .club__inner {
    grid-template-columns: 1fr;
  }

  .club__media {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    display: none;
  }

  .header__burger {
    display: inline-flex;
    margin-left: auto;
  }

  .header__actions .icon-btn[data-search] {
    display: none;
  }

  .collection__grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__badge {
    left: auto;
    right: -10px;
    bottom: -18px;
    width: 96px;
    height: 96px;
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .collection__grid,
  .product-grid,
  .offers__deal {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: var(--space-4) var(--space-5);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-motion [data-reveal],
  .js-motion [data-reveal-mask] > *,
  .js-motion .product,
  .js-motion .word {
    opacity: 1;
    transform: none;
  }

  .js-motion [data-reveal-clip],
  .js-motion .hero__figure {
    clip-path: none;
  }

  .js-motion .hero__title .highlight {
    --hl: 1;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .drawer,
  .marquee,
  .hero__scroll,
  .footer__social {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
