/* ==========================================================================
   BazarNote — Separated Multi-Theme Design System & Base Styles
   Palettes:
     1. copper (Default) — Warm Graphite & Burnt Copper (Light + Warm Obsidian Dark)
     2. green            — Forest Obsidian & Sage Mint (Light + Deep Forest Dark)
     3. amber            — Saffron Gold & Charcoal (Light + Obsidian Amber Dark)
   ========================================================================== */

/* ---------- 1. PALETTE: COPPER (DEFAULT) ---------- */
:root,
html[data-palette="copper"] {
  color-scheme: light;
  --bn-canvas: 247 245 242;        /* #F7F5F2 */
  --bn-surface: 255 255 255;       /* #FFFFFF */
  --bn-elevated: 229 223 213;      /* #E5DFD5 */
  --bn-well: 239 235 229;          /* #EFEBE5 */
  --bn-line: 215 207 196;          /* #D7CFC4 */
  --bn-ink: 24 21 19;              /* #181513 */
  --bn-muted: 92 83 76;            /* #5C534C */

  --bn-brand-50: 243 229 220;      /* #F3E5DC */
  --bn-brand-100: 232 211 197;     /* #E8D3C5 */
  --bn-brand-300: 217 167 140;     /* #D9A78C */
  --bn-brand-400: 208 139 107;     /* #D08B6B */
  --bn-brand-500: 176 98 65;       /* #B06241 */
  --bn-brand-600: 154 77 46;       /* #9A4D2E */
  --bn-brand-700: 122 57 32;       /* #7A3920 */
  --bn-brand-800: 63 56 53;        /* #3F3835 */
  --bn-brand-900: 24 21 19;        /* #181513 */

  --bn-tint: 243 238 231;          /* #F3EEE7 */
  --bn-tint-strong: 236 229 219;   /* #ECE5DB */
  --bn-line-strong: 196 184 170;   /* #C4B8AA */
  --bn-accent: 154 77 46;          /* #9A4D2E */
  --bn-accent-soft: 243 229 220;   /* #F3E5DC */
  --bn-accent-ink: 122 57 32;      /* #7A3920 */
  --bn-cta: 41 37 36;              /* #292524 */
  --bn-cta-hover: 63 56 53;        /* #3F3835 */
  --bn-cta-ink: 250 246 240;       /* #FAF6F0 */
  --bn-cta-line: 63 56 53;         /* #3F3835 */
  --bn-hero-from: 41 37 36;        /* #292524 */
  --bn-hero-to: 66 53 47;          /* #42352F */
  --bn-hero-ink: 250 246 240;      /* #FAF6F0 */
  --bn-hero-muted: 226 214 203;    /* #E2D6CB */
  --bn-scrim: 24 21 19;            /* #181513 */

  --bn-spent-bg: 243 229 220;      /* #F3E5DC */
  --bn-spent-ink: 122 57 32;       /* #7A3920 */
  --bn-check-bg: 154 77 46;        /* #9A4D2E */
  --bn-check-border: 154 77 46;    /* #9A4D2E */
  --bn-check-ink: 255 255 255;     /* #FFFFFF */

  --bn-ambient: rgba(229, 223, 213, 0.78);
  --bn-surface-inset: rgba(236, 231, 225, 0.04);
  --bn-flash-start: rgba(154, 77, 46, 0.22);
  --bn-flash-mid: rgba(243, 229, 220, 0.85);

  /* Dynamic In-App Logo Palette (Copper) */
  --bn-logo-0: #181513;
  --bn-logo-1: #2C2420;
  --bn-logo-2: #4E2D1E;
  --bn-logo-3: #7A3D24;
  --bn-logo-glow: #C9977A;
  --bn-logo-handle: #EFE6DC;
  --bn-logo-card-bot: #EFE6DC;
  --bn-logo-bar: #8C4427;
  --bn-logo-seal: #8C4427;
  --bn-logo-check: #FAF6F0;
}

