/* ==========================================================================
   NEST THEME — shared tokens, chrome, overlays, product card
   Store: Pugad Home (pugad = "nest"). Calm, room-by-room furniture.
   ========================================================================== */

:root {
  /* 1 · primitives */
  --linen: #f3efe7;
  --paper: #faf8f3;
  --oat: #e8e2d6;
  --oat-2: #ddd5c6;
  --sand: #cfc5b3;
  --ink: #262421;
  --ink-2: #57514a;
  --ink-3: #6b645b; /* AA (4.5:1) on linen, paper and oat */
  --night: #1c1b19;
  --night-2: #2a2826;
  --dusk: #36507c;
  --dusk-2: #283d61;
  --dusk-3: #7f95b8;
  --dusk-tint: #e2e7ef;
  --wood: #a8774e;
  --ok: #42704d;
  --warn: #b0603d;
  --white: #fff;

  /* 2 · semantic */
  --bg: var(--linen);
  --surface: var(--paper);
  --surface-2: var(--oat);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --line: rgba(38, 36, 33, .12);
  --line-2: rgba(38, 36, 33, .2);
  --line-inv: rgba(250, 248, 243, .16);
  --accent: var(--dusk);
  --accent-hover: var(--dusk-2);
  --on-accent: #fff;
  --focus: 0 0 0 3px rgba(54, 80, 124, .35);

  /* glass */
  --glass: rgba(250, 248, 243, .66);
  --glass-strong: rgba(250, 248, 243, .82);
  --glass-dark: rgba(28, 27, 25, .38);
  --glass-blur: saturate(160%) blur(22px);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(255, 255, 255, .5);

  /* type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* shape + space */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --sec: clamp(80px, 9vw, 136px);

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .5s;

  --shadow-s: 0 1px 2px rgba(38, 36, 33, .06), 0 4px 14px rgba(38, 36, 33, .05);
  --shadow-m: 0 2px 6px rgba(38, 36, 33, .06), 0 18px 40px -12px rgba(38, 36, 33, .18);
  --shadow-l: 0 30px 80px -20px rgba(38, 36, 33, .35);

  --bar-h: 38px;
  --head-h: 78px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--dusk); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 16px; height: 16px; }
