/* ==========================================================================
   RocketComer storefront
   1. Tokens        5. Hero + sections
   2. Reset/base    6. Product cards + grid
   3. Buttons       7. Shop, product, cart, checkout
   4. Header/nav    8. Footer, overlays, utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #fbfaf8;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --ink: #16130f;
  --ink-soft: #46403a;
  --muted: #8b8379;
  --line: #e6e1d9;
  --line-strong: #d6cec2;
  --accent: #a9713c;
  --accent-dark: #8a5a2d;
  --accent-soft: #f3e9dc;
  --sale: #a4322a;
  --ok: #3f6b4f;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1340px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(22, 19, 15, .05);
  --shadow-md: 0 12px 30px -12px rgba(22, 19, 15, .18);
  --shadow-lg: 0 30px 70px -30px rgba(22, 19, 15, .35);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section--alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 46ch; }

.link-underline {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* 3. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

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

.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.3rem; font-size: .7rem; }

/* 4. Header / navigation -------------------------------------------------- */
.announce {
  background: var(--ink);
  color: #f4efe8;
  font-size: .74rem;
  letter-spacing: .08em;
  text-align: center;
  padding: .6rem 1rem;
  position: relative;
  overflow: hidden;
  height: 34px;
}
.announce__track { position: relative; height: 100%; }
.announce__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.announce__item.is-active { opacity: 1; transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 248, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(251, 250, 248, .96); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
  justify-self: center;
  grid-column: 2;
}
.brand__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.9rem; grid-column: 1; }

.nav__link {
  position: relative;
  font-size: .82rem;
  letter-spacing: .06em;
  font-weight: 500;
  padding: .35rem 0;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.nav__item { position: relative; }
.nav__item--has-menu > .nav__link::before {
  content: "";
  position: absolute;
  left: -.6rem; right: -.6rem; top: 100%;
  height: 1.4rem;
}

.submenu {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: -1.4rem;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--has-menu:hover .submenu,
.nav__item--has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }

.submenu a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1.4rem;
  font-size: .85rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.submenu a:hover { color: var(--ink); background: var(--bg-alt); }
.submenu a span { color: var(--muted); font-size: .75rem; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  grid-column: 3;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.icon-btn__count {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.icon-btn__count.is-visible { transform: scale(1); }

.burger { display: none; }

/* 5. Hero + editorial sections ------------------------------------------- */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,.34) 0%, rgba(20,16,12,.10) 40%, rgba(20,16,12,.78) 100%),
    linear-gradient(90deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.18) 46%, rgba(20,16,12,0) 78%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 5rem); width: 100%; }
.hero__eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.hero p { max-width: 44ch; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: .78rem; letter-spacing: .04em; color: rgba(255,255,255,.85);
}

.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: .9rem 0;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: "\2022"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 38%, rgba(20,16,12,.62) 100%);
}
.collection-card__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 1.6rem;
  color: #fff;
}
.collection-card__body h3 { margin: 0 0 .25rem; color: #fff; }
.collection-card__body span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split__media { position: relative; }
.split__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute;
  bottom: -1.4rem; left: -1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.split__badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.usp {
  background: var(--bg);
  padding: 2rem 1.7rem;
}
.usp svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.4; margin-bottom: 1rem; }
.usp h4 { font-family: var(--font-body); font-size: .92rem; font-weight: 600; letter-spacing: .01em; margin: 0 0 .35rem; }
.usp p { margin: 0; font-size: .86rem; color: var(--muted); }

.quote { text-align: center; max-width: 800px; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 1.6rem;
}
.quote figcaption { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: .4rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
}
.insta-grid a { position: relative; overflow: hidden; aspect-ratio: 1; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s var(--ease); }
.insta-grid a:hover img { transform: scale(1.06); opacity: .82; }

