/* Fonts (self-hosted, so Bangla text renders offline and without external requests) */
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-bengali-bengali-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-bengali-bengali-700-normal.woff2") format("woff2"); }

/* ===== Themes ===== */
:root, :root[data-theme="emerald"] {
  --green-900: #123524;
  --green-700: #1f5d3a;
  --green-500: #3a8c5c;
  --green-100: #e6f2ea;
  --gold: #c9a227;
  --ink: #1d2320;
  --muted: #5d6b64;
  --line: #e2e8e4;
  --bg: #fbfcfb;
  --card: #ffffff;
  --th-bg: #f5f9f6;
  --panel-bg: #f5faf7;
  --thumb-bg: linear-gradient(135deg, #e9f4ed, #d1e7d9);
  --hero-bg: radial-gradient(1200px 400px at 80% -10%, #d7ecdf 0%, transparent 60%), linear-gradient(180deg, #f3f9f5, var(--bg));
  --brand-grad: linear-gradient(135deg, var(--green-500), var(--green-900));
  --btn-text: #ffffff;
  --footer-bg: #123524;
  --footer-text: #cfe3d6;
  --footer-link: #e8f4ec;
  --footer-muted: #a9c8b5;
  --accent-soft: #f6ecc7;
  --danger: #b42318;
  --shadow: 0 4px 18px rgba(18, 53, 36, 0.08);
  --btn-bg: var(--green-700);
  --btn-hover: var(--green-900);
  --btn-glow: none;
  --text-glow: none;
  --blur: none;
  --body-bg: var(--bg);
  --header-bg: var(--card);
  --glass-border: var(--line);
  color-scheme: light;
}
/* Violet: the shop's white + purple brand theme (matches the landing page design) */
:root[data-theme="violet"] {
  --green-900: #2A1257;
  --green-700: #4A22A6;
  --green-500: #713BFF;
  --green-100: #F0E9FF;
  --gold: #8B5CF6;
  --ink: #24123F;
  --muted: #6B5C87;
  --line: #E7DEFF;
  --bg: #FBFAFF;
  --card: #ffffff;
  --th-bg: #F5F0FF;
  --panel-bg: #F7F3FF;
  --thumb-bg: linear-gradient(135deg, #F0E9FF, #DCD0FF);
  --hero-bg: radial-gradient(1200px 400px at 80% -10%, #E4D9FF 0%, transparent 60%), linear-gradient(180deg, #F7F3FF, var(--bg));
  --brand-grad: linear-gradient(135deg, #713BFF, #321568);
  --btn-text: #ffffff;
  --footer-bg: #1E0E3F;
  --footer-text: #DCD0FF;
  --footer-link: #F0E9FF;
  --footer-muted: #B9A9E6;
  --accent-soft: #F3EBFF;
  --danger: #b42318;
  --shadow: 0 4px 18px rgba(50, 21, 104, 0.08);
  --btn-bg: var(--green-700);
  --btn-hover: var(--green-900);
  --btn-glow: 0 10px 26px rgba(113, 59, 255, 0.28);
  --text-glow: none;
  --blur: none;
  --body-bg: var(--bg);
  --header-bg: rgba(255, 255, 255, 0.92);
  --glass-border: var(--line);
  color-scheme: light;
}

:root[data-theme="midnight"] {
  --green-900: #f1e3b5;       /* headings: pale gold */
  --green-700: #c9a227;       /* buttons: gold */
  --green-500: #d9b65a;
  --green-100: #2a2415;
  --gold: #e6c35c;
  --ink: #ece6d6;
  --muted: #a7a396;
  --line: #2f3a48;
  --bg: #0d1218;
  --card: #151d27;
  --th-bg: #1b2530;
  --panel-bg: #1a222d;
  --thumb-bg: linear-gradient(135deg, #222c38, #1a2430);
  --hero-bg: radial-gradient(1000px 420px at 85% -10%, #2a2212 0%, transparent 60%), linear-gradient(180deg, #111a24, var(--bg));
  --brand-grad: linear-gradient(135deg, #e6c35c, #8a6a1a);
  --btn-text: #1a1404;
  --footer-bg: #080c10;
  --footer-text: #bfb7a0;
  --footer-link: #f1e3b5;
  --footer-muted: #8a8474;
  --accent-soft: #2a2415;
  --danger: #f1867b;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --btn-bg: var(--green-700);
  --btn-hover: #e6c35c;
  --btn-glow: none;
  --text-glow: none;
  --blur: none;
  --body-bg: var(--bg);
  --header-bg: var(--card);
  --glass-border: var(--line);
  color-scheme: dark;
}
:root[data-theme="ivory"] {
  --green-900: #5a1f2b;       /* headings: deep burgundy */
  --green-700: #8b2e3e;       /* buttons */
  --green-500: #a84b5c;
  --green-100: #f6e9ec;
  --gold: #b8860b;
  --ink: #2a1d1f;
  --muted: #7a6b6e;
  --line: #e8dcd6;
  --bg: #faf6ee;
  --card: #fffdf8;
  --th-bg: #f6efe3;
  --panel-bg: #fbf5ea;
  --thumb-bg: linear-gradient(135deg, #f3e7d6, #e9d6bd);
  --hero-bg: radial-gradient(1000px 400px at 80% -10%, #f3e3cc 0%, transparent 60%), linear-gradient(180deg, #fbf3e6, var(--bg));
  --brand-grad: linear-gradient(135deg, #b8860b, #5a1f2b);
  --btn-text: #ffffff;
  --footer-bg: #4a1822;
  --footer-text: #f1dcc9;
  --footer-link: #fff6ec;
  --footer-muted: #d3b8a6;
  --accent-soft: #f3e4d2;
  --danger: #b42318;
  --shadow: 0 4px 18px rgba(90, 31, 43, 0.10);
  --btn-bg: var(--green-700);
  --btn-hover: var(--green-900);
  --btn-glow: none;
  --text-glow: none;
  --blur: none;
  --body-bg: var(--bg);
  --header-bg: var(--card);
  --glass-border: var(--line);
  color-scheme: light;
}

/* Neon Cyber: dark glass with cyan and magenta glow */
:root[data-theme="neon"] {
  --green-900: #f4f8ff;
  --green-700: #00d9ff;
  --green-500: #19f0d0;
  --green-100: rgba(0, 217, 255, 0.12);
  --gold: #ff3df0;
  --ink: #e9efff;
  --muted: #98a6c8;
  --line: rgba(160, 190, 255, 0.18);
  --bg: #060a18;
  --card: rgba(255, 255, 255, 0.06);
  --th-bg: rgba(255, 255, 255, 0.05);
  --panel-bg: rgba(0, 217, 255, 0.07);
  --thumb-bg: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(255, 61, 240, 0.18));
  --hero-bg: transparent;
  --brand-grad: linear-gradient(135deg, #00d9ff, #ff3df0);
  --btn-text: #04101c;
  --btn-bg: linear-gradient(135deg, #00d9ff, #6c7bff 60%, #ff3df0);
  --btn-hover: linear-gradient(135deg, #19f0d0, #00d9ff 50%, #ff3df0);
  --btn-glow: 0 0 18px rgba(0, 217, 255, 0.45), 0 0 36px rgba(255, 61, 240, 0.2);
  --text-glow: 0 0 18px rgba(0, 217, 255, 0.55);
  --blur: blur(16px) saturate(140%);
  --glass-border: rgba(130, 220, 255, 0.28);
  --header-bg: rgba(8, 12, 30, 0.55);
  --body-bg: radial-gradient(800px 520px at 8% -5%, rgba(0, 217, 255, 0.22), transparent 62%), radial-gradient(760px 520px at 96% 12%, rgba(255, 61, 240, 0.20), transparent 62%), radial-gradient(900px 620px at 50% 112%, rgba(108, 123, 255, 0.26), transparent 62%), #060a18;
  --footer-bg: rgba(4, 7, 18, 0.75);
  --footer-text: #aebbdb;
  --footer-link: #e9efff;
  --footer-muted: #7f8db0;
  --accent-soft: rgba(0, 217, 255, 0.14);
  --danger: #ff7a90;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}
/* Aurora Glass: violet, pink and mint */
:root[data-theme="aurora"] {
  --green-900: #fff4fb;
  --green-700: #a78bfa;
  --green-500: #2dffc4;
  --green-100: rgba(167, 139, 250, 0.16);
  --gold: #ffd166;
  --ink: #f2eeff;
  --muted: #b5a9d6;
  --line: rgba(220, 200, 255, 0.2);
  --bg: #0e0822;
  --card: rgba(255, 255, 255, 0.08);
  --th-bg: rgba(255, 255, 255, 0.06);
  --panel-bg: rgba(167, 139, 250, 0.10);
  --thumb-bg: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(255, 110, 199, 0.22));
  --hero-bg: transparent;
  --brand-grad: linear-gradient(135deg, #a78bfa, #ff6ec7, #2dffc4);
  --btn-text: #140a2e;
  --btn-bg: linear-gradient(135deg, #a78bfa, #ff6ec7);
  --btn-hover: linear-gradient(135deg, #2dffc4, #a78bfa 55%, #ff6ec7);
  --btn-glow: 0 0 20px rgba(167, 139, 250, 0.5), 0 0 40px rgba(255, 110, 199, 0.25);
  --text-glow: 0 0 20px rgba(255, 110, 199, 0.5);
  --blur: blur(20px) saturate(150%);
  --glass-border: rgba(255, 255, 255, 0.24);
  --header-bg: rgba(18, 10, 42, 0.5);
  --body-bg: radial-gradient(760px 520px at 12% -8%, rgba(139, 92, 246, 0.42), transparent 62%), radial-gradient(700px 520px at 92% 8%, rgba(255, 110, 199, 0.34), transparent 62%), radial-gradient(820px 600px at 55% 112%, rgba(45, 255, 196, 0.22), transparent 62%), #0e0822;
  --footer-bg: rgba(8, 4, 22, 0.72);
  --footer-text: #c5b9e6;
  --footer-link: #fff4fb;
  --footer-muted: #9588b8;
  --accent-soft: rgba(167, 139, 250, 0.18);
  --danger: #ff8aa0;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans Bengali", Roboto, sans-serif;
  color: var(--ink); background: var(--body-bg); background-attachment: fixed; line-height: 1.6; font-size: 16px;
  min-height: 100vh;
}
:lang(bn) body, body:lang(bn) { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--green-900); margin: 0 0 .5em; text-shadow: var(--text-glow); font-family: "Cormorant Garamond", Georgia, "Noto Sans Bengali", serif; font-weight: 700; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3 { font-family: "Noto Sans Bengali", Georgia, serif; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: .2px; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* Header */
.site-header { background: var(--header-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--green-900); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; font-family: "Cormorant Garamond", Georgia, serif; white-space: nowrap; }
:lang(bn) .brand { font-family: "Noto Sans Bengali", serif; }
.brand:hover { text-decoration: none; }
/* Uploaded logo: keep its own proportions so a wide wordmark stays readable instead of
   being squashed into a square box. Tall enough to read on a phone. */
.brand-logo { width: auto; height: 52px; max-width: 190px; object-fit: contain; border-radius: 10px; flex: 0 0 auto; display: block; }
/* Fallback badge when no logo has been uploaded. */
.brand-mark { width: 48px; height: 48px; border-radius: 13px; overflow: hidden; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-family: "Montserrat", "Segoe UI", system-ui, sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; flex: 0 0 auto; box-shadow: 0 6px 18px rgba(113, 59, 255, .32), inset 0 1px 0 rgba(255,255,255,.35); }

@media (max-width: 860px) {
  .brand { font-size: 1.3rem; }
  .brand-logo { height: 44px; max-width: 150px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 11px; font-size: 1.02rem; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.15rem; gap: 9px; }
  .brand-logo { height: 38px; max-width: 120px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: .95rem; }
}
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a.active { color: var(--green-700); }
.cart-link { position: relative; }
.cart-count { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: var(--gold); color: #1d1500; font-size: .75rem; font-weight: 700; text-align: center; margin-left: 4px; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.nav-tools select, .nav-tools button.lang-btn { width: auto; padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.lang-btn { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-glow); transition: filter .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: var(--btn-hover); text-decoration: none; color: var(--btn-text); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: var(--card); color: var(--green-700); border-color: var(--green-700); box-shadow: none; }
.btn-outline:hover { background: var(--accent-soft); color: var(--green-900); }
.btn-gold { background: var(--gold); color: #1d1500; box-shadow: none; }
.btn-gold:hover { background: var(--gold); color: #1d1500; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--green-900); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert-error { background: rgba(180,35,24,.1); color: var(--danger); border: 1px solid rgba(180,35,24,.3); }
.alert-ok { background: var(--green-100); color: var(--green-900); border: 1px solid var(--line); }
.alert-warn { background: #fff6e0; color: #7a4b00; border: 1px solid #f3dca3; }
:root[data-theme="midnight"] .alert-warn { background: #2a2415; color: #f1d98a; border-color: #5a4a1f; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; background: var(--green-100); color: var(--green-900); }
.badge-warn { background: #fff1d6; color: #7a4b00; }
:root[data-theme="midnight"] .badge-warn { background: #2a2415; color: #f1d98a; }
.badge-danger { background: rgba(180,35,24,.12); color: var(--danger); }
.badge-muted { background: var(--th-bg); color: var(--muted); }

/* Hero */
.hero { background: var(--hero-bg); padding: 76px 0 60px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.eyebrow { display: inline-block; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--gold); font-weight: 700; }

/* Products */
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 14px 34px rgba(0,0,0,.14); }
:root[data-theme="neon"] .product-card:hover, :root[data-theme="aurora"] .product-card:hover { border-color: var(--green-700); box-shadow: var(--btn-glow); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--thumb-bg); display: grid; place-items: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 3rem; font-weight: 700; color: var(--gold); opacity: .8; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; color: var(--green-900); font-size: 1.1rem; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem; }
.chip.active { background: var(--btn-bg); color: var(--btn-text); border-color: var(--green-700); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--th-bg); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.right { text-align: right; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li.done::before { background: var(--green-500); }
.timeline li.current::before { background: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .when { font-size: .8rem; color: var(--muted); }

/* Cart */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.thumb-sm { width: 72px; height: 72px; border-radius: 10px; background: var(--thumb-bg); display: grid; place-items: center; overflow: hidden; color: var(--gold); font-weight: 700; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { background: var(--card); color: var(--ink); border: none; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 36px; text-align: center; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; color: var(--green-900); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--card); margin-bottom: 10px; }
.pay-option input { width: auto; margin-top: 4px; }
.pay-option.selected { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.account-box { background: var(--panel-bg); border: 1px dashed var(--green-500); border-radius: 10px; padding: 14px; margin-top: 10px; }
.account-box .num { font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; color: var(--green-900); }

/* Footer */
.site-footer { background: var(--footer-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--footer-text); padding: 44px 0 24px; margin-top: 60px; }
.site-footer a { color: var(--footer-link); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--footer-link); margin: 0 0 10px; font-size: 1rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; }
:lang(bn) .site-footer h4 { font-family: "Noto Sans Bengali", serif; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .85rem; color: var(--footer-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* quiet way back into the admin panel, bottom right of every page */
.footer-admin { font-size: .74rem; letter-spacing: .02em; color: var(--footer-muted); opacity: .75; text-decoration: none; margin-left: auto; }
.footer-admin:hover, .footer-admin:focus-visible { opacity: 1; color: var(--footer-link); text-decoration: underline; }
.disclaimer { font-size: .85rem; color: var(--footer-muted); }

/* Misc */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 90px; }
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 10px 0 18px; border: 0; }

/* Drawer parts: only used on phones, hidden on desktop */
.nav-head, .nav-scrim { display: none; }

/* Responsive header: the menu opens as a solid sheet under the header bar.
   (It cannot be position:fixed: the header has a backdrop-filter, which makes it the
   containing block for fixed children, so the panel would be trapped inside the bar.) */
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; font-size: 1.15rem; line-height: 1;
    background: var(--green-100); border: 1px solid var(--line); border-radius: 10px;
  }
  .menu-toggle[aria-expanded="true"] { background: var(--gold); color: #10131a; border-color: transparent; }

  .site-header { position: relative; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 12px;
    left: auto;
    width: min(58vw, 168px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    gap: 0; margin: 0; padding: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 22px 44px rgba(3, 6, 14, .5);
    z-index: 96;
    animation: navSheet .18s ease-out;
  }
  .nav.open { display: block; }
  @keyframes navSheet { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  .nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 4px 8px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .6rem;
  }
  .nav-close {
    background: transparent; border: 0; border-radius: 8px;
    width: 26px; height: 26px; font-size: 1.15rem; line-height: 1; cursor: pointer;
    color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-close:hover { color: var(--ink); background: var(--green-100); }

  .nav a {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 0; padding: 9px 8px; margin: 0;
    border-bottom: 0; border-radius: 8px;
    font-size: .88rem; font-weight: 500; color: var(--ink);
  }
  .nav a.active {
    color: var(--green-900); background: var(--green-100);
    box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px;
  }
  .nav a:active { background: var(--green-100); }
  .nav .cart-count { margin-left: 6px; }
  .nav a.cart-link, .nav a.account-link { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 2px; }

  .nav-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); width: 100%; }
  .nav-tools select { flex: 1 1 100%; width: 100%; padding: 6px 8px; font-size: .8rem; }
  .nav-tools .lang-btn { flex: 1 1 100%; padding: 6px 8px; font-size: .8rem; }

  .nav-scrim { display: none; }
}

/* Floating chat button (lower right) */
#chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: inherit; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; background: var(--btn-bg); box-shadow: var(--btn-glow); color: var(--btn-text); border: none; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s; }
.chat-fab:hover { background: var(--btn-hover); transform: translateY(-2px); }
.chat-fab:focus-visible, .chat-option:focus-visible, .chat-close:focus-visible, .help-channel:focus-visible, .lang-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chat-panel { width: min(300px, calc(100vw - 36px)); background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; animation: chatIn .18s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; color: var(--green-900); font-size: 1.05rem; }
.chat-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.chat-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; color: var(--ink); background: var(--card); }
.chat-option:hover { text-decoration: none; background: var(--panel-bg); border-color: var(--green-500); }
.chat-option small { display: block; color: var(--muted); font-size: .8rem; }
.chat-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.chat-option.wa .chat-dot { background: #25d366; }
.chat-option.tg .chat-dot { background: #229ed9; }
@media (max-width: 520px) { #chat-widget { right: 12px; bottom: 12px; } .chat-fab span { display: none; } .chat-fab { padding: 14px; } }

/* Help & support */
.help-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.help-channel { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.help-channel:hover { text-decoration: none; border-color: var(--green-500); }
.help-channel h3 { margin: 0; }
.help-channel .chat-dot { margin-bottom: 4px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--green-900); }
.faq details[open] summary { margin-bottom: 8px; }
.faq p, .faq ul { margin: 0 0 6px; }
.faq ul { padding-left: 20px; }

/* Theme and language controls inside the header */
.nav-tools select { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

.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; }
:root[lang="bn"] body { font-family: "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }

/* Hero with an admin-chosen background image */
.hero.has-image { position: relative; background: linear-gradient(rgba(0,0,0,var(--hero-ov, .45)), rgba(0,0,0,var(--hero-ov, .45))), var(--hero-img) center / cover no-repeat; }
.hero.has-image h1, .hero.has-image p { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero.has-image .badge { background: rgba(255,255,255,.88); color: #123524; }
.hero.has-image .btn-outline { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; backdrop-filter: blur(6px); }
:root[data-theme="neon"] .badge, :root[data-theme="aurora"] .badge { border: 1px solid var(--glass-border); }
:root[data-theme="neon"] input, :root[data-theme="neon"] select, :root[data-theme="neon"] textarea,
:root[data-theme="aurora"] input, :root[data-theme="aurora"] select, :root[data-theme="aurora"] textarea { background: rgba(255,255,255,.07); border-color: var(--glass-border); }
:root[data-theme="neon"] option, :root[data-theme="aurora"] option { background: #12162e; color: #fff; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { display: block; padding: 22px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { text-decoration: none; border-color: var(--green-500); }
.tile h3 { margin-bottom: 4px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ------------------------------------------------------------------ account
   Sign-in, registration, password reset and the shopper dashboard. Uses the
   active theme's tokens so it follows the admin's chosen palette. */

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink, #14211c);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.account-link:hover {
  transform: translateY(-1px);
  border-color: var(--green-500, #713BFF);
  box-shadow: 0 10px 24px rgba(113, 59, 255, .18);
  text-decoration: none;
}
.account-link.is-signed-in {
  border-color: var(--green-500, #713BFF);
  background: var(--brand-grad);
  color: #fff;
}
.account-link-icon { font-size: 15px; line-height: 1; }

.account-auth { padding-top: 34px; }
.account-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.account-pitch h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.account-points { margin: 16px 0 12px; padding-left: 18px; line-height: 1.9; }
.account-points li { margin-bottom: 2px; }
.account-card { padding: 26px; }

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--soft, #F0E9FF);
}
.auth-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink, #14211c);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-tab:hover { background: rgba(113, 59, 255, .10); }
.auth-tab.active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(113, 59, 255, .28);
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-500, #713BFF);
  font-weight: 700;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.account-side { display: grid; gap: 20px; }
.account-orders .table-wrap { margin: 8px -4px 0; }
.account-orders table { min-width: 460px; }

.qr-box {
  display: grid;
  place-items: center;
  padding: 14px;
  margin: 12px 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.qr-box img { display: block; width: 196px; height: 196px; image-rendering: pixelated; }
.secret-key {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--soft, #F0E9FF);
  font-size: 12px;
  word-break: break-all;
}
.backup-codes {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.backup-codes li {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--soft, #F0E9FF);
  text-align: center;
  font-size: 14px;
  letter-spacing: .06em;
}
.empty-soft {
  padding: 26px 18px;
  text-align: center;
  border-radius: 14px;
  background: var(--soft, #F0E9FF);
}

@media (max-width: 900px) {
  .account-auth-grid,
  .account-layout { grid-template-columns: 1fr; }
  .account-pitch { order: 2; }
  .account-side { order: 3; }
}
@media (max-width: 620px) {
  .account-card { padding: 18px; }
  .account-orders table { min-width: 0; }
  .backup-codes { grid-template-columns: 1fr; }
  .account-link-text { display: none; }
  .account-link { padding: 8px 10px; }
}

/* =========================================================================
   Trax: dark one-page parallax look. Near-black canvas, thin light type,
   pill buttons, cyan accent, tall full-bleed hero that scrolls slower than
   the page.
   ========================================================================= */
:root[data-theme="trax"] {
  --green-900: #ffffff;
  --green-700: #16c8d8;
  --green-500: #16c8d8;
  --green-100: rgba(22, 200, 216, 0.12);
  --gold: #16c8d8;
  --ink: #f4f6f8;
  --muted: #a8b1b8;
  --line: rgba(255, 255, 255, 0.12);
  --bg: #0a0b0d;
  --card: rgba(255, 255, 255, 0.045);
  --th-bg: rgba(255, 255, 255, 0.05);
  --panel-bg: rgba(255, 255, 255, 0.06);
  --thumb-bg: linear-gradient(135deg, #16181c, #0f1113);
  --hero-bg: radial-gradient(900px 420px at 78% -10%, rgba(22, 200, 216, 0.16), transparent 62%), linear-gradient(180deg, #0d0f12, var(--bg));
  --brand-grad: linear-gradient(135deg, #16c8d8, #7ce4ee);
  --btn-text: #04181b;
  --btn-bg: #16c8d8;
  --btn-hover: #46dbe8;
  --btn-glow: none;
  --text-glow: none;
  --blur: none;
  --glass-border: rgba(255, 255, 255, 0.10);
  --header-bg: rgba(10, 11, 13, 0.88);
  --body-bg: #0a0b0d;
  --footer-bg: #07080a;
  --footer-text: #9aa3aa;
  --footer-link: #e8eef2;
  --footer-muted: #7d868d;
  --accent-soft: rgba(22, 200, 216, 0.14);
  --danger: #ff7a8a;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* Thin, wide type like the reference */
:root[data-theme="trax"] h1,
:root[data-theme="trax"] h2,
:root[data-theme="trax"] .hero h1 {
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
:root[data-theme="trax"] h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
:root[data-theme="trax"] h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
:root[data-theme="trax"] .eyebrow,
:root[data-theme="trax"] .badge {
  letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; font-weight: 600;
}
:root[data-theme="trax"] .badge {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 7px 14px;
}

/* Pill buttons */
:root[data-theme="trax"] .btn,
:root[data-theme="trax"] .btn-outline,
:root[data-theme="trax"] .chip {
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .78rem;
  font-weight: 600;
  padding: 12px 24px;
}
:root[data-theme="trax"] .btn-outline {
  background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .55);
}
:root[data-theme="trax"] .btn-outline:hover { background: #fff; color: #0a0b0d; border-color: #fff; }

/* Full-height hero with the slow scroll */
:root[data-theme="trax"] .hero {
  min-height: min(88vh, 780px);
  display: grid; align-items: center;
  padding: 96px 0 84px;
  text-align: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
:root[data-theme="trax"] .hero p { margin-left: auto; margin-right: auto; font-size: 1.05rem; font-weight: 300; }
:root[data-theme="trax"] .hero-actions { justify-content: center; }
:root[data-theme="trax"] .hero.has-image { background-attachment: fixed; }
@media (max-width: 760px) {
  /* mobile browsers ignore fixed backgrounds, so fall back to a normal cover */
  :root[data-theme="trax"] .hero,
  :root[data-theme="trax"] .hero.has-image { background-attachment: scroll; min-height: 78vh; }
}

/* Airy sections and hairline separators */
:root[data-theme="trax"] .section { padding: 72px 0; border-top: 1px solid var(--line); }
:root[data-theme="trax"] .section:first-of-type { border-top: 0; }
:root[data-theme="trax"] .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: none; padding: 24px;
}
:root[data-theme="trax"] .card:hover { border-color: rgba(22, 200, 216, .45); }
:root[data-theme="trax"] .product-card { border-radius: 4px; }
:root[data-theme="trax"] .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
:root[data-theme="trax"] .site-footer { border-top: 1px solid var(--line); }
:root[data-theme="trax"] .site-header { border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* Menu drawer stays solid on phones in this theme */
@media (max-width: 760px) { :root[data-theme="trax"] .nav { background: #0a0b0d; background-image: none; } }
/* Wider layout on laptop and desktop screens */ @media (min-width: 1000px) { .container { width: min(100% - 56px, 1480px); } }