/* =====================================================================
   PlayX Shop — shared stylesheet (visual reference mockup)
   Dark-neon party/entertainment brand. No frameworks, no build step.
   Each block is labelled so it maps cleanly into Wix sections.
   ===================================================================== */

/* ------------------------------------------------------------------
   1. DESIGN TOKENS  (pull these into Wix as site colours / text styles)
   ------------------------------------------------------------------ */
:root {
  /* --- Surfaces (deep neutral charcoal, matching the reference) --- */
  --bg:          #08080a;   /* page canvas — deep near-black */
  --surface:     #131316;   /* raised cards / rows */
  --surface-2:   #1c1c20;   /* hover / nested raised */
  --border:      rgba(255,255,255,0.07);   /* hairline edges */
  --border-2:    rgba(255,255,255,0.13);

  /* --- Text (near-white body for >=4.5:1 contrast) --- */
  --text:        #f3f3f8;
  --text-muted:  #a6a6b8;
  --text-dim:    #74748a;

  /* --- Neon accent palette (icons / borders / CTAs / glow) --- */
  --neon-blue:    #1fe0ff;
  --neon-green:   #37ff6e;
  --neon-magenta: #ff2da0;
  --neon-purple:  #a64bff;
  --neon-yellow:  #ffd23f;

  /* --- Primary CTA gradient (magenta -> purple) --- */
  --grad-primary: linear-gradient(135deg, #ff2da0 0%, #a64bff 100%);

  /* --- Rainbow wordmark stops (logo only) --- */
  --grad-logo: linear-gradient(90deg,#ff2da0 0%,#ffd23f 30%,#37ff6e 55%,#1fe0ff 78%,#a64bff 100%);

  /* --- Radii --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* --- Spacing scale --- */
  --gap: 16px;
  --pad: 18px;

  /* --- Motion (soft, minimal) --- */
  --t: 170ms ease;

  /* --- Type --- */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;

  /* --- Layout --- */
  --maxw: 1180px;
}

/* ------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);   /* flat deep charcoal, like the reference */
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

/* Accessible focus state (visible neon ring) */
:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Utility: neon glow text used only on focal words */
.glow-blue    { color: var(--neon-blue);    text-shadow: 0 0 14px rgba(31,224,255,0.55); }
.glow-magenta { color: var(--neon-magenta); text-shadow: 0 0 14px rgba(255,45,160,0.55); }
.glow-yellow  { color: var(--neon-yellow);  text-shadow: 0 0 12px rgba(255,210,63,0.45); }

/* Visually-hidden (for accessible labels) */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ------------------------------------------------------------------
   3. NEON ICON HELPERS  (inline SVGs inherit currentColor + glow)
   ------------------------------------------------------------------ */
.icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

/* Neon colour helpers — FLAT colour, no glow (matches the reference icons). */
.i-yellow  { color: var(--neon-yellow);  }
.i-magenta { color: var(--neon-magenta); }
.i-green   { color: var(--neon-green);   }
.i-blue    { color: var(--neon-blue);    }
.i-purple  { color: var(--neon-purple);  }

/* ==================================================================
   4. TOP NAV  (desktop) — collapses for mobile
   ================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,18,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}

/* Hamburger (mobile menu trigger) */
.hamburger {
  background: none; border: 0; color: var(--text);
  display: none; padding: 6px; border-radius: 8px;
}
.hamburger:hover { background: var(--surface-2); }

/* Logo wordmark: rainbow PLAYX + script Shop! */
.logo { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.logo__playx {
  font-weight: 800; font-size: 26px; letter-spacing: .5px;
  background: var(--grad-logo);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(166,75,255,0.35));
}
.logo__shop {
  font-weight: 700; font-style: italic; font-size: 20px; color: var(--text);
}
.logo__shop::after { content:"!"; color: var(--neon-magenta); }

/* Search pill */
.search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 10px 16px;
  transition: border-color var(--t), box-shadow var(--t);
}
.search:focus-within {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 0 3px rgba(255,45,160,0.15);
}
.search input {
  flex: 1; background: none; border: 0; color: var(--text);
  font-family: inherit; font-size: 15px; outline: none;
}
.search input::placeholder { color: var(--text-dim); }
.search__btn { background:none;border:0;color:var(--neon-magenta);display:flex; }

/* mobile-only search toggle button (injected by app.js); hidden on desktop */
.search-toggle { display: none; }

/* Desktop nav links */
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 15px;
  padding: 6px 2px; position: relative; transition: color var(--t);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background: var(--grad-primary); border-radius: 2px;
}