/* Pre-JS native OS/browser Dark Mode fallback (prevents flat-white flash before boot script) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme-resolved]) {
    color-scheme: dark;
    --bn-canvas: 13 12 11;
    --bn-surface: 22 20 18;
    --bn-ink: 236 231 225;
  }
}

html.dark,
html.dark[data-palette="copper"] {
  color-scheme: dark;
  --bn-canvas: 13 12 11;           /* #0D0C0B */
  --bn-surface: 22 20 18;          /* #161412 */
  --bn-elevated: 32 29 26;         /* #201D1A */
  --bn-well: 17 16 14;             /* #11100E */
  --bn-line: 46 42 38;             /* #2E2A26 */
  --bn-ink: 236 231 225;           /* #ECE7E1 */
  --bn-muted: 161 150 140;         /* #A1968C */

  --bn-tint: 25 22 20;             /* #191614 */
  --bn-tint-strong: 35 30 27;      /* #231E1B */
  --bn-line-strong: 74 63 55;      /* #4A3F37 */
  --bn-accent: 208 139 107;        /* #D08B6B */
  --bn-accent-soft: 45 31 24;      /* #2D1F18 */
  --bn-accent-ink: 235 206 190;    /* #EBCEBE */
  --bn-cta: 92 52 34;              /* #5C3422 */
  --bn-cta-hover: 112 64 43;       /* #70402B */
  --bn-cta-ink: 243 231 223;       /* #F3E7DF */
  --bn-cta-line: 140 83 57;        /* #8C5339 */
  --bn-hero-from: 43 27 20;        /* #2B1B14 */
  --bn-hero-to: 58 35 25;          /* #3A2319 */
  --bn-hero-ink: 245 236 229;      /* #F5ECE5 */
  --bn-hero-muted: 206 184 170;    /* #CEB8AA */
  --bn-scrim: 0 0 0;

  --bn-spent-bg: 32 29 26;         /* #201D1A */
  --bn-spent-ink: 235 206 190;     /* #EBCEBE */
  --bn-check-bg: 92 52 34;         /* #5C3422 */
  --bn-check-border: 140 83 57;    /* #8C5339 */
  --bn-check-ink: 243 231 223;     /* #F3E7DF */

  --bn-ambient: rgba(92, 52, 34, 0.16);
  --bn-surface-inset: rgba(236, 231, 225, 0.04);
  --bn-flash-start: rgba(112, 64, 43, 0.42);
  --bn-flash-mid: rgba(92, 52, 34, 0.28);
}

/* ---------- 2. PALETTE: GREEN (FOREST OBSIDIAN & SAGE MINT) ---------- */
html[data-palette="green"] {
  color-scheme: light;
  --bn-canvas: 244 250 245;        /* #F4FAF5 */
  --bn-surface: 255 255 255;       /* #FFFFFF */
  --bn-elevated: 218 241 222;      /* #DAF1DE */
  --bn-well: 236 247 238;          /* #ECF7EE */
  --bn-line: 204 226 209;          /* #CCE2D1 */
  --bn-ink: 5 31 32;               /* #051F20 */
  --bn-muted: 35 83 71;            /* #235347 */

  --bn-brand-50: 218 241 222;      /* #DAF1DE */
  --bn-brand-100: 196 228 204;     /* #C4E4CC */
  --bn-brand-300: 187 216 199;     /* #BBD8C7 */
  --bn-brand-400: 117 179 151;     /* #75B397 */
  --bn-brand-500: 93 154 127;      /* #5D9A7F */
  --bn-brand-600: 35 83 71;        /* #235347 */
  --bn-brand-700: 22 56 50;        /* #163832 */
  --bn-brand-800: 11 43 38;        /* #0B2B26 */
  --bn-brand-900: 5 31 32;         /* #051F20 */

  --bn-tint: 234 246 237;          /* #EAF6ED */
  --bn-tint-strong: 218 241 222;   /* #DAF1DE */
  --bn-line-strong: 168 206 179;   /* #A8CEB3 */
  --bn-accent: 35 83 71;           /* #235347 */
  --bn-accent-soft: 218 241 222;   /* #DAF1DE */
  --bn-accent-ink: 22 56 50;       /* #163832 */
  --bn-cta: 22 56 50;              /* #163832 */
  --bn-cta-hover: 11 43 38;        /* #0B2B26 */
  --bn-cta-ink: 244 250 245;       /* #F4FAF5 */
  --bn-cta-line: 35 83 71;         /* #235347 */
  --bn-hero-from: 11 43 38;        /* #0B2B26 */
  --bn-hero-to: 35 83 71;          /* #235347 */
  --bn-hero-ink: 244 250 245;      /* #F4FAF5 */
  --bn-hero-muted: 196 228 204;    /* #C4E4CC */
  --bn-scrim: 5 31 32;             /* #051F20 */

  --bn-spent-bg: 218 241 222;      /* #DAF1DE */
  --bn-spent-ink: 22 56 50;        /* #163832 */
  --bn-check-bg: 35 83 71;         /* #235347 */
  --bn-check-border: 35 83 71;     /* #235347 */
  --bn-check-ink: 255 255 255;     /* #FFFFFF */

  --bn-ambient: rgba(218, 241, 222, 0.72);
  --bn-surface-inset: rgba(214, 236, 224, 0.03);
  --bn-flash-start: rgba(142, 182, 155, 0.36);
  --bn-flash-mid: rgba(218, 241, 222, 0.85);

  /* Dynamic In-App Logo Palette (Forest Green — exact v1.0.1 clone) */
  --bn-logo-0: #051F20;
  --bn-logo-1: #0B2B26;
  --bn-logo-2: #163832;
  --bn-logo-3: #235347;
  --bn-logo-glow: #8EB69B;
  --bn-logo-handle: #DAF1DE;
  --bn-logo-card-bot: #DAF1DE;
  --bn-logo-bar: #235347;
  --bn-logo-seal: #235347;
  --bn-logo-check: #DAF1DE;
}