.newsletter { background: var(--ink); color: #f6f2ec; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(246,242,236,.7); }
.form-inline { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; }
.form-inline input {
  flex: 1 1 240px;
  padding: .95rem 1.2rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: #fff;
}
.form-inline input::placeholder { color: rgba(255,255,255,.45); }
.form-inline input:focus { outline: none; border-color: rgba(255,255,255,.6); }
.form-note { font-size: .76rem; color: rgba(246,242,236,.5); margin: .9rem 0 0; }
.form-success { color: #b6d7bf; font-size: .86rem; margin-top: .8rem; }

/* 6. Product cards + grid ------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.1rem, 2.2vw, 2rem) clamp(.8rem, 1.6vw, 1.4rem);
}
.product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { position: relative; }
.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  margin-bottom: .9rem;
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .55s var(--ease), transform .9s var(--ease);
}
.card__media img.card__img--alt { opacity: 0; }
.card:hover .card__media img.card__img--main { opacity: 0; }
.card:hover .card__media img.card__img--alt { opacity: 1; transform: scale(1.03); }

.card__badges { position: absolute; top: .8rem; left: .8rem; z-index: 3; display: flex; flex-direction: column; gap: .35rem; }
.badge {
  display: inline-block;
  padding: .3rem .6rem;
  background: var(--surface);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--low { background: var(--accent-soft); color: var(--accent-dark); }

.card__wish {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  border: 0; border-radius: 50%;
  cursor: pointer;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
.card:hover .card__wish, .card__wish.is-on { opacity: 1; transform: none; }
.card__wish svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.card__wish.is-on svg { fill: var(--sale); stroke: var(--sale); }

.card__quick {
  position: absolute; inset: auto .6rem .6rem; z-index: 3;
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: none; }

.card__cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__name { font-family: var(--font-body); font-size: .95rem; font-weight: 500; margin: .3rem 0 .35rem; letter-spacing: 0; }
.card__name a:hover { color: var(--accent); }
.card__price { display: flex; align-items: baseline; gap: .55rem; font-size: .95rem; }
.card__price del { color: var(--muted); font-size: .82rem; }
.card__price .is-sale { color: var(--sale); }
.card__swatches { display: flex; gap: .3rem; margin-top: .55rem; }
.swatch-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.star { color: var(--line-strong); font-size: .85rem; line-height: 1; }
.star.is-on, .star.is-half { color: var(--accent); }
.star.is-half { opacity: .55; }

/* 7. Page furniture: shop, product, cart, checkout ----------------------- */
.page-head { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .4rem; }
.page-head p { color: var(--muted); margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .76rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--line-strong); }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.5rem 0 5rem; }

.filters { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.filter-group { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem;
}
.filter-list { display: flex; flex-direction: column; gap: .5rem; }
.filter-list a { font-size: .88rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; }
.filter-list a:hover { color: var(--accent); }
.filter-list a.is-active { color: var(--ink); font-weight: 600; }
.filter-list a span { color: var(--muted); font-size: .78rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--color { padding-left: .45rem; }
.chip--color i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem;
}
.shop-toolbar__count { font-size: .84rem; color: var(--muted); }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  padding: .6rem 2.4rem .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: .82rem;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute; right: 1rem; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.filters-toggle { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.active-filters .chip { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }

.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-strong); }

