/* ============================================================
   Jannat Fashion — "Royal Neon" theme
   Palette taken from the logo: navy · gold · crimson
   light ash canvas · 3D frosted glass · neon glow · floating cards
   ============================================================ */
:root {
  --navy: #0b2447;
  --navy-2: #16406e;
  --navy-3: #1f5a94;
  --gold: #e0a92b;
  --gold-l: #f6d888;
  --gold-d: #a8760a;
  --crimson: #c62828;
  --crimson-l: #e8503f;
  --teal: #0e8f7d;
  --violet: #7a5cff;
  --sky: #2ea8e0;
  --pink: #ef5fa7;

  --neon-1: #ffd166;
  --neon-2: #2ee6c0;
  --neon-3: #ff6b6b;
  --neon-4: #9b8bff;
  --neon-5: #4dd4ff;
  --neon-6: #ff9ad5;
  --neon-7: #7dff9b;

  --ink: #0a1a2b;
  --ink-2: #2b4055;
  --muted: #63788c;

  /* light ash canvas */
  --ash: #e9ecf2;
  --gborder: rgba(255, 255, 255, .72);
  --glass: rgba(255, 255, 255, .46);
  --glass-2: rgba(255, 255, 255, .68);
  --blur: blur(20px) saturate(180%);

  --r: 22px;
  --r-sm: 14px;
  --sh-1: 0 6px 22px rgba(11, 36, 71, .10);
  --sh-2: 0 16px 44px rgba(11, 36, 71, .16);
  --sh-3: 0 28px 80px rgba(11, 36, 71, .24);
  --font: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', 'SolaimanLipi', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); line-height: 1.6; min-height: 100vh;
  -webkit-font-smoothing: antialiased; background: var(--ash); overflow-x: hidden;
}
/* light-ash canvas + navy/gold/crimson mesh */
body::before {
  content: ''; position: fixed; inset: -18%; z-index: -2;
  background:
    radial-gradient(46% 40% at 10% 4%, rgba(31, 90, 148, .40), transparent 62%),
    radial-gradient(40% 36% at 90% 2%, rgba(224, 169, 43, .48), transparent 62%),
    radial-gradient(46% 42% at 94% 58%, rgba(198, 40, 40, .30), transparent 62%),
    radial-gradient(42% 38% at 4% 74%, rgba(14, 143, 125, .34), transparent 62%),
    radial-gradient(56% 50% at 48% 106%, rgba(22, 64, 110, .40), transparent 66%),
    radial-gradient(38% 34% at 62% 34%, rgba(122, 92, 255, .22), transparent 64%),
    linear-gradient(165deg, #eef1f6 0%, #e8ecf4 40%, #f0eef1 70%, #eaedf3 100%);
  filter: saturate(118%);
  animation: meshFloat 30s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(11, 36, 71, .07) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .45;
}
@keyframes meshFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.4%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2.2%, 2.2%, 0) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; font-weight: 700; }
.container { width: min(1300px, 93%); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 3D embossed headings ---------- */
.t3d, .section-head h2, .pd-info h1, .admin-top h1, .modal header h3 {
  background: linear-gradient(180deg, #2a5c8f 0%, #0b2447 48%, #061428 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .95)) drop-shadow(0 4px 7px rgba(8, 26, 47, .32));
  letter-spacing: -.02em;
}
.t3d.gold {
  background: linear-gradient(180deg, #fff3cf 0%, #e0a92b 46%, #96690a 100%);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 4px 8px rgba(120, 84, 6, .42));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: 2.8px;
  text-transform: uppercase; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--navy-2), var(--crimson));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9));
}
.eyebrow::before {
  content: ''; width: 24px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  box-shadow: 0 0 10px rgba(224, 169, 43, .85);
}