html.dark[data-palette="green"] {
  color-scheme: dark;
  --bn-canvas: 6 12 11;            /* #060C0B */
  --bn-surface: 12 22 20;          /* #0C1614 */
  --bn-elevated: 17 30 27;         /* #111E1B */
  --bn-well: 8 16 15;              /* #08100F */
  --bn-line: 26 46 42;             /* #1A2E2A */
  --bn-ink: 220 231 224;           /* #DCE7E0 */
  --bn-muted: 127 158 139;         /* #7F9E8B */

  --bn-tint: 14 27 24;             /* #0E1B18 */
  --bn-tint-strong: 20 38 34;      /* #142622 */
  --bn-line-strong: 40 74 65;      /* #284A41 */
  --bn-accent: 117 179 151;        /* #75B397 */
  --bn-accent-soft: 19 43 36;      /* #132B24 */
  --bn-accent-ink: 203 232 216;    /* #CBE8D8 */
  --bn-cta: 31 81 66;              /* #1F5142 */
  --bn-cta-hover: 39 99 81;        /* #276351 */
  --bn-cta-ink: 230 244 236;       /* #E6F4EC */
  --bn-cta-line: 53 122 101;       /* #357A65 */
  --bn-hero-from: 13 36 30;        /* #0D241E */
  --bn-hero-to: 24 58 48;          /* #183A30 */
  --bn-hero-ink: 230 244 236;      /* #E6F4EC */
  --bn-hero-muted: 162 199 180;    /* #A2C7B4 */
  --bn-scrim: 0 0 0;

  --bn-spent-bg: 17 34 29;         /* #11221D */
  --bn-spent-ink: 187 224 205;     /* #BBE0CD */
  --bn-check-bg: 31 81 66;         /* #1F5142 */
  --bn-check-border: 53 122 101;   /* #357A65 */
  --bn-check-ink: 230 244 236;     /* #E6F4EC */

  --bn-ambient: rgba(20, 52, 43, 0.16);
  --bn-surface-inset: rgba(214, 236, 224, 0.03);
  --bn-flash-start: rgba(31, 81, 66, 0.45);
  --bn-flash-mid: rgba(22, 59, 48, 0.35);
}

