/* ============================================================
   IZH COFFEE — Shared Design System
   Premium coffee house aesthetic: cream / espresso / gold
   ============================================================ */

/* Bengali numerals + Taka sign always render in Sabbir Sorolota */
@font-face {
  font-family: 'Sabbir Sorolota';
  src: url('../fonts/SabbirSorolota-num.woff2') format('woff2');
  unicode-range: U+09E6-09EF, U+09F2-09F3, U+09F9;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* palette — light, soft, airy (no dark vibe) */
  --espresso-950: #2E1610;
  --espresso-900: #3A1B13;
  --espresso-800: #4A2317;
  --maroon: #5C2A1A;
  --maroon-600: #6E3520;
  --maroon-700: #4A2317;
  --gold: #C9A876;
  --gold-300: #E2C99A;
  --gold-200: #F0E2C5;
  --gold-600: #A9885B;
  --cream: #FDFBF6;
  --cream-200: #F8F3E9;
  --cream-300: #F1E9D9;
  --ink: #3B2A22;
  --ink-soft: #5C463A;
  --muted: #8C7A6B;
  --line: rgba(92, 42, 26, .10);
  --line-gold: rgba(201, 168, 118, .30);
  --success: #2E7D5B;
  --success-bg: #E9F4EE;
  --danger: #B3402E;
  --danger-bg: #F9ECE8;
  --star: #E8A33D;

  /* typography — extra-bold geometric display, no curly serif */
  --f-display: 'Sabbir Sorolota', 'Sora', 'Hind Siliguri', sans-serif;
  --f-body: 'Sabbir Sorolota', 'Outfit', 'Hind Siliguri', sans-serif;

  /* layout */
  --container: 1240px;
  --nav-h: 76px;
  --nav-h-small: 62px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* depth — soft, never suffocating */
  --shadow-sm: 0 2px 10px -4px rgba(92, 42, 26, .08);
  --shadow-md: 0 14px 34px -16px rgba(92, 42, 26, .14);
  --shadow-lg: 0 24px 60px -24px rgba(74, 35, 23, .20);
  --shadow-gold: 0 10px 30px -10px rgba(201, 168, 118, .40);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip on BOTH html and body kills any horizontal scroll/blank gutter
   (the rotated marquee band + oversized 3D canvases used to peek past 100vw,
   visible as empty space on the right when pinch-zoomed out on mobile). `clip`
   — not `hidden` — so it never creates a scroll container and never breaks Lenis
   window-scroll or position:sticky toolbars. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* NOTE: any oversized 3D safe-frame canvas (width > 100%, e.g. #heroCup,
   #paperCanvas) MUST set `max-width: none` in its own rule or this clamp
   silently shifts it off-centre and re-introduces edge clipping */
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--espresso-900); }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 99px; border: 2px solid var(--cream-200); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }

/* ---------- icon safety net ----------
   inline svg without an explicit size can NEVER explode a layout:
   zero-specificity default, any classed rule still wins */
:where(svg) { width: 1em; height: 1em; flex: 0 0 auto; }

/* the hidden attribute always wins — author display rules must not resurrect hidden elements */
[hidden] { display: none !important; }

.container { width: min(var(--container), calc(100% - clamp(32px, 6vw, 80px))); margin-inline: auto; }

.section { padding-block: clamp(56px, 8vh, 96px); }
.section-tight { padding-block: clamp(36px, 5vh, 64px); }

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vh, 48px); }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 600; margin-bottom: 14px;
}
.section-head .kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-600); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: clamp(15px, 1.4vw, 17px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: .02em; transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap; overflow: hidden;
}
.btn svg, .btn i { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold) 55%, var(--gold-600)); color: var(--espresso-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(201, 168, 118, .6); }
.btn-dark { background: linear-gradient(135deg, var(--maroon-600), var(--maroon)); color: #FBF3E4; box-shadow: var(--shadow-md); }
.btn-dark:hover { background: var(--maroon-600); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--line-gold); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--gold-600); background: rgba(201, 168, 118, .1); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
/* magnetic buttons: Motion owns transform — CSS must not transition it */
.magnetic { transition-property: box-shadow, background, color, border-color; }

/* soft cursor-following light inside hero sections (injected by IZH_GLOW) */
.cursor-glow {
  position: absolute; left: 0; top: 0; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 118, .16), rgba(201, 168, 118, .05) 45%, transparent 68%);
  pointer-events: none; z-index: 0; will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}

