/* Zayar Thit Electronic — showroom plaster walls, walnut actions, brass for sale prices.
   Layout: left-aligned 1240px container; product imagery sits on its own "stage". */
:root {
  --bg: #e8ebe5;
  --surface: #f4f6f2;
  --raised: #ffffff;
  --stage: #dfe3db;
  --ink: #1d2420;
  --ink-2: #4b5650;
  --ink-3: #66726b;
  --line: #cbd2c8;
  --line-2: #dce1d8;
  --walnut: #6a4330;
  --walnut-hover: #553423;
  --on-walnut: #fbf7f2;
  --brass: #8a6118;
  --brass-mark: #b8893b;
  --brass-soft: #f0e4c8;
  --moss: #2c4337;
  --moss-2: #3a5547;
  --on-moss: #e5ece7;
  --on-moss-2: #a9bbb0;
  --good: #2b7a46; --good-soft: #dcefe1;
  --warn: #8f5f00; --warn-soft: #f6e8c6;
  --bad: #ab3a28; --bad-soft: #f6dcd6;
  --info: #2f5f8f; --info-soft: #dce8f3;
  --focus: #2f6db5;
  --chart-1: #1f7a55; --chart-2: #b9741a; --chart-3: #3f63b8; --chart-grid: #e6e9e3;
  /* Expense category colours: one fixed colour per category (validated for colour-blind safety; labels always shown). */
  --cat-1: #2a78d6; --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100; --cat-5: #e87ba4; --cat-6: #008300; --cat-7: #6250d6; --cat-8: #e34948;
  --cat-0: #a9a7a0; --cat-auto: #6f6e69; --chart-cost: #8e4585;
  --shadow: 0 1px 2px rgb(29 36 32 / 6%), 0 8px 24px rgb(29 36 32 / 8%);
  --font: 'Familjen Grotesk', 'Noto Sans Myanmar', 'Myanmar Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --container: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141815; --surface: #1b201d; --raised: #222825; --stage: #2a312c;
    --ink: #e6ebe7; --ink-2: #b4beb7; --ink-3: #8d9891; --line: #39423c; --line-2: #2c332e;
    --walnut: #cf9a74; --walnut-hover: #deae8b; --on-walnut: #1d140e;
    --brass: #e0b25e; --brass-mark: #d6a54e; --brass-soft: #3a3020;
    --moss: #0e1311; --moss-2: #1b2420; --on-moss: #dfe7e2; --on-moss-2: #96a69c;
    --good: #72c48f; --good-soft: #1c3325; --warn: #e5b04a; --warn-soft: #3a2f17; --bad: #f08a77; --bad-soft: #3d221d; --info: #8ab8e6; --info-soft: #1c2c3c;
    --focus: #8ab8e6; --chart-1: #2e9a6c; --chart-2: #c98500; --chart-3: #6b8fe0; --chart-grid: #2f3632;
    --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767;
    --cat-0: #6f6e69; --cat-auto: #a9a89f; --chart-cost: #b86fab;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141815; --surface: #1b201d; --raised: #222825; --stage: #2a312c;
  --ink: #e6ebe7; --ink-2: #b4beb7; --ink-3: #8d9891; --line: #39423c; --line-2: #2c332e;
  --walnut: #cf9a74; --walnut-hover: #deae8b; --on-walnut: #1d140e;
  --brass: #e0b25e; --brass-mark: #d6a54e; --brass-soft: #3a3020;
  --moss: #0e1311; --moss-2: #1b2420; --on-moss: #dfe7e2; --on-moss-2: #96a69c;
  --good: #72c48f; --good-soft: #1c3325; --warn: #e5b04a; --warn-soft: #3a2f17; --bad: #f08a77; --bad-soft: #3d221d; --info: #8ab8e6; --info-soft: #1c2c3c;
  --focus: #8ab8e6; --chart-1: #2e9a6c; --chart-2: #c98500; --chart-3: #6b8fe0; --chart-grid: #2f3632;
    --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767;
    --cat-0: #6f6e69; --cat-auto: #a9a89f; --chart-cost: #b86fab;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--walnut); color: var(--on-walnut); }
.btn-primary:hover:not([disabled]) { background: var(--walnut-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink-3); background: var(--surface); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 10px; min-height: 36px; }
.btn-quiet:hover { color: var(--ink); background: var(--line-2); }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover:not([disabled]) { background: var(--bad-soft); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .err { font-size: 13px; color: var(--bad); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 16px;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface); color: var(--ink-3); font-size: 15px; }
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--walnut); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form-error { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--bad); font-size: 15px; }
.form-note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); font-size: 15px; }