/* --- product detail --- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 2rem 0 4rem; }
.pdp__gallery { display: grid; grid-template-columns: 78px 1fr; gap: .8rem; align-items: start; }
.pdp__thumbs { display: flex; flex-direction: column; gap: .6rem; }
.pdp__thumb {
  aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid transparent;
  background: none; padding: 0; cursor: pointer;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
  opacity: .7;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-active, .pdp__thumb:hover { border-color: var(--ink); opacity: 1; }
.pdp__stage { position: relative; overflow: hidden; background: var(--bg-alt); aspect-ratio: 3 / 4; }
.pdp__stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pdp__stage.is-zoom img { transform: scale(1.6); }
.pdp__stage-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

.pdp__info { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.pdp__title { margin-bottom: .5rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pdp__price { display: flex; align-items: baseline; gap: .7rem; font-size: 1.35rem; margin: 1rem 0 .3rem; }
.pdp__price del { font-size: 1rem; color: var(--muted); }
.pdp__price .is-sale { color: var(--sale); }
.pdp__tax { font-size: .76rem; color: var(--muted); margin-bottom: 1.6rem; }
.pdp__blurb { color: var(--ink-soft); }

.option-row { margin: 1.5rem 0; }
.option-row__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.option-row__head strong { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.option-row__head a, .option-row__head button {
  font-size: .76rem; color: var(--muted); text-decoration: underline;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.swatch-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  padding: 3px; background: none; cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch.is-active { border-color: var(--ink); transform: scale(1.06); }

.size-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.size-btn {
  min-width: 52px; padding: .6rem .8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: .84rem; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-error { color: var(--sale); font-size: .8rem; margin-top: .6rem; display: none; }
.size-error.is-visible { display: block; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 100px;
  overflow: hidden;
}
.qty button { width: 40px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 44px; height: 44px; text-align: center; border: 0; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.pdp__actions { display: flex; gap: .6rem; margin: 1.6rem 0 1rem; flex-wrap: wrap; }
.pdp__actions .btn { flex: 1 1 200px; }

.stock-line { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ok); }
.stock-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.stock-line.is-low { color: var(--accent-dark); }
.stock-line.is-low i { background: var(--accent-dark); }

.pdp__perks { list-style: none; padding: 1.4rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.pdp__perks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); }
.pdp__perks svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.5; flex: none; margin-top: 2px; }

.accordion { border-top: 1px solid var(--line); margin-top: 1.8rem; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.accordion__head i { position: relative; width: 11px; height: 11px; flex: none; }
.accordion__head i::before, .accordion__head i::after {
  content: ""; position: absolute; background: var(--ink); transition: transform .25s var(--ease);
}
.accordion__head i::before { inset: 5px 0 5px 0; height: 1px; }
.accordion__head i::after { inset: 0 5px 0 5px; width: 1px; }
.accordion__item.is-open .accordion__head i::after { transform: scaleY(0); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion__body-inner { padding-bottom: 1.2rem; font-size: .9rem; color: var(--ink-soft); }
.accordion__body-inner ul { margin: 0; padding-left: 1.1rem; }
.accordion__body-inner li { margin-bottom: .3rem; }

/* --- cart / checkout --- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.5rem 0 5rem; align-items: start; }

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 500; }
.cart-line__meta { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.cart-line__remove { background: none; border: 0; padding: 0; font-size: .78rem; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: .6rem; }
.cart-line__remove:hover { color: var(--sale); }
.cart-line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }

.summary { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.3rem, 2.5vw, 1.9rem); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: 1rem; font-size: 1.12rem; font-weight: 600; }
.summary__note { font-size: .76rem; color: var(--muted); margin: 1rem 0 0; }

.ship-progress { margin: 1rem 0 1.4rem; }
.ship-progress__bar { height: 4px; background: var(--line); border-radius: 100px; overflow: hidden; }
.ship-progress__fill { height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.ship-progress p { font-size: .78rem; color: var(--ink-soft); margin: .6rem 0 0; }

.coupon { display: flex; gap: .5rem; margin: 1.2rem 0; }
.coupon input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--line-strong); border-radius: 100px; background: var(--surface); }
.coupon input:focus { outline: none; border-color: var(--ink); }
.coupon-msg { font-size: .78rem; margin: -.5rem 0 1rem; }
.coupon-msg.is-error { color: var(--sale); }
.coupon-msg.is-ok { color: var(--ok); }

.payment-icons { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
.payment-icons svg { height: 22px; width: auto; border: 1px solid var(--line); border-radius: 3px; background: #fff; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--sale); }
.field-error { color: var(--sale); font-size: .76rem; margin-top: .3rem; display: none; }
.field.has-error .field-error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2.2rem); }
.form-card h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.4rem; }

.order-confirm { text-align: center; max-width: 620px; margin: 0 auto; padding: 4rem 1rem 6rem; }
.order-confirm__mark { width: 62px; height: 62px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.order-confirm__mark svg { width: 26px; height: 26px; stroke: var(--accent-dark); fill: none; stroke-width: 1.8; }
.order-ref { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em; }

/* --- static content pages --- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2.5rem 0; }
.stat { background: var(--bg); padding: 1.6rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stat span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.info-block { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.info-block:first-child { padding-top: 0; }
.info-block h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .4rem; }
.info-block p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.contact-shot { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-top: 1.5rem; }

/* 8. Footer, overlays, utilities ---------------------------------------- */
.site-footer { background: var(--ink); color: #d9d3ca; padding: clamp(3rem, 6vw, 5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-bottom: 3rem; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1.1rem;
}
.site-footer a { color: #cfc8be; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: .8rem; display: inline-block; }
.footer-about { font-size: .9rem; color: #a9a29a; max-width: 34ch; }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.social-row svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.3rem 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .78rem; color: #8f8880;
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* drawers + overlays */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,16,12,.42);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); width: min(360px, 100%); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; background: var(--surface); }