/* ---------- 3. PALETTE: AMBER (SAFFRON GOLD & OBSIDIAN) ---------- */
html[data-palette="amber"] {
  color-scheme: light;
  --bn-canvas: 250 248 244;        /* #FAF8F4 */
  --bn-surface: 255 255 255;       /* #FFFFFF */
  --bn-elevated: 244 239 230;      /* #F4EFE6 */
  --bn-well: 250 247 240;          /* #FAF7F0 */
  --bn-line: 230 224 214;          /* #E6E0D6 */
  --bn-ink: 24 26 31;              /* #181A1F */
  --bn-muted: 96 102 114;          /* #606672 */

  --bn-brand-50: 254 243 199;      /* #FEF3C7 */
  --bn-brand-100: 253 230 138;     /* #FDE68A */
  --bn-brand-300: 252 211 77;      /* #FCD34D */
  --bn-brand-400: 251 191 36;      /* #FBBF24 */
  --bn-brand-500: 245 158 11;      /* #F59E0B */
  --bn-brand-600: 217 119 6;       /* #D97706 */
  --bn-brand-700: 180 83 9;        /* #B45309 */
  --bn-brand-800: 30 34 41;        /* #1E2229 */
  --bn-brand-900: 17 19 23;        /* #111317 */

  --bn-tint: 250 247 240;          /* #FAF7F0 */
  --bn-tint-strong: 243 236 224;   /* #F3ECE0 */
  --bn-line-strong: 214 205 191;   /* #D6CDBF */
  --bn-accent: 234 88 12;          /* #EA580C */
  --bn-accent-soft: 254 237 216;   /* #FEEDD8 */
  --bn-accent-ink: 194 65 12;      /* #C2410C */
  --bn-cta: 30 34 41;              /* #1E2229 */
  --bn-cta-hover: 44 49 59;        /* #2C313B */
  --bn-cta-ink: 255 255 255;       /* #FFFFFF */
  --bn-cta-line: 245 158 11;       /* #F59E0B */
  --bn-hero-from: 24 27 34;        /* #181B22 */
  --bn-hero-to: 44 38 28;          /* #2C261C */
  --bn-hero-ink: 255 255 255;      /* #FFFFFF */
  --bn-hero-muted: 253 230 138;    /* #FDE68A */
  --bn-scrim: 17 19 23;            /* #111317 */

  --bn-spent-bg: 254 240 168;      /* #FEF0A8 sunny butter-amber */
  --bn-spent-ink: 24 26 31;        /* #181A1F crisp dark ink */
  --bn-check-bg: 61 166 24;        /* #3DA618 fresh green check */
  --bn-check-border: 61 166 24;    /* #3DA618 */
  --bn-check-ink: 255 255 255;     /* #FFFFFF */

  --bn-ambient: rgba(254, 240, 199, 0.55);
  --bn-surface-inset: rgba(255, 255, 255, 0.04);
  --bn-flash-start: rgba(245, 158, 11, 0.24);
  --bn-flash-mid: rgba(254, 243, 199, 0.88);

  /* Dynamic In-App Logo Palette (Sunset Amber-Orange) */
  --bn-logo-0: #EA580C;
  --bn-logo-1: #F97316;
  --bn-logo-2: #F59E0B;
  --bn-logo-3: #FBBF24;
  --bn-logo-glow: #FEF08A;
  --bn-logo-handle: #FFFBEB;
  --bn-logo-card-bot: #FEF3C7;
  --bn-logo-bar: #EA580C;
  --bn-logo-seal: #EA580C;
  --bn-logo-check: #FFFFFF;
}