/* ---------- Store header ---------- */
.announce { background: var(--moss); color: var(--on-moss); font-size: 13.5px; }
.announce .wrap { padding-block: 8px; text-align: center; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: 0.04em; }
.logo > svg { width: 30px; height: 30px; color: var(--walnut); }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 550; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.sale-link { color: var(--brass); }
.header-search { display: none; flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.header-search .input { min-height: 40px; padding-left: 38px; border-radius: 999px; background: var(--surface); font-size: 15px; }
.header-search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--ink-3); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--walnut); color: var(--on-walnut); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: inline-grid; }
.mobile-panel { border-top: 1px solid var(--line-2); background: var(--bg); }
.mobile-panel .wrap { display: grid; gap: 4px; padding-block: 12px 18px; }
.mobile-panel a { text-decoration: none; padding: 12px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-panel form { margin-bottom: 8px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-search { display: block; }
  .header-actions { margin-left: 0; }
  .menu-btn, .mobile-panel { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--moss); color: var(--on-moss); }
.site-footer .wrap { display: grid; gap: 32px; padding-block: 48px 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 15px; font-weight: 650; color: var(--on-moss); margin-bottom: 12px; letter-spacing: 0; }
.site-footer p, .site-footer a { color: var(--on-moss-2); font-size: 15px; text-decoration: none; }
.site-footer a:hover { color: var(--on-moss); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .logo { color: var(--on-moss); }
.site-footer .logo svg { color: var(--brass-mark); }
.footer-base { border-top: 1px solid var(--moss-2); }
.footer-base .wrap { padding-block: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--on-moss-2); }

/* ---------- Page scaffolding ---------- */
main { min-height: 60vh; }
.page { padding-block: 32px 0; }
.page-head { display: grid; gap: 10px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.035em; }
.page-head p { color: var(--ink-2); max-width: 62ch; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head a { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 22px; color: var(--ink); }
.loading { padding: 80px 0; display: grid; place-items: center; color: var(--ink-3); }
.loading .spin { width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--walnut); border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Home hero ---------- */
.hero { padding-block: 28px 8px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; } }
.hero h1 { font-size: clamp(42px, 7.2vw, 92px); line-height: 0.93; letter-spacing: -0.05em; font-weight: 700; max-width: 11ch; }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); aspect-ratio: 4 / 3; max-width: 100%; }
.hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.hero-stage img.out { opacity: 0; }
.hero-caption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; pointer-events: none; }
.hero-caption .cap { background: color-mix(in srgb, var(--raised) 88%, transparent); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; line-height: 1.3; color: var(--ink); }
.hero-caption .cap strong { display: block; font-size: 15px; }
.hero-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.hero-swatch .dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }
.hero-swatch[aria-checked="true"] { border-color: var(--ink); color: var(--ink); background: var(--raised); }