.ico--xs { width: 13px; height: 13px; }
.ico--l { width: 26px; height: 26px; stroke-width: 1.25; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .62); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--plain::before { display: none; }
.display {
  font: 300 clamp(50px, 7.4vw, 124px)/.92 var(--serif);
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 72;
}
.h2 {
  font: 300 clamp(38px, 4.6vw, 72px)/1 var(--serif);
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
}
.h3 { font: 400 clamp(26px, 2.4vw, 36px)/1.08 var(--serif); letter-spacing: -.02em; }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; color: var(--text-2); }
.lede { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: var(--text-2); max-width: 46ch; }
.small { font-size: 13.5px; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.price { font: 500 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.permo { font-size: 12.5px; color: var(--text-3); }
.permo b { font-weight: 600; color: var(--text-2); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.5vw, 64px); }
.sec-head__l { display: grid; gap: 18px; max-width: 760px; }
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center .sec-head__l { justify-items: center; }

/* split-line reveal */
.lines .ln { display: block; overflow: hidden; padding: .16em .12em .1em; margin: -.16em -.12em -.1em; }
.lines .ln > span { display: inline-block; transform: translateY(130%); transition: transform 1.2s var(--ease-out); }
.lines.is-in .ln > span { transform: none; }
.lines.is-in .ln:nth-child(2) > span { transition-delay: .09s; }
.lines.is-in .ln:nth-child(3) > span { transition-delay: .18s; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* first-screen headings and asides animate in CSS on load, so first paint never waits for JS */
.lines[data-lines="load"] .ln > span { animation: ln-rise 1.2s var(--ease-out) .05s both; }
.lines[data-lines="load"] .ln:nth-child(2) > span { animation-delay: .14s; }
.lines[data-lines="load"] .ln:nth-child(3) > span { animation-delay: .23s; }
[data-reveal="load"] { animation: rv-in 1s var(--ease) var(--d, 0s) both; }
@keyframes ln-rise { from { transform: translateY(130%); } to { transform: none; } }
@keyframes rv-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
[data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(8% 8% 8% 8% round var(--r-l)); transition: clip-path 1.5s var(--ease-out); }
[data-reveal="img"] img { transform: scale(1.14); transition: transform 1.9s var(--ease-out); }
[data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
[data-reveal="img"].is-in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="img"], [data-reveal="img"] img, .lines .ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 26px 0 28px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .015em; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn .ico { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(40, 61, 97, .6); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { border: 1px solid var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: rgba(38, 36, 33, .03); }
.btn--line-inv { border: 1px solid rgba(250, 248, 243, .3); color: var(--paper); }
.btn--line-inv:hover { border-color: var(--paper); }
.btn--glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge); color: var(--ink); }
.btn--glass:hover { background: var(--glass-strong); }
.btn--s { --bh: 42px; padding: 0 18px 0 20px; font-size: 13px; gap: 8px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--sans); letter-spacing: .01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .ico { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link:hover .ico { transform: translateX(3px); }

.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; position: relative;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.iconbtn:hover { background: rgba(38, 36, 33, .06); }
.iconbtn--line { border: 1px solid var(--line-2); }
.iconbtn--line:hover { border-color: var(--ink); background: transparent; }
.iconbtn--glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge); }
.iconbtn--glass:hover { background: var(--glass-strong); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font: 500 13.5px/1 var(--sans); color: var(--text-2);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--ink);
}
.tag--dusk { background: var(--dusk); color: #fff; }
.tag--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: var(--ok); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.dot--closed { background: var(--warn); }
.dot--closed::after { display: none; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* form fields */
.field { position: relative; display: grid; gap: 8px; }
.field label, .flabel { font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.input {
  height: 54px; width: 100%; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); outline: 0;
}
.input:focus { border-color: var(--accent); box-shadow: var(--focus); }
.input::placeholder { color: var(--text-3); }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.bar { position: relative; z-index: 60; height: var(--bar-h); background: var(--night); color: rgba(250, 248, 243, .82); font-size: 12.5px; letter-spacing: .01em; }
.bar .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.bar a:hover { color: #fff; }
.bar__l, .bar__r { display: flex; gap: 22px; align-items: center; }
.bar__r { justify-content: flex-end; }
.bar__msgs { position: relative; height: 20px; overflow: hidden; min-width: 420px; text-align: center; }
.bar__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transform: translateY(100%); opacity: 0; transition: transform .8s var(--ease-out), opacity .8s var(--ease); white-space: nowrap; }
.bar__msg.is-on { transform: none; opacity: 1; }
.bar__msg.is-out { transform: translateY(-100%); opacity: 0; }
.bar__msg b { color: #fff; font-weight: 600; }
.bar__status { display: inline-flex; align-items: center; gap: 9px; }
@media (max-width: 1023px) {
  .bar .wrap { grid-template-columns: 1fr; }
  .bar__l, .bar__r { display: none; }
  .bar__msgs { min-width: 0; }
  .bar { font-size: 12px; }
  .bar__msg .hide-s { display: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 50; height: var(--head-h); transition: transform .5s var(--ease-out); }
.header::before {
  content: ""; position: absolute; inset: 0; background: rgba(243, 239, 231, .78);
  -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header.is-stuck::before { border-bottom-color: var(--line); background: rgba(243, 239, 231, .86); }
html.head-hidden .header:not(.is-mega) { transform: translateY(-100%); }
.header .wrap { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: -14px; }
.nav__link {
  position: relative; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  font: 500 14.5px/1 var(--sans); color: var(--text); border-radius: 999px;
}
.nav__link .ico { width: 14px; height: 14px; transition: transform .35s var(--ease); opacity: .6; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo__word { font: 400 31px/1 var(--serif); letter-spacing: -.04em; font-variation-settings: "opsz" 48; }
.logo__word i { font-style: italic; color: var(--dusk); }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.tools__txt { font: 500 14px/1 var(--sans); padding: 0 12px; height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.tools__txt:hover { background: rgba(38, 36, 33, .06); }
.count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--dusk); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.count.is-on { transform: scale(1); }
.count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; }
@media (max-width: 1023px) {
  :root { --head-h: 64px; }
  .nav__link, .tools__txt, .tools .hide-m { display: none; }
  .mega { display: none; }
  .nav { margin-left: 0; }
  .burger { display: inline-grid; margin-left: -10px; }
  .header .wrap { grid-template-columns: 1fr auto 1fr; }
  .logo__word { font-size: 27px; }
  .logo svg { width: 26px; height: 26px; }
}

/* ---------- mega menu ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: -1;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 60px -40px rgba(38, 36, 33, .3);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
.mega.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.mega__in { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-block: 44px 52px; }
.mega__col h2 { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.mega__list { display: grid; gap: 4px; }
.mega__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: nowrap; font: 400 21px/1.5 var(--serif); letter-spacing: -.01em; color: var(--text-2); transition: color .3s, transform .4s var(--ease-out); }
.mega__list a small { font: 500 12px var(--sans); color: var(--text-3); }
.mega__list a:hover, .mega__list a.is-on { color: var(--ink); transform: translateX(6px); }
.mega__rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mega__room { display: grid; gap: 14px; }
.mega__room figure { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--oat); }
.mega__room img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mega__room:hover img { transform: scale(1.06); }
.mega__room b { font: 400 20px/1.2 var(--serif); }
.mega__room span { font-size: 13px; color: var(--text-3); }
.mega > * > * { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.mega.is-open > * > * { opacity: 1; transform: none; transition-delay: .12s; }
.mega__in--shop { grid-template-columns: repeat(4, 1fr) 1.3fr; }
.mega__feature { position: relative; border-radius: var(--r-m); overflow: hidden; min-height: 300px; color: #fff; display: flex; align-items: flex-end; padding: 22px; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }
.mega__feature > div { position: relative; z-index: 2; display: grid; gap: 4px; }
.mega__feature b { font: 400 24px/1.1 var(--serif); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(28, 27, 25, .28); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }

/* ==========================================================================
   DRAWERS / OVERLAYS
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.overlay.is-open { visibility: visible; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(28, 27, 25, .4); opacity: 0; transition: opacity .5s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay.is-open .overlay__scrim { opacity: 1; }
.drawer {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px));
  background: var(--paper); border-radius: var(--r-l); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 20px)); transition: transform .7s var(--ease-out); box-shadow: var(--shadow-l);
}
.overlay.is-open .drawer { transform: none; }
.drawer--left { right: auto; left: 10px; transform: translateX(calc(-100% - 20px)); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 400 28px/1 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.drawer__head h2 small { font: 500 13px var(--sans); color: var(--text-3); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 28px 24px; display: grid; gap: 14px; background: var(--paper); }

/* cart */
.ship { padding: 18px 0 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); display: grid; gap: 10px; }
.ship b { color: var(--ink); font-weight: 600; }
.ship__bar { height: 3px; border-radius: 3px; background: var(--oat); overflow: hidden; }
.ship__bar i { display: block; height: 100%; width: 0; background: var(--dusk); border-radius: inherit; transition: width .9s var(--ease-out); }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: lineIn .6s var(--ease-out) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } }
.line__img { aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--oat); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font: 400 19px/1.2 var(--serif); }
.line__meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.line__bot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.qty { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: rgba(38, 36, 33, .05); }
.qty span { min-width: 24px; text-align: center; font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.line__rm { font-size: 12.5px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.line__rm:hover { color: var(--ink); }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum__t { font: 400 26px/1 var(--serif); letter-spacing: -.02em; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 64px 12px; }
.empty svg { width: 64px; height: 64px; color: var(--sand); }
.empty h3 { font: 400 26px/1.1 var(--serif); }
.upsell { padding: 22px 0 8px; }
.upsell h3 { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.upsell__row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-m); background: var(--linen); }
.upsell__row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-s); }
.upsell__row b { font: 400 16px/1.2 var(--serif); display: block; }

