/* =================================================================
   PI ECOSYSTEM STORE — Stylesheet
   Pi Network palette · Mulish · Mobile-first · Dark mode · Animations
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --pi-purple: #6C2BD9;
  --pi-purple-600: #5A23B5;
  --pi-purple-700: #46198C;
  --pi-gold: #F4AF00;
  --pi-gold-600: #d99c00;

  /* Light theme surfaces */
  --bg: #F8F9FA;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --text: #1F2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Status */
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #2563eb;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 4px rgba(16,24,40,.06);
  --shadow-lg: 0 18px 40px -12px rgba(108,43,217,.28), 0 8px 16px rgba(16,24,40,.08);
  --shadow-glow: 0 10px 30px -8px rgba(108,43,217,.45);
  --ring: 0 0 0 3px rgba(108,43,217,.30);

  /* Geometry */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --container: 1240px;

  --grad-brand: linear-gradient(135deg, #6C2BD9 0%, #8A43E6 55%, #A35BFF 100%);
  --grad-gold: linear-gradient(135deg, #F4AF00 0%, #ffcb45 100%);
  --grad-hero: linear-gradient(135deg, #6C2BD9 0%, #7E33E0 40%, #A35BFF 100%);

  --t-fast: .15s ease;
  --t: .25s cubic-bezier(.4,0,.2,1);
  --t-slow: .45s cubic-bezier(.4,0,.2,1);
  --header-h: 64px;
  font-synthesis: none;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-alt: #161922;
  --surface: #1a1d27;
  --surface-2: #232735;
  --text: #f3f4f6;
  --text-soft: #cbd2dd;
  --muted: #9aa3b2;
  --border: #2a2f3d;
  --border-strong: #3a4150;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 44px -14px rgba(0,0,0,.6);
  --ring: 0 0 0 3px rgba(163,91,255,.40);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pi-mark { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--pi-purple);
  color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top var(--t);
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* π price token */
.pi-token { font-family: Georgia, serif; font-style: italic; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .95rem; padding: 11px 18px; border-radius: var(--r-sm);
  border: var(--bw) solid transparent; transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; line-height: 1; position: relative;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 14px 34px -8px rgba(108,43,217,.6); transform: translateY(-1px); }
.btn--gold { background: var(--grad-gold); color: #3a2c00; box-shadow: 0 8px 22px -8px rgba(244,175,0,.6); }
.btn--gold:hover { transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--pi-purple); color: var(--pi-purple); }
.btn--outline { border-color: var(--pi-purple); color: var(--pi-purple); background: transparent; }
.btn--outline:hover { background: var(--pi-purple); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { padding: 8px 13px; font-size: .85rem; }
.btn--lg { padding: 14px 22px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn__spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { opacity: .7; }
.btn.is-loading .btn__spinner { display: inline-block; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: 12px; color: var(--text); transition: background var(--t), color var(--t), transform var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--pi-purple); }
.icon-btn:active { transform: scale(.92); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--pi-gold); color: #3a2c00; font-size: .68rem; font-weight: 800; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface);
  animation: pop .3s var(--t);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-soft); font-size: .82rem; font-weight: 600; border: 1px solid var(--border);
  transition: var(--t);
}
.chip:hover { border-color: var(--pi-purple); color: var(--pi-purple); }
.chip.is-active { background: var(--pi-purple); color: #fff; border-color: var(--pi-purple); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.tag--deal { background: #fee2e2; color: #b91c1c; }
.tag--new { background: #dcfce7; color: #15803d; }
.tag--save { background: var(--grad-gold); color: #3a2c00; }
.tag--low { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .tag--deal { background: rgba(220,38,38,.18); color: #fca5a5; }
[data-theme="dark"] .tag--new { background: rgba(22,163,74,.18); color: #86efac; }
[data-theme="dark"] .tag--low { background: rgba(217,119,6,.2); color: #fcd34d; }

/* ---------- Forms ---------- */
.form__row { margin-bottom: 14px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.form__label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; color: var(--text-soft); }
.req { color: var(--danger); }
.input {
  width: 100%; padding: 12px 14px; background: var(--bg-alt); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm); transition: border-color var(--t), box-shadow var(--t), background var(--t); color: var(--text);
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--pi-purple); box-shadow: var(--ring); }
.input--sm { padding: 7px 10px; font-size: .85rem; }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.form__error { display: block; color: var(--danger); font-size: .78rem; font-weight: 600; margin-top: 4px; min-height: 1px; }
.form__meta { display: flex; justify-content: space-between; align-items: center; }
.counter { color: var(--muted); font-size: .74rem; }

/* =================================================================
   ACCESS GATE
   ================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(120% 120% at 20% 0%, #efeaff 0%, #f8f9fa 50%, #eef0ff 100%); overflow: hidden;
}
[data-theme="dark"] .gate { background: radial-gradient(120% 120% at 20% 0%, #1b1830 0%, #0f1117 55%, #161430 100%); }
.gate__bg { position: absolute; inset: 0; pointer-events: none; }
.gate__orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; animation: float 9s ease-in-out infinite; }
.gate__orb--1 { width: 380px; height: 380px; background: #8A43E6; top: -110px; left: -90px; }
.gate__orb--2 { width: 300px; height: 300px; background: var(--pi-gold); bottom: -100px; right: -70px; animation-delay: -3s; }
.gate__orb--3 { width: 240px; height: 240px; background: #A35BFF; top: 40%; right: 18%; animation-delay: -5s; opacity: .35; }
.gate__card {
  position: relative; width: 100%; max-width: 560px; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border); animation: gate-in .55s var(--t-slow); max-height: 94vh; overflow-y: auto;
}
.gate__step { animation: fade-up .4s var(--t); }
.gate__logo { width: 72px; height: 72px; border-radius: 20px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--shadow-glow); }
.gate__logo .pi-mark { font-size: 2.4rem; color: var(--pi-gold); }
.gate__title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 10px; }
.gate__title--sm { font-size: 1.4rem; }
.gate__lead { color: var(--text-soft); margin-bottom: 18px; }
.gate__lead--sm { font-size: .92rem; margin-bottom: 16px; }
.gate__perks { display: grid; gap: 10px; margin-bottom: 18px; }
.gate__perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .94rem; }
.gate__perks .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 0 4px rgba(244,175,0,.15); flex: none; }
.gate__note { background: var(--surface-2); border-left: 3px solid var(--pi-purple); padding: 12px 14px; border-radius: var(--r-sm); font-size: .88rem; color: var(--text-soft); margin-bottom: 18px; }
.gate__back { color: var(--muted); font-weight: 700; font-size: .85rem; margin-bottom: 10px; transition: color var(--t); }
.gate__back:hover { color: var(--pi-purple); }
.gate__privacy { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 12px; }
.gate__privacy a { color: var(--pi-purple); font-weight: 700; }
.gate__success { text-align: center; }
.success-check { width: 92px; height: 92px; margin: 0 auto 16px; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke: var(--success); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: stroke .6s var(--t-slow) forwards; }
.success-check path { stroke: var(--success); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: stroke .4s .5s var(--t-slow) forwards; }

/* =================================================================
   APP CHROME
   ================================================================= */
.topbar { background: var(--grad-brand); color: #fff; font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; gap: 10px; height: 34px; justify-content: center; }
.topbar__item strong { color: var(--pi-gold); }
.topbar__sep { opacity: .5; }

.header { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--bg-alt) 88%, transparent); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--border); }
.header__inner { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; height: var(--header-h); }
.header__menu { display: inline-flex; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 1.12rem; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand); color: var(--pi-gold); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow-sm); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; letter-spacing: -.02em; }
.brand__sub { font-size: .68rem; font-weight: 700; color: var(--pi-purple); letter-spacing: .12em; text-transform: uppercase; }
.search { position: relative; display: flex; align-items: center; max-width: 560px; width: 100%; justify-self: center; }
.search__ico { position: absolute; left: 13px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.search__input { width: 100%; padding: 11px 14px 11px 40px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; transition: var(--t); }
.search__input:focus { outline: none; background: var(--bg-alt); border-color: var(--pi-purple); box-shadow: var(--ring); }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; max-height: 380px; overflow-y: auto; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; transition: background var(--t-fast); }
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-2); }
.suggest__img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.suggest__name { font-weight: 700; font-size: .9rem; }
.suggest__price { font-size: .8rem; color: var(--pi-purple); font-weight: 800; }
.header__actions { display: flex; align-items: center; gap: 2px; }

.catnav { border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav__inner { display: flex; gap: 4px; height: 46px; align-items: center; }
.catnav__link { padding: 7px 13px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--text-soft); white-space: nowrap; transition: var(--t); }
.catnav__link:hover { background: var(--surface-2); color: var(--pi-purple); }
.catnav__link.is-active { background: var(--pi-purple); color: #fff; }

/* Drawers */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,17,23,.5); backdrop-filter: blur(2px); z-index: 950; animation: fade .25s; }
.mobnav, .cartdrawer {
  position: fixed; top: 0; bottom: 0; width: min(86vw, 380px); background: var(--surface); z-index: 960;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide-l .3s var(--t);
}
.mobnav { left: 0; }
.cartdrawer { right: 0; width: min(92vw, 420px); animation: slide-r .3s var(--t); }
.mobnav__head, .cartdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.mobnav__head .pi-mark { font-size: 1.6rem; color: var(--pi-purple); }
.cartdrawer__head h2 { font-size: 1.1rem; }
.mobnav__body { padding: 10px; overflow-y: auto; }
.mobnav__group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; padding: 14px 12px 6px; }
.mobnav__link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); font-weight: 700; transition: background var(--t-fast); }
.mobnav__link:hover { background: var(--surface-2); color: var(--pi-purple); }
.cartdrawer__body { flex: 1; overflow-y: auto; padding: 8px 16px; }
.cartdrawer__foot { padding: 16px; border-top: 1px solid var(--border); background: var(--bg-alt); }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line__img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-line__name { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.cart-line__price { color: var(--pi-purple); font-weight: 800; font-size: .86rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; font-weight: 800; color: var(--text-soft); transition: background var(--t-fast); }
.qty button:hover { background: var(--surface-2); color: var(--pi-purple); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: .85rem; }
.link-x { color: var(--muted); font-size: .78rem; font-weight: 700; transition: color var(--t); }
.link-x:hover { color: var(--danger); }

/* =================================================================
   VIEW / SECTIONS
   ================================================================= */
.view { min-height: 60vh; animation: view-in .35s var(--t); }
.section { padding: 40px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__title { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.section__title small { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.section__link { color: var(--pi-purple); font-weight: 800; font-size: .9rem; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .84rem; padding: 16px 0 4px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--pi-purple); }
.crumbs span { opacity: .6; }

/* Hero / consensus banner */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); margin-top: 22px; background: var(--grad-hero); color: #fff; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lg); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(244,175,0,.35), transparent 45%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .8rem; backdrop-filter: blur(6px); margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.05; margin-bottom: 14px; }
.hero__rate { color: var(--pi-gold); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.15rem); opacity: .95; max-width: 540px; margin-bottom: 22px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(10px); }
.hero__convert { display: grid; gap: 12px; }
.convert-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,.1); border-radius: var(--r-sm); font-weight: 700; }
.convert-row b { color: var(--pi-gold); font-size: 1.15rem; }