/* ---------- price / badges / rating ---------- */
.price { font-weight: 700; color: var(--maroon); font-variant-numeric: tabular-nums; }
.price .tk { font-family: var(--f-body); margin-right: 2px; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .82em; margin-left: 8px; }
/* chips — deep solid fills + crisp light rim: must stay readable on ANY photo
   or light background (gold was washing out on cream/white before) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 4px 14px -4px rgba(46, 22, 16, .45);
}
.chip svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.chip-gold {
  background: linear-gradient(135deg, #D4B279, #BD9659 55%, #9C7845);
  color: var(--espresso-950);
}
.chip-dark { background: linear-gradient(135deg, var(--maroon-600), var(--espresso-900)); color: var(--gold-200); }
.chip-success { background: linear-gradient(135deg, #34936B, #25684C); color: #fff; }
.chip-danger { background: linear-gradient(135deg, #C9543F, #A33425); color: #fff; }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars svg.empty { fill: none; stroke: var(--star); stroke-width: 1.5; opacity: .55; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(201, 168, 118, .16);
}
.field .err { font-size: 12.5px; color: var(--danger); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }

/* qty stepper */
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.qty button { width: 42px; height: 44px; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--cream-200); }
.qty button svg { width: 15px; height: 15px; }
.qty input { width: 46px; text-align: center; border: 0; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: transform .5s var(--ease-out), background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.navbar.hidden { transform: translateY(-110%); }
.navbar.scrolled {
  background: rgba(253, 251, 246, .88);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.nav-inner {
  width: min(var(--container), calc(100% - clamp(28px, 5vw, 64px)));
  margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: height .35s var(--ease-out);
}
.navbar.scrolled .nav-inner { height: var(--nav-h-small); }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 40px; width: auto; transition: height .35s var(--ease-out); }
.navbar.scrolled .nav-logo img { height: 33px; }
.nav-logo .word { font-family: var(--f-display); font-size: 21px; font-weight: 800; letter-spacing: .1em; color: var(--maroon); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-link { position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: .03em; padding: 6px 0; transition: color .25s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--gold-600); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-link:hover, .nav-link.active { color: var(--maroon); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: clamp(4px, 1vw, 10px); }
.nav-icon {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink); transition: background .25s, color .25s, transform .3s var(--ease-spring);
}
.nav-icon:hover { background: rgba(201, 168, 118, .16); color: var(--maroon); transform: translateY(-1px); }
.nav-icon svg { width: 20px; height: 20px; }
.nav-icon .count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--maroon); color: var(--gold-300); border-radius: 99px;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  transition: transform .3s var(--ease-spring);
}
.nav-icon .count.pop { animation: countPop .45s var(--ease-spring); }
@keyframes countPop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s, width .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 8px; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 990; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mobile-menu .mm-bg { position: absolute; inset: 0; background: rgba(59, 42, 34, .38); opacity: 0; transition: opacity .45s; }
.mobile-menu .mm-panel {
  position: relative; background: var(--cream); border-radius: 26px 26px 0 0;
  padding: 30px 26px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 50px -24px rgba(74, 35, 23, .35);
  transform: translateY(102%); transition: transform .6s var(--ease-out);
  max-height: 86svh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { pointer-events: auto; }
.mobile-menu.open .mm-bg { opacity: 1; }
.mobile-menu.open .mm-panel { transform: translateY(0); }
.mm-links { display: grid; gap: 4px; margin-bottom: 22px; }
.mm-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 6px; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu.open .mm-links a { opacity: 1; transform: none; }
.mm-links a svg { width: 19px; height: 19px; color: var(--gold-600); }
.mm-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-root { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.drawer-root .dr-bg { position: absolute; inset: 0; background: rgba(59, 42, 34, .36); opacity: 0; transition: opacity .45s; }
.drawer {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(430px, calc(100vw - 36px));
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .6s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.drawer-root.open { pointer-events: auto; }
.drawer-root.open .dr-bg { opacity: 1; }
.drawer-root.open .drawer { transform: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dr-head h3 { font-size: 20px; display: flex; align-items: center; gap: 9px; }
.dr-head h3 .n { color: var(--gold-600); font-size: 15px; font-family: var(--f-body); font-weight: 600; }
.dr-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background .25s, transform .4s var(--ease-out); }
.dr-close:hover { background: var(--cream-300); transform: rotate(90deg); }
.dr-close svg { width: 19px; height: 19px; }
.dr-ship { padding: 14px 22px 0; }
.dr-ship .t { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dr-ship .t b { color: var(--success); }
.dr-ship .bar { height: 6px; border-radius: 99px; background: var(--cream-300); overflow: hidden; }
.dr-ship .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold-600), var(--gold)); transition: width .8s var(--ease-out); }
.dr-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 22px; display: grid; gap: 14px; align-content: start; }
.dr-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 13px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.dr-item img { width: 74px; height: 74px; object-fit: contain; background: var(--cream-200); border-radius: var(--radius-sm); }
.dr-item .nm { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.dr-item .pr { font-size: 13.5px; color: var(--maroon); font-weight: 700; margin-top: 3px; }
.dr-item .qty { margin-top: 8px; transform: scale(.88); transform-origin: left; }
.dr-item .rm { color: var(--muted); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: color .25s, background .25s; align-self: start; }
.dr-item .rm:hover { color: var(--danger); background: var(--danger-bg); }
.dr-item .rm svg { width: 16px; height: 16px; }
.dr-empty { text-align: center; padding: 48px 18px; color: var(--muted); }
.dr-empty svg { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--gold-600); opacity: .6; }
.dr-foot { border-top: 1px solid var(--line); padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: var(--cream-200); }
.dr-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.dr-total .l { color: var(--muted); font-size: 14px; }
.dr-total .v { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--maroon); }
.dr-foot .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   FOOTER — light & soft
   ============================================================ */