/* ---------- glass primitives ---------- */
.glass, .panel, .card, .summary, .toolbar, .kpi {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--gborder); border-radius: var(--r);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* ---------- 3D buttons ---------- */
.btn {
  --btn-bg1: var(--navy-2); --btn-bg2: var(--navy); --btn-sh: rgba(11, 36, 71, .45);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, var(--btn-bg1), var(--btn-bg2));
  color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; font-size: .95rem;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .16s;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .22), 0 12px 24px var(--btn-sh), inset 0 1px 0 rgba(255, 255, 255, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, .2), 0 20px 36px var(--btn-sh), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .22), 0 6px 14px var(--btn-sh), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.accent { --btn-bg1: #f7d97a; --btn-bg2: var(--gold-d); --btn-sh: rgba(168, 118, 10, .45); color: #3a2a03; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.btn.crimson { --btn-bg1: #e8503f; --btn-bg2: #a11f1f; --btn-sh: rgba(161, 31, 31, .45); }
.btn.teal { --btn-bg1: #2ee6c0; --btn-bg2: #0a6d5e; --btn-sh: rgba(10, 109, 94, .45); }
.btn.violet { --btn-bg1: #9b8bff; --btn-bg2: #4a34d6; --btn-sh: rgba(74, 52, 214, .45); }
.btn.ghost {
  --btn-sh: rgba(11, 36, 71, .13);
  background: var(--glass-2); color: var(--ink); border-color: var(--gborder); backdrop-filter: var(--blur); text-shadow: none;
  box-shadow: 0 5px 0 rgba(11, 36, 71, .09), 0 10px 22px rgba(11, 36, 71, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.btn.ghost:hover { color: var(--navy); }
.btn.dark { --btn-bg1: #2b4a68; --btn-bg2: #0b2447; }
.btn.danger { --btn-bg1: #ff8a80; --btn-bg2: #a11f1f; --btn-sh: rgba(161, 31, 31, .45); }
.btn.sm { padding: 8px 15px; font-size: .85rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .2), 0 8px 16px var(--btn-sh), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.btn.link { background: none; border: 0; box-shadow: none; color: var(--crimson); padding: 4px 6px; text-shadow: none; }
.btn.link:hover { transform: none; text-decoration: underline; }

/* ---------- inputs ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .87rem; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 15px; border: 1px solid var(--gborder); border-radius: var(--r-sm);
  background: var(--glass-2); backdrop-filter: var(--blur); color: var(--ink); transition: .16s;
  box-shadow: inset 0 2px 6px rgba(11, 36, 71, .07);
}
.input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(31, 90, 148, .18), inset 0 2px 6px rgba(11, 36, 71, .06); }
textarea.input { min-height: 92px; resize: vertical; }

/* ---------- announcement + header ---------- */
.announce {
  background: linear-gradient(90deg, #0b2447, #1f5a94, #e0a92b, #c62828, #7a5cff, #0b2447);
  background-size: 300% 100%; animation: gradSlide 16s linear infinite;
  color: #fff; font-size: .83rem; text-align: center; padding: 9px 12px; letter-spacing: .3px; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
@keyframes gradSlide { to { background-position: 300% 0; } }

.site-header {
  position: sticky; top: 0; z-index: 80; background: rgba(240, 243, 248, .66);
  backdrop-filter: blur(24px) saturate(190%); -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 30px rgba(11, 36, 71, .09);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img.wordmark { height: 52px; width: auto; filter: drop-shadow(0 4px 10px rgba(11, 36, 71, .25)); }

.main-nav { display: flex; gap: 6px; margin-left: 10px; }
.main-nav a {
  position: relative; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: .92rem;
  color: var(--ink-2); transition: .2s cubic-bezier(.2, .8, .3, 1);
  background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 6px rgba(11, 36, 71, .06);
}
.main-nav a:hover, .main-nav a.active {
  color: #fff; transform: translateY(-3px);
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 6px 0 rgba(6, 20, 40, .5), 0 14px 26px rgba(11, 36, 71, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.main-nav a.active::after {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: -9px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold), transparent); filter: blur(6px); opacity: .95;
}
.header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 15px; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .7);
  display: grid; place-items: center; transition: .2s cubic-bezier(.2, .8, .3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 8px rgba(11, 36, 71, .08);
}
.icon-btn:hover { transform: translateY(-3px); color: var(--navy); box-shadow: 0 6px 0 rgba(11, 36, 71, .1), 0 14px 24px rgba(11, 36, 71, .16); }
.icon-btn .count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(180deg, var(--crimson-l), var(--crimson)); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(198, 40, 40, .55);
}
.search-wrap { position: relative; flex: 1; max-width: 320px; }
.search-wrap input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .62); backdrop-filter: var(--blur); box-shadow: inset 0 2px 6px rgba(11, 36, 71, .08);
}
.search-wrap input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(31, 90, 148, .16); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hamburger { display: none; }

/* mobile menu drawer */
.mobile-menu {
  display: none; background: rgba(245, 248, 252, .92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gborder); padding: 12px 0 16px;
}
.mobile-menu.on { display: block; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 700; color: var(--ink-2); }
.mobile-menu a:hover { background: rgba(255, 255, 255, .8); color: var(--navy); }

/* ---------- category chips with neon glow ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; padding: 10px 18px; border-radius: 16px; cursor: pointer; font-weight: 700; font-size: .87rem;
  color: var(--ink-2); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: var(--blur); transition: .22s cubic-bezier(.2, .8, .3, 1);
  display: inline-flex; align-items: center; gap: 7px; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 10px rgba(11, 36, 71, .08);
}
.chip::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -9px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--neon), var(--neon) 0%, transparent 72%);
  filter: blur(8px); opacity: 0; transition: .25s; pointer-events: none; z-index: -1;
}
.chip:hover {
  transform: translateY(-5px) scale(1.06); color: var(--ink);
  border-color: var(--neon); background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 0 rgba(11, 36, 71, .07), 0 18px 32px rgba(11, 36, 71, .18),
    0 0 0 1px var(--neon) inset, 0 0 18px var(--neon);
}
.chip:hover::after { opacity: 1; }
.chip.on {
  color: #fff; border-color: rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  box-shadow: 0 6px 0 rgba(6, 20, 40, .4), 0 14px 26px rgba(11, 36, 71, .34);
}
.chip.on::after { opacity: .95; }
.chip:nth-child(7n+1) { --neon: var(--neon-1); }
.chip:nth-child(7n+2) { --neon: var(--neon-2); }
.chip:nth-child(7n+3) { --neon: var(--neon-3); }
.chip:nth-child(7n+4) { --neon: var(--neon-4); }
.chip:nth-child(7n+5) { --neon: var(--neon-5); }
.chip:nth-child(7n+6) { --neon: var(--neon-6); }
.chip:nth-child(7n+7) { --neon: var(--neon-7); }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: 30px; overflow: hidden; margin: 26px 0; min-height: 500px;
  background: #061428; border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 20, 40, .93) 0%, rgba(12, 45, 78, .62) 44%, rgba(12, 45, 78, .1) 100%);
}
.hero-copy { position: absolute; z-index: 3; left: 5.5%; top: 50%; transform: translateY(-50%); max-width: 600px; color: #fff; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(224, 169, 43, .6);
  backdrop-filter: blur(14px); font-size: .74rem; letter-spacing: 2.4px; text-transform: uppercase;
  font-weight: 800; color: #fff; margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px rgba(0, 0, 0, .25), 0 0 22px rgba(224, 169, 43, .35);
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem); color: #fff; margin-bottom: .35em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .18), 0 6px 22px rgba(0, 0, 0, .55), 0 18px 50px rgba(0, 0, 0, .4);
}
.hero-copy p { font-size: 1.08rem; color: #e6eef5; margin: 6px 0 26px; max-width: 480px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 4; bottom: 22px; left: 5.5%; display: flex; gap: 9px; }
.hero-dots button { width: 36px; height: 6px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .38); cursor: pointer; transition: .3s; }
.hero-dots button.on { background: linear-gradient(90deg, var(--gold), var(--crimson)); width: 52px; box-shadow: 0 0 14px rgba(224, 169, 43, .85); }

/* ---------- sections ---------- */
.section { padding: 38px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.45rem, 2.7vw, 2.05rem); margin: 0; }
.section-head p { margin: 3px 0 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1.04;
  transition: .3s cubic-bezier(.2, .8, .3, 1); border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.cat-card.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.cat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--sh-3), 0 0 40px rgba(224, 169, 43, .45); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 40, 0) 40%, rgba(6, 20, 40, .9)); }
.cat-card .cc { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.cat-card .cc b { display: block; font-size: 1.08rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.cat-card.big .cc b { font-size: 1.6rem; }
.cat-card .cc span { font-size: .78rem; color: #d5e0ea; }
.cat-card .emoji {
  position: absolute; z-index: 2; top: 13px; left: 13px; border-radius: 13px; padding: 5px 11px; font-size: 1rem;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* ---------- product cards: 3D float + neon underline ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; padding-bottom: 14px; }
.pcard {
  position: relative; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--gborder); border-radius: var(--r); overflow: visible;
  display: flex; flex-direction: column; transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
  box-shadow: 0 10px 26px rgba(11, 36, 71, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) { .pcard { animation: none; } }
/* soft neon line glowing under every product */
.pcard::after {
  content: ''; position: absolute; left: 7%; right: 7%; bottom: -16px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--neon), var(--neon) 0%, transparent 72%);
  filter: blur(10px); opacity: .55; transition: opacity .3s, filter .3s; pointer-events: none; z-index: -1;
}
.pcard:hover {
  animation: none; transform: translateY(-14px) scale(1.035);
  box-shadow: 0 26px 56px rgba(11, 36, 71, .24), 0 0 0 1px var(--neon) inset, 0 0 30px -4px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 1);
  z-index: 5;
}
.pcard:hover::after { opacity: 1; filter: blur(14px); }
.pcard:nth-child(7n+1) { --neon: var(--neon-1); }
.pcard:nth-child(7n+2) { --neon: var(--neon-2); }
.pcard:nth-child(7n+3) { --neon: var(--neon-3); }
.pcard:nth-child(7n+4) { --neon: var(--neon-4); }
.pcard:nth-child(7n+5) { --neon: var(--neon-5); }
.pcard:nth-child(7n+6) { --neon: var(--neon-6); }
.pcard:nth-child(7n+7) { --neon: var(--neon-7); }
.pcard .thumb { position: relative; aspect-ratio: 1/1.14; overflow: hidden; background: rgba(255, 255, 255, .35); border-radius: var(--r) var(--r) 0 0; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.pcard:hover .thumb img { transform: scale(1.08); }
.pcard .badges { position: absolute; top: 11px; left: 11px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  font-size: .68rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; color: #fff; letter-spacing: .3px;
  background: linear-gradient(180deg, var(--crimson-l), var(--crimson));
  box-shadow: 0 5px 14px rgba(198, 40, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.badge.new { background: linear-gradient(180deg, #2ee6c0, #0a6d5e); box-shadow: 0 5px 14px rgba(10, 109, 94, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.badge.gold { background: linear-gradient(180deg, var(--gold-l), var(--gold-d)); color: #3a2a03; box-shadow: 0 5px 14px rgba(168, 118, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.badge.low { background: linear-gradient(180deg, #9aa7b5, #5d6b7a); box-shadow: 0 5px 14px rgba(93, 107, 122, .4); }
.pcard .quick { position: absolute; right: 11px; bottom: 11px; z-index: 3; opacity: 0; transform: translateY(10px); transition: .24s; }
.pcard:hover .quick { opacity: 1; transform: none; }
.pcard .body { padding: 14px 16px 17px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .cat { font-size: .68rem; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 800; color: var(--navy-2); }
.pcard h3 { font-size: .96rem; margin: 0; font-weight: 600; line-height: 1.36; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; color: var(--navy); font-size: 1.14rem; }
.price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.stock-tag { font-size: .72rem; color: var(--muted); }
.stock-tag.out { color: var(--crimson); font-weight: 700; }

/* ---------- carousel ---------- */
.carousel { display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carousel > * { flex: 0 0 236px; scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 9px; }
.carousel::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--navy-2), var(--gold)); border-radius: 9px; }

/* ---------- promo banners ---------- */
.promo-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.promo {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: var(--sh-2); transition: .3s cubic-bezier(.2, .8, .3, 1);
}
.promo:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(6, 20, 40, .9), rgba(6, 20, 40, .2)); }
.promo .pc { position: relative; z-index: 2; padding: 28px; color: #fff; }
.promo h3 { color: #fff; font-size: 1.55rem; margin-bottom: 6px; text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }
.promo p { color: #dde6ee; margin: 0 0 16px; font-size: .93rem; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust .t {
  display: flex; gap: 14px; align-items: center; padding: 19px;
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--gborder); border-radius: var(--r);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .9); transition: .24s cubic-bezier(.2, .8, .3, 1);
}
.trust .t:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.trust .t .ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; flex: 0 0 auto;
  background: linear-gradient(150deg, rgba(31, 90, 148, .25), rgba(224, 169, 43, .32));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px rgba(11, 36, 71, .12);
}
.trust .t b { display: block; font-size: .95rem; }
.trust .t span { font-size: .8rem; color: var(--muted); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 15px; margin-bottom: 24px; }
.crumb { font-size: .85rem; color: var(--ink-2); padding: 20px 0 0; }
.crumb a:hover { color: var(--navy); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; padding: 26px 0 10px; }
.gallery .main {
  border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1.12; background: rgba(255, 255, 255, .5);
  border: 1px solid var(--gborder); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 76px; height: 86px; object-fit: cover; border-radius: 13px; border: 2px solid transparent; cursor: pointer; opacity: .75; }
.thumbs img.on { border-color: var(--gold); opacity: 1; }
.pd-info h1 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.pd-price .price { font-size: 2.05rem; }
.opt-label { font-weight: 800; font-size: .88rem; margin: 18px 0 9px; color: var(--ink-2); }
.size-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.size-opts button {
  min-width: 50px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--gborder);
  background: rgba(255, 255, 255, .68); cursor: pointer; font-weight: 700; transition: .18s;
  box-shadow: 0 3px 0 rgba(11, 36, 71, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.size-opts button:hover { transform: translateY(-2px); }
.size-opts button.on { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; border-color: transparent; box-shadow: 0 4px 0 rgba(6, 20, 40, .4); }
.color-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.color-opts button { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--gborder); background: rgba(255, 255, 255, .68); cursor: pointer; font-size: .85rem; font-weight: 600; }
.color-opts button.on { background: linear-gradient(180deg, var(--gold-l), var(--gold-d)); color: #3a2a03; border-color: transparent; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gborder); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .7); box-shadow: inset 0 2px 6px rgba(11, 36, 71, .07); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; color: var(--ink); }
.qty button:hover { background: rgba(31, 90, 148, .12); color: var(--navy); }
.qty span { width: 48px; text-align: center; font-weight: 700; }
.pd-actions { display: flex; gap: 13px; margin-top: 22px; flex-wrap: wrap; }
.meta-list {
  margin-top: 22px; padding: 19px 21px; font-size: .89rem; color: var(--ink-2);
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--gborder); border-radius: var(--r);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.meta-list div { display: flex; gap: 12px; padding: 6px 0; }
.meta-list b { min-width: 112px; color: var(--muted); font-weight: 700; }

/* ---------- cart / checkout ---------- */
.cart-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; padding: 20px 0 60px; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px; margin-bottom: 14px; align-items: center;
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--gborder); border-radius: var(--r);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.cart-item img { width: 88px; height: 100px; object-fit: cover; border-radius: 14px; }
.summary { padding: 23px; position: sticky; top: 104px; }
.summary h3 { margin-bottom: 14px; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .93rem; }
.sum-line.total { border-top: 1px solid var(--gborder); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 3.2rem; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.panel { padding: 24px; }
.pay-opts { display: grid; gap: 11px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--gborder);
  border-radius: 15px; cursor: pointer; background: rgba(255, 255, 255, .55); backdrop-filter: var(--blur); transition: .18s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pay-opt:hover { transform: translateY(-2px); }
.pay-opt.on { border-color: var(--gold); background: rgba(224, 169, 43, .13); box-shadow: 0 0 0 3px rgba(224, 169, 43, .18); }
.pay-opt b { font-size: .95rem; }
.bkash-box { text-align: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--gborder); box-shadow: var(--sh-1); }
.bkash-box img { width: min(260px, 80%); margin: 10px auto; border-radius: 12px; }

/* ---------- toast / modal ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: 15px; font-size: .9rem; color: #fff; max-width: 360px;
  background: rgba(10, 26, 43, .88); backdrop-filter: blur(16px); box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, .22); animation: slideIn .28s ease;
}
.toast.ok { background: linear-gradient(180deg, rgba(14, 143, 125, .95), rgba(10, 109, 94, .95)); }
.toast.err { background: linear-gradient(180deg, rgba(232, 80, 63, .95), rgba(161, 31, 31, .95)); }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgba(6, 20, 40, .5); backdrop-filter: blur(7px); z-index: 300; display: grid; place-items: center; padding: 18px; }
.modal {
  background: rgba(246, 248, 252, .9); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 26px; max-width: 680px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--sh-3);
}
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--gborder); position: sticky; top: 0; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); z-index: 2; }
.modal .body { padding: 24px; }
.modal footer { padding: 16px 24px; border-top: 1px solid var(--gborder); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); }

/* ---------- shop location map ---------- */
.shop-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--gborder); margin-bottom: 12px; }
.shop-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 50px; padding: 54px 0 24px; color: #d3dee8; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(6, 20, 40, .97), rgba(12, 40, 70, .95) 48%, rgba(6, 20, 40, .98));
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background:
    radial-gradient(40% 60% at 8% 0%, rgba(31, 90, 148, .38), transparent 62%),
    radial-gradient(36% 50% at 92% 8%, rgba(224, 169, 43, .28), transparent 62%),
    radial-gradient(40% 60% at 68% 100%, rgba(198, 40, 40, .22), transparent 62%);
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; position: relative; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 15px; }
.site-footer a { color: #b9cbd9; display: block; padding: 5px 0; font-size: .9rem; transition: .18s; }
.site-footer a:hover { color: var(--gold); transform: translateX(4px); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 36px; padding-top: 19px; text-align: center; font-size: .84rem; color: #93a7b6; position: relative; }
.foot-bottom .credit { margin-top: 8px; font-size: .87rem; color: #a8bcc9; letter-spacing: .2px; }
.foot-bottom .credit a {
  display: inline; color: var(--gold); font-weight: 800; padding: 0 2px;
  border-bottom: 1px solid rgba(224, 169, 43, .45); transition: .18s;
}
.foot-bottom .credit a:hover {
  color: #fff; transform: none; border-bottom-color: #fff;
  text-shadow: 0 0 14px rgba(224, 169, 43, .95);
}
.foot-logo { height: 60px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.side {
  padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; color: #cfdae4;
  background: linear-gradient(180deg, rgba(6, 20, 40, .96), rgba(12, 40, 70, .94));
  backdrop-filter: blur(22px); border-right: 1px solid rgba(255, 255, 255, .12);
}
.side .brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; padding: 6px 8px 18px; }
.side .brand img { height: 42px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); }
.side .brand small { display: block; font-size: .6rem; letter-spacing: 2px; color: #8fa5b6; }
.side nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; color: #b9cbd9;
  font-size: .92rem; font-weight: 600; margin-bottom: 3px; transition: .18s; border: 1px solid transparent;
}
.side nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: translateX(3px); }
.side nav a.active {
  background: linear-gradient(180deg, #1f5a94, #0b2447); color: #fff; border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 6px 0 rgba(4, 14, 28, .5), 0 12px 26px rgba(31, 90, 148, .4), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.side .grp { font-size: .68rem; letter-spacing: 1.9px; text-transform: uppercase; color: #7a8f9e; padding: 16px 13px 6px; }
.admin-main { padding: 24px 28px 70px; }
.admin-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.55rem; margin: 0; }
.admin-top .spacer { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 17px; margin-bottom: 24px; }
.kpi { padding: 21px; transition: .24s cubic-bezier(.2, .8, .3, 1); }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.kpi .lab { font-size: .82rem; color: var(--muted); font-weight: 700; }
.kpi .val { font-size: 1.8rem; font-weight: 800; margin-top: 4px; color: var(--navy); }
.kpi .sub { font-size: .78rem; color: var(--muted); }
.kpi.primary {
  background: linear-gradient(160deg, #1f5a94, #0b2447); color: #fff; border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 12px 34px rgba(11, 36, 71, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.kpi.primary .lab, .kpi.primary .sub { color: rgba(255, 255, 255, .85); }
.kpi.primary .val { color: #fff; }
.card { padding: 22px; margin-bottom: 20px; }
.card h3 { font-size: 1.06rem; margin-bottom: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--gborder); font-weight: 800; }
table.tbl td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .55); vertical-align: middle; }
table.tbl tr:hover td { background: rgba(255, 255, 255, .5); }
table.tbl img.thumb-sm { width: 46px; height: 52px; object-fit: cover; border-radius: 11px; }
.status { font-size: .74rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; display: inline-block; }
.st-pending { background: #fdf0d5; color: #8a6100; }
.st-processing { background: #e2eefc; color: #1c5b9c; }
.st-shipped { background: #e6e0fb; color: #4b32a8; }
.st-delivered { background: #dff3e8; color: #14724a; }
.st-cancelled { background: #fbe2df; color: #a3261a; }
.st-returned { background: #eceff1; color: #556; }
.st-due { background: #ffe9c9; color: #8a4b00; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 165px; padding-top: 10px; }
.bars .bar { flex: 1; border-radius: 9px 9px 0 0; position: relative; min-height: 4px; background: linear-gradient(180deg, #1f5a94, #0b2447); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.bars .bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--muted); }
.dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.mini-bars { display: grid; gap: 9px; }
.mini-bars .mb { display: grid; grid-template-columns: 112px 1fr 56px; gap: 10px; align-items: center; font-size: .85rem; }
.mini-bars .track { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .6); overflow: hidden; box-shadow: inset 0 1px 3px rgba(11, 36, 71, .12); }
.mini-bars .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1f5a94, #e0a92b); }

/* POS */
.pos-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.pos-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 13px; }
.pos-prod button {
  text-align: left; border: 1px solid var(--gborder); border-radius: 15px; background: rgba(255, 255, 255, .6);
  backdrop-filter: var(--blur); padding: 9px; cursor: pointer; transition: .2s cubic-bezier(.2, .8, .3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 10px rgba(11, 36, 71, .08);
}
.pos-prod button:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 8px 0 rgba(11, 36, 71, .08), 0 16px 28px rgba(11, 36, 71, .16), 0 0 16px rgba(224, 169, 43, .35); }
.pos-prod img { width: 100%; height: 100px; object-fit: cover; border-radius: 11px; margin-bottom: 7px; }
.pos-prod b { font-size: .82rem; display: block; line-height: 1.3; }
.pos-prod span { font-size: .82rem; color: var(--navy); font-weight: 800; }
.pos-line { border-bottom: 1px solid var(--gborder); padding: 9px 0; }
.pos-line:last-child { border-bottom: 0; }
.receipt { font-family: 'Courier New', monospace; font-size: .82rem; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .55); border: 1px solid var(--gborder); border-radius: 999px; padding: 4px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 15px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.seg button.on { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: 0 3px 0 rgba(6, 20, 40, .35); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .promo-2 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .pd, .cart-wrap, .pos-grid, .dash-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side .grp { display: none; }
  .main-nav { display: none; }
  .hamburger { display: grid; }
  .summary { position: static; }
  .cart-wrap { padding-bottom: 30px; }
}
@media (max-width: 640px) {
  .container { width: 94%; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card.big { grid-column: span 2; grid-row: span 1; aspect-ratio: 1/1; }
  .cat-card .cc b { font-size: .95rem; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard { animation: none; }
  .pcard:hover { transform: translateY(-6px) scale(1.02); }
  .pcard::after { opacity: .45; bottom: -12px; height: 14px; }
  .pcard h3 { font-size: .85rem; min-height: 2.7em; }
  .pcard .body { padding: 10px 11px 13px; }
  .pcard .cat { font-size: .62rem; }
  .price { font-size: 1rem; }
  /* always show the add button on touch devices */
  .pcard .quick { opacity: 1; transform: none; }
  .pcard .quick .btn { padding: 7px 11px; font-size: .78rem; }
  .hero { min-height: 400px; border-radius: 22px; }
  .hero-copy { left: 6%; right: 6%; max-width: none; }
  .hero-copy h1 { font-size: 1.7rem; }
  .hero-copy p { font-size: .95rem; margin-bottom: 18px; }
  .hero-actions .btn { padding: 11px 18px; font-size: .88rem; }
  .trust { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 66px 1fr; }
  .cart-item img { width: 66px; height: 76px; }
  .carousel > * { flex: 0 0 172px; }
  .logo img.wordmark { height: 40px; }
  .section { padding: 26px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pd-actions .btn { flex: 1; }
  .toolbar { padding: 12px; }
  .toolbar .input { max-width: none !important; }
  .admin-main { padding: 16px 14px 60px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 1.35rem; }
  .pos-grid { grid-template-columns: 1fr; }
  .pos-prod { grid-template-columns: repeat(2, 1fr); }
  .modal { border-radius: 20px; }
  .modal .body { padding: 16px; }
  .bars { height: 120px; }
  .mini-bars .mb { grid-template-columns: 92px 1fr 48px; font-size: .78rem; }
}
@media (max-width: 420px) {
  .prod-grid { gap: 10px; }
  .pcard h3 { font-size: .8rem; }
  .hero { min-height: 360px; }
}

/* ============================================================
   3D v2 — side drawer, tilt cards, depth & reveal
   ============================================================ */
body { perspective: 1600px; }
body.no-scroll { overflow: hidden; }

/* ---- side drawer ---- */
.side-drawer {
  position: fixed; top: 0; left: 0; height: 100vh; width: min(390px, 88vw); z-index: 200;
  padding: 22px 20px 40px; overflow-y: auto; color: #e6eef5;
  background: linear-gradient(170deg, rgba(8, 30, 60, .97), rgba(22, 64, 110, .95) 60%, rgba(10, 40, 70, .97));
  border-right: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 24px 0 70px rgba(4, 16, 34, .45), inset -1px 0 0 rgba(224, 169, 43, .35);
  transform: translateX(-105%) rotateY(-14deg); transform-origin: left center;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.side-drawer.on { transform: none; }
.drawer-back {
  position: fixed; inset: 0; z-index: 199; background: rgba(6, 20, 40, .48);
  backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-back.on { opacity: 1; pointer-events: auto; }
.dr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dr-head .wordmark { height: 48px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.side-drawer .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.dr-nav { display: grid; gap: 4px; margin-bottom: 18px; }
.dr-nav a, .dr-sec a {
  display: block; padding: 11px 14px; border-radius: 14px; color: #e6eef5; font-weight: 600;
  transition: transform .2s, background .2s, color .2s;
}
.dr-nav a:hover, .dr-sec a:hover { background: rgba(255, 255, 255, .1); color: var(--gold-l); transform: translateX(8px) translateZ(14px); }
.dr-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.dr-sec h4 { color: var(--gold-l); font-size: .82rem; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 8px; }
.dr-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.dr-tile {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .15);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  transform-style: preserve-3d;
}
.dr-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dr-tile:hover img { transform: scale(1.1); }
.dr-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 9px 7px; font-size: .8rem; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(4, 14, 30, .85));
}
.dr-note { color: #a9bcc3; font-size: .9rem; grid-column: 1 / -1; }
.dr-pin { width: 100%; justify-content: center; margin-top: 4px; }
.dr-pin:hover { transform: translateY(-3px); }

/* ---- 3D tilt cards ---- */
.pcard, .cat-card, .promo {
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s;
  will-change: transform;
}
.pcard.tilt:hover, .cat-card.tilt:hover { box-shadow: 0 34px 70px rgba(11, 36, 71, .30), 0 0 0 1px rgba(224, 169, 43, .55), 0 0 36px rgba(224, 169, 43, .25); }
.pcard .thumb img, .cat-card img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .thumb img, .cat-card:hover img { transform: scale(1.08) translateZ(24px); }
.pcard .thumb, .cat-card { transform-style: preserve-3d; }
.promo:hover img { transform: scale(1.07); }
.promo img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }

/* ---- scroll reveal (3D rise) ---- */
.rv { opacity: 0; transform: translateY(42px) rotateX(10deg); transform-origin: 50% 100%; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .side-drawer, .drawer-back { transition: none; }
}

/* ---- header depth ---- */
.site-header { box-shadow: 0 14px 40px rgba(11, 36, 71, .14); }

/* ---- 3D hero stage ---- */
.hero { perspective: 1600px; perspective-origin: 60% 40%; transform-style: preserve-3d; --rx: 0deg; --ry: 0deg; }
.hero::before {
  content: ''; position: absolute; z-index: 2; pointer-events: none; inset: 0;
  background: radial-gradient(38% 45% at 82% 18%, rgba(224, 169, 43, .30), transparent 70%),
              radial-gradient(30% 40% at 90% 88%, rgba(46, 230, 192, .20), transparent 70%);
  mix-blend-mode: screen; animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { opacity: .55; transform: translate3d(0, 0, 0); } to { opacity: 1; transform: translate3d(-3%, 2%, 40px); } }
.hero-slide {
  transform: rotateY(16deg) translateZ(-120px) scale(.94); transform-origin: 20% 50%;
  transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
  transform-style: preserve-3d;
}
.hero-slide.on { transform: none; }
.hero-slide img {
  transform: perspective(1400px) rotateX(var(--ry)) rotateY(var(--rx)) scale(1.12);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.hero-slide.on .hero-copy > * { animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-slide.on .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-slide.on .hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-slide.on .hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-slide.on .hero-copy > *:nth-child(4) { animation-delay: .35s; }
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 28px, -90px) rotateX(24deg); }
  to { opacity: 1; transform: none; }
}
.hero-copy { transform: translateY(-50%) translateZ(60px); }
.hero-copy h1 { transform: translateZ(30px); }
.hero-actions .btn { transform-style: preserve-3d; }
.hero-dots button { transition: .3s, transform .3s; }
.hero-dots button:hover { transform: translateZ(10px) scaleY(1.6); }
@media (hover: none) { .hero-slide img { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-slide, .hero-slide img { transition: opacity .5s; transform: none; }
  .hero-slide.on .hero-copy > * { animation: none; }
}

/* ---- 3D product page ---- */
.pd { perspective: 1600px; }
.gallery { position: relative; }
.gallery .main { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.gallery .main::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: -18px; height: 30px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(11, 36, 71, .35), transparent); filter: blur(6px);
}
.gallery .main img { transform: scale(1.02) translateZ(0); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gallery .main:hover img { transform: scale(1.12) translateZ(28px); }
.gallery .main img.flip { animation: pdFlip .75s cubic-bezier(.2, .8, .2, 1); }
@keyframes pdFlip {
  from { opacity: 0; transform: rotateY(-70deg) translateZ(-120px) scale(.9); }
  to { opacity: 1; transform: none; }
}
.thumbs img { transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s, border-color .3s, box-shadow .3s; transform-style: preserve-3d; }
.thumbs img:hover { transform: translateZ(18px) translateY(-4px); opacity: 1; }
.thumbs img.on { transform: translateZ(22px) translateY(-6px); box-shadow: 0 16px 30px rgba(168, 118, 10, .35); }

.pd-info > * { animation: pdIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.pd-info > *:nth-child(1) { animation-delay: .05s; }
.pd-info > *:nth-child(2) { animation-delay: .12s; }
.pd-info > *:nth-child(3) { animation-delay: .19s; }
.pd-info > *:nth-child(4) { animation-delay: .26s; }
.pd-info > *:nth-child(5) { animation-delay: .33s; }
.pd-info > *:nth-child(6) { animation-delay: .4s; }
.pd-info > *:nth-child(7) { animation-delay: .47s; }
.pd-info > *:nth-child(8) { animation-delay: .54s; }
@keyframes pdIn { from { opacity: 0; transform: translate3d(0, 24px, -60px) rotateX(16deg); } to { opacity: 1; transform: none; } }
.pd-price .price { text-shadow: 0 3px 0 rgba(168, 118, 10, .25), 0 10px 22px rgba(224, 169, 43, .35); }

.size-opts button, .color-opts button { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s; }
.size-opts button:hover, .color-opts button:hover { transform: translateY(-3px) translateZ(10px); }
.size-opts button.on { transform: translateZ(14px); }
.qty { transform: translateZ(8px); }

.meta-list { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; transform-style: preserve-3d; }
.meta-list:hover { transform: perspective(1200px) rotateX(2deg) translateY(-4px); box-shadow: 0 30px 60px rgba(11, 36, 71, .2), inset 0 1px 0 rgba(255, 255, 255, .9); }


@media (prefers-reduced-motion: reduce) {
  .pd-info > *, .gallery .main img.flip { animation: none; }
  .gallery .main img, .thumbs img, .meta-list, .size-opts button { transition: none; }
}

/* ---- 3D cart & checkout ---- */
.cart-wrap { perspective: 1600px; }
.cart-wrap > .panel, .cart-wrap > .summary { animation: coIn .9s cubic-bezier(.2, .8, .2, 1) both; transform-style: preserve-3d; }
.cart-wrap > .summary { animation-delay: .12s; }
@keyframes coIn { from { opacity: 0; transform: translate3d(0, 30px, -70px) rotateX(14deg); } to { opacity: 1; transform: none; } }
.cart-wrap > .summary:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateZ(10px); box-shadow: 0 34px 70px rgba(11, 36, 71, .24), inset 0 1px 0 rgba(255, 255, 255, .9); }
.summary { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.cart-item { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; }
.cart-item:hover { transform: translateZ(14px) translateX(4px); box-shadow: 0 20px 40px rgba(11, 36, 71, .18); }
.cart-item img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cart-item:hover img { transform: scale(1.08) translateZ(18px); }
.field .input { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.field .input:focus { transform: translateZ(10px) translateY(-2px); box-shadow: 0 16px 34px rgba(31, 90, 148, .22), 0 0 0 3px rgba(224, 169, 43, .35); }
@media (prefers-reduced-motion: reduce) {
  .cart-wrap > .panel, .cart-wrap > .summary { animation: none; }
  .summary, .cart-item, .field .input { transition: none; }
}

/* ---- 3D secondary pages: track, success, static, empty ---- */
#view { perspective: 1600px; }
#view > .panel, #view > .section, #view > .empty, #view .panel[style*="max-width"] {
  animation: coIn .9s cubic-bezier(.2, .8, .2, 1) both; transform-style: preserve-3d;
}
#view .panel { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
#view .panel:hover { transform: perspective(1200px) rotateX(1.5deg) translateZ(6px); box-shadow: 0 30px 60px rgba(11, 36, 71, .2), inset 0 1px 0 rgba(255, 255, 255, .9); }
#view .empty .big { display: inline-block; animation: floatY 3.2s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-12px) rotateY(18deg); }
}
.success-burst {
  font-size: 4.2rem; display: inline-block; transform-style: preserve-3d;
  animation: burstIn 1.1s cubic-bezier(.2, .8, .2, 1) both, floatY 3.2s 1.1s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(224, 169, 43, .45));
}
@keyframes burstIn {
  from { opacity: 0; transform: rotateY(-200deg) scale(.4) translateZ(-160px); }
  to { opacity: 1; transform: none; }
}
.pay-opt { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; transform-style: preserve-3d; }
.pay-opt:hover { transform: translateY(-4px) translateZ(12px); box-shadow: 0 18px 34px rgba(11, 36, 71, .18); }
.pay-opt.on { transform: translateZ(18px); box-shadow: 0 0 0 2px rgba(224, 169, 43, .6), 0 22px 40px rgba(224, 169, 43, .25); }
.status { display: inline-block; transform: translateZ(8px); box-shadow: 0 8px 18px rgba(11, 36, 71, .18); }
.trust .t { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; }
.trust .t:hover { transform: translateY(-6px) translateZ(16px); box-shadow: 0 24px 44px rgba(11, 36, 71, .2); }
@media (prefers-reduced-motion: reduce) {
  #view > .panel, #view > .section, #view > .empty, #view .empty .big, .success-burst { animation: none; }
  #view .panel, .pay-opt, .trust .t { transition: none; }
}

/* ============================================================
   3D admin panel
   ============================================================ */
.admin-shell { perspective: 1800px; }
.admin-main { transform-style: preserve-3d; }
#page { transform-style: preserve-3d; }

/* sidebar: raised slab with depth */
.side {
  box-shadow: 24px 0 60px rgba(4, 16, 34, .35), inset -1px 0 0 rgba(224, 169, 43, .3);
  transform: translateZ(0);
}
.side nav a { transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; }
.side nav a:hover { transform: translateX(6px) translateZ(14px); }
.side nav a.active {
  transform: translateZ(18px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35), 0 0 22px rgba(224, 169, 43, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* page content entrance */
#page > * { animation: admIn .85s cubic-bezier(.2, .8, .2, 1) backwards; }
#page > *:nth-child(2) { animation-delay: .08s; }
#page > *:nth-child(3) { animation-delay: .16s; }
#page > *:nth-child(4) { animation-delay: .24s; }
@keyframes admIn { from { opacity: 0; transform: translate3d(0, 22px, -60px) rotateX(12deg); } to { opacity: 1; transform: none; } }

/* KPI cards: 3D tilt (JS) + stagger */
.kpis .kpi { transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; animation: admIn .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.kpis .kpi:nth-child(1) { animation-delay: .1s; }
.kpis .kpi:nth-child(2) { animation-delay: .16s; }
.kpis .kpi:nth-child(3) { animation-delay: .22s; }
.kpis .kpi:nth-child(4) { animation-delay: .28s; }
.kpis .kpi:nth-child(5) { animation-delay: .34s; }
.kpis .kpi:nth-child(6) { animation-delay: .4s; }
.kpis .kpi:nth-child(7) { animation-delay: .46s; }
.kpis .kpi:nth-child(8) { animation-delay: .52s; }
.kpi { position: relative; overflow: hidden; }
.kpi::after {
  content: ''; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(20deg); transition: left .9s ease;
}
.kpi:hover::after { left: 130%; }
.kpi .val { text-shadow: 0 2px 0 rgba(255, 255, 255, .8), 0 8px 18px rgba(11, 36, 71, .15); }
.kpi.primary { transform-style: preserve-3d; }

/* cards & panels */
.card, .panel { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.card:hover { transform: perspective(1400px) rotateX(1.2deg) translateZ(8px); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9); }

/* 3D bars grow up from the floor */
.bars .bar {
  transform-origin: 50% 100%; transform-style: preserve-3d;
  animation: barUp .9s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, filter .35s;
}
.bars .bar:hover { transform: translateZ(22px) scaleX(1.08); filter: brightness(1.15); box-shadow: 0 18px 30px rgba(11, 36, 71, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mini-bars .fill { animation: fillIn 1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left center; box-shadow: 0 0 10px rgba(224, 169, 43, .45); }
@keyframes fillIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* modal: 3D flip-in */
.modal-back { perspective: 1400px; }
.modal { animation: modIn .55s cubic-bezier(.2, .8, .2, 1) both; transform-style: preserve-3d; }
@keyframes modIn { from { opacity: 0; transform: rotateX(18deg) translateZ(-120px) scale(.94); } to { opacity: 1; transform: none; } }

/* tables: rows lift on hover */
.admin-main table tbody tr { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.admin-main table tbody tr:hover { transform: translateZ(8px) translateX(2px); box-shadow: 0 10px 22px rgba(11, 36, 71, .12); position: relative; z-index: 1; }

/* buttons inside admin */
.admin-main .btn { transition: transform .18s, box-shadow .18s; }

@media (prefers-reduced-motion: reduce) {
  #page > *, .kpis .kpi, .bars .bar, .mini-bars .fill, .modal { animation: none; }
  .kpi::after, .card, .side nav a, .admin-main table tbody tr { transition: none; }
}

/* ---- full-site check fixes: mobile header (search lives inside .header-actions) ---- */
@media (max-width: 640px) {
  .header-inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .header-inner .logo { min-width: 0; flex: 1 1 auto; }
  .header-inner .logo img { max-width: 100%; height: 40px; width: auto; }
  .header-actions { margin-left: 0; flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; }
  .search-wrap { order: -1; flex: 1 1 100%; width: 100%; max-width: none; }
}

/* ---- full-site check fixes: admin on phones ---- */
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-main { min-width: 0; }
  .side { min-width: 0; width: 100%; }
  .side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .side nav a { white-space: normal; font-size: .9rem; }
}
@media (max-width: 980px) {
  .admin-main .card, .admin-main .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- admin: site content editor ---- */
.cc-list { display: grid; gap: 14px; }
.cc-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--gborder); box-shadow: var(--sh-1); }
.cc-thumb { width: 150px; height: 110px; object-fit: cover; border-radius: 12px; background: #dfe6ee; }
.cc-body { display: grid; gap: 8px; min-width: 0; }
.cc-page { padding: 16px; margin-bottom: 14px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid var(--gborder); }
.cc-page .field { margin-bottom: 10px; }
@media (max-width: 640px) {
  .cc-item { grid-template-columns: 1fr; }
  .cc-thumb { width: 100%; height: 150px; }
}

/* ---- mobile category menu: tidy 3-column tiles ---- */
@media (max-width: 640px) {
  .site-header .chips {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  }
  .site-header .chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    gap: 4px; min-height: 66px; padding: 9px 6px; border-radius: 16px; font-size: .76rem; line-height: 1.25;
    white-space: normal;
  }
  .site-header .chip:hover { transform: translateY(-3px) translateZ(10px); }
}

/* ---- category bar: keep every category on ONE line (scrolls sideways if it overflows) ---- */
.site-header .chips {
  display: flex !important; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 6px; scroll-snap-type: x proximity;
}
.site-header .chips::-webkit-scrollbar { display: none; }
.site-header .chip {
  flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start;
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px; min-height: 0; padding: 9px 16px; font-size: .85rem;
}
@media (max-width: 640px) {
  .site-header .chips { display: flex !important; }
  .site-header .chip { flex-direction: row; padding: 9px 14px; font-size: .8rem; }
}

/* =========================================================
   MOBILE PRO v4 — fully responsive, no horizontal overflow,
   compact header, bottom tab bar, clear product grid.
   Benchmarked on Othoba, Daraz, Yellow, Richman, Aarong (mobile).
   ========================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
.m-tabs { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* header: one compact row + search row, no clutter */
  .site-header { position: sticky; top: 0; }
  .site-header .header-inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 0 6px; }
  .site-header .logo { order: 1; }
  .site-header .header-actions { order: 2; display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .site-header .header-actions > a.icon-btn[href="/admin"],
  .site-header .header-actions > a.icon-btn[href="#/cart"] { display: none; }
  .site-header .search-wrap { order: 3; flex: 1 1 100%; width: 100%; max-width: none; }
  .site-header .search-wrap input { width: 100%; min-height: 44px; font-size: 16px; }
  .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .site-header .chips { padding-bottom: 2px; scroll-snap-type: x proximity; }
  .site-header .chip { scroll-snap-align: start; min-height: 36px; padding: 7px 14px; font-size: .86rem; }

  /* bottom tab bar (app-style navigation) */
  .m-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px) saturate(150%);
    border-top: 1px solid #e6ebf3; box-shadow: 0 -10px 30px -18px rgba(10, 20, 50, .35);
  }
  .m-tabs .mt {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border: 0; background: none; color: #5c6b80; font: inherit; font-size: .7rem; font-weight: 700;
    border-radius: 14px; text-decoration: none; cursor: pointer;
  }
  .m-tabs .mt-ico { font-size: 1.15rem; line-height: 1; transition: transform .25s; }
  .m-tabs .mt.active { color: var(--gold-deep, #b07c12); background: linear-gradient(180deg, #fff7e0, #fff); box-shadow: inset 0 0 0 1px #f3dca0; }
  .m-tabs .mt.active .mt-ico { transform: translateY(-2px) scale(1.08); }
  .m-tabs .mt-count {
    position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #e5484d; color: #fff; font-size: .68rem; line-height: 18px; text-align: center;
  }

  /* product grid: two clear columns, big photos, readable text */
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { min-width: 0; border-radius: 14px; }
  .pcard .media, .pcard > a:first-child { display: block; }
  .pcard img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
  .pcard h3 { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
  .pcard .price { font-size: 1.02rem; font-weight: 800; }
  .pcard .body { min-width: 0; }

  /* filters: two tidy columns instead of stacked boxes */
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .toolbar .input, .toolbar select, .toolbar input { max-width: none !important; width: 100%; min-height: 44px; font-size: 16px; }
  .toolbar > *:first-child:not(select) { grid-column: 1 / -1; }

  /* text & touch targets */
  body { font-size: 16px; }
  .btn { min-height: 44px; }
  .chip { min-height: 36px; }
  .section { padding: 22px 0; }
  .section-head h2 { font-size: 1.25rem; }

  /* tables & wide blocks scroll inside themselves, never the page */
  .tbl-wrap, .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* product detail: stacked, big image, sticky add-to-cart */
  .pd { gap: 18px; }
  .pd-actions { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 40; background: rgba(255, 255, 255, .96); padding: 10px; border-radius: 16px; box-shadow: 0 -8px 24px -14px rgba(10, 20, 50, .3); }
}

@media (max-width: 380px) {
  .prod-grid { gap: 8px; }
  .pcard h3 { font-size: .84rem; }
  .m-tabs .mt { font-size: .64rem; }
}

/* body perspective turns fixed elements (tab bar, drawer) into page-relative; off on phones */
@media (max-width: 640px) {
  body { perspective: none; }
  .side-drawer { position: fixed; }
}

/* ---------- v10: category bar edge fade (no hard clipping) ---------- */
.site-header .chips {
  margin-left: -4px; margin-right: -4px; padding-right: 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
  scrollbar-width: none;
}
.site-header .chips::-webkit-scrollbar { display: none; }

/* ---------- v10: footer typography (layout unchanged) ---------- */
.site-footer h4 {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; color: #fff;
  padding-bottom: 10px; margin-bottom: 14px; position: relative;
}
.site-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #f08a3e);
}
.site-footer a { font-weight: 600; font-size: .93rem; line-height: 1.5; padding: 6px 0; }
.site-footer p { line-height: 1.65; }
.foot-logo { height: 64px; }
.foot-bottom { font-size: .9rem; }
.foot-bottom .credit { font-size: .92rem; font-weight: 500; }

/* WhatsApp in footer: solid, high-contrast, unmistakable */
.site-footer a.wa-footer {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 11px 18px; border-radius: 14px; text-decoration: none;
  background: #1faa59; color: #ffffff !important; font-size: .98rem; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -10px rgba(31, 170, 89, .85);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-footer a.wa-footer svg { flex: 0 0 auto; }
.site-footer a.wa-footer:hover { background: #17934a; transform: translateY(-2px); color: #fff !important; }
.site-footer a.wa-footer span { color: #fff; }

/* ---------- v11: no light strip / white shadow under the footer ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 0 !important; background: #070f20; }
  .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; margin-bottom: 0; }
  .m-tabs { box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .35) !important; }
}
/* closed side drawer must not cast its shadow onto the page edge */
.side-drawer { box-shadow: none !important; }
.side-drawer.on { box-shadow: 24px 0 70px rgba(4, 16, 34, .45), inset -1px 0 0 rgba(224, 169, 43, .35) !important; }

/* ---------- v12: any area below the footer stays dark (no white page) ---------- */
html { background: #070f20; }
.site-footer { margin-bottom: 0; }

/* ---------- v13: fix extra blank page under footer ----------
   body has a 3D perspective, so the fixed drawer backdrop was sized to the
   whole body height and stretched the page. Only render it while open. */
.drawer-back { display: none; }
.drawer-back.on { display: block; }

/* ---------- v14: bottom bar on one line — credit left, copyright right ---------- */
.site-footer .foot-bottom {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left;
}
.site-footer .foot-bottom > .credit { order: -1; margin-top: 0; }
.site-footer .foot-bottom > div:not(.credit) { margin: 0; text-align: right; }
@media (max-width: 640px) {
  .site-footer .foot-bottom { gap: 10px; }
  .site-footer .foot-bottom > .credit, .site-footer .foot-bottom > div:not(.credit) { font-size: .78rem; }
}

/* ---------- v15: background aurora must not extend the page ----------
   body::before used negative insets (-1072px) and, under body perspective,
   it stretched the scroll height past the footer. Pin it to the body box. */
body::before { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; }

/* ---------- v16: desktop category bar shows ALL categories (wraps to next line) ----------
   Phones keep the swipeable one-line strip. */
@media (min-width: 641px) {
  .site-header .chips {
    flex-wrap: wrap; overflow: visible; row-gap: 8px; padding-right: 2px;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* ---------- v17: desktop category bar — one line, 3D glossy tiles ---------- */
@media (min-width: 641px) {
  .site-header .chips {
    flex-wrap: nowrap; justify-content: space-between; gap: 7px; overflow: visible;
    padding: 6px 2px 10px; perspective: 700px;
  }
  .site-header .chips .chip {
    flex: 0 1 auto; min-width: 0; white-space: nowrap;
    padding: 7px 11px; font-size: .8rem; font-weight: 700; letter-spacing: .1px;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, .85);
    background: linear-gradient(170deg, #ffffff 0%, #eef3fc 100%);
    box-shadow:
      inset 0 1px 0 #ffffff,
      inset 0 -2px 0 rgba(20, 40, 90, .08),
      0 2px 0 rgba(20, 40, 90, .10),
      0 10px 18px -10px rgba(20, 40, 90, .35);
    transform: translateZ(0);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .3s;
  }
  .site-header .chips .chip:hover {
    transform: translateY(-3px) translateZ(14px) rotateX(6deg);
    background: linear-gradient(170deg, #ffffff 0%, #e2eafb 100%);
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 3px 0 rgba(20, 40, 90, .12),
      0 18px 26px -12px rgba(47, 111, 237, .45);
  }
  .site-header .chips .chip:active { transform: translateY(1px) translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .chips .chip { transition: none; }
}