/* Cart button + neon badge */
.iconbtn {
  position: relative; background: none; border: 0; color: var(--text);
  padding: 8px; border-radius: 10px; transition: background var(--t);
}
.iconbtn:hover { background: var(--surface-2); }
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--grad-primary); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(255,45,160,0.6);
}

/* ==================================================================
   5. MOBILE SLIDE-OVER MENU (reuses category list styling)
   ================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  visibility: hidden; opacity: 0; transition: opacity var(--t), visibility var(--t);
}
.drawer.open { visibility: visible; opacity: 1; }
.drawer__scrim { position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.drawer__panel {
  position: absolute; inset: 0;
  background: var(--bg); padding: 18px 18px 90px;
  overflow-y: auto;
}
.drawer__head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.drawer__close { background:none;border:0;color:var(--text);padding:8px;border-radius:8px; }
.drawer__close:hover { background: var(--surface-2); }

/* ==================================================================
   6. HERO  (Home)
   ================================================================== */
.hero { padding: 40px 0 18px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; font-weight:600; letter-spacing:.6px; text-transform:uppercase;
  color: var(--neon-blue); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -1px;
}
.hero h1 em { font-style: italic; }
.hero p {
  color: var(--text-muted); font-size: 18px; max-width: 440px; margin: 18px 0 26px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero image — fixed aspect box so each carousel slide fills the same frame.
   Images cross-fade when the slide changes (see app.js).                    */
.hero__art {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #16101f, #0b0b12);
}
.hero__art img {
  position:absolute; inset:0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 320ms ease;
}
.hero__art.is-fading img { opacity: 0; }
/* subtle neon vignette over the photo so it ties into the dark theme */
.hero__art::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 90% at 80% 10%, transparent 55%, rgba(11,11,18,0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(11,11,18,0.45) 100%);
}

/* Buttons -------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:600; font-size:15px;
  padding: 13px 24px; border-radius: var(--r-pill); border:1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad-primary); color:#fff; border:0;
  box-shadow: 0 0 18px rgba(255,45,160,0.35);
}
.btn--primary:hover { box-shadow: 0 0 26px rgba(255,45,160,0.6); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--text);
  border:1px solid var(--border-2);
}
.btn--ghost:hover { border-color: var(--neon-blue); box-shadow: 0 0 16px rgba(31,224,255,0.25); }

/* Carousel dots */
.dots { display:flex; gap:9px; margin-top: 26px; }
.dots button {
  width:9px; height:9px; border-radius:50%; border:0; padding:0;
  background: var(--surface-2); transition: all var(--t);
}
.dots button[aria-selected="true"] {
  width: 26px; border-radius: 6px; background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(255,45,160,0.5);
}

/* ==================================================================
   7. SECTION HEADER (title + "View all")
   ================================================================== */
.section { padding: 30px 0; }
.section__head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 20px; }
.section__head h2 { font-size: clamp(22px,3vw,30px); }
.viewall { color: var(--neon-blue); font-weight:600; font-size:14px; transition: text-shadow var(--t); }
.viewall:hover { text-shadow: 0 0 12px rgba(31,224,255,0.6); }

/* ==================================================================
   8. CATEGORY TILE GRID  (Home — "Shop by Category")
   ================================================================== */