/* search */
.search { position: absolute; left: 0; right: 0; top: 0; background: var(--paper); transform: translateY(-100%); transition: transform .7s var(--ease-out); border-radius: 0 0 var(--r-xl) var(--r-xl); max-height: 92vh; overflow-y: auto; }
.overlay.is-open .search { transform: none; }
.search__top { display: flex; align-items: center; gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.search__top input { flex: 1; border: 0; background: none; outline: 0; font: 300 clamp(28px, 3.4vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; min-width: 0; }
.search__top input::placeholder { color: var(--sand); }
.search__top input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__body { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-block: 32px 44px; }
.search__body h2 { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.search__sugg { display: grid; gap: 6px; }
.search__sugg button { text-align: left; font: 400 19px/1.5 var(--serif); color: var(--text-2); }
.search__sugg button:hover { color: var(--ink); }
.search__res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sres { display: grid; gap: 10px; }
.sres figure { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--oat); }
.sres img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.sres:hover img { transform: scale(1.05); }
.sres b { font: 400 17px/1.2 var(--serif); }
.sres span { font-size: 13px; color: var(--text-3); }
.search mark { background: var(--dusk-tint); color: inherit; border-radius: 3px; }
@media (max-width: 767px) {
  .search__body { grid-template-columns: 1fr; gap: 28px; }
  .search__res { grid-template-columns: repeat(2, 1fr); }
}

/* mobile nav */
.mnav__body { padding: 8px 24px 24px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a, .mnav__item > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font: 400 26px/1.1 var(--serif); letter-spacing: -.02em; text-align: left; }
.mnav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 20px; }
.mnav__sub[hidden] { display: none; }
.mnav__sub a { display: grid; gap: 8px; font-size: 14px; }
.mnav__sub img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); width: 100%; }
.mnav__foot { display: grid; gap: 10px; padding: 18px 24px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* quick view */
.qv { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.qv__box {
  pointer-events: auto; width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow-l);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.overlay.is-open .qv__box { opacity: 1; transform: none; }
.qv__media { position: relative; background: var(--oat); min-height: 420px; }
.qv__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: 40px 40px 36px; display: grid; gap: 20px; align-content: start; position: relative; }
.qv__close { position: absolute; top: 16px; right: 16px; }
.qv__name { font: 300 44px/1 var(--serif); letter-spacing: -.03em; }
.qv__dims { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); }
.qv__dims div { padding: 14px 16px; display: grid; gap: 4px; }
.qv__dims div + div { border-left: 1px solid var(--line); }
.qv__dims span { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.qv__dims b { font: 400 22px/1 var(--serif); }
.qv__meta { display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.qv__meta div { display: flex; gap: 10px; align-items: center; }
@media (max-width: 767px) {
  .qv { padding: 10px; align-items: end; }
  .qv__box { grid-template-columns: 1fr; border-radius: var(--r-l); }
  .qv__media { min-height: 0; aspect-ratio: 4 / 3; }
  .qv__info { padding: 24px; }
  .qv__name { font-size: 34px; }
}

/* toast */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: grid; gap: 10px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 999px;
  background: rgba(28, 27, 25, .9); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--paper);
  font-size: 14px; box-shadow: var(--shadow-m); pointer-events: auto;
  animation: toastIn .6s var(--ease-out) both;
}
.toast img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.toast .ico { width: 18px; height: 18px; margin-left: 6px; }
.toast button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.toast.out { animation: toastOut .4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.card { position: relative; display: grid; gap: 16px; align-content: start; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--oat); isolation: isolate; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.6s var(--ease-out); }
.card__media .alt { opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card:hover .card__media .alt { opacity: 1; transform: scale(1.04); }
.card__tags { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card__wish { position: absolute; top: 10px; right: 10px; z-index: 2; }
.card__wish .ico { width: 18px; height: 18px; transition: fill .3s, transform .4s var(--ease-out); }
.card__wish[aria-pressed="true"] .ico { fill: var(--ink); transform: scale(1.08); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.card__quick .btn { --bh: 44px; padding: 0 12px; font-size: 13px; }
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card__body { display: grid; gap: 6px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__name { font: 400 21px/1.15 var(--serif); letter-spacing: -.015em; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__mat { font-size: 13.5px; color: var(--text-3); }
.card__dims { font-size: 12px; color: var(--text-3); letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.card__dims .ico { width: 14px; height: 14px; }
.swatches { display: flex; gap: 6px; align-items: center; position: relative; z-index: 2; }
.sw { width: 20px; height: 20px; border-radius: 50%; position: relative; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .3s var(--ease-out); }
.sw::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; transform: scale(.8); transition: all .3s var(--ease-out); }
.sw:hover { transform: scale(1.1); }
.sw[aria-pressed="true"]::after { opacity: 1; transform: none; }
.sw__more { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.card__finish { font-size: 12.5px; color: var(--text-3); min-height: 1em; }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 12px; height: 12px; fill: currentColor; }
@media (hover: none) {
  .card__quick { opacity: 1; transform: none; grid-template-columns: 1fr; left: auto; width: auto; }
  .card__quick .btn:first-child { display: none; }
  .card__quick .btn { --bh: 40px; width: 40px; padding: 0; }
  .card__quick .btn span { display: none; }
}

/* rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (max-width: 767px) { .rail { grid-auto-columns: 74%; gap: 14px; } }
.rail-ctl { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.rail-ctl__prog { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.rail-ctl__prog i { position: absolute; top: -1px; height: 3px; left: 0; background: var(--ink); border-radius: 3px; transition: left .3s var(--ease), width .3s var(--ease); }
.rail-ctl__btns { display: flex; gap: 8px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--night); color: rgba(250, 248, 243, .72); padding-top: clamp(72px, 8vw, 120px); position: relative; overflow: hidden; }
.footer a:hover { color: #fff; }
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px 80px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-inv); }
.news h2 { color: var(--paper); }
.news h2 em { color: rgba(250, 248, 243, .55); }
.news__form { display: grid; gap: 14px; }
.news__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(250, 248, 243, .06); border: 1px solid var(--line-inv); transition: border-color .3s; }
.news__row:focus-within { border-color: rgba(250, 248, 243, .5); }
.news__row input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; background: none; border: 0; outline: 0; color: var(--paper); }
.news__row input::placeholder { color: rgba(250, 248, 243, .4); }
.news__note { font-size: 12.5px; color: rgba(250, 248, 243, .6); }
.news__msg { font-size: 13.5px; min-height: 1.4em; }
.news__msg.err { color: #e9a58a; }
.news__msg.ok { color: #a9cfb2; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-block: 64px; }
.fgrid h2 { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 248, 243, .6); margin-bottom: 22px; }
.fgrid ul { display: grid; gap: 12px; font-size: 14.5px; }
.fbrand { display: grid; gap: 22px; align-content: start; max-width: 300px; }
.fbrand .logo { color: var(--paper); }
.fbrand .logo__word i { color: var(--dusk-3); }
.fbrand p { font-size: 14.5px; line-height: 1.65; }
.social { display: flex; gap: 6px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.social a:hover { border-color: var(--paper); background: rgba(255, 255, 255, .04); }
.social svg { width: 17px; height: 17px; }
.fshow { display: grid; gap: 16px; font-size: 14px; }
.fshow b { color: var(--paper); font-weight: 500; display: block; margin-bottom: 2px; }
.fshow span.st { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 4px; }
.fbase { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 26px 32px; border-top: 1px solid var(--line-inv); font-size: 12.5px; color: rgba(250, 248, 243, .6); }
.fbase__l { display: flex; gap: 22px; flex-wrap: wrap; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { height: 26px; padding: 0 10px; border: 1px solid var(--line-inv); border-radius: 6px; display: inline-flex; align-items: center; font: 600 10.5px/1 var(--sans); letter-spacing: .04em; color: rgba(250, 248, 243, .6); }
.fword { font: 300 clamp(120px, 26vw, 420px)/.8 var(--serif); letter-spacing: -.06em; color: rgba(250, 248, 243, .05); text-align: center; margin-top: .3em; margin-bottom: -.12em; user-select: none; white-space: nowrap; font-variation-settings: "opsz" 72; }
.fword::before { content: attr(data-word); }
.fword::after { content: "."; font-style: italic; color: rgba(127, 149, 184, .12); }
@media (max-width: 1023px) {
  .news { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}