/* Marquee strip */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt); }
.marquee__track { display: flex; gap: 40px; padding: 12px 0; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee__item { font-weight: 800; color: var(--text-soft); display: inline-flex; gap: 10px; align-items: center; }
.marquee__item .pi-mark { color: var(--pi-gold); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); overflow: hidden; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-tile__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface-2); transition: var(--t); }
.cat-tile:hover .cat-tile__icon { background: var(--grad-brand); transform: scale(1.05) rotate(-4deg); }
.cat-tile__name { font-weight: 800; font-size: .98rem; }
.cat-tile__count { font-size: .8rem; color: var(--muted); }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card__img { transform: scale(1.07); }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card__wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); display: grid; place-items: center; z-index: 2; backdrop-filter: blur(4px); transition: var(--t); box-shadow: var(--shadow-sm); }
.card__wish .ico { width: 18px; height: 18px; }
.card__wish:hover { color: var(--danger); transform: scale(1.12); }
.card__wish.is-active { color: #fff; background: var(--danger); }
.card__wish.is-active .ico { fill: #fff; }
.card__quick { position: absolute; left: 10px; right: 10px; bottom: 10px; transform: translateY(130%); opacity: 0; transition: var(--t); z-index: 2; }
.card:hover .card__quick { transform: translateY(0); opacity: 1; }
.card__body { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.card__name { font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.card__name:hover { color: var(--pi-purple); }
.stars { display: inline-flex; gap: 1px; color: var(--pi-gold); font-size: .82rem; line-height: 1; }
.stars .s-empty { color: var(--border-strong); }
.card__rate { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); }
.price { margin-top: auto; }
.price__pi { font-size: 1.18rem; font-weight: 900; color: var(--pi-purple); display: flex; align-items: baseline; gap: 4px; }
[data-theme="dark"] .price__pi { color: #b79bff; }
.price__pi .pi-mark { color: var(--pi-gold); font-size: 1.1rem; }
.price__usd { font-size: .82rem; color: var(--muted); font-weight: 600; }
.price__strike { text-decoration: line-through; opacity: .7; margin-left: 6px; }
.card__foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.card__add { flex: 1; }
.stock-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.stock-bar__fill { height: 100%; background: var(--grad-gold); border-radius: 999px; transition: width var(--t-slow); }
.stock-low { color: var(--warn); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }

/* Skeleton loading */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-lg); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.4s infinite; }
.sk-card { height: 290px; }
.sk-line { height: 12px; border-radius: 6px; margin: 8px 0; }

/* Stats / counters */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat__num { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--pi-purple); line-height: 1; }
[data-theme="dark"] .stat__num { color: #b79bff; }
.stat__label { color: var(--muted); font-weight: 700; font-size: .84rem; margin-top: 6px; }

/* Deals band */
.deal-band { background: linear-gradient(135deg, #3B1A78 0%, #6C2BD9 100%); color: #fff; border-radius: var(--r-xl); padding: clamp(22px,4vw,36px); position: relative; overflow: hidden; }
.deal-band::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(244,175,0,.4), transparent 65%); }
.countdown { display: flex; gap: 10px; margin-top: 14px; }
.countdown__cell { background: rgba(255,255,255,.15); border-radius: 10px; padding: 8px 12px; min-width: 56px; text-align: center; font-weight: 900; }
.countdown__cell small { display: block; font-size: .64rem; font-weight: 700; opacity: .8; text-transform: uppercase; }

/* =================================================================
   SHOP LAYOUT
   ================================================================= */
.shop { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 8px; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); align-self: start; }
.filters__group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.filters__group:last-child { border-bottom: none; }
.filters__title { font-weight: 800; font-size: .92rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .88rem; cursor: pointer; color: var(--text-soft); }
.check input { width: 17px; height: 17px; accent-color: var(--pi-purple); }
.check:hover { color: var(--pi-purple); }
.range-row { display: flex; align-items: center; gap: 8px; }
.shop__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop__count { color: var(--muted); font-weight: 600; font-size: .9rem; }
.shop__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-toggle { display: inline-flex; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* =================================================================
   PRODUCT DETAIL
   ================================================================= */
.pdp { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 10px; }
.pdp__media { position: relative; }
.pdp__main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-xl); background: var(--surface-2); box-shadow: var(--shadow-md); }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp__thumb { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 2px solid var(--border); cursor: pointer; transition: var(--t); }
.pdp__thumb.is-active, .pdp__thumb:hover { border-color: var(--pi-purple); }
.pdp__title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 8px 0; }
.pdp__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--border); margin: 14px 0; }
.pdp__price .price__pi { font-size: 2.1rem; }
.pdp__price .price__pi .pi-mark { font-size: 1.7rem; }
.pdp__usd { font-size: 1.05rem; }
.pdp__desc { color: var(--text-soft); margin-bottom: 18px; }
.pdp__meta { display: grid; gap: 8px; margin-bottom: 20px; }
.pdp__meta-row { display: flex; gap: 10px; font-size: .9rem; }
.pdp__meta-row b { min-width: 120px; color: var(--text-soft); }
.pdp__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pdp__assure { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 22px; }
.assure { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .84rem; font-weight: 600; }
.assure .ico { color: var(--pi-purple); flex: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--border); margin: 32px 0 20px; overflow-x: auto; }
.tab { padding: 11px 16px; font-weight: 800; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; transition: var(--t); }
.tab.is-active { color: var(--pi-purple); border-color: var(--pi-purple); }
.review { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.review__name { font-weight: 800; font-size: .9rem; }
.review__date { font-size: .76rem; color: var(--muted); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input input { display: none; }
.rate-input label { font-size: 1.6rem; color: var(--border-strong); cursor: pointer; transition: color var(--t-fast); }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--pi-gold); }