.cat-grid {
  display:grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap);
}
.cat-tile {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r-md); padding: 24px 14px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; text-align:center;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.cat-tile:hover {
  transform: translateY(-3px); background: var(--surface-2);
  border-color: var(--border-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
/* big, flat, centered category icons (like the reference) */
.cat-tile .icon { width: 42px; height: 42px; }
.cat-tile > span:not(.link-flag) {
  font-family: var(--font-display); font-weight:600; font-size:14px;
  line-height:1.25; min-height: 2.5em;            /* reserve 2 lines so tiles align */
  display:flex; align-items:center; justify-content:center;
}
/* link-tile flag (categories that navigate out instead of listing products) */
.cat-tile .link-flag {
  font-family: var(--font-body); font-weight:600; font-size:10px; letter-spacing:.5px;
  text-transform:uppercase; color: var(--neon-blue);
  border:1px solid rgba(31,224,255,0.4); border-radius: var(--r-pill);
  padding: 2px 8px; margin-top:-2px;
}

/* ==================================================================
   9. CATEGORIES LIST  (Categories page + mobile drawer)
   ================================================================== */
.page-title { font-size: clamp(28px,4vw,40px); margin: 26px 0 20px; }

.cat-list { display:flex; flex-direction:column; gap:12px; max-width: 720px; margin: 0 auto; }
.cat-row {
  display:flex; align-items:center; gap:16px;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.cat-row:hover {
  background: var(--surface-2); border-color: var(--border-2);
  box-shadow: 0 0 18px rgba(166,75,255,0.12);
}
.cat-row .icon { width: 30px; height: 30px; }
.cat-row__label { font-family: var(--font-display); font-weight:600; font-size:17px; flex:1; }
.cat-row__chev { color: var(--text-dim); }
.cat-row .link-flag { /* external/internal nav badge */
  font-size:10px; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  color: var(--neon-blue); border:1px solid rgba(31,224,255,0.4);
  border-radius: var(--r-pill); padding: 2px 8px;
}
.cat-list__divider { height:1px; background: var(--border); margin: 10px 0; }
.cat-list__subhead { color: var(--text-dim); font-size:13px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; margin: 4px 4px 2px; }

/* ==================================================================
   10. CATEGORY DETAIL  (banner + sub-pills + product cards)
   ================================================================== */
.detail-back {
  display:inline-flex; align-items:center; gap:8px; color: var(--text-muted);
  font-weight:600; font-size:14px; margin: 22px 0 16px; transition: color var(--t);
}
.detail-back:hover { color: var(--text); }

/* Banner — SVG illustration */
.banner {
  position:relative; border-radius: var(--r-lg); overflow:hidden;
  aspect-ratio: 16/6; min-height: 200px; border:1px solid var(--border);
}
.banner img { width:100%; height:100%; object-fit: cover; display:block; }

.detail-head { margin: 22px 0 6px; }
.detail-head h1 { font-size: clamp(28px,4vw,44px); }
.detail-head p { color: var(--text-muted); font-size:17px; margin-top:8px; max-width: 560px; }

/* Sub-category pills row */
.pills { display:flex; gap:14px; flex-wrap:wrap; margin: 24px 0 8px; }
.pill {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  min-width: 84px; padding: 14px 10px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight:600; font-size:12px; text-align:center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.pill:hover { transform: translateY(-2px); border-color: var(--neon-magenta); box-shadow:0 0 16px rgba(255,45,160,0.25); }
.pill .icon { width: 30px; height: 30px; color: var(--neon-magenta); }

/* ==================================================================
   11. PRODUCT CARDS
   ================================================================== */
.products {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: var(--gap);
}
.card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md);
  overflow:hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  display:flex; flex-direction:column;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--border-2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 16px rgba(166,75,255,0.12);
}
.card__media {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg,#20202f,#101019);
  display:grid; place-items:center; position:relative; overflow:hidden;
  border-bottom:1px solid var(--border);
}
.card__media img { width:100%; height:100%; object-fit: cover; display:block;
  transition: transform var(--t); }
.card:hover .card__media img { transform: scale(1.05); }
/* wishlist heart, top-right of the media */
.card__wish {
  position:absolute; top:10px; right:10px; z-index:2;
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border-2);
  background: rgba(11,11,18,0.6); backdrop-filter: blur(4px);
  color: var(--text-muted); display:grid; place-items:center;
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.card__wish:hover { transform: scale(1.1); border-color: var(--neon-magenta); }
.card__wish[aria-pressed="true"] {
  color: var(--neon-magenta); border-color: var(--neon-magenta);
  filter: drop-shadow(0 0 8px rgba(255,45,160,0.7));
}
.card__wish[aria-pressed="true"] svg { fill: currentColor; }
.card__tag {
  position:absolute; top:10px; left:10px; font-size:11px; font-weight:700;
  font-family: var(--font-display); padding:3px 9px; border-radius: var(--r-pill);
  background: rgba(11,11,18,0.7); color: var(--neon-yellow); border:1px solid rgba(255,210,63,0.4);
}
.card__body { padding: 14px; display:flex; flex-direction:column; gap:8px; flex:1; }
/* clamp names to 2 lines so ratings + prices line up across the row */
.card__name { font-family: var(--font-display); font-weight:600; font-size:15px;
  line-height:1.3; min-height: 2.6em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card__rating { display:flex; align-items:center; gap:6px; font-size:13px; color: var(--text-muted); }
.stars { color: var(--neon-yellow); letter-spacing:1px; font-size:13px; }
.card__foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; }
.card__price { font-family: var(--font-display); font-weight:700; font-size:18px; }
.card__add {
  width:38px; height:38px; border-radius:50%; border:0;
  background: var(--grad-primary); color:#fff;
  display:grid; place-items:center;
  box-shadow: 0 0 14px rgba(255,45,160,0.45);
  transition: transform var(--t), box-shadow var(--t);
}
.card__add:hover { transform: scale(1.08); box-shadow: 0 0 20px rgba(255,45,160,0.7); }

/* Empty state (Gifts — coming soon) */
.empty {
  text-align:center; padding: 60px 20px; border:1px dashed var(--border-2);
  border-radius: var(--r-lg); background: var(--surface);
}
.empty .icon { width:48px; height:48px; margin:0 auto 14px; color: var(--neon-purple);
  filter: drop-shadow(0 0 10px rgba(166,75,255,0.5)); }
.empty h3 { font-size:22px; margin-bottom:8px; }
.empty p { color: var(--text-muted); max-width:420px; margin: 0 auto; }

/* Account / sign-in card */
.auth-card {
  max-width: 440px; margin: 0 auto; background: var(--surface);
  border:1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
}
.auth-card h2 { font-size: 24px; }
.auth-sub { color: var(--text-muted); margin: 8px 0 22px; }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.auth-form label { display:flex; flex-direction:column; gap:7px; font-size:14px; font-weight:600; color: var(--text-muted); }
.auth-form input {
  background: var(--bg); border:1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size:15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.auth-form input:focus { outline:none; border-color: var(--neon-magenta); box-shadow: 0 0 0 3px rgba(255,45,160,0.15); }
.auth-msg { color: var(--neon-green); font-size:14px; font-weight:600; }
.auth-alt { text-align:center; color: var(--text-muted); margin-top:18px; font-size:14px; }
.auth-alt a { color: var(--neon-blue); font-weight:600; }

/* ==================================================================
   12. FOOTER (desktop)
   ================================================================== */
.footer {
  border-top:1px solid var(--border); margin-top: 50px; padding: 40px 0 30px;
  color: var(--text-muted); font-size:14px;
}
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size:14px; color: var(--text); margin-bottom:12px; letter-spacing:.4px; }
.footer a { color: var(--text-muted); transition: color var(--t); }
.footer a:hover { color: var(--neon-blue); }
.footer__brand p { max-width: 280px; margin-top:10px; }
.footer__bottom { margin-top: 30px; padding-top: 18px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color: var(--text-dim); }

/* ==================================================================
   13. MOBILE BOTTOM TAB BAR  (shown on phones only)
   ================================================================== */
.tabbar { display:none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed; left:0; right:0; bottom:0; z-index: 50;
    display:flex; justify-content:space-around;
    background: rgba(11,11,18,0.94); backdrop-filter: blur(12px);
    border-top:1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    position:relative; display:flex; flex-direction:column; align-items:center; gap:3px;
    font-size:11px; color: var(--text-dim); padding: 4px 8px; transition: color var(--t);
  }
  .tabbar a .icon { width:22px; height:22px; }
  .tabbar a[aria-current="page"] { color: var(--neon-magenta); }
  .tabbar a[aria-current="page"] .icon { filter: drop-shadow(0 0 8px rgba(255,45,160,0.7)); }
  .tabbar .badge { top:0; right:6px; }
  body { padding-bottom: 74px; } /* clear the fixed bar */
}

/* ==================================================================
   14. RESPONSIVE BREAKPOINTS
   ================================================================== */

/* Tablet */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile — match the phone reference */
@media (max-width: 760px) {
  .hamburger { display: inline-flex; }
  .nav-links { display: none; }
  .search-toggle { display: inline-flex; }      /* magnifier icon in the bar */
  .logo { margin-right: auto; }                 /* push search + cart to the right */
  /* search bar is hidden until the toggle is tapped, then drops full-width */
  .search { order: 5; flex-basis: 100%; max-width: none; display: none; margin-top: 2px; }
  .topbar.search-open .search { display: flex; }
  .topbar__inner { flex-wrap: wrap; row-gap: 10px; min-height: 60px; height: auto; padding: 10px 0; gap: 10px; }

  .hero { padding: 24px 0 6px; }
  .hero h1 { font-size: clamp(36px,9vw,52px); }
  .hero__cta .btn { flex:1; justify-content:center; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-tile { padding: 16px 8px; }

  /* product cards scroll horizontally like the reference's Best Sellers row */
  .products--scroll {
    display:flex; overflow-x:auto; gap:14px; padding-bottom:6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .products--scroll .card { flex: 0 0 64%; scroll-snap-align: start; }

  .pills { gap:10px; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }

  .footer { display:none; } /* mobile uses the tab bar instead */
}

@media (max-width: 380px) {
  .cat-grid { gap: 10px; }
  .cat-tile span { font-size: 12.5px; }
}

/* ==================================================================
   15. CART DRAWER (slide-in from right) — fully working
   ================================================================== */
.cart {
  position: fixed; inset: 0; z-index: 70;
  visibility: hidden; opacity: 0; transition: opacity var(--t), visibility var(--t);
}
.cart.open { visibility: visible; opacity: 1; }
.cart__scrim { position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.cart__panel {
  position:absolute; top:0; right:0; bottom:0; width: min(420px, 92vw);
  background: var(--bg); border-left:1px solid var(--border-2);
  display:flex; flex-direction:column;
  transform: translateX(100%); transition: transform var(--t);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart.open .cart__panel { transform: translateX(0); }
.cart__head { display:flex; align-items:center; justify-content:space-between;
  padding: 18px 20px; border-bottom:1px solid var(--border); }
.cart__head h2 { font-size: 20px; }
.cart__close { background:none;border:0;color:var(--text);padding:8px;border-radius:8px; }
.cart__close:hover { background: var(--surface-2); }
.cart__items { flex:1; overflow-y:auto; padding: 12px 16px; display:flex; flex-direction:column; gap:12px; }
.cart__empty { text-align:center; color: var(--text-muted); padding: 50px 20px; }
.cart-item { display:flex; gap:12px; align-items:center;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md); padding:10px; }
.cart-item__img { width:56px; height:56px; border-radius:10px; overflow:hidden; flex:none; background:#101019; }
.cart-item__img img { width:100%; height:100%; object-fit:cover; }
.cart-item__info { flex:1; min-width:0; }
.cart-item__name { font-family: var(--font-display); font-weight:600; font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item__price { color: var(--neon-blue); font-weight:600; font-size:13px; }
.qty { display:flex; align-items:center; gap:10px; margin-top:6px; }
.qty button { width:24px; height:24px; border-radius:7px; border:1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); display:grid; place-items:center; font-size:15px; line-height:1; }
.qty button:hover { border-color: var(--neon-magenta); }
.qty span { font-weight:600; min-width:18px; text-align:center; }
.cart-item__remove { background:none;border:0;color:var(--text-dim);padding:6px;border-radius:7px; }
.cart-item__remove:hover { color: var(--neon-magenta); background: var(--surface-2); }
.cart__foot { border-top:1px solid var(--border); padding: 16px 20px; }
.cart__total { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.cart__total span:first-child { color: var(--text-muted); }
.cart__total strong { font-family: var(--font-display); font-size:24px; }
.cart__foot .btn { width:100%; justify-content:center; }

/* ==================================================================
   16. TOAST (add-to-cart confirmation)
   ================================================================== */
.toast-wrap { position: fixed; left:50%; bottom: 26px; transform: translateX(-50%);
  z-index: 90; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast {
  background: var(--surface-2); border:1px solid var(--neon-magenta);
  color: var(--text); padding: 12px 18px; border-radius: var(--r-pill);
  font-weight:600; font-size:14px; display:flex; align-items:center; gap:10px;
  box-shadow: 0 0 22px rgba(255,45,160,0.35);
  animation: toastIn .25s ease, toastOut .3s ease 2.2s forwards;
}
.toast .icon { color: var(--neon-green); width:18px; height:18px; }
@keyframes toastIn  { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:none;} }
@keyframes toastOut { to { opacity:0; transform: translateY(14px);} }
@media (max-width:760px){ .toast-wrap{ bottom: 88px; } }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