/* ---------- Category strip ---------- */
.cat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cat-tile { scroll-snap-align: start; text-decoration: none; display: grid; gap: 8px; }
.cat-tile .stage { border-radius: var(--r-md); overflow: hidden; background: var(--stage); aspect-ratio: 4 / 3; }
.cat-tile .stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover .stage img { transform: scale(1.04); }
.cat-tile .name { font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.cat-tile .count { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Promo band ---------- */
.promo-band { margin-top: 72px; background: var(--brass-soft); }
.promo-band .wrap { padding-block: 32px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .promo-band .wrap { grid-template-columns: 1fr auto; } }
.promo-band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; }
.promo-band p { color: var(--ink-2); margin-top: 6px; font-size: 17px; }
.countdown { display: inline-flex; gap: 6px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.countdown span { background: var(--raised); border-radius: var(--r-sm); padding: 6px 10px; font-weight: 650; font-size: 15px; }
.countdown small { font-weight: 500; color: var(--ink-3); margin-left: 2px; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; gap: 28px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 10px; text-decoration: none; min-width: 0; }
.card-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--stage); }
.card-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.card-stage img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-stage img.alt { opacity: 1; } }
.card-flag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--brass-mark); color: #1d1408; font-size: 13px; font-weight: 700; }
.card-flag.out { background: var(--raised); color: var(--ink-2); }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.25; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; min-height: 20px; }
.card-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.price { font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; }
.price.sale { color: var(--brass); }
.was { color: var(--ink-3); font-size: 14px; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%); }
.dots em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }

/* ---------- Shop filters ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 26px; padding-block: 12px; border-block: 1px solid var(--line-2); }
.toolbar .left, .toolbar .right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .select { min-height: 38px; width: auto; padding: 6px 10px; font-size: 15px; }
.pager { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 40px; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 32px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } .pdp-buy { position: sticky; top: 92px; } }
.pdp-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); }
.pdp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.pdp-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 959px) { .pdp-designs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(124px, 38%); overflow-x: auto; padding: 4px 4px 6px; margin-inline: -4px; scroll-snap-type: x mandatory; } .design-thumb { scroll-snap-align: start; } }
.design-thumb { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink-2); font-size: 13.5px; line-height: 1.25; }
.design-thumb .t { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--stage); box-shadow: inset 0 0 0 1px transparent; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.design-thumb .t img { width: 100%; height: 100%; object-fit: cover; }
.design-thumb[aria-checked="true"] .t { outline-color: var(--ink); }
.design-thumb[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.design-thumb .p { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }
.design-thumb.soldout .t img { opacity: .45; }
.pdp-buy h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; line-height: 1.02; }
.pdp-price { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pdp-price .price { font-size: 30px; letter-spacing: -0.02em; }
.pdp-price .was { font-size: 18px; }
.save-note { width: 100%; font-size: 14.5px; color: var(--brass); font-weight: 600; }
.picker { margin-top: 26px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.picker-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 12px; }
.picker-head strong { font-weight: 650; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.swatch:hover { transform: scale(1.05); }
.swatch .fill { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%); }
.swatch .fill i { position: absolute; inset: 0; }
.swatch .fill i + i { inset: auto 0 0 0; height: 30%; }
.swatch[aria-checked="true"] { outline-color: var(--ink); }
.swatch.soldout::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink-2); transform: rotate(45deg); border-radius: 1px; }
.stock-line { margin-top: 14px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.stock-line.low::before { background: var(--warn); }
.stock-line.out::before { background: var(--bad); }
.buy-row { display: flex; gap: 10px; margin-top: 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); }
.qty button { width: 42px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 999px; color: var(--ink); }
.qty button:hover:not([disabled]) { background: var(--line-2); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.qty.sm button { width: 34px; height: 36px; font-size: 18px; }
.buy-row .btn-primary { flex: 1; }
.facts { margin-top: 30px; border-top: 1px solid var(--line-2); }
.facts dl { margin: 0; display: grid; }
.facts .row { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.pdp-desc { margin-top: 22px; color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }
.delivery-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 48px; } .two-col > aside { position: sticky; top: 92px; } }
.lines { display: grid; border-top: 1px solid var(--line-2); }
.line { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.line .thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--stage); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-main { display: grid; gap: 4px; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-name { font-weight: 600; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.line-variant { font-size: 14px; color: var(--ink-3); }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.line-warn { font-size: 14px; color: var(--bad); }
.summary { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.summary h2 { font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 19px; font-weight: 700; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-row .good { color: var(--good); }
.sum-row > span:last-child { white-space: nowrap; }
.link-btn { border: 0; background: none; padding: 0; font-size: 13.5px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.code-row { display: flex; gap: 8px; }
.code-row .input { min-height: 40px; text-transform: uppercase; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--line); margin-right: 2px; }
.steps .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.steps [aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps [aria-current="step"] .n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps .done .n { background: var(--line-2); }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.pay-options { display: grid; gap: 10px; }
@media (min-width: 560px) { .pay-options { grid-template-columns: 1fr 1fr; } }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); cursor: pointer; }
.pay-option input { grid-row: span 2; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--walnut); }
.pay-option strong { font-size: 16px; }
.pay-option span { font-size: 14px; color: var(--ink-3); }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mini-lines { display: grid; gap: 12px; }
.mini-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; }
.mini-line .thumb { aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--stage); }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-line .q { color: var(--ink-3); font-size: 13.5px; }

/* ---------- Order page ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 650; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-awaiting_payment { background: var(--warn-soft); color: var(--warn); }
.st-payment_review { background: var(--info-soft); color: var(--info); }
.st-paid, .st-processing { background: var(--good-soft); color: var(--good); }
.st-shipped { background: var(--info-soft); color: var(--info); }
.st-delivered { background: var(--line-2); color: var(--ink-2); }
.st-cancelled { background: var(--bad-soft); color: var(--bad); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.timeline li { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.timeline .bar { height: 5px; border-radius: 3px; background: var(--line); }
.timeline .done { color: var(--ink); }
.timeline .done .bar { background: var(--good); }
.timeline .now { color: var(--ink); font-weight: 650; }
.timeline .now .bar { background: linear-gradient(90deg, var(--good) 50%, var(--line) 50%); }
.pay-box { display: grid; gap: 18px; }
.amount-due { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 18px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.qr-box img { width: min(240px, 100%); }
.qr-box p { color: #3b423e; font-size: 14px; text-align: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { flex: none; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; font-size: 15px; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.upload { display: grid; gap: 12px; }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 24px; border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; color: var(--ink-3); cursor: pointer; background: var(--raised); font-size: 15px; }
.dropzone:hover, .dropzone.over { border-color: var(--walnut); color: var(--ink); }
.dropzone img { max-height: 180px; border-radius: var(--r-sm); }
.dropzone svg { width: 28px; height: 28px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- Auth ---------- */
.auth { max-width: 440px; margin: 0 auto; padding-top: 24px; }
.auth h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.035em; }
.auth .lede { color: var(--ink-2); margin: 10px 0 26px; }
.auth form { display: grid; gap: 16px; }
.auth-alt { margin-top: 22px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.auth-alt a { font-weight: 600; color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-weight: 600; cursor: pointer; }
.google-btn:hover { border-color: var(--ink-3); }
.google-btn svg { width: 18px; height: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 8px 10px; border-radius: 6px; }
.demo-logins { margin-top: 28px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; display: grid; gap: 8px; }
.demo-logins button { justify-self: start; border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 14px; }
.demo-logins .row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ---------- Profile ---------- */
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.order-row:hover .ono { text-decoration: underline; }
.order-row .ono { font-weight: 650; font-variant-numeric: tabular-nums; }
.order-row .meta { font-size: 14px; color: var(--ink-3); }

/* ---------- Toast & dialog ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 15px; animation: toast-in .25s ease; }
.toast a, .toast button { color: var(--bg); font-weight: 650; background: none; border: 0; cursor: pointer; white-space: nowrap; text-decoration: underline; font-size: 15px; }
.toast.error { background: var(--bad); color: #fff; }
.toast.error a, .toast.error button { color: #fff; }
@keyframes toast-in { from { opacity: 0; translate: 0 8px; } }
.dialog-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(15 20 17 / 45%); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: min(520px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--raised); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 16px; }
.dialog.wide { width: min(760px, 100%); }
.dialog h2 { font-size: 22px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Home info row ---------- */
.info-row { display: grid; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .info-row { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.info-row h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.015em; }
.info-row p { color: var(--ink-2); font-size: 15.5px; max-width: 42ch; }

/* ---------- Sale page ---------- */
.promo-list { display: grid; border-top: 1px solid var(--line); }
.promo-item { display: grid; gap: 10px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .promo-item { grid-template-columns: 170px minmax(0, 1fr) 220px; } }
.promo-off { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.04em; color: var(--brass); line-height: 1; font-variant-numeric: tabular-nums; }
.promo-item h2 { font-size: 20px; margin-bottom: 4px; }
.promo-item p { color: var(--ink-2); }
.promo-when { font-size: 14.5px; color: var(--ink-3); }
@media (min-width: 760px) { .promo-when { text-align: right; } }
.promo-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 4px 4px 14px; border: 1.5px dashed var(--brass-mark); border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.code-chip .btn { letter-spacing: 0; }
.code-chip svg, .kv dd svg { width: 16px; height: 16px; }

/* ---------- Live chat bubble ---------- */
.chat-root { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.chat-root > * { pointer-events: auto; }
.chat-fab { position: relative; order: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--moss); color: var(--on-moss); font-weight: 650; font-size: 15px; cursor: pointer; box-shadow: var(--shadow); }
.chat-fab:hover { background: var(--moss-2); }
.chat-fab .ico svg { width: 22px; height: 22px; display: block; }
.chat-fab .badge-count { top: -4px; right: -4px; background: var(--brass-mark); color: #1d1408; }
.chat-panel { order: 1; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--raised); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { padding: 14px 16px; background: var(--moss); color: var(--on-moss); display: grid; gap: 8px; }
.chat-head strong { display: block; font-size: 16px; }
.chat-head span { font-size: 13px; color: var(--on-moss-2); }
.chat-links { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-ext { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; text-decoration: none; color: #fff; }
.chat-ext.tg { background: #2a8bc9; }
.chat-ext.vb { background: #7360f2; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.chat-empty { color: var(--ink-3); font-size: 14.5px; }
.cm { max-width: 86%; display: grid; gap: 3px; }
.cm-who { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cm-body { padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--raised); border: 1px solid var(--line-2); }
.cm-customer, .cm-us { align-self: flex-end; }
.cm-customer .cm-body, .cm-us .cm-body { background: var(--walnut); color: var(--on-walnut); border-color: transparent; border-bottom-right-radius: 4px; }
.cm-customer .cm-who { display: none; }
.cm-bot .cm-body, .cm-staff .cm-body, .cm-them .cm-body { border-bottom-left-radius: 4px; }
.cm-staff .cm-body { border-color: color-mix(in srgb, var(--moss) 35%, transparent); }
.cm-system { align-self: center; max-width: 92%; }
.cm-system .cm-body { background: transparent; border: 0; padding: 2px 6px; text-align: center; font-size: 13px; color: var(--ink-3); }
.cm-time { font-size: 11.5px; color: var(--ink-3); }
.cm-products { display: grid; gap: 6px; }
.cm-products a { display: grid; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); text-decoration: none; font-size: 14px; }
.cm-products a:hover { border-color: var(--ink-3); }
.cm-products span { color: var(--ink-3); font-size: 13px; }
.cm-contact { display: grid; gap: 6px; margin-top: 4px; }
.cm-contact .input { min-height: 38px; font-size: 14.5px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--raised); }
.chat-chips .chip { min-height: 32px; font-size: 13.5px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; align-items: flex-end; background: var(--raised); }
.chat-form textarea { min-height: 40px; max-height: 120px; resize: none; padding: 9px 12px; font-size: 15px; border-radius: 12px; }
.chat-person { border: 0; background: none; padding: 0 12px 12px; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; cursor: pointer; text-align: left; background: var(--raised); }
@media (max-width: 520px) {
  .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 140px); height: calc(100dvh - 140px); }
}

/* ---------- Account security ---------- */
.sec-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .sec-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } .sec-grid .panel + .panel { margin-top: 0; } }
.steps-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.qr-setup { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.qr-img { background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line-2); line-height: 0; }
.qr-img svg { width: 190px; height: 190px; }
.secret { font-weight: 650; letter-spacing: .06em; margin: 6px 0; overflow-wrap: anywhere; }
.code-input { font-size: 22px; letter-spacing: .2em; text-align: center; }
.backup-codes { columns: 2; gap: 24px; padding-left: 22px; margin: 14px 0 18px; font-weight: 600; letter-spacing: .04em; }
.backup-codes li { margin-bottom: 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 12px; }
.inline-form .input { width: 140px; min-height: 36px; }
.inline-form .label { width: 100%; }
.mine-code { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.mine-code:first-of-type { border-top: 0; }
.promo-item.personal { background: color-mix(in srgb, var(--brass-soft) 55%, transparent); padding-inline: 14px; border-radius: var(--r-md); }
.tag.brass { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--brass-soft); color: var(--brass); }

/* ---------- Notices ---------- */
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--ink); font-size: 14.5px; line-height: 1.45; border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); text-decoration: none; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.notice strong { color: inherit; }
.notice .spin { display: inline-block; vertical-align: -3px; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; margin-right: 6px; }
a.notice:hover { border-color: var(--ink-3); }