html.dark[data-palette="amber"] {
  color-scheme: dark;
  --bn-canvas: 14 15 18;           /* #0E0F12 */
  --bn-surface: 21 23 27;          /* #15171B */
  --bn-elevated: 30 33 40;         /* #1E2128 */
  --bn-well: 17 19 23;             /* #111317 */
  --bn-line: 38 41 48;             /* #262930 */
  --bn-ink: 241 243 247;           /* #F1F3F7 */
  --bn-muted: 152 158 170;         /* #989EAA */

  --bn-tint: 20 22 26;             /* #14161A */
  --bn-tint-strong: 29 32 39;      /* #1D2027 */
  --bn-line-strong: 58 62 72;      /* #3A3E48 */
  --bn-accent: 251 191 36;         /* #FBBF24 */
  --bn-accent-soft: 56 36 18;      /* #382412 */
  --bn-accent-ink: 251 191 36;     /* #FBBF24 */
  --bn-cta: 245 168 18;            /* #F5A812 rich solar gold */
  --bn-cta-hover: 251 186 45;      /* #FBBA2D */
  --bn-cta-ink: 17 19 23;          /* #111317 crisp dark ink */
  --bn-cta-line: 252 211 77;       /* #FCD34D */
  --bn-hero-from: 34 27 16;        /* #221B10 */
  --bn-hero-to: 54 39 16;          /* #362710 */
  --bn-hero-ink: 254 243 199;      /* #FEF3C7 */
  --bn-hero-muted: 251 191 36;     /* #FBBF24 */
  --bn-scrim: 0 0 0;

  --bn-spent-bg: 51 37 16;         /* #332510 warm amber-bronze */
  --bn-spent-ink: 251 191 36;      /* #FBBF24 glowing gold */
  --bn-check-bg: 82 183 40;        /* #52B728 fresh green check */
  --bn-check-border: 82 183 40;    /* #52B728 */
  --bn-check-ink: 255 255 255;     /* #FFFFFF */

  --bn-ambient: rgba(245, 158, 11, 0.11);
  --bn-surface-inset: rgba(255, 255, 255, 0.04);
  --bn-flash-start: rgba(245, 158, 11, 0.34);
  --bn-flash-mid: rgba(180, 83, 9, 0.24);
}

/* ---------- 4. THEME-SPECIFIC POLISH ACCENTS ---------- */
html {
  background-color: rgb(var(--bn-canvas));
}
body {
  background-color: rgb(var(--bn-canvas));
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-image: radial-gradient(ellipse 85% 42% at 50% -8%, var(--bn-ambient), transparent 68%);
  background-repeat: no-repeat;
  background-size: 100% 420px;
}
html.dark body {
  background-image: radial-gradient(ellipse 70% 32% at 50% -12%, var(--bn-ambient), transparent 62%);
  background-repeat: no-repeat;
  background-size: 100% 360px;
}
html.dark .bg-surface-dark {
  box-shadow: inset 0 1px 0 var(--bn-surface-inset), 0 8px 24px -14px rgba(0, 0, 0, 0.85);
}

