/* =========================================================
   NOSTALGIC NOOK — base: tokens, type, scrapbook vocabulary, global UI
   ========================================================= */

/* Drop a licensed TAN St Canard here and it is picked up automatically:
@font-face { font-family: "TAN St Canard"; src: url("../fonts/tan-st-canard.woff2") format("woff2"); font-weight: 400 900; font-display: swap; } */

:root {
  /* brand */
  --sage: #6B826E;
  --cream: #FCEFE6;
  --orange: #D35F14;
  /* derived from the brand three */
  --sage-d: #3F5142;
  --sage-x: #243026;
  --sage-l: #A9BBA9;
  --sage-p: #D6E0D3;
  --cream-d: #F1DCC9;
  --cream-x: #E7CDB5;
  --kraft: #E2C3A5;
  --paper: #FFFBF6;
  --orange-d: #9A410B;
  --orange-l: #F0A26B;
  --peach: #F7CDB0;
  --ink: #2A1F17;
  --ink-2: #5B4A3D;

  --f-display: "TAN St Canard", "Fraunces", Georgia, serif;
  --f-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --shadow-1: 0 1px 1px rgba(42, 31, 23, .12), 0 2px 4px rgba(42, 31, 23, .1);
  --shadow-2: 0 2px 2px rgba(42, 31, 23, .1), 0 8px 16px rgba(42, 31, 23, .14), 0 20px 34px -12px rgba(42, 31, 23, .22);
  --shadow-3: 0 4px 6px rgba(42, 31, 23, .1), 0 18px 30px rgba(42, 31, 23, .18), 0 40px 60px -20px rgba(42, 31, 23, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 78px;
  --gutter: clamp(16px, 4vw, 56px);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .12 0 0 0 0 .09 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0H200V7L194 10 187 6 180 11 171 7 163 12 155 8 148 13 139 7 131 11 122 6 114 12 106 8 97 13 89 7 81 11 73 6 64 12 56 8 48 13 39 7 31 11 23 6 15 12 7 8 0 11Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before { /* paper fibre on the whole page */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--noise); opacity: .18;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: var(--cream); padding: 8px 14px; }
.skip:focus { left: 8px; }
main { display: block; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 850;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  line-height: .86;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--orange); }
.h-xl { font-size: clamp(46px, 7.4vw, 124px); }
.h-lg { font-size: clamp(40px, 5.6vw, 92px); }
.h-md { font-size: clamp(30px, 3.6vw, 56px); }
.label {
  display: inline-block; font: 700 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 10px 6px; border: 1.5px solid currentColor; border-radius: 3px; transform: rotate(-1.5deg);
  background: var(--paper); margin-bottom: 18px;
}
.label--light { background: transparent; color: var(--cream); }
.note {
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05;
  color: var(--sage-d); display: inline-block; transform: rotate(-3deg);
}
.note--lg { font-size: clamp(28px, 2.6vw, 40px); }
.note--orange { color: var(--orange); }
p { margin: 0 0 1em; }