/* =================================================================
   CART / CHECKOUT PAGE
   ================================================================= */
.split { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.panel__title { font-size: 1.1rem; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: .92rem; }
.summary-row--total { border-top: 1.5px dashed var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.05rem; font-weight: 900; }
.summary-row--total .price__pi { font-size: 1.5rem; }
.rate-notice { background: color-mix(in srgb, var(--pi-gold) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pi-gold) 45%, transparent); color: var(--text); border-radius: var(--r-sm); padding: 12px 14px; font-size: .82rem; display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; }
.rate-notice .pi-mark { color: var(--pi-gold-600); font-size: 1.2rem; flex: none; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.step { flex: 1; text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); position: relative; padding-top: 30px; }
.step::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; border: 2px solid var(--border); transition: var(--t); }
.step.is-done::before, .step.is-active::before { background: var(--pi-purple); color: #fff; border-color: var(--pi-purple); }
.step.is-active { color: var(--pi-purple); }
.pay-method { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--pi-purple); border-radius: var(--r); background: color-mix(in srgb, var(--pi-purple) 7%, transparent); }
.pay-method__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-brand); color: var(--pi-gold); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.order-success { text-align: center; padding: 40px 20px; }
.order-id { font-family: ui-monospace, monospace; font-weight: 800; background: var(--surface-2); padding: 6px 12px; border-radius: 8px; letter-spacing: .04em; display: inline-block; }