/* ---------- Login waits and locks ---------- */
.lock-note { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.lock-note.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.lock-note strong { display: block; margin-bottom: 4px; }
.lock-note p { font-size: 14.5px; color: var(--ink-2); }
.lock-note .num { font-weight: 700; color: var(--ink); }

/* ---------- Choosing how to pay ---------- */
.pay-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.pay-group legend { font-weight: 650; font-size: 15px; margin-bottom: 8px; padding: 0; }
.pay-option:has(.pay-ico):has(input) { grid-template-columns: auto auto 1fr; align-items: center; }
.pay-option .pay-ico { grid-row: span 2; }
.pay-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.pay-ico svg { width: 20px; height: 20px; }
button.pay-option { text-align: left; font: inherit; color: inherit; }
.pay-chosen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.pay-chosen > div { display: grid; flex: 1; }
.pay-chosen strong { font-size: 17px; }
.pay-switch { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .pay-switch { grid-template-columns: 1fr 1fr; } }

/* ---------- Ending a chat ---------- */
.chat-head { grid-template-columns: 1fr auto; align-items: start; }
.chat-head-r { display: grid; justify-items: end; gap: 8px; }
.chat-endbtn { border: 1px solid color-mix(in srgb, var(--on-moss) 45%, transparent); background: transparent; color: var(--on-moss); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chat-endbtn:hover { background: color-mix(in srgb, var(--on-moss) 14%, transparent); }
.chat-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--warn-soft); font-size: 14px; }
.chat-confirm span { flex: 1 1 100%; }
.chat-end { padding: 14px 16px 16px; background: var(--raised); border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.chat-end p { font-size: 14px; color: var(--ink-2); }
.chat-end-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Installable app ---------- */
.install-card { position: fixed; z-index: 85; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--raised); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: toast-in .25s ease; }
.install-card img { border-radius: 11px; }
.install-card .ic-text { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.install-card .ic-text strong { color: var(--ink); font-size: 15.5px; }
.install-card .ic-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 640px) { .install-card { right: auto; width: 380px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }
.share-ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; display: inline-block; }
.offline-bar { position: sticky; top: 0; z-index: 90; padding: 8px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: 14px; text-align: center; }
.notice.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.boot-fail img { border-radius: 16px; }
.get-app .ga-hero { display: grid; gap: 20px; align-items: start; margin-bottom: 28px; }
.get-app .ga-hero img { border-radius: 20px; box-shadow: var(--shadow); }
.get-app .ga-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; }
.get-app .ga-hero p { color: var(--ink-2); font-size: 17px; max-width: 58ch; margin-top: 8px; }
@media (min-width: 720px) { .get-app .ga-hero { grid-template-columns: 88px 1fr; gap: 28px; } }
.get-app .ga-steps { display: grid; gap: 16px; }
@media (min-width: 900px) { .get-app .ga-steps { grid-template-columns: repeat(3, 1fr); } }
.get-app .box h2 { font-size: 19px; margin-bottom: 10px; }
.get-app ol, .get-app ul { display: grid; gap: 8px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.get-app ol b, .get-app ul b { color: var(--ink); }
.get-app .ga-notes { margin-top: 16px; }
.get-app .ga-steps > .box, .get-app .ga-notes { margin-bottom: 0; } .get-app .ga-steps > .box { margin-top: 0; }

/* ---------- Invoice and receipt (a sheet of paper: same colours in light and dark mode) ---------- */
.doc-page { padding-bottom: 32px; }
.doc-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 820px; margin: 0 auto 14px; }
.doc-actions svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.doc { --p-ink: #1d2420; --p-ink-2: #59625c; --p-line: #dfe3dc; --p-soft: #f4f5f1; --p-brand: #6a4330;
  max-width: 820px; margin: 0 auto; background: #fff; color: var(--p-ink); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line-2);
  padding: clamp(20px, 5vw, 48px); font-size: 14.5px; line-height: 1.5; color-scheme: light; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.02em; color: var(--p-ink); line-height: 1.1; }