/* ---------- buttons: tactile sticker shapes ---------- */
.btn {
  --bg: var(--orange); --fg: #fff; --edge: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px 14px;
  font: 800 15px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--edge);
  border-radius: 16px 22px 14px 24px / 22px 14px 24px 16px;
  box-shadow: 0 4px 0 var(--edge), 0 10px 20px -8px rgba(42, 31, 23, .45);
  transform: rotate(-1deg);
  transition: transform .25s var(--spring), box-shadow .2s var(--ease), background .2s;
}
.btn::after { /* printed ink texture */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--noise); opacity: .25; mix-blend-mode: multiply; pointer-events: none;
}
.btn:hover { transform: translateY(-3px) rotate(-2deg) scale(1.02); box-shadow: 0 7px 0 var(--edge), 0 16px 26px -10px rgba(42, 31, 23, .5); }
.btn:active { transform: translateY(3px) rotate(-1deg); box-shadow: 0 1px 0 var(--edge), 0 4px 10px -6px rgba(42, 31, 23, .4); }
.btn:disabled { --bg: var(--cream-x); --fg: var(--ink-2); cursor: not-allowed; transform: none; box-shadow: 0 2px 0 var(--edge); }
.btn--ghost { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); --edge: var(--cream); box-shadow: 0 4px 0 var(--sage-x); }
.btn--sage { --bg: var(--sage); --fg: #fff; }
.btn--sm { padding: 11px 16px 10px; font-size: 12.5px; }
.btn--lg { padding: 19px 30px 18px; font-size: 16px; }
.btn--xl { padding: 24px 40px 22px; font-size: clamp(16px, 1.6vw, 21px); }
.btn--block { width: 100%; }

/* ---------- scrapbook vocabulary ---------- */
.tape {
  position: absolute; z-index: 5; width: 96px; height: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 246, .78), rgba(241, 220, 201, .7));
  box-shadow: 0 1px 2px rgba(42, 31, 23, .12);
  clip-path: polygon(3% 0, 97% 0, 100% 18%, 96% 35%, 100% 55%, 97% 75%, 100% 100%, 3% 100%, 0 82%, 4% 62%, 0 44%, 3% 24%, 0 6%);
  backdrop-filter: blur(.5px);
  pointer-events: none;
  transition: transform .4s var(--spring);
}
.tape::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .35; }
.tape--top { top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape--corner-l { top: -8px; left: -26px; transform: rotate(-38deg); }
.tape--corner-r { top: -8px; right: -26px; transform: rotate(36deg); }
.tape--sage { background: linear-gradient(180deg, rgba(169, 187, 169, .82), rgba(107, 130, 110, .7)); }
.tape--orange { background: linear-gradient(180deg, rgba(240, 162, 107, .85), rgba(211, 95, 20, .7)); }

.clip { /* paper clip / bulldog peg */
  position: absolute; z-index: 6; top: -18px; left: 50%; width: 22px; height: 48px; transform: translateX(-50%) rotate(4deg);
  border: 3px solid #8d8a83; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 1px 2px 2px rgba(42, 31, 23, .25);
}
.clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; bottom: -2px; border: 3px solid #8d8a83; border-top: 0; border-radius: 0 0 8px 8px; }

.doodle { width: 64px; height: 64px; fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.doodle--star, .doodle--heart, .doodle--sparkle { stroke-width: 3.5; }

.sticker {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font: 800 13px/1 var(--f-body); letter-spacing: .06em; color: #fff; background: var(--orange);
  padding: 10px 14px; border-radius: 999px; border: 2px solid #fff; box-shadow: var(--shadow-1), 0 0 0 1.5px var(--orange);
  transform: rotate(-4deg);
}
.sticker--round { width: 92px; height: 92px; border-radius: 50%; font: 900 16px/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.sticker--sage { background: var(--sage); box-shadow: var(--shadow-1), 0 0 0 1.5px var(--sage); }

.postit {
  width: clamp(120px, 10vw, 150px); padding: 16px 14px 20px; background: var(--sage-p);
  font: 700 20px/1.05 var(--f-hand); color: var(--sage-x);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 14px 18px -10px rgba(42, 31, 23, .4);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  position: relative;
}
.postit::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12%; aspect-ratio: 1; background: linear-gradient(135deg, var(--sage-l) 50%, transparent 50%); }
.postit b { color: var(--orange); }

/* price tag on a string (pattern E) */
.tag {
  position: relative; display: inline-flex; flex-direction: column; gap: 2px;
  padding: 8px 12px 8px 26px; background: var(--paper); border: 1.5px solid var(--ink);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  font: 700 12px/1.15 var(--f-body); letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow-1);
}
.tag b { font-weight: 800; }
.tag > span:last-child { font: 900 18px/1 var(--f-display); color: var(--orange); }
.tag__hole { position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); }

/* ticket / receipt (pattern G) */
.ticket {
  position: relative; background: var(--paper); padding: 26px 28px;
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.receipt {
  position: relative; background: var(--paper); padding: 22px 22px 34px; font-family: ui-monospace, "Courier New", monospace; font-size: 14px;
  box-shadow: var(--shadow-2);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}

/* film negative divider (pattern H) */
.filmstrip {
  --hole: 10px;
  display: flex; gap: 10px; padding: 24px 12px; width: max-content;
  background:
    radial-gradient(circle at center, var(--cream) 0 0) 0 0 / 0 0,
    repeating-linear-gradient(90deg, transparent 0 8px, var(--cream-d) 8px 18px, transparent 18px 28px) 0 7px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 8px, var(--cream-d) 8px 18px, transparent 18px 28px) 0 calc(100% - 7px) / 100% 10px no-repeat,
    var(--sage-x);
  box-shadow: var(--shadow-2);
}
.filmstrip__frame { position: relative; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; flex: none; border-radius: 2px; }
.filmstrip__frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.9) contrast(1.05); }
.filmstrip__frame i { position: absolute; left: 4px; bottom: -22px; font: 700 10px/1 var(--f-body); color: var(--orange-l); font-style: normal; letter-spacing: .1em; }
.filmstrip--static { width: 100%; height: 48px; padding: 0; }

.paper-torn {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, var(--torn) bottom / 220px 16px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, var(--torn) bottom / 220px 16px repeat-x;
}