.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a { display: block; padding: 1rem 0; font-size: 1rem; }
.drawer-nav__sub { list-style: none; margin: 0 0 .8rem; padding: 0 0 0 1rem; }
.drawer-nav__sub a { padding: .45rem 0; font-size: .9rem; color: var(--ink-soft); }

.mini-line { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.mini-line__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); }
.mini-line__media img { width: 100%; height: 100%; object-fit: cover; }
.mini-line__name { font-size: .9rem; font-weight: 500; }
.mini-line__meta { font-size: .78rem; color: var(--muted); }
.mini-line__remove { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0; }
.mini-line__remove:hover { color: var(--sale); }

.drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

.search-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(251,250,248,.98);
  backdrop-filter: blur(6px);
  padding: clamp(1.5rem, 6vw, 5rem) var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
  overflow-y: auto;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box { max-width: 760px; margin: 0 auto; }
.search-box input {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  background: none; border: 0; border-bottom: 1px solid var(--line-strong);
}
.search-box input:focus { outline: none; border-color: var(--ink); }
.search-hint { font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.search-results { max-width: 760px; margin: 2rem auto 0; display: grid; gap: .2rem; }
.search-result { display: grid; grid-template-columns: 62px 1fr auto; gap: 1rem; align-items: center; padding: .6rem; transition: background .2s var(--ease); }
.search-result:hover { background: var(--bg-alt); }
.search-result img { aspect-ratio: 1; object-fit: cover; }
.search-result__name { font-size: .95rem; }
.search-result__cat { font-size: .74rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.modal {
  position: fixed; inset: 0; z-index: 96;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(20,16,12,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  background: var(--surface); max-width: 560px; width: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-height: 84vh; overflow-y: auto;
  transform: translateY(12px); transition: transform .25s var(--ease);
}
.modal.is-open .modal__card { transform: none; }

.toast-stack { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(420px, calc(100% - 2rem)); }
.toast {
  background: var(--ink); color: #fff;
  padding: .85rem 1.1rem;
  font-size: .86rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow-md);
  animation: toastIn .3s var(--ease);
}
.toast a { text-decoration: underline; margin-left: auto; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 1rem var(--gutter);
  display: none;
  box-shadow: 0 -8px 30px -20px rgba(0,0,0,.3);
}
.cookie-bar.is-visible { display: block; }
.cookie-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; max-width: var(--container); margin-inline: auto; }
.cookie-bar p { margin: 0; font-size: .84rem; color: var(--ink-soft); flex: 1 1 320px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* 9. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav, .header-actions .icon-btn--wish { display: none; }
  .burger { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; margin-bottom: 2rem; }
  .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 720px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: .6rem; }
  .cookie-bar__inner .btn { width: 100%; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .pdp__gallery { grid-template-columns: 1fr; }
  .pdp__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pdp__thumb { width: 74px; flex: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line__right { grid-column: 2; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .card__quick { display: none; }
}

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