/* The storefront design system (docs/STORE_DESIGN_SYSTEM.md), 2026-09-26.
   The token blocks are generated from packages/shared/tokens/store.json (DS-3b), with the app's role names.
   Tokens first; components read only tokens. One brand colour per company (--brand-base, set on <html>);
   everything else is a cool neutral scale. Glass is reserved for chrome that floats over content. */
:root {
  /* ── Surfaces and ink ── */
  --ground: #f5f6f8; /* was --paper */
  --surface: #ffffff;
  --surface-sunken: #eef0f3; /* was --sunken */
  --text: #101418; /* was --ink */
  --text-secondary: #3c444d; /* was --ink-2 */
  --text-muted: #6a737d; /* was --ink-3; 4.45:1 on the page — DS-16a */
  --border: #e2e5e9; /* was --line */
  --border-strong: #c9ced4; /* was --line-strong; 1.46:1 — DS-16a */

  /* ── Brand ── The company's colour, from --brand-base on <html>, with the store's own green when none is set. */
  --accent: var(--brand-base, #0a7a55); /* was --brand */
  --accent-ink: #ffffff; /* was --brand-ink */
  --accent-soft: color-mix(in oklab, var(--accent) 12%, var(--surface)); /* was --brand-soft */
  --accent-text: color-mix(in oklab, var(--accent) 88%, #000); /* was --brand-text */

  /* ── Status ── */
  --success: #0c7a4a; /* was --ok */
  --success-soft: #e3f4ea; /* was --ok-soft */
  --danger: #c8283a; /* was --alert */

  /* ── Glass and elevation ── */
  --glass-bg: rgba(255, 255, 255, 0.76); /* was --glass */
  --glass-border: rgba(16, 20, 24, 0.07); /* was --glass-line */
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.06); /* was --shadow-1 */
  --shadow-lg: 0 12px 32px -16px rgba(16, 20, 24, 0.28); /* was --shadow-2 */

  /* ── Shape and type ── */
  --radius: 8px; /* was --r-1 */
  --radius-lg: 14px; /* was --r-2 */
  --radius-xl: 22px; /* was --r-3 */
  /* O-9: Anek Bangla for display only */
  --font-display: 'Anek Bangla', 'IBM Plex Sans', 'Noto Sans Bengali', system-ui, sans-serif;
  /* was --font-body; O-9: Plex for Latin, Noto for Bangla, as in the apps */
  --font-sans: 'IBM Plex Sans', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --page-max: 1280px; /* was --max */

  /*
   * ── Type ── DS-4c: the store's text sizes, leadings and trackings, each with its Bangla value ($extensions.bn) as
   * in the apps: a step larger, more leading, never tracked. The display sizes are the display face's own and have
   * none.
   */
  --text-2xs: 12px; /* the cart count, a photo's tag, the footer's headings */
  --text-xs: 13px; /* the promise strip, a status, the small print */
  --text-sm: 14px; /* chips, the crumb, a field's label, the facts */
  --text-base: 15px; /* the search, the header's links, a card's title */
  --text-md: 16px; /* body text, buttons, what a shopper types */
  --text-lg: 17px; /* the lede and a product's description */
  --leading-normal: 1.55; /* body text */
  --leading-snug: 1.35; /* a card's two-line title */
  --leading-title: 1.1; /* the shop's name, a page title */
  --leading-heading: 1.08; /* a product's title */
  --leading-hero: 1.02; /* the home page's title */
  --tracking-wide: 0.02em; /* the shop's initials */
  --tracking-tight: -0.01em; /* the shop's name, a price */
  --tracking-figure: -0.005em; /* a card's price */
  --tracking-display: -0.02em; /* a product's title, a page title */
  --tracking-hero: -0.025em; /* the home page's title */
  --tracking-caps: 0.1em; /* the footer's small caps headings */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* ── Surfaces and ink ── */
    --ground: #0b0e11;
    --surface: #13181c;
    --surface-sunken: #0f1317;
    --text: #eef1f3;
    --text-secondary: #b6bec6;
    --text-muted: #87919b;
    --border: #232a31;
    --border-strong: #37414a;

    /* ── Brand ── */
    --accent: color-mix(in oklab, var(--brand-base, #0a7a55) 72%, #ffffff);
    --accent-ink: #06120d;
    --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--surface));
    --accent-text: var(--accent);

    /* ── Status ── */
    --success: #4fd494;
    --success-soft: rgba(79, 212, 148, 0.13);
    --danger: #ff6b78;

    /* ── Glass and elevation ── */
    --glass-bg: rgba(19, 24, 28, 0.78);
    --glass-border: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
/* Bangla, wherever lang="bn" is: a step larger, more leading, and never tracked — the apps' layer (DS-4c). */
:lang(bn) {
  --text-2xs: 13px;
  --text-xs: 14px;
  --text-sm: 15px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 18px;
  --leading-normal: 1.7;
  --leading-snug: 1.5;
  --leading-title: 1.3;
  --leading-heading: 1.3;
  --leading-hero: 1.25;
  --tracking-wide: 0;
  --tracking-tight: 0;
  --tracking-figure: 0;
  --tracking-display: 0;
  --tracking-hero: 0;
  --tracking-caps: 0;
}
/* Latin inside Bangla takes the Latin values back. */
:lang(bn) [lang]:not(:lang(bn)) {
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 17px;
  --leading-normal: 1.55;
  --leading-snug: 1.35;
  --leading-title: 1.1;
  --leading-heading: 1.08;
  --leading-hero: 1.02;
  --tracking-wide: 0.02em;
  --tracking-tight: -0.01em;
  --tracking-figure: -0.005em;
  --tracking-display: -0.02em;
  --tracking-hero: -0.025em;
  --tracking-caps: 0.1em;
}
/* Save-Data: the device's own faces, and Noto for Bangla (DS-4c). */
:root[data-save-data] {
  --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
}

/*! Fonts: IBM Plex Sans © 2019 IBM Corp. Noto Sans Bengali © 2025 The Noto Project Authors. Anek Bangla © 2021 The Anek Project Authors. Licensed under the SIL Open Font License 1.1 (openfontlicense.org); the full text is at /assets/fonts/OFL-ibm-plex-sans.txt, /assets/fonts/OFL-noto-sans-bengali.txt and /assets/fonts/OFL-anek-bangla.txt. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2?v=3b646991d3') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2?v=0717336fb3') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2?v=8960851d69') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-400-normal.woff2?v=adb805ae2e') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-500-normal.woff2?v=3af14da23c') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-600-normal.woff2?v=abfa65f4f7') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 700;
  font-stretch: 88% 100%;
  font-display: swap;
  src: url('/assets/fonts/anek-bangla-latin-standard-normal.woff2?v=16347b3d35') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 700;
  font-stretch: 88% 100%;
  font-display: swap;
  src: url('/assets/fonts/anek-bangla-bengali-700-normal.woff2?v=869cfa876e') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 700;
  font-stretch: 88% 100%;
  font-display: swap;
  src: url('/assets/fonts/anek-bangla-taka-700-normal.woff2?v=45d8ec41ae') format('woff2');
  unicode-range: U+09F3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--text);
  font: 400 var(--text-md)/var(--leading-normal) var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-xs); }
.ic { width: 20px; height: 20px; flex: none; }

/* ── Header: the one piece of glass that floats over everything ── */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--glass-bg); border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
}
.hdr__in {
  max-width: var(--page-max); margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 32px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--font-display); letter-spacing: var(--tracking-wide);
}
.brand__name { font: 700 18px/var(--leading-title) var(--font-display); font-stretch: 92%; letter-spacing: var(--tracking-tight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; max-width: 560px; width: 100%; justify-self: center;
  background: var(--surface-sunken); border: 1px solid transparent; border-radius: 999px; transition: border-color 140ms, background 140ms;
}
.search:focus-within { background: var(--surface); border-color: var(--border-strong); }
.search .ic { color: var(--text-muted); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--text-base); }
.search input::-webkit-search-cancel-button { display: none; }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.navlink, .cartlink {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: var(--text-base); color: var(--text-secondary);
}
.navlink:hover, .cartlink:hover { background: var(--surface-sunken); color: var(--text); }
.cartlink { color: var(--text); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: var(--text-2xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.count[hidden] { display: none; }
.promise {
  list-style: none; margin: 0 auto; max-width: var(--page-max); padding: 0 var(--gutter) 10px;
  display: flex; gap: 22px; flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-secondary);
}
.promise li { display: inline-flex; align-items: center; gap: 7px; }
.promise .ic { width: 17px; height: 17px; color: var(--accent-text); }

/* ── Page ── */
.page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--gutter) 64px; flex: 1 0 auto; }
.intro { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.intro__title { margin: 0; font: 700 clamp(30px, 4.6vw, 52px)/var(--leading-hero) var(--font-display); font-stretch: 88%; letter-spacing: var(--tracking-hero); text-wrap: balance; }
.intro__lede { margin: 8px 0 0; font-size: var(--text-lg); color: var(--text-secondary); max-width: 60ch; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--ground); }
.chip__n { font-variant-numeric: tabular-nums; opacity: 0.7; font-size: var(--text-xs); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); }
.sort select { height: 36px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--text-sm); color: var(--text); }