/* ---------- navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 10px var(--gutter) 0; pointer-events: none; transition: padding .35s var(--ease); }
.nav__paper {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 20px; height: var(--nav-h); padding: 0 14px 6px 18px;
  background: var(--cream-d);
  box-shadow: 0 10px 24px -14px rgba(42, 31, 23, .45);
  border-radius: 6px 6px 0 0;
  transition: height .35s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, var(--torn) bottom / 260px 11px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, var(--torn) bottom / 260px 11px repeat-x;
}
.nav__paper::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .5; pointer-events: none; mix-blend-mode: multiply; }
.nav.is-compact { padding-top: 0; --nav-h: 60px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-stamp {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 900 17px/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  border: 2px dashed rgba(255, 255, 255, .7); outline: 2px solid var(--orange); transform: rotate(-12deg);
  transition: transform .5s var(--spring);
}
.nav__logo:hover .logo-stamp { transform: rotate(10deg) scale(1.06); }
.nav__logo-img { height: calc(var(--nav-h) - 14px); width: auto; transition: height .35s var(--ease), transform .5s var(--spring); }
.nav__logo:hover .nav__logo-img { transform: rotate(-3deg) scale(1.04); }
.nav__links a { white-space: nowrap; }
@media (max-width: 1360px) { .nav__links { gap: 14px; } .nav__links a { font-size: 12px; letter-spacing: .06em; } .nav__icon-label { display: none; } }
.logo-word { font: 850 19px/.86 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
.logo-word i { color: var(--sage); }
.nav__links { display: flex; gap: clamp(10px, 1.6vw, 26px); margin: 0 auto; }
.nav__links a { position: relative; font: 700 13px/1 var(--f-body); letter-spacing: .09em; text-decoration: none; padding: 8px 2px; }
.nav__links a::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 25 1 50 5 T 98 4' fill='none' stroke='%23D35F14' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links + .nav__right { margin-left: 0; }
.nav__icon { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px; background: none; border: 0; border-radius: 10px; }
.nav__icon:hover { background: rgba(255, 251, 246, .7); }
.nav__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__icon-label { font: 700 12px/1 var(--f-body); letter-spacing: .09em; }
.cart-count {
  position: absolute; top: 1px; left: 22px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--orange); color: #fff; font: 800 11px/19px var(--f-body); text-align: center;
  transform: scale(0); transition: transform .4s var(--spring);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-10deg); } }
.nav__cta { margin-left: 6px; }
.nav__burger { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px 16px 12px 14px; background: var(--paper); padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 70; background: rgba(42, 31, 23, .3); }
.mnav__paper {
  position: absolute; inset: 0; padding: calc(var(--nav-h) + 40px) 24px 120px; overflow: auto;
  background: var(--cream); animation: slideDown .45s var(--ease);
}
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1.5px dashed var(--cream-x);
  font: 850 clamp(34px, 9vw, 52px)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none; text-transform: uppercase;
}
.mnav nav a small { font: 700 12px/1 var(--f-body); color: var(--orange); letter-spacing: .1em; }
.mnav nav a:nth-child(even) { padding-left: 18px; }
.mnav__note { margin: 26px 0; }
.mnav__foot { font-size: 14px; color: var(--ink-2); }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: 60px; background: var(--sage); color: var(--cream); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.footer__paper { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 48px; padding: 70px var(--gutter) 40px; }
.footer__logo { display: inline-block; padding: 18px 22px; background: var(--cream); box-shadow: var(--shadow-2); rotate: -2deg; }
.footer__logo img { width: clamp(170px, 18vw, 240px); height: auto; }
.footer__claim { margin: 22px 0 10px; font: 800 15px/1.2 var(--f-body); letter-spacing: .14em; }
.footer__n1 { color: var(--cream); }
.footer__pol { position: absolute !important; left: 46%; top: 40px; transform: rotate(9deg); --w: 120px; opacity: .95; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { margin: 0 0 14px; font: 800 12px/1 var(--f-body); letter-spacing: .18em; color: var(--peach); }
.footer__cols a { display: block; padding: 5px 0; text-decoration: none; font-weight: 500; }
.footer__cols a:hover { color: var(--peach); text-decoration: underline wavy; }
.newsletter { color: var(--ink); align-self: start; transform: rotate(1.2deg); box-shadow: var(--shadow-3); }
.newsletter h4 { color: var(--orange); font: 900 30px/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
.newsletter p { font-size: 14px; color: var(--ink-2); }
.newsletter__row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; min-width: 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); }
.newsletter__msg { margin: 10px 0 0; font: 700 22px/1 var(--f-hand); color: var(--sage-d); min-height: 1em; }
.footer__base { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px var(--gutter) 34px; border-top: 1.5px dashed rgba(252, 239, 230, .35); font-size: 13px; }
.footer__n2 { color: var(--peach); font-size: 22px; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(42, 31, 23, .45); animation: fade .3s; }
.drawer__box {
  position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(440px, calc(100% - 28px));
  display: flex; flex-direction: column; background: var(--kraft); border-radius: 6px;
  box-shadow: var(--shadow-3), inset 0 0 0 10px rgba(255, 251, 246, .18);
  animation: drawerIn .5s var(--ease);
}
.drawer__box::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .55; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.drawer__tab {
  position: relative; align-self: flex-start; margin: -2px 0 0 26px; padding: 12px 18px 10px; background: var(--orange); color: #fff;
  font: 800 13px/1 var(--f-body); letter-spacing: .14em; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-1);
}
.drawer__tab span { margin-left: 6px; background: #fff; color: var(--orange); border-radius: 10px; padding: 2px 7px; }
.drawer__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font-size: 24px; line-height: 1; }
.drawer__items { position: relative; flex: 1; overflow: auto; padding: 22px 20px 10px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { position: relative; padding: 16px 20px 20px; background: var(--paper); border-top: 2px dashed var(--kraft); }
.citem { position: relative; display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; background: var(--paper); padding: 14px 14px 14px 12px; box-shadow: var(--shadow-1); transform: rotate(var(--r, 0deg)); animation: drop .5s var(--spring) both; }
.citem .tape { width: 54px; height: 18px; }
.citem__vis { display: grid; place-items: center; }
.citem__name { font: 800 15px/1.15 var(--f-body); }
.citem__meta { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.citem__price { font: 900 20px/1 var(--f-display); color: var(--orange); text-align: right; }
.citem__rm { margin-top: 8px; border: 0; background: none; font-size: 12px; text-decoration: underline; color: var(--ink-2); padding: 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); overflow: hidden; margin-top: 8px; }
.qty button { width: 32px; height: 30px; border: 0; background: none; font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--cream-d); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.qty--lg button { width: 48px; height: 48px; font-size: 22px; }
.qty--lg span { min-width: 44px; font-size: 18px; }
.cart-empty { margin: auto; text-align: center; padding: 30px 10px; }
.cart-empty .note { font-size: 30px; display: block; margin: 16px 0 20px; }
.sumrow { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.sumrow--total { font: 900 24px/1 var(--f-display); margin: 12px 0 14px; }
.ship-meter { height: 8px; border-radius: 6px; background: var(--cream-d); overflow: hidden; margin: 8px 0 4px; }
.ship-meter i { display: block; height: 100%; background: var(--sage); border-radius: inherit; transition: width .6s var(--ease); }
.ship-msg { font: 700 19px/1.1 var(--f-hand); color: var(--sage-d); }
@keyframes drawerIn { from { transform: translateX(110%) rotate(3deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(calc(var(--r, 0deg) - 6deg)); } }

/* ---------- search ---------- */
.search { position: fixed; inset: 0; z-index: 130; }
.search__scrim { position: absolute; inset: 0; background: rgba(42, 31, 23, .5); animation: fade .3s; }
.search__box {
  position: relative; margin: 90px auto 0; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 30px; background: var(--paper); box-shadow: var(--shadow-3); transform: rotate(-.6deg); animation: drop .45s var(--spring);
}
.search__label { display: block; font: 800 12px/1 var(--f-body); letter-spacing: .16em; color: var(--orange); margin-bottom: 10px; }
.search__box input { width: 100%; border: 0; border-bottom: 3px solid var(--ink); background: none; padding: 6px 0 10px; font: 850 clamp(28px, 4vw, 44px)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; outline: none; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 22px; }
.sres { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; text-decoration: none; padding: 14px 8px; border-radius: 8px; }
.sres:hover { background: var(--cream); }
.sres b { font-size: 14px; }
.sres span { font-size: 13px; color: var(--orange); font-weight: 800; }
.search__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); font-size: 24px; line-height: 1; }