.footer { background: var(--cream-200); color: var(--ink-soft); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.footer .f-glow { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 720px; height: 360px; background: radial-gradient(ellipse at center, rgba(201, 168, 118, .18), transparent 65%); pointer-events: none; }
.f-main { position: relative; display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); padding: clamp(44px, 6vh, 72px) 0 36px; }
.f-brand img { height: 54px; margin-bottom: 16px; }
.f-brand p { font-size: 14.5px; line-height: 1.75; max-width: 300px; color: var(--muted); }
.f-social { display: flex; gap: 9px; margin-top: 18px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); background: #fff; color: var(--maroon); transition: background .3s, transform .3s var(--ease-spring), color .3s; }
.f-social a:hover { background: var(--gold); color: var(--espresso-900); transform: translateY(-3px); }
.f-social svg { width: 17px; height: 17px; }
.f-col h4 { color: var(--maroon); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.f-col ul { display: grid; gap: 11px; }
.f-col a { font-size: 14.5px; color: var(--ink-soft); transition: color .25s, padding-left .3s var(--ease-out); }
.f-col a:hover { color: var(--maroon); padding-left: 6px; }
.f-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.f-col li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--gold-600); flex: 0 0 auto; }
.f-bottom { position: relative; border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.f-bottom .cp { font-size: 13px; color: var(--muted); }
.f-credit { font-size: 12.5px; color: var(--muted); }
.f-credit a { color: var(--gold-600); font-weight: 700; transition: color .25s; }
.f-credit a:hover { color: var(--maroon); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1300; display: grid; gap: 9px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-gold); border-radius: 14px; padding: 13px 17px;
  box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600;
  transform: translateY(140%); opacity: 0; transition: transform .55s var(--ease-spring), opacity .4s;
  pointer-events: auto;
}
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 19px; height: 19px; color: var(--gold-600); flex: 0 0 auto; }
.toast.success svg { color: var(--success); }
.toast.danger svg { color: var(--danger); }

/* ============================================================
   MODAL BASE  (Lenis-safe)
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: clamp(14px, 3vw, 34px); pointer-events: none; }
.modal-root .md-bg { position: absolute; inset: 0; background: rgba(59, 42, 34, .42); opacity: 0; transition: opacity .4s; }
.modal-panel {
  position: relative; width: min(660px, 100%); max-height: min(84svh, 760px);
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  transform: translateY(38px) scale(.97); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s;
}
.modal-root.open { pointer-events: auto; }
.modal-root.open .md-bg { opacity: 1; }
.modal-root.open .modal-panel { transform: none; opacity: 1; }
.modal-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; background: linear-gradient(var(--cream) 78%, transparent); }
.modal-head h3 { font-size: 21px; }
.modal-body { padding: 4px 24px 26px; }

/* ============================================================
   PRODUCT CARD (shared between home / shop / related)
   ============================================================ */