/* ── Product grid ── */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.card { display: flex; flex-direction: column; gap: 10px; }
.card[hidden] { display: none; }
.card__top { position: relative; }
.card__img { display: block; }
.card__link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); }
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .media__img { transform: scale(1.035); }
.media__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  /* The tint is mixed INTO the theme's own well, so it is quiet on paper and quiet on ink alike. */
  background-color: color-mix(in oklab, hsl(var(--hue, 150) 45% 55%) 14%, var(--surface-sunken));
  /* A Jamdani lattice: two fine diagonal weaves over the tint. */
  background-image:
    repeating-linear-gradient(45deg, color-mix(in oklab, var(--text) 6%, transparent) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, color-mix(in oklab, var(--text) 6%, transparent) 0 1px, transparent 1px 14px);
}
.ic--ph { width: 34%; height: 34%; color: color-mix(in oklab, hsl(var(--hue, 150) 35% 45%) 55%, var(--text-muted)); stroke-width: 1.2; opacity: 0.7; }
.tag {
  position: absolute; left: 10px; top: 10px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: var(--text-2xs); font-weight: 600; color: var(--text-secondary);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
}
.tag--ok { color: var(--success); }
.card__title { font: 500 var(--text-base)/var(--leading-snug) var(--font-sans); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { font: 700 17px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-figure); }
.quick {
  position: absolute; right: 10px; bottom: 10px; /* over the image's lower-right corner */
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); transition: transform 140ms, background 140ms;
}
.quick:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.quick .ic { width: 18px; height: 18px; stroke-width: 2; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-secondary); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty[hidden] { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: var(--text-md);
  transition: filter 140ms, transform 120ms;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--grow { flex: 1 1 220px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn .ic { width: 19px; height: 19px; }

/* ── Product page ── */
.crumb { margin-bottom: 18px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; }
.crumb .ic { width: 16px; height: 16px; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.product__media { display: flex; flex-direction: column; gap: 12px; }
.media--big { border-radius: var(--radius-xl); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; }
.thumb { width: 72px; height: 90px; padding: 0; flex: none; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-sunken); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 14px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.status--ok { color: var(--success); }
.status--ok::before { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.product__title { margin: 0; font: 700 clamp(28px, 3.4vw, 42px)/var(--leading-heading) var(--font-display); font-stretch: 90%; letter-spacing: var(--tracking-display); text-wrap: balance; }
.product__price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; }
.price { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); }
.per { color: var(--text-muted); font-size: var(--text-base); }
.product__vat { margin: -6px 0 0; color: var(--text-muted); font-size: var(--text-sm); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; height: 50px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; color: var(--text); }
.stepper button:hover { background: var(--surface-sunken); }
.stepper input { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: var(--text-md); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dcog { margin: 10px 0 0; padding: 4px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dcog > div { display: grid; grid-template-columns: 22px 132px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); align-items: start; }
.dcog > div:last-child { border-bottom: 0; }
.dcog .ic { width: 20px; height: 20px; color: var(--accent-text); margin-top: 1px; }
.dcog dt { font-size: var(--text-sm); color: var(--text-muted); }
.dcog dd { margin: 0; font-size: var(--text-base); color: var(--text); }
.about { margin-top: clamp(32px, 5vw, 64px); max-width: 72ch; }
.about__h { font: 700 22px var(--font-display); margin: 0 0 10px; }
.about__body { color: var(--text-secondary); font-size: var(--text-lg); }
.buybar { display: none; }

/* ── Cart & checkout ── */
.done .qr { width: 220px; max-width: 100%; margin: 12px auto; background: #fff; padding: 8px; border-radius: 8px; }
.done .qr svg { display: block; width: 100%; height: auto; }
.pagetitle { font: 700 clamp(28px, 4vw, 40px)/var(--leading-title) var(--font-display); font-stretch: 90%; letter-spacing: var(--tracking-display); margin: 0 0 20px; }
.cart { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.panel__h { font: 700 20px var(--font-display); margin: 0; }
.cart__lines { padding: 6px 20px; }
.cart__lines .empty { border: 0; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line__title { font-weight: 600; text-decoration: none; }
.line__each { color: var(--text-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.line .qty { display: inline-flex; align-items: center; height: 38px; padding: 0 4px; border: 1px solid var(--border-strong); border-radius: 999px; }
.line .qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; }
.line .qty input { width: 34px; border: 0; background: transparent; text-align: center; font-weight: 600; }
.line__sum { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 96px; text-align: right; }
.cart__checkout { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 132px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.field input, .field textarea {
  font-size: var(--text-md); font-weight: 400; color: var(--text); padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.zone { gap: 8px; }
.zone legend { margin-bottom: 6px; }
.zone label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 500; cursor: pointer; }
.zone label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.zone label span { flex: 1; }
.zone input { accent-color: var(--accent); }
.sums { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.sums div { display: flex; justify-content: space-between; color: var(--text-secondary); }
.sums .grand { color: var(--text); font: 700 20px var(--font-display); }
.done { white-space: pre-line;  margin: 0; padding: 14px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); font-weight: 600; }
.done[hidden] { display: none; }
.empty--page { max-width: 560px; margin: 24px auto; display: grid; gap: 16px; justify-items: center; }

.prose { max-width: 720px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.prose h1 { font: 700 34px/var(--leading-title) var(--font-display); font-stretch: 90%; margin: 0 0 12px; letter-spacing: var(--tracking-display); }
.prose h2 { font: 700 19px var(--font-display); margin: 26px 0 6px; }
/* A Bangla page draws every title at 100% (owner decision 2026-10-07, narrow ENGLISH headings only): Anek's Bengali file is
   static, and without this a Bangla title's spaces and punctuation, and an English shop name or tagline, would narrow. */
:lang(bn) .brand__name, :lang(bn) .intro__title, :lang(bn) .product__title, :lang(bn) .pagetitle, :lang(bn) .prose h1 { font-stretch: 100%; }
.prose p { margin: 0 0 10px; color: var(--text-secondary); }

/* ── Footer: solid ink, the shop's paperwork ── */
.ftr { background: #0e1215; color: #d6dbe0; margin-top: auto; }
.ftr__in { max-width: var(--page-max); margin: 0 auto; padding: 44px var(--gutter) 20px; display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 32px; }
.ftr__name { margin: 0; font: 700 20px var(--font-display); color: #ffffff; }
.ftr__muted { margin: 6px 0 0; color: #9aa4ad; font-size: var(--text-base); }
.ftr__h { margin: 0 0 12px; font-size: var(--text-2xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: #8a949d; }
:lang(bn) .ftr__h { text-transform: none; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--text-base); }
.ftr__list a { color: #eef1f3; text-decoration: none; }
.ftr__list a:hover { text-decoration: underline; }
.facts { margin: 14px 0 0; display: grid; gap: 4px; font-size: var(--text-sm); }
.facts div { display: flex; gap: 8px; }
.facts dt { color: #8a949d; }
.facts dd { margin: 0; color: #eef1f3; font-variant-numeric: tabular-nums; }
.ftr__small { max-width: var(--page-max); margin: 0 auto; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #242b31; font-size: var(--text-xs); color: #7c868f; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--ground); font-weight: 500; box-shadow: var(--shadow-lg);
}
.toast[hidden] { display: none; }

/* ── Narrow screens ── */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .hdr__in { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .cartlink__label { display: none; }
  .promise { gap: 14px; font-size: var(--text-2xs); overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }
  .promise::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .cart, .ftr__in { grid-template-columns: minmax(0, 1fr); }
  .buybox, .cart__checkout { position: static; }
  .dcog > div { grid-template-columns: 22px minmax(0, 1fr); }
  .dcog dd { grid-column: 2; }
  .buy { display: none; }
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--glass-bg); border-top: 1px solid var(--glass-border);
    -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  }
  .buybar__price { font: 700 22px var(--font-display); font-variant-numeric: tabular-nums; }
  .buybar .btn { height: 46px; flex: 1; max-width: 240px; }
  .page:has(.buybar) { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .media__img, .quick, .btn { transition: none; }
}