/* ---------- toast / added-to-cart note ---------- */
.toast {
  position: fixed; z-index: 140; right: 24px; top: 100px; width: min(330px, calc(100% - 32px));
  padding: 20px 20px 18px; background: var(--sage-p); box-shadow: var(--shadow-3);
  transform: rotate(2deg); animation: drop .55s var(--spring);
}
.toast::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .3; pointer-events: none; mix-blend-mode: multiply; }
.toast__msg { display: block; font: 700 30px/1 var(--f-hand); color: var(--sage-x); margin-bottom: 4px; }
.toast__sub { font-size: 13px; color: var(--sage-d); margin-bottom: 14px; }
.toast__btns { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.flyer { position: fixed; z-index: 150; pointer-events: none; will-change: transform, opacity; }

/* ---------- exit note ---------- */
.exitnote {
  position: fixed; z-index: 135; left: 24px; bottom: 24px; width: min(320px, calc(100% - 32px));
  padding: 26px 22px 22px; background: var(--peach); box-shadow: var(--shadow-3); transform: rotate(-2.5deg);
  animation: drop .6s var(--spring);
}
.exitnote::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .3; pointer-events: none; mix-blend-mode: multiply; }
.exitnote h3 { position: relative; margin: 0 0 6px; font: 900 44px/.9 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--orange-d); }
.exitnote p { position: relative; font: 700 24px/1.05 var(--f-hand); color: var(--ink); }
.exitnote .btn { position: relative; }
.exitnote__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; z-index: 2; }