.p-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .4s;
}
.p-card::after {
  /* gold hairline draws across the top on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--gold) 28%, var(--gold-600) 72%, transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.p-card:hover::after { transform: scaleX(1); }
.p-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--line-gold);
}
/* full-bleed photo media — the product shot owns the whole square
   (photos are 720×720 with their own studio backgrounds; padded
   "photo floating on cream" looked cheap) */
.p-media {
  position: relative; aspect-ratio: 1; background: var(--cream-300); overflow: hidden;
  transform-style: preserve-3d; transition: transform .6s var(--ease-out); will-change: transform;
}
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s var(--ease-out), transform .9s var(--ease-out); }
.p-media img.alt { opacity: 0; transform: scale(1.08); }
.p-card:hover .p-media img.main { opacity: 0; transform: scale(1.05); }
.p-card:hover .p-media img.alt { opacity: 1; transform: scale(1.04); }
/* soft scrim at the base so the quick-action bar always reads */
.p-media::after {
  content: ""; position: absolute; inset: 58% 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(46, 22, 16, .34));
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.p-card:hover .p-media::after { opacity: 1; }
.p-sheen {
  /* light sweep across the photo on hover */
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-140%) skewX(-6deg);
}
.p-card:hover .p-sheen { transform: translateX(140%) skewX(-6deg); transition: transform 1s var(--ease-out); }
.p-tags { position: absolute; top: 13px; left: 13px; display: grid; gap: 6px; z-index: 3; justify-items: start; }
.p-fav {
  position: absolute; top: 11px; right: 11px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-spring), color .25s, opacity .3s;
  opacity: 0;
}
.p-card:hover .p-fav { opacity: 1; }
.p-fav:hover { transform: scale(1.12); }
.p-fav.on { color: var(--danger); opacity: 1; }
.p-fav.on svg { fill: currentColor; }
.p-fav svg { width: 17px; height: 17px; }
.p-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; gap: 6px; padding: 7px;
  background: rgba(253, 251, 246, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-gold); border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateY(calc(100% + 20px)); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .35s;
}
.p-card:hover .p-quick { transform: none; opacity: 1; }
.p-quick .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
/* always-visible round add-to-cart on touch layouts (hover quick bar can't exist there) */
.p-mini-add {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: none; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--espresso-900); box-shadow: var(--shadow-gold);
  transition: transform .35s var(--ease-spring);
}
.p-mini-add:active { transform: scale(.9); }
.p-mini-add svg { width: 18px; height: 18px; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-body .cat { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.p-int { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.p-int svg { width: 13px; height: 13px; color: var(--gold-600); flex: 0 0 auto; }
.p-int-bar { width: 34px; height: 4px; border-radius: 99px; background: var(--cream-300); overflow: hidden; }
.p-int-bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--maroon)); }
.p-int-num { font-size: 11px; font-weight: 800; color: var(--maroon); line-height: 1; }
.p-body h3 { font-size: 19px; letter-spacing: -.01em; }
.p-body h3 a { transition: color .25s; }
.p-body h3 a:hover { color: var(--maroon-600); }
.p-notes { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.p-notes .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-600); flex: 0 0 auto; }
.p-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.p-row {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px dashed var(--line-gold);
}
.p-row .price { font-size: 21px; }
.p-pack { font-size: 12px; color: var(--muted); text-align: right; }

/* products grid — never single column on mobile */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 22px); }
@media (max-width: 1080px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reveal helpers (GSAP hooks) ----------
   html.anim is added by components.js only when GSAP is available,
   so content never stays hidden if the CDN fails. */
html.anim [data-reveal]:not(.revealed) { opacity: 0; }
html.anim [data-reveal-child]:not(.revealed) { opacity: 0; }

/* ---------- skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--cream-300); border-radius: var(--radius-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding-top: calc(var(--nav-h) + clamp(18px, 3vh, 30px)); }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--maroon); }
.crumbs svg { width: 13px; height: 13px; opacity: .55; }
.crumbs .cur { color: var(--ink-soft); font-weight: 600; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: clamp(40px, 8vh, 80px) 20px; }
.empty-state svg { width: 60px; height: 60px; margin: 0 auto 18px; color: var(--gold-600); opacity: .55; }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .f-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; --nav-h-small: 56px; }
  .nav-logo img { height: 32px; }
  .nav-logo .word { font-size: 16px; letter-spacing: .06em; }
  /* declutter the phone bar — wishlist + account move into the slide-up menu so
     only search + cart + menu stay on top. Fixes the search icon sliding under
     the "IZH COFFEE" wordmark and tightens the gaps between the icons. */
  .nav-actions { gap: 2px; }
  .nav-actions .nav-icon[aria-label="Wishlist"],
  .nav-actions .nav-icon[aria-label="Account"] { display: none; }
  .nav-icon { width: 40px; height: 40px; }
  .nav-icon svg { width: 19px; height: 19px; }
  .p-quick { display: none; }
  .p-mini-add { display: grid; width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .p-fav { opacity: 1; width: 34px; height: 34px; }
  .p-body { padding: 12px 12px 14px; gap: 5px; }
  .p-body h3 { font-size: 15px; }
  .p-row .price { font-size: 16px; }
  .p-tags .chip { font-size: 10px; padding: 5px 10px; letter-spacing: .05em; }
  .p-notes { font-size: 10.5px; gap: 5px; }
  .p-int-bar { width: 26px; }
  .p-pack { font-size: 10.5px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .btn-sm { padding: 9px 16px; font-size: 13px; }
  .f-main { gap: 26px; padding-bottom: 26px; }
  .f-brand { grid-column: 1 / -1; }
}