/* Order tracking */
.track { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.track__step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.track__dot { position: relative; display: flex; flex-direction: column; align-items: center; }
.track__dot i { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--border-strong); z-index: 1; }
.track__step.is-done .track__dot i { background: var(--success); border-color: var(--success); }
.track__step.is-current .track__dot i { background: var(--pi-purple); border-color: var(--pi-purple); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pi-purple) 25%, transparent); }
.track__line { flex: 1; width: 3px; background: var(--border); }
.track__step.is-done .track__line { background: var(--success); }
.track__body { padding-bottom: 26px; }
.track__title { font-weight: 800; }
.track__time { font-size: .8rem; color: var(--muted); }

/* =================================================================
   DASHBOARD (account + admin shared)
   ================================================================= */
.dash { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 12px; }
.dash__nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm); align-self: start; }
.dash__user { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px; }
.dash__user .avatar { width: 46px; height: 46px; }
.dash__link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); font-weight: 700; color: var(--text-soft); width: 100%; text-align: left; transition: var(--t); font-size: .92rem; }
.dash__link:hover { background: var(--surface-2); color: var(--pi-purple); }
.dash__link.is-active { background: var(--pi-purple); color: #fff; }
.dash__link .ico { width: 19px; height: 19px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--pi-purple); margin-bottom: 10px; }
.kpi__num { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.kpi__label { color: var(--muted); font-size: .82rem; font-weight: 700; margin-top: 4px; }
.kpi__trend { font-size: .76rem; font-weight: 800; margin-top: 6px; }
.kpi__trend.up { color: var(--success); }
.kpi__trend.down { color: var(--danger); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.tbl th { text-align: left; padding: 12px 14px; background: var(--surface-2); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--border); }
.tbl tr:hover td { background: var(--surface-2); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.pill--pending { background: #fef3c7; color: #92400e; }
.pill--paid, .pill--delivered { background: #dcfce7; color: #15803d; }
.pill--processing, .pill--shipped { background: #dbeafe; color: #1e40af; }
.pill--cancelled { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .pill--pending { background: rgba(217,119,6,.2); color: #fcd34d; }
[data-theme="dark"] .pill--paid, [data-theme="dark"] .pill--delivered { background: rgba(22,163,74,.2); color: #86efac; }
[data-theme="dark"] .pill--processing, [data-theme="dark"] .pill--shipped { background: rgba(37,99,235,.2); color: #93c5fd; }
[data-theme="dark"] .pill--cancelled { background: rgba(220,38,38,.2); color: #fca5a5; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 14px 0; }
.bar { flex: 1; background: var(--grad-brand); border-radius: 8px 8px 0 0; min-height: 6px; position: relative; transition: height var(--t-slow); display: flex; justify-content: center; }
.bar small { position: absolute; bottom: -22px; font-size: .72rem; color: var(--muted); font-weight: 700; }
.bar span { position: absolute; top: -20px; font-size: .72rem; font-weight: 800; color: var(--pi-purple); }

.admin-login { max-width: 420px; margin: 60px auto; text-align: center; }
.admin-login .gate__logo { margin-inline: auto; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty__icon { font-size: 3rem; margin-bottom: 12px; opacity: .6; }

.notif { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 10px; transition: var(--t); }
.notif.is-unread { border-color: var(--pi-purple); background: color-mix(in srgb, var(--pi-purple) 5%, transparent); }
.notif__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.notif__time { font-size: .76rem; color: var(--muted); }

/* Accordion (FAQ) */
.accordion__item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.accordion__q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; font-weight: 800; text-align: left; transition: var(--t); }
.accordion__q:hover { color: var(--pi-purple); }
.accordion__q .plus { transition: transform var(--t); font-size: 1.3rem; color: var(--pi-purple); }
.accordion__item.is-open .plus { transform: rotate(45deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.accordion__a-inner { padding: 0 18px 16px; color: var(--text-soft); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 26px 0 10px; }
.prose h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.prose p { margin-bottom: 12px; color: var(--text-soft); }
.prose ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 12px; color: var(--text-soft); }
.prose ul.bullets li { margin-bottom: 6px; }

/* =================================================================
   CHAT WIDGET
   ================================================================= */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 940; }
.chat__fab { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); position: relative; transition: transform var(--t); }
.chat__fab:hover { transform: scale(1.08) rotate(4deg); }
.chat__fab .ico { width: 26px; height: 26px; }
.chat__pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(108,43,217,.5); animation: pulse 2.2s infinite; }
.chat__panel { position: absolute; right: 0; bottom: 72px; width: min(90vw, 340px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; height: 440px; animation: fade-up .3s var(--t); }
.chat__head { background: var(--grad-brand); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat__head .icon-btn { color: #fff; }
.chat__status { display: block; font-size: .74rem; opacity: .9; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: .87rem; line-height: 1.4; animation: fade-up .25s var(--t); }
.bubble--bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--user { background: var(--pi-purple); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat__form .btn { padding: 0 16px; }

/* =================================================================
   TOASTS
   ================================================================= */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 360px); }
.toast { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--pi-purple); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--shadow-lg); animation: toast-in .35s var(--t); }
.toast.is-out { animation: toast-out .3s var(--t) forwards; }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--info); }
.toast__icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: .8rem; font-weight: 900; }
.toast--success .toast__icon { background: var(--success); }
.toast--error .toast__icon { background: var(--danger); }
.toast--info .toast__icon { background: var(--info); }
.toast__title { font-weight: 800; font-size: .9rem; }
.toast__msg { font-size: .82rem; color: var(--text-soft); }
.toast__close { margin-left: auto; color: var(--muted); font-size: 1.1rem; line-height: 1; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 50px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 16px 30px; }
.footer__tag { color: var(--muted); font-size: .9rem; margin: 12px 0 16px; max-width: 340px; }
.footer__col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; color: var(--muted); font-weight: 600; font-size: .9rem; transition: color var(--t); }
.footer__col a:hover { color: var(--pi-purple); }
.newsletter__row { display: flex; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--t), transform .6s var(--t); }
.reveal.is-in { opacity: 1; transform: none; }

/* =================================================================
   KEYFRAMES
   ================================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gate-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slide-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(14px); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(108,43,217,0); } 100% { box-shadow: 0 0 0 0 rgba(108,43,217,0); } }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); height: 0; padding-block: 0; margin: 0; } }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 720px) {
  .topbar__item--hide-sm, .topbar__sep--hide-sm { display: none; }
  .header__inner { grid-template-columns: auto auto 1fr auto; }
  .search { order: 5; grid-column: 1 / -1; max-width: none; margin-top: 2px; }
  .header__inner { height: auto; padding-block: 10px; row-gap: 8px; }
  .header__account { display: none; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .pdp__assure { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (min-width: 860px) {
  .header__menu { display: none; }
  .hero__grid { grid-template-columns: 1.3fr 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .shop { grid-template-columns: 250px 1fr; }
  .pdp { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.6fr 1fr; }
  .dash { grid-template-columns: 240px 1fr; }
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .filter-toggle { display: none; }
}

@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print (invoices) */
@media print {
  .header, .footer, .chat, .topbar, .catnav, .toasts, .no-print { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}

/* =================================================================
   Pi logo mark (official-style app-icon tile + geometric gold π)
   ================================================================= */
.pi-glyph { display: block; color: var(--pi-gold); }
.brand__mark { background: var(--grad-brand); color: var(--pi-gold); }
.brand__mark .pi-glyph { width: 64%; height: 64%; }
.gate__logo .pi-glyph { width: 56%; height: 56%; color: var(--pi-gold); }
.mobnav__head .brand__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.mobnav__head .brand__mark .pi-glyph { color: var(--pi-gold); }

/* =================================================================
   Two-step feedback gate (details -> message)
   ================================================================= */
.gate__substep { animation: fade-up .35s var(--t); }
.gate__progress { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gate__progress .pip { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); }
.gate__progress .pip.is-on { background: var(--grad-brand); }

/* =================================================================
   NEW UPGRADES — Hero "Hot Deals" card
   ================================================================= */
.hero__card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero__card-head h3 { font-size: 1.05rem; }
.hero__card-head a { color: var(--pi-gold); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.hero__deals { display: grid; gap: 10px; }
.hero-deal { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); transition: transform var(--t), background var(--t); position: relative; color: #fff; }
.hero-deal:hover { background: rgba(255,255,255,.20); transform: translateY(-2px); }
.hero-deal__img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,.18); flex: none; }
.hero-deal__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-deal__name { font-weight: 700; font-size: .86rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-deal__price { font-weight: 800; color: var(--pi-gold); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.hero-deal__price .pi-mark { color: var(--pi-gold); }
.hero-deal__price s { color: rgba(255,255,255,.6); font-weight: 600; font-size: .76rem; }
.hero-deal__badge { background: var(--pi-gold); color: #3a2c00; font-weight: 900; font-size: .7rem; padding: 3px 7px; border-radius: 6px; flex: none; }