/* ---------- custom cursor label ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.cursor span {
  position: absolute; left: 14px; top: 14px; display: grid; place-items: center; min-width: 70px; height: 70px; padding: 0 10px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font: 800 10.5px/1 var(--f-body); letter-spacing: .1em; white-space: nowrap;
  transform: scale(0) rotate(-20deg); transition: transform .35s var(--spring);
}
.cursor.is-on span { transform: scale(1) rotate(-8deg); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.grain { position: fixed; inset: -50%; z-index: 190; pointer-events: none; background: var(--noise); opacity: .07; animation: grain 1.2s steps(3) infinite; }
@keyframes grain { 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

/* ---------- scroll reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal[data-enter="left"] { transform: translateX(-80px) rotate(-4deg); }
.js .reveal[data-enter="right"] { transform: translateX(80px) rotate(4deg); }
.js .reveal[data-enter="drop"] { transform: translateY(-70px) rotate(6deg); }
.js .reveal[data-enter="rotate"] { transform: rotate(-12deg) scale(.85); }
.js .reveal.in { opacity: 1; transform: none; }

/* page-turn transition */
.pageturn { position: fixed; inset: 0; z-index: 300; background: var(--cream-d); pointer-events: none; transform: translateX(105%) rotate(4deg); transition: transform .5s var(--ease); }
.pageturn::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .5; }
.pageturn.go { transform: none; }

/* ---------- responsive globals ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11.5px; letter-spacing: .06em; }
  .nav__icon-label { display: none; }
}
@media (max-width: 1020px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0; }
  .nav.is-compact { --nav-h: 58px; }
  .nav__paper { border-radius: 0; padding: 0 12px 6px 14px; gap: 6px; }
  .nav__links, .nav__cta, .nav__icon[data-open-search] { display: none; }
  .nav__burger { display: flex; }
  .nav__right { margin-left: auto !important; }
  .logo-stamp { width: 38px; height: 38px; font-size: 15px; }
  .logo-word { font-size: 17px; }
  .footer__paper { grid-template-columns: 1fr; gap: 36px; }
  .footer__pol { left: auto; right: 24px; top: 70px; --w: 100px; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(252, 239, 230, .96) 30%);
    transition: transform .35s var(--ease);
  }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-cta .btn { transform: none; padding: 17px 20px 16px; font-size: 15px; }
  body { padding-bottom: 80px; }
  .toast { top: auto; bottom: 96px; right: 16px; }
  .exitnote { left: 16px; bottom: 96px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .drawer__box { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; animation: drawerUp .45s var(--ease); }
  .citem { grid-template-columns: 60px 1fr auto; }
}
@keyframes drawerUp { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 65;
  display: flex; align-items: center; gap: 0; height: 58px; padding: 0 15px;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6), 0 4px 10px rgba(42, 31, 23, .2);
  transition: transform .3s var(--spring), gap .3s var(--ease), padding .3s var(--ease);
  animation: waIn .6s var(--spring) .8s both;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 14px/1 var(--f-body); transition: max-width .35s var(--ease); }
.wa-float:hover { transform: translateY(-3px); gap: 10px; padding: 0 20px 0 15px; }
.wa-float:hover .wa-float__label { max-width: 130px; }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@keyframes waIn { from { opacity: 0; transform: scale(.4) translateY(30px); } }
@media (max-width: 1020px) {
  .wa-float { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); height: 52px; padding: 0 12px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float:hover { gap: 0; padding: 0 12px; }
  .wa-float:hover .wa-float__label { max-width: 0; }
}
@media print { .wa-float { display: none !important; } }