/* Amber signature touches: golden header rule, FAB rim/glow & fresh green-to-gold spent bar */
html[data-palette="amber"] header {
  border-bottom-color: rgba(245, 158, 11, 0.72);
}
html.dark[data-palette="amber"] header {
  border-bottom-color: rgba(245, 158, 11, 0.58);
}
html[data-palette="amber"] #createListBtn {
  box-shadow: 0 12px 28px -8px rgba(17, 19, 23, 0.45), 0 0 0 1.5px rgba(245, 158, 11, 0.78);
}
html.dark[data-palette="amber"] #createListBtn {
  box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.42);
}
html[data-palette="amber"] .bn-amber-bar {
  background-image: linear-gradient(90deg, #43B02A 0%, #EAB308 100%);
}
html[data-palette="amber"] .bn-spent-cell {
  background-image: linear-gradient(135deg, rgba(254, 240, 168, 0.96) 0%, rgba(253, 230, 138, 0.82) 100%);
}
html.dark[data-palette="amber"] .bn-spent-cell {
  background-image: linear-gradient(135deg, rgba(58, 41, 16, 0.96) 0%, rgba(40, 29, 13, 0.92) 100%);
}

/* Dynamic In-App BazarNote Vector Logo */
.bn-logo-svg .bn-l-s0 { stop-color: var(--bn-logo-0); }
.bn-logo-svg .bn-l-s1 { stop-color: var(--bn-logo-1); }
.bn-logo-svg .bn-l-s2 { stop-color: var(--bn-logo-2); }
.bn-logo-svg .bn-l-s3 { stop-color: var(--bn-logo-3); }
.bn-logo-svg .bn-l-glow { fill: var(--bn-logo-glow); }
.bn-logo-svg .bn-l-handle { stroke: var(--bn-logo-handle); }
.bn-logo-svg .bn-l-cbot { stop-color: var(--bn-logo-card-bot); }
.bn-logo-svg .bn-l-bar { fill: var(--bn-logo-bar); }
.bn-logo-svg .bn-l-seal { fill: var(--bn-logo-seal); }
.bn-logo-svg .bn-l-check { stroke: var(--bn-logo-check); }
html.dark .bn-logo-svg {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Locked English Brand Wordmark (always Plus Jakarta Sans 800, immune to html.lang-bn overrides) */
.bn-brand-wordmark,
html.lang-bn .bn-brand-wordmark {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1 !important;
}

/* Compact Handwritten Developer Signature (immune to Bangla typography overrides) */
.bn-signature-name,
html.lang-bn .bn-signature-name {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-weight: 700;
  letter-spacing: 0.015em !important;
  line-height: 1.05;
}

/* ---------- 5. CORE BASE, SAFE-AREA, TYPOGRAPHY & ANIMATIONS ---------- */
* { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea, [data-open-list], [data-pick-price], [data-shop-toggle], [data-calc-recall], [data-it-expand] {
  touch-action: manipulation;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.num { font-variant-numeric: tabular-nums; }

/* iPhone / iPad safe-area insets (0px on Desktop & regular Android browsers) */
.safe-top { padding-top: env(safe-area-inset-top, 0px); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
#createListBtn { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
#toastContainer { bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }

/* Prevent iPhone Safari forced page zoom on <16px inputs */
@supports (-webkit-touch-callout: none) {
  input[type="text"], input[type="number"], input[type="search"], textarea, select {
    font-size: 16px !important;
  }
}

/* Balanced Bangla & English typography (zero faux-bolding, clean matra/juktakhor spacing) */
html.lang-bn body {
  font-family: "Noto Sans Bengali", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  font-synthesis-weight: none;
}
html.lang-bn h1, html.lang-bn h2, html.lang-bn h3, html.lang-bn .tracking-tight {
  letter-spacing: 0 !important;
  line-height: 1.32;
}
html.lang-bn .tracking-wider, html.lang-bn .uppercase {
  letter-spacing: 0.01em !important;
  text-transform: none;
}
html.lang-bn .font-extrabold, html.lang-bn .font-black {
  font-weight: 700;
}
html.lang-bn #homeTitle {
  font-size: 1.45rem;
  line-height: 1.3;
}
@media (min-width: 640px) {
  html.lang-bn #homeTitle { font-size: 1.75rem; }
}
html.lang-bn .text-\[10px\] { font-size: 11px; }
html.lang-bn .text-\[11px\] { font-size: 12px; }

/* Lightweight GPU-composited transitions (transform + opacity only) */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.modal-overlay.is-open { opacity: 1; }
.modal-sheet {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}
@media (min-width: 640px) {
  .modal-sheet { transform: translateY(14px) scale(0.97); }
}
.modal-overlay.is-open .modal-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.calc-sheet {
  transform: translateY(32px);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}
.calc-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
}
.drawer-backdrop {
  opacity: 0;
  transition: opacity 0.22s ease;
}
#navDrawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
#navDrawer.is-open .drawer-panel { transform: translateX(0); }
.c-dropdown-menu {
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.c-dropdown-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.c-dropdown-up { transform: translateY(4px) scale(0.98); }
.c-dropdown-up.is-open { transform: translateY(0) scale(1); }
.dd-chevron { transition: transform 0.18s ease; }
.dd-open .dd-chevron { transform: rotate(180deg); }
.welcome-anim {
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.welcome-anim.is-closing {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
}
@keyframes itemAddedIn {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes itemAddedGlow {
  0% { background-color: var(--bn-flash-start); }
  35% { background-color: var(--bn-flash-mid); }
  100% { background-color: transparent; }
}
.item-added-flash {
  animation: itemAddedIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both, itemAddedGlow 1.5s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-sheet, .calc-sheet, .drawer-backdrop, .drawer-panel, .c-dropdown-menu, .dd-chevron, .welcome-anim, .item-added-flash {
    transition: none !important;
    animation: none !important;
  }
}

/* Clean Print Layout for Bazar Slip */
@media print {
  body > *:not(#slipModal) { display: none !important; }
  #slipModal {
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
    display: block !important;
  }
  #slipModal > div {
    max-width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  #slipModal .no-print { display: none !important; }
  #slipBody * { color: #111 !important; border-color: #cbd5e1 !important; background: transparent !important; }
}