.doc h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-ink-2); font-weight: 650; margin-bottom: 6px; }
.doc .num { font-variant-numeric: tabular-nums; }
.doc .doc-muted { color: var(--p-ink-2); display: block; font-size: 13.5px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--p-ink); }
.doc-brand { display: flex; gap: 12px; align-items: center; }
.doc-title { text-align: right; display: grid; justify-items: end; gap: 8px; }
.doc-stamp { display: inline-block; padding: 4px 12px; border: 2px solid currentColor; border-radius: 6px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-stamp.paid { color: #2b7a46; background: #e5f2e9; }
.doc-stamp.due { color: #8a6118; background: #f7efdc; }
.doc-stamp.void { color: #ab3a28; background: #f8e4e0; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--p-line); }
.doc-meta dt { font-size: 12px; color: var(--p-ink-2); }
.doc-meta dd { font-weight: 600; }
.doc-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; padding: 18px 0; }
.doc-items { width: 100%; border-collapse: collapse; margin-top: 4px; color: var(--p-ink); font-size: inherit; }
.doc-items th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-ink-2); font-weight: 650; padding: 10px 8px; background: var(--p-soft); border-bottom: 1px solid var(--p-line);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-items td { padding: 12px 8px; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.doc-items .r { text-align: right; white-space: nowrap; }
.doc-items td strong { display: block; }
.doc-items .only-narrow { display: none; }
@media (max-width: 560px) { .doc-items .col-qty, .doc-items .col-unit { display: none; } .doc-items .only-narrow { display: block; } }
.doc-bottom { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
@media (min-width: 640px) { .doc-bottom { grid-template-columns: 1fr minmax(260px, 320px); } }
.doc-pay p + p { margin-top: 6px; }
.doc-totals { display: grid; gap: 6px; align-content: start; }
.doc-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.doc-totals dt { color: var(--p-ink-2); }
.doc-totals .grand { border-top: 2px solid var(--p-ink); padding-top: 8px; margin-top: 4px; font-size: 18px; font-weight: 700; }
.doc-totals .grand dt { color: var(--p-ink); }
.doc-totals .due { font-weight: 700; }
.doc-totals .due dt { color: var(--p-ink); }
.doc-saved { color: #2b7a46; font-size: 13.5px; text-align: right; }
.doc-foot { display: flex; gap: 18px; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--p-line); font-size: 13.5px; }
.doc-qr { display: grid; justify-items: center; gap: 4px; flex: none; font-size: 11px; color: var(--p-ink-2); text-align: center; max-width: 96px; }
.doc-qr svg { width: 84px; height: 84px; }
.doc-foot p + p { margin-top: 4px; }

/* Printing copies the sheet into #print-root (a direct child of <body>) and hides everything
   else, so no page layout, header or blank pages end up on paper. */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  :root { color-scheme: light !important; }
  html, body { background: #fff !important; }
  body.print-doc > *:not(#print-root) { display: none !important; }
  body.print-doc #print-root { display: block; }
  #print-root .doc { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .doc-items .col-qty, .doc-items .col-unit { display: table-cell !important; }
  .doc-items .only-narrow { display: none !important; }
  .doc-bottom { grid-template-columns: 1fr 300px; }
  .doc-items tr { break-inside: avoid; }
}
.doc dd { margin: 0; }
@media screen and (max-width: 560px) { .doc-head { flex-direction: column; } .doc-title { justify-items: start; text-align: left; } }

/* ---------- Zayar Thit Electronic logo (mark + Cinzel name + spaced line) ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; --brand-name: #003871; --brand-tag: #B30617; }
.brand-mark { display: block; flex: none; }
.brand-text { display: grid; gap: 5px; }
.brand-name { font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .14em; margin-right: -.14em; line-height: 1; white-space: nowrap; color: var(--brand-name); }
.brand-tag .bt-letters { display: flex; justify-content: space-between; font-family: 'Jost', 'Familjen Grotesk', sans-serif; font-weight: 500; font-size: 8.5px; line-height: 1; color: var(--brand-tag); }
.brand-dark { --brand-name: #FFFFFF; --brand-tag: #F59AA3; }
.brand-tag.bt-plain { display: block; font-size: 10.5px; line-height: 1.35; color: var(--brand-tag); font-weight: 500; white-space: nowrap; }
.brand-auto .mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-auto { --brand-name: #F4F6FA; --brand-tag: #F59AA3; }
  :root:not([data-theme="light"]) .brand-auto .mark-light { display: none; }
  :root:not([data-theme="light"]) .brand-auto .mark-dark { display: block; }
}
:root[data-theme="dark"] .brand-auto { --brand-name: #F4F6FA; --brand-tag: #F59AA3; }
:root[data-theme="dark"] .brand-auto .mark-light { display: none; }
:root[data-theme="dark"] .brand-auto .mark-dark { display: block; }
.site-footer .brand-name { font-size: 21px; }
.doc-brand .brand { gap: 14px; }
.doc-brand .brand-name { font-size: 26px; }
.doc-brand .brand-tag .bt-letters { font-size: 10px; }
@media (max-width: 380px) { .site-header .brand-name { font-size: 17px; } .site-header .brand-mark { width: 40px; height: 28px; } }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; background: var(--raised); flex: none; }
.lang-switch button { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; min-height: 30px; line-height: 1.2; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }
.lang-switch.hdr { margin-right: 6px; }
@media (max-width: 760px) { .lang-switch.hdr { display: none; } }
.mobile-panel .lang-switch.wide { display: flex; width: 100%; margin-bottom: 12px; }
.lang-switch.wide button { flex: 1; min-height: 40px; font-size: 15px; }
.lang-switch.on-dark { background: transparent; border-color: color-mix(in srgb, var(--on-moss) 30%, transparent); }
.lang-switch.on-dark button { color: var(--on-moss-2); }
.lang-switch.on-dark button[aria-pressed="true"] { background: var(--on-moss); color: var(--moss); }

/* ---------- Myanmar text: taller lines, no letter spacing (the script stacks marks above and below) ---------- */
html:lang(my) body { line-height: 1.7; }
html:lang(my) :is(h1, h2, h3, h4) { line-height: 1.45; }
html:lang(my) *:not(.brand-name):not(.brand-tag):not(.bt-letters):not(.brand-tag span) { letter-spacing: normal !important; }
html:lang(my) .btn, html:lang(my) .chip, html:lang(my) .status-pill, html:lang(my) .tag { line-height: 1.5; }
