/* ONE font switch for the whole site: assets/fonts/tekko-fonts.css (python3 scripts/font-preset.py). */
@import url('/assets/fonts/tekko-fonts.css');
/* ============================================================
   TEKKO BD — Design tokens
   Source: Figma "TLL Website 4.0" (Teamz Lab homepage, node 8002:154)
   real variables pulled from that file — NOT invented. Palette is
   light/clean (black-on-white, blue accent), deliberately different
   mood from goalkit's dark neon-lime jersey shop.

   EVERY component below reads these tokens, never a hardcoded color.
   To reskin the whole site later: edit this block only.
   ============================================================ */
:root {
  color-scheme: light; /* belt-and-suspenders for the <meta name="color-scheme"> in
    page_shell() — some browsers key off the CSS property instead of the meta tag
    when deciding whether to auto-dark-recolor a page with no dark palette. */
  --ink: #000000;
  --ink-soft: #6B7280;      /* body copy on white — darkened from figma's #868686 for AA contrast */
  --ink-faint: #9AA1AC;
  --paper: #FFFFFF;
  --surface: #F5F5F7;        /* figma "Warm Grey" — section backgrounds */
  --surface-2: #E5E7EB;      /* figma "Cold Grey" — card/skeleton fill */
  --border: #DDDDDD;

  --accent: #1570EE;         /* figma "Blue" — links, focus rings, highlights */
  --accent-ink: #FFFFFF;     /* text ON accent — paired per contrast rule */
  --accent-soft: #EAF2FE;

  --wa-green: #25D366;
  --wa-ink: #062B1A;
  --fb-blue: #0084FF;
  --star: #F5A623;          /* star glyphs only — always next to a number in --ink */
  --fb-ink: #FFFFFF;

  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 8px 24px rgba(0,0,0,.10);
  --shadow-md: 0 16px 48px rgba(0,0,0,.12);
  --shadow-lift: 0 20px 40px rgba(0,0,0,.16);

  --max-width: 1200px;

  /* Bangla is Kalpurush everywhere (owner, 2026-11-18). The face covers Bengali code points only, so Latin
     stays Poppins/Inter and every Bangla glyph falls through to Kalpurush; Noto is the last resort. */
  --font-display: var(--tk-font-display, 'Poppins', 'Kalpurush Tk', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --font-body: var(--tk-font-body, 'Inter', 'Kalpurush Tk', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  /* Kept for the .legal-bn blocks (privacy + delete-account pages); now the same stack as --font-body. */
  --font-bn: var(--tk-font-body, 'Inter', 'Kalpurush Tk', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

/* Kalpurush, only for Bengali code points, scaled to sit level with Inter. Same face and file as Tekko Sim
   (sim-src/src/ui/tokens.css): self-hosted because the CSP allows fonts only from 'self' and fonts.gstatic.com. */
@font-face {
  font-family: 'Kalpurush Tk';
  src: url('/sim/fonts/Kalpurush.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
  size-adjust: 112%;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC, U+0964-0965;
}

/* ---------- Reset ---------- */
/* Form controls do not inherit the page font by default (buttons rendered Bangla in Arial). */
button, input, select, textarea { font-family: inherit; }
* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(21,112,238,.15); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
button, a { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.3px; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
p { margin: 0 0 12px; color: var(--ink-soft); }
.muted { color: var(--ink-faint); font-size: 14px; }
.lead { font-size: 19px; color: var(--ink-soft); }
.kicker { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.accent { color: var(--accent); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Skip link: off-screen until keyboard focus, then a real visible control. The class
   was used in the markup on every page but had no rule at all, so the link rendered
   as stray "Skip to content" text above the header sitewide. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.visually-hidden:focus, .visually-hidden:focus-visible { position: fixed; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 12px 20px; clip: auto; clip-path: none; white-space: normal; background: var(--ink); color: var(--paper); border-radius: var(--radius-pill); z-index: 200; }

/* ---------- Top utility bar ---------- */
.top-bar { background: var(--ink); color: var(--paper); font-size: 12.5px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.top-bar span { color: rgba(255,255,255,.75); }
.top-bar strong { color: var(--paper); }

/* ---------- Header / pill nav (figma pattern) ---------- */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 60; }
.header-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
/* 2026 lockup: one SVG for mark + wordmark. Height-driven so it keeps its
   own 3.36:1 ratio; .logo's gap is now meaningless and set to 0. */
.logo { gap: 0; }
/* 34px, not 26. The retired lockup was a 38px mark beside 20px type, so it read
   as ~38px tall; at 26 the replacement was visibly smaller than what it
   replaced. 34px keeps it inside the header's 44px min-height. */
.logo-lockup { height: 34px; width: auto; display: block; flex-shrink: 0; }
@media (max-width: 560px) { .logo-lockup { height: 27px; } }
.logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
/* lowercase single-word lockup, matching the "teamzlab" house wordmark.
   --accent on --paper measures 4.54:1, clearing AA for 12px bold text. */
.logo-bd { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0; vertical-align: 2px; margin-left: 1px; }

.site-nav { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--radius-pill); padding: 4px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 9px 16px; border-radius: var(--radius-pill); transition: background .2s ease, color .2s ease; display: inline-flex; align-items: center; gap: 6px; }
.site-nav a:hover, .site-nav a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-badge-new { background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); letter-spacing: .3px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); border: none; cursor: pointer; transition: background .2s ease; }
.header-icon-btn:hover { background: var(--surface-2); }
.cart-trigger { position: relative; }
.cart-count { display: none; position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 1px 5px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 17px; }
.cart-count.is-visible { display: block; }
.search-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.35); padding: 90px 24px 24px; }
.search-panel.is-open { display: block; }
.search-panel-inner { max-width: 720px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-input-row input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); }
.search-close { border: 0; background: transparent; color: var(--ink-soft); font-size: 28px; line-height: 1; cursor: pointer; }
.search-results { max-height: 65vh; overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); }
.search-result:hover { background: var(--surface); color: var(--ink); }
.search-result-image { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.search-result-image img { width: 100%; height: 100%; object-fit: contain; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 14px; }
.search-result small { color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.search-result-price { display: block; color: var(--accent); font-size: 13px; margin-top: 4px; }
.cart-drawer { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); box-shadow: var(--shadow-lift); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
.cart-drawer.is-open { transform: translateX(0); }
.checkout-drawer { position: fixed; z-index: 115; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); box-shadow: var(--shadow-lift); transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
.checkout-drawer.is-open { transform: translateX(0); }
.checkout-content { padding: 20px 24px 28px; }.checkout-content h3 { font-size: 16px; margin: 18px 0 10px; }.checkout-content h3:first-child { margin-top: 0; }.checkout-hint { font-size: 12px; margin: -4px 0 8px; }.checkout-content select { display: block; width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }.shipping-option, .payment-option { display: flex !important; align-items: center; gap: 10px; padding: 12px; margin: 8px 0 !important; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }.shipping-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }.shipping-option input, .payment-option input { flex: 0 0 auto; margin: 0; }.shipping-option span { flex: 1; }.shipping-option strong, .shipping-option small { display: block; }.shipping-option strong { font-size: 13px; }.shipping-option small { color: var(--ink-soft); font-size: 12px; }.shipping-option b { font-size: 13px; white-space: nowrap; }.payment-option { justify-content: flex-start; }.checkout-total { margin-top: 18px; }.checkout-actions { display: grid; gap: 9px; margin-top: 16px; }.checkout-actions .btn { width: 100%; }.checkout-back { border: 0; background: transparent; font-size: 30px; color: var(--ink-soft); cursor: pointer; margin-right: 4px; }.checkout-drawer .cart-drawer-head { justify-content: flex-start; }.checkout-drawer .cart-drawer-head h2 { flex: 1; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border); }
.cart-drawer-head h2 { margin: 0; font-size: 26px; }
.cart-items { padding: 16px 24px; overflow-y: visible; flex: 0 1 auto; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item > img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--surface); }
.cart-item-info { flex: 1; min-width: 0; }.cart-item-info strong, .cart-item-info span { display: block; }.cart-item-info strong { font-size: 14px; }.cart-item-info span { color: var(--ink-soft); font-size: 13px; }
.cart-quantity { display: flex; align-items: center; gap: 10px; margin-top: 8px; }.cart-quantity button { min-width: 28px; height: 28px; border: 1px solid var(--border); background: var(--paper); border-radius: 6px; cursor: pointer; }.cart-quantity .cart-remove { border: 0; width: auto; color: var(--ink-soft); font-size: 11px; }
.cart-summary { padding: 20px 24px 28px; border-top: 1px solid var(--border); }.cart-summary label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }.cart-summary select { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); margin-bottom: 16px; }.cart-total-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); }.cart-grand-total { color: var(--ink); font-size: 18px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }.cart-checkout { width: 100%; margin-top: 16px; }.cart-empty { text-align: center; padding: 40px 0; }.cart-scrim { display: none; position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.35); }.cart-scrim.is-open { display: block; }
.customer-fields { display: grid; gap: 10px; margin-bottom: 16px; }.customer-fields label { margin: 0; }.customer-fields input, .customer-fields textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }.customer-fields textarea { resize: vertical; min-height: 58px; }.optional-label { color: var(--ink-faint); font-weight: 400; }.required-mark { color: #C62828; font-weight: 700; margin-left: 2px; }
.institution-results { position: relative; z-index: 2; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-sm); }
.institution-option { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.institution-option:last-child { border-bottom: 0; }.institution-option:hover { background: var(--surface); }.checkout-discount-note { color: #0A7A3D; font-size: 10px; line-height: 1.35; margin: 12px 0 0; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons — pill shape, per figma ---------- */
/* The hidden attribute has to win. The browser's own [hidden]{display:none} is
   a UA rule, so any class that sets a display — .btn below sets inline-flex —
   beats it on specificity and the element stays on screen. That is how the
   three checkout order buttons showed before the customer had typed anything:
   the JS set button.hidden = true and the CSS quietly ignored it. */
[hidden] { display: none !important; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: transform .2s cubic-bezier(.2,1.2,.3,1), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1a1a1a; color: var(--paper); box-shadow: var(--shadow-lift); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }

.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(21,112,238,.28); }
.btn-accent:hover { background: #0F5FD1; color: var(--accent-ink); box-shadow: 0 14px 36px rgba(21,112,238,.4); }

.btn-wa { background: var(--wa-green); color: var(--wa-ink); box-shadow: 0 8px 24px rgba(37,211,102,.28); }
.btn-wa:hover { background: #22c15e; color: var(--wa-ink); box-shadow: 0 14px 36px rgba(37,211,102,.4); }

.btn-fb { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-fb:hover { color: var(--fb-blue); border-color: var(--fb-blue); background: var(--paper); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-pill-badge { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); margin-left: 2px; }

/* ---------- Trust badge (Google-rating style, per figma hero) ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.rating-badge .stars { color: var(--star); letter-spacing: 1px; }

/* ---------- Tag pills (hero category chips, per figma) ---------- */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tag-pill { background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: 13.5px; font-weight: 500; padding: 7px 16px; border-radius: var(--radius-pill); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: 4px; }
.hero-copy .h1-sub { display: block; color: var(--ink-faint); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-media { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.hero-media img { width: 100%; height: 100%; object-fit: contain; }
/* Second live Tekbot instance (see HERO_MASCOT in build-pages.py) — the
   floating widget's #tb-* ids are already on this page, so this copy is
   entirely #tbh-* to avoid duplicate ids; tekbot.css's "HERO MASCOT" block
   carries the matching animation rules for that prefix. */
/* No card chrome behind the mascot — it sits directly on the page. The
   .hero-media box keeps its aspect-ratio so the grid column holds its
   shape, but loses background, shadow and clipping. overflow must be
   visible or the antennae and the interactive tilt get sliced off. */
.hero-media:has(.hero-mascot) { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.hero-mascot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: none; }
.hero-mascot svg { width: 74%; height: auto; overflow: visible; }

/* Interactive: the bot leans toward the pointer and reacts when poked. */
.hero-mascot[data-interactive] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-mascot[data-interactive]:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; border-radius: var(--radius-card); }
#tbh-root { transition: transform .35s cubic-bezier(.2,1,.3,1); }
.hero-mascot.is-tracking #tbh-root { transition: transform .12s ease-out; }

@media (prefers-reduced-motion: reduce) {
  #tbh-root { transition: none; transform: none !important; }
}

/* ---------- Section titles ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 12px 24px; border-radius: var(--radius-pill); background: var(--surface); transition: background .2s ease; }
.section-link:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.category-card { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.2,1,.3,1), box-shadow .25s ease; text-decoration: none; color: var(--ink); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.category-card-media { aspect-ratio: 4/3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.category-card-media svg { width: 64px; height: 64px; color: var(--ink-faint); }
.category-card-body { padding: 20px 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.category-card-body h3 { margin: 0; }
.category-card-count { font-size: 12.5px; color: var(--ink-faint); }
.category-card-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s ease, transform .2s ease; }
.category-card:hover .category-card-arrow { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

/* ---------- Info cards + tick list (request page) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 26px 24px; }
.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 13px 32px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Product grid + cards ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip { background: var(--surface); border: 1px solid transparent; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); cursor: pointer; transition: all .2s ease; }
.filter-chip:hover { background: var(--surface-2); }
.filter-chip.is-active { background: var(--ink); color: var(--paper); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: transform .25s cubic-bezier(.2,1,.3,1), box-shadow .25s ease; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-link { display: block; position: relative; }
.product-img-wrap { aspect-ratio: 1/1; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); }
.product-img-placeholder svg { width: 56px; height: 56px; color: var(--ink-faint); }
.product-soldout-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.product-body { padding: 16px 18px 18px; }
.product-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.product-name { font-size: 15.5px; font-weight: 600; margin: 4px 0 6px; line-height: 1.3; }
.product-desc { font-size: 13px; color: var(--ink-faint); margin: 0 0 10px; line-height: 1.5; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.product-price.is-contact { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.product-actions--icons { display: flex; gap: 8px; }
/* These two are the WhatsApp/Messenger order buttons on every card — the only way an
   order starts on this site, and they were the smallest targets on the page at 36px. */
.product-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform .2s ease; }
.product-icon-btn:hover { transform: scale(1.08); }
.product-icon-wa { background: var(--wa-green); color: var(--wa-ink); }
.product-icon-fb { background: var(--fb-blue); color: var(--fb-ink); }
.product-icon-wa, .product-icon-fb { display: none; }
.product-icon-cart { background: var(--ink); color: var(--paper); }

/* ---------- Skeleton loaders ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.skeleton-card { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.skeleton-img { aspect-ratio: 1/1; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.skeleton-body { padding: 16px 18px; }
.skeleton-line { height: 12px; background: var(--surface-2); border-radius: 6px; margin-bottom: 10px; animation: pulse 1.4s ease-in-out infinite; }
.skeleton-line.w-40 { width: 40%; } .skeleton-line.w-60 { width: 60%; } .skeleton-line.h-32 { height: 16px; }
.skeleton-cta { height: 32px; background: var(--surface-2); border-radius: var(--radius-pill); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 48px 24px; grid-column: 1 / -1; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 420px; margin: 0 auto 20px; }

/* ---------- Category banner (assets/categories/<slug>.svg via build_category_pages) ---------- */
/* Authored schematic illustration per category — decorative brand art, never a product photo. */
.category-banner { max-width: 900px; margin: 0 0 28px; }
.category-banner img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }

/* ---------- FAQ accordion (figma "+" rotate pattern) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); padding: 4px 24px; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 15.5px; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* ---------- CTA banner (figma footer-CTA pattern) ---------- */
.cta-banner { background: var(--ink); color: var(--paper); border-radius: var(--radius-card); padding: 56px 40px; text-align: center; margin: 0 24px; }
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 24px; }
.cta-banner .hero-cta { justify-content: center; }
.cta-banner .btn-outline { color: var(--paper); border-color: rgba(255,255,255,.3); }
.cta-banner .btn-outline:hover { border-color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: 64px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-address a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shop-map { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.shop-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.footer-col h4 { color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.footer-col a { font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-faint); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-faint); padding: 18px 0; }
.breadcrumb a { color: var(--ink-faint); display: inline-block; padding: 6px 2px; }
.pd-specs td a { display: inline-block; padding: 12px 2px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.tk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; padding: 14px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lift); opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 200; max-width: 90vw; text-align: center; }
.tk-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tk-toast button { min-height: 44px; margin-left: 8px; padding: 0 16px; font: inherit; font-weight: 600; color: var(--paper); background: transparent; border: 1px solid var(--paper); border-radius: var(--radius-pill); cursor: pointer; }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 64px; }
.pd-gallery { border-radius: var(--radius-card); overflow: hidden; background: var(--surface); aspect-ratio: 1/1; }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.pd-price { font-size: 24px; font-weight: 700; margin: 12px 0 20px; }
/* "Why buy from Tekko" list under the price (scripts/build_trust.py) */
.pd-trust { list-style: none; margin: -8px 0 20px; padding: 12px 14px; display: grid; gap: 6px; background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); font-size: 14px; }
.pd-trust li { display: flex; gap: 8px; align-items: baseline; color: var(--ink); }
.pd-trust li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex: none; }
.pd-trust a { color: var(--ink); text-decoration: underline; }
.pd-specs { margin: 24px 0; border-top: 1px solid var(--border); padding-top: 20px; }
.pd-specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-specs td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pd-specs td:first-child { color: var(--ink-faint); width: 40%; }
.pd-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pd-cta .btn { flex: 1; min-width: 160px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  /* Was ":not(:has(img))" — written to hide an empty placeholder box on
     mobile. The mascot is real branded content, not a placeholder, so it's
     now exempted and stays visible; a product page with neither an <img>
     nor the mascot still collapses as before. */
  .hero-media:not(:has(img)):not(:has(.hero-mascot)) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 780px) {
  /* The closed drawer parks at right:-100%, i.e. a fixed 320px box sitting one full
     viewport to the right. That box counted toward scrollWidth, so every page could be
     swiped sideways into 390px of blank white on a phone (measured at 390px: scrollWidth
     780 against a 390 viewport). Clipping the horizontal axis kills the phantom scroll;
     the drawer still slides in because it is position:fixed, which this does not clip. */
  html, body { overflow-x: hidden; }
  /* height: 100dvh (with the 100vh fallback above it for old browsers) — plain
     100vh on Android Chrome includes the area behind the URL bar, so the open
     drawer's tail sat below the visible screen. */
  .site-nav { position: fixed; top: 0; right: -100%; height: 100vh; height: 100dvh; width: min(320px, 86vw); background: var(--paper); flex-direction: column; align-items: stretch; border-radius: 0; padding: 90px 24px 24px; box-shadow: var(--shadow-lift); transition: right .3s cubic-bezier(.2,1,.3,1); z-index: 70; }
  .site-nav.is-open { right: 0; }
  .site-nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: inline-flex; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: transparent; z-index: 55; }
  .nav-scrim.is-open { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { padding: 40px 24px; margin: 0 16px; }
}
@media (min-width: 781px) and (max-width: 884px) {
  /* Between the mobile drawer (<=780px) and the width where the full-density
     pill fits on one row (>=885px, measured), the seven links wrapped onto two
     rows — tablets in portrait and phones in landscape got a 99px header with
     a doubled pill. Denser links keep it on one row; nowrap plus a silent
     overflow-x on the pill are the guard so a future eighth link scrolls
     inside the pill instead of wrapping it again. */
  .site-nav { gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .container { padding: 0 18px; }
  /* The .container rule above also matches .header-row.container — same
     specificity, later in source, so it wins — and it was wiping the header's
     14px vertical padding. Every phone had a 45px header with the icon
     buttons flush against the top and bottom edges. Restated here to keep
     the vertical rhythm at phone widths. */
  .header-row { padding: 14px 18px; }
  .hero { padding: 36px 0 48px; }
}
@media (max-width: 380px) {
  .btn { padding: 12px 20px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Product detail: real photography + rich-text body ---------- */
.pd-slider { display: grid; gap: 12px; min-width: 0; }
.pd-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; min-height: 280px; padding: 12px; border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.pd-main-image-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.pd-img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: contain; object-position: center; }
.pd-arrow, .lightbox-arrow { position: absolute; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.pd-arrow:hover, .lightbox-arrow:hover { background: var(--paper); }
.pd-prev { left: 12px; }.pd-next { right: 12px; }
.pd-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.pd-thumb { flex: 0 0 72px; width: 72px; height: 72px; padding: 3px; border: 2px solid transparent; border-radius: 8px; background: var(--surface); cursor: pointer; }
.pd-thumb.is-active { border-color: var(--accent); }.pd-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.image-lightbox { display: none; position: fixed; inset: 0; z-index: 250; align-items: center; justify-content: center; padding: 48px 72px; background: rgba(0,0,0,.82); }
.image-lightbox.is-open { display: flex; }.image-lightbox > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }.lightbox-close { position: absolute; top: 18px; right: 22px; border: 0; background: transparent; color: var(--paper); font-size: 38px; line-height: 1; cursor: pointer; }.lightbox-prev { left: 20px; }.lightbox-next { right: 20px; }
@media (max-width: 640px) { .pd-stage { min-height: 220px; padding: 8px; }.pd-arrow { width: 34px; height: 34px; font-size: 25px; }.pd-thumb { flex-basis: 64px; width: 64px; height: 64px; }.image-lightbox { padding: 42px 42px; }.lightbox-prev { left: 8px; }.lightbox-next { right: 8px; } }

/* ---------- Product image magnifier: hover loupe + zoomable lightbox ----------
   Electronics buyers zoom photos to read chip numbers and pin labels. app.js
   injects the loupe + hint on hover-capable pointers only; touch devices
   pinch-zoom inside the lightbox instead. */
.pd-lens { position: absolute; inset: 0; z-index: 1; display: none; background-color: var(--surface); background-repeat: no-repeat; pointer-events: none; }
.pd-stage.is-magnifying .pd-lens { display: block; }
.pd-zoom-hint { position: absolute; left: 20px; bottom: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); pointer-events: none; }
.pd-stage.is-magnifying .pd-zoom-hint { opacity: 0; }
.image-lightbox > img { touch-action: none; user-select: none; -webkit-user-drag: none; cursor: zoom-in; will-change: transform; }
.image-lightbox.is-zoomed > img { cursor: grab; }
.image-lightbox.is-panning.is-zoomed > img { cursor: grabbing; }
.image-lightbox > img.lb-anim { transition: transform .22s ease; }
.lightbox-zoom-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; padding: 8px 15px; border-radius: 999px; background: rgba(15,15,15,.75); color: #fff; font-size: 13px; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.lightbox-zoom-hint.is-show { opacity: 1; }
@media (max-width: 640px) { .lightbox-zoom-hint { font-size: 12px; bottom: 14px; max-width: 86vw; white-space: normal; text-align: center; } }

.pd-body { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.pd-body :first-child { margin-top: 0; }
.pd-body p { margin: 0 0 12px; }
.pd-body ul, .pd-body ol { margin: 0 0 14px; padding-left: 22px; }
.pd-body li { margin-bottom: 5px; }
.pd-body h3, .pd-body h4 { color: var(--ink); margin: 18px 0 8px; }
.pd-body h4 { color: var(--accent); }
.pd-body a { color: var(--accent); text-decoration: underline; }
.pd-body code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 13.5px; }
.pd-body table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.pd-body th, .pd-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; font-size: 14px; }
.pd-body th { background: var(--surface); color: var(--ink); font-weight: 600; }
.pd-rich-faq { color: var(--ink-soft); line-height: 1.65; }.pd-rich-faq h2, .pd-rich-faq h3 { color: var(--ink); margin-top: 20px; }.pd-rich-faq a { color: var(--accent); text-decoration: underline; }
.checkout-content .shipping-option input[type="radio"], .checkout-content .payment-option input[type="radio"] { width: 16px; min-width: 16px; height: 16px; display: inline-block; padding: 0; margin: 0; border: 0; }
@media (max-width: 640px) { .top-bar { padding-top: calc(8px + env(safe-area-inset-top)); }.site-header { top: 0; } }

/* Product page: link to the circuit simulator at /sim/ */
.pd-sim { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); background: var(--surface); padding: 10px 14px; border-radius: 12px; }
.pd-sim a { color: var(--accent); font-weight: 600; }
.pd-sim ul { margin: 6px 0 8px; padding-left: 18px; }
.pd-sim li { margin: 2px 0; }
/* Project kits (/kits/) — scripts/build_kits.py */
.kit-page h2 { margin: 36px 0 12px; font-size: 22px; color: var(--ink); }
.kit-bn { color: var(--ink-soft); font-size: 16px; margin: 4px 0 12px; }
.kit-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 20px 0 8px; padding: 16px 20px; background: var(--surface); color: var(--ink); border-radius: var(--radius-card); }
.kit-price span { color: var(--ink-soft); font-size: 15px; }
.kit-price strong { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.kit-price small { flex-basis: 100%; color: var(--ink-faint); font-size: 13px; }
.kit-page .pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.kit-page .pd-specs td:first-child { width: auto; color: var(--ink); }
.kit-page .pd-specs td:last-child { text-align: right; white-space: nowrap; color: var(--ink); }
.kit-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.kit-list li { margin: 4px 0; }
a.kit-card { display: block; color: var(--ink); text-decoration: none; }
a.kit-card:hover h3 { color: var(--accent); }
.kit-card-price { margin-top: 12px !important; font-weight: 700; color: var(--ink); }
/* Home: Tekko Sim project links */
.sim-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sim-grid a { display: block; height: 100%; padding: 16px; border: 1.5px solid var(--surface-2); border-radius: var(--radius-card); background: var(--paper); color: var(--ink); text-decoration: none; }
.sim-grid a:hover { border-color: var(--ink); }
.sim-grid b { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.sim-grid span { color: var(--ink-soft); font-size: 14px; }
.section-sub { color: var(--ink-soft); margin: -4px 0 0; }

/* ---------- Shop toolbar: availability + sort + count + pagination ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.shop-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.shop-count { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.shop-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 26px; }
.shop-pagination button { min-width: 38px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.shop-pagination button.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-pagination button[disabled] { opacity: .45; cursor: default; }
.shop-ellipsis { color: var(--ink-soft); }

/* ---------- Search result add-to-cart ---------- */
.search-result-row { display: flex; align-items: center; gap: 8px; }
.search-result-row .search-result { flex: 1; min-width: 0; }
.search-result-cart { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--radius-pill); border: none; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-result-cart:hover { filter: brightness(.92); }

/* ---------- Cart share (spec 2026-10-27) ---------- */
:root { --danger: #B42318; --danger-ink: #FFFFFF; --danger-soft: #FEF3F2; }
.cart-share-btn { width: 100%; margin-top: 10px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cart-share-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.share-panel { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.share-title { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.share-hint { font-size: 14px; color: var(--ink-soft); margin: 6px 0 12px; }
.share-panel label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.share-panel input:not([type="checkbox"]), .share-panel textarea { width: 100%; min-height: 44px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); margin-top: 4px; }
.share-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 500 !important; margin: 8px 0 12px; }
.share-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.share-check[hidden] { display: none !important; }
.share-create, .share-close { width: 100%; min-height: 44px; margin-top: 8px; }
.share-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.share-actions .btn { min-height: 44px; }
.field-error { font-size: 13px; color: var(--danger); margin: 2px 0 10px; }
.shared-cart { max-width: 720px; }
.shared-head h1 { font-family: var(--font-display); font-size: clamp(22px, 5vw, 30px); color: var(--ink); margin: 0 0 8px; }
.shared-note { background: var(--surface); color: var(--ink); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.shared-note blockquote { margin: 0 0 8px; font-style: italic; overflow-wrap: anywhere; }
.shared-note small { color: var(--ink-soft); display: block; }
.shared-lines { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--border); }
.shared-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.shared-line img { width: 56px; height: 56px; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); }
.shared-line a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.shared-line .muted, .shared-status { font-size: 13px; color: var(--ink-soft); }
.shared-line.is-off { opacity: .6; }
.shared-status { display: inline-flex; align-items: center; gap: 4px; }
.shared-price { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.shared-total { display: flex; justify-content: space-between; font-size: 18px; color: var(--ink); margin-top: 8px; }
.shared-actions { display: grid; gap: 10px; margin-top: 16px; }
.shared-actions .btn { min-height: 48px; }
.shared-skeleton span { display: block; height: 72px; margin: 12px 0; border-radius: var(--radius-sm); background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) { .shared-skeleton span { animation: tk-pulse 1.2s ease-in-out infinite; } }
@keyframes tk-pulse { 50% { opacity: .5; } }
.tk-dialog-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.tk-dialog { background: var(--paper); color: var(--ink); width: min(440px, 100%); border-radius: var(--radius-card) var(--radius-card) 0 0; padding: 24px; display: grid; gap: 10px; }
@media (min-width: 600px) { .tk-dialog-scrim { align-items: center; } .tk-dialog { border-radius: var(--radius-card); } }
.tk-dialog h2 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.tk-dialog .btn { min-height: 48px; width: 100%; }
.btn-danger { background: var(--danger); color: var(--danger-ink); }
.gift-who { border: 0; padding: 0; margin: 0 0 16px; }
.gift-who legend, .gift-payer h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.gift-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.gift-radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.gift-payer { background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.gift-pay { border: 0; padding: 0; margin: 0; }
.gift-pay small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.gift-payer[hidden], .gift-pay[hidden], [data-pay-me][hidden] { display: none; }
.account-wrap { position: relative; }
.account-wrap[hidden] { display: none; }
.account-trigger.is-signed-in { background: var(--accent); color: var(--accent-ink); }
.account-initials { font: 600 14px/1 var(--font-body); color: inherit; }
.account-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 110; width: min(300px, calc(100vw - 32px)); padding: 16px; display: grid; gap: 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.account-panel[hidden] { display: none; }
.account-text { margin: 0; color: var(--ink-soft); font-size: 14px; }
.account-name { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.account-email { margin: 0; color: var(--ink-faint); font-size: 13px; overflow-wrap: anywhere; }
.account-full { width: 100%; }
/* Phase 3: "My orders" inside the signed-in panel. Only the customer's own orders (rules: uid == auth.uid). */
.account-orders { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.account-orders .btn { min-height: 44px; }
.account-orders-title { margin: 0; font: 600 14px/1.3 var(--font-body); color: var(--ink); }
.account-orders-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: min(320px, 50vh); overflow-y: auto; }
.account-order { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); font-size: 13px; }
.account-order-ref { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.account-order-copy { min-height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font: 500 12px/1 var(--font-body); cursor: pointer; flex-shrink: 0; }
.account-order-ref-text { user-select: all; -webkit-user-select: all; }
.account-orders-title:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-order-meta { color: var(--ink-soft); }
.account-order-total { font-weight: 600; color: var(--ink); }
.account-orders-note { margin: 0; color: var(--ink-soft); font-size: 13px; }
/* Narrow screens: the account button sits mid-row, so anchor the panel to the (sticky) header instead of the button. */
@media (max-width: 640px) {
  .account-wrap { position: static; }
  .account-panel { right: 16px; width: min(300px, calc(100vw - 32px)); }
}

/* ---------- Product reviews (spec 2026-11-03 §2) ---------- */
.rv-summary { font-size: 15px; color: var(--ink); margin: 0 0 16px; }
.rv-stars { color: var(--star); letter-spacing: 1px; }
.rv-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.rv-item { background: var(--surface); color: var(--ink); border-radius: var(--radius-card); padding: 14px 16px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.rv-name { color: var(--ink); }
.rv-badge { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.rv-head time { color: var(--ink-faint); font-size: 13px; }
.rv-text { margin: 8px 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.rv-write { display: grid; gap: 12px; }
.rv-form { display: grid; gap: 12px; background: var(--surface); color: var(--ink); border-radius: var(--radius-card); padding: 16px; }
.rv-form label, .rv-form legend { font-weight: 600; font-size: 14px; color: var(--ink); }
.rv-form input[type="text"], .rv-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; }
.rv-rate { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rv-rate label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); cursor: pointer; }
.rv-note { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Order lines: request form (/request/), custom cart lines, request note in checkout */
.request-note { background: var(--accent-soft); color: var(--ink); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 12px; font-size: 14px; }
.request-note[hidden], .custom-add [hidden], .request-form [hidden] { display: none; }
.request-form { max-width: 720px; margin: 0 auto; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-card); }
.request-form h2 { font-family: var(--font-display); font-size: clamp(20px, 4.5vw, 26px); color: var(--ink); margin: 0 0 6px; }
.request-form-hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.request-lines { list-style: decimal; margin: 0 0 14px; padding: 0 0 0 22px; color: var(--ink); }
.request-lines:empty { display: none; }
.request-lines li { padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.request-lines .price-tbc, .cart-item.is-custom .price-tbc { color: var(--ink-soft); background: var(--paper); font-size: 13px; }
.custom-add { display: grid; gap: 10px; margin-bottom: 14px; }
.custom-add label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.custom-add input { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.custom-add .btn, .request-form > .btn { min-height: 44px; width: 100%; justify-content: center; }
.cart-item.is-custom { background: var(--paper); color: var(--ink); }
.cart-item.is-custom .cart-item-info span { color: var(--ink-soft); }
.custom-badge { display: inline-block; align-self: flex-start; min-height: 24px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 20px; }
/* .cart-item-info span (block, ink-soft) would otherwise win over the badge: keep it a pill with --accent-ink on --accent */
.cart-item.is-custom .cart-item-info .custom-badge { display: inline-block; margin: 4px 0 2px; color: var(--accent-ink); }
.cart-item.is-custom .cart-item-info .cart-item-note { overflow-wrap: anywhere; }
.cart-custom { padding: 0 24px 16px; color: var(--ink); }
.cart-custom-toggle { width: 100%; min-height: 44px; justify-content: center; margin-bottom: 12px; }
.cart-unpriced { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; text-align: right; }
.search-ask { display: flex; width: 100%; min-height: 44px; justify-content: center; margin-top: 8px; overflow-wrap: anywhere; }
.tk-toast-ref { border-radius: var(--radius-card); }
.tk-toast [data-ref-toast-close] { min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; }
.tk-toast [data-ref-toast-close]:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.tk-toast-ref strong { display: block; margin: 6px 0; font-size: 22px; letter-spacing: .04em; color: var(--paper); user-select: all; }

/* ---------- Legal pages (/privacy/, /delete-account/) ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal .legal-meta { color: var(--ink-soft); font-size: 14px; }
.legal-bn { font-family: var(--font-bn); border-top: 1px solid var(--border); margin-top: 48px; padding-top: 8px; }
.legal-bn h2, .legal-bn h3 { font-family: var(--font-bn); }
