/* Dokan storefront — light, mobile-first, ink on warm paper.
   ═══════════════════════════════════════════════════════════════════════════
   TWO LAYERS LIVE IN THIS FILE. Know which one you are editing.

   1. KOTHA CHROME + DEFAULTS (this :root block, the shop directory, the nav
      "powered by" line, the footer). This is what hyqe.app itself renders and
      what a shop falls back to. It follows the same system as the dashboard:
      warm paper, ink interaction, clay for brand, no gradients, no glass.

   2. THE MERCHANT'S OWN STOREFRONT. On a shop page the renderer injects a
      <style> block that overrides --accent, --accent-2, --grad, --radius* and
      the fonts with THAT SHOP'S choices. Those are a product feature, not our
      styling — a merchant who picks a purple gradient hero is entitled to one.

   So: never hard-code a colour where --accent belongs, and never delete a
   var(--grad) rule that a merchant opted into (grad-hero, promo-strip,
   body.btn-gradient). Do strip gradients from things the merchant never chose.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Crisp cool neutrals under a navy/blue system. Cool grey was an accident in
     the original generated palette; here it is coherent. Kept tighter and
     cleaner than the old #f6f7fc so surfaces read crisp rather than hazy. */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e1e7f0;
  --fg: #0c1b2f;
  --muted: #5a6b83;

  /* Navy — dark surfaces (hero band, dark footer, toast). */
  --navy: #0c1b2f;
  --navy-fg: #eef3fa;

  /* Default interaction colour — the same saturated blue as the dashboard. A
     shop page overwrites this with the merchant's own brand colour; on
     hyqe.app itself it stays blue. */
  --accent: #1257e0;
  --accent-2: #4d8bff;
  --accent-fg: #ffffff;
  /* Kotha's own mark. Never overwritten by a shop, so it must never be used to
     style shop content. */
  --brand: #1257e0;

  /* Flat by default. The renderer replaces this with a real gradient only for
     shops that chose one, so merchant gradient blocks keep working while our
     own chrome stays flat. */
  --grad: var(--accent);

  --green: #0f7a53;
  --amber: #8a560f;
  --red: #b4362f;

  /* Default radius scale. A shop page overrides all three from the merchant's
     radius setting (sharp / soft / round). */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 7px;

  --img-bg: #eaeff7;
  --scrim: rgba(245, 247, 251, .8);
  /* Navy-tinted, not neutral-black: a shadow cast in the page's own hue reads
     like light on a surface rather than dirt under the card. */
  --shadow: 0 1px 2px rgba(12, 27, 47, .07), 0 4px 12px -2px rgba(12, 27, 47, .09);
  --ink-panel: #0c1b2f;

  /* Latin body text costs zero webfont bytes; Archivo covers headings and
     Noto Sans Bengali is demand-loaded. A shop page swaps both for the
     merchant's chosen pair. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Kotha Bengali", sans-serif;
  --head: "Archivo", "Kotha Bengali", system-ui, sans-serif;
}

/* Self-hosted, same two faces as the dashboard. See ../../api/public/fonts.
   dokan.css loads on SHOP pages too, where the merchant's Google stylesheet
   also declares "Noto Sans Bengali". Two @font-face rules for one family name
   would leave the browser holding two sources for the same text and pulling our
   105 KB file on top of theirs — so ours is declared under a private family
   name that only our own default --font/--head chains reference. A shop
   overrides both chains, so this face is simply never asked for there. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kotha Bengali";
  src: url("/fonts/noto-bengali-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

/* Dark storefront (theme.darkMode = on / auto) — warm dark, not blue-black.
   NOTE: the renderer only ever sets data-theme on a SHOP page, so --accent here
   is always the merchant's brand colour. That is why this block deliberately
   does not touch --accent or --accent-fg: text on the accent stays light,
   because a merchant's brand colour is a saturated mid-tone, not paper. */
[data-theme="dark"] {
  --bg: #070d17;
  --surface: #0e1a2c;
  --line: #1d2f47;
  --fg: #eef3fa;
  --muted: #8496ad;
  --brand: #4d8bff;
  --img-bg: #142337;
  --scrim: rgba(7, 13, 23, .74);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px -2px rgba(0, 0, 0, .6);
  --green: #3fc78d;
  --amber: #d9a441;
  --red: #f0827a;
}
[data-theme="dark"] .nav { background: rgba(7, 13, 23, .94); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
/* Keyboard-visible focus ring (doesn't show on mouse click) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .vopt:focus-visible,
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; } }

/* Nav — opaque, not frosted. A blurred sticky bar repaints on every scroll
   frame, which is the last thing a phone browsing a long product grid needs. */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -.015em; color: var(--fg); }
.logo { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--accent); display: grid; place-items: center; color: var(--accent-fg); font-size: 15px; font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--muted); font-weight: 500; }
.nav-link.active, .nav-dd-menu a.active { color: var(--accent); }
.powered { color: var(--muted); font-size: 13px; }
.powered b { color: var(--accent); }
.cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); transition: border-color .15s ease, color .15s ease; }
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count { position: absolute; top: -5px; right: -7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; font-family: var(--font); border: 2px solid var(--surface); box-sizing: content-box; }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cart-count.bump { animation: cart-bump .35s ease; }
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(20, 20, 60, .35); }

/* Search bar (shop pages) — sticky just under the nav */
.shop-search-bar, body .shop-search-bar { position: static; background: transparent; border-bottom: 1px solid var(--line); }
.shop-search { display: flex; align-items: center; gap: 8px; margin: 9px 0; padding: 3px 8px 3px 12px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 18%, var(--line)); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.ss-ico { display: inline-flex; color: var(--muted); flex-shrink: 0; }
.ss-ico svg { width: 18px; height: 18px; }
.ss-input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--fg); padding: 9px 2px; }
.ss-input::placeholder { color: var(--muted); }
.ss-input:focus { outline: none; }
.ss-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ss-clear { border: none; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 999px; cursor: pointer; font-size: 20px; line-height: 1; flex-shrink: 0; }
.ss-clear[hidden] { display: none; }
.ss-clear:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.search-status { color: var(--muted); font-size: 14px; padding: 2px 0 10px; }
.search-status[hidden] { display: none; }
/* While live-searching on the home page, focus on the results only */
body.is-searching .store > *:not(#products) { display: none; }
body.is-searching #products > .sec-head, body.is-searching #products .cat-tabs { display: none; }

/* Buttons — solid by default. The gradient is now opt-in (body.btn-gradient),
   which is how the merchant's "Button style" setting already describes it;
   previously gradient was the base look and "solid" was the override. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 11px 20px; border-radius: var(--radius-sm); min-height: 46px; transition: background-color .15s ease, border-color .15s ease, filter .15s ease; touch-action: manipulation; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }

/* Hero / landing */
/* Full-bleed navy opening band. Only ever used by the Dokan marketing landing
   (landingPage() in render.ts) — a merchant shop page uses .shop-hero /
   .hero-slide / .hero-wrap instead, so this cannot leak into anyone's store. */
.hero {
  padding: 88px 0 72px; text-align: center;
  background: var(--navy); color: var(--navy-fg);
}
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero .eyebrow { color: #7fb0ff; }
.hero h1 { font-size: clamp(32px, 6vw, 58px); color: #ffffff; letter-spacing: -.026em; }
.hero .grad { color: #7fb0ff; background: none; -webkit-text-fill-color: currentColor; }
.hero .sub { font-size: 17.5px; color: #b9c9dc; max-width: 640px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; color: #8ba0bb; font-size: 13px; }
/* On navy, the secondary CTA needs a light outline rather than a grey box. */
.hero .btn:not(.primary) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #ffffff; }
.hero .btn:not(.primary):hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .45); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0 40px; }
/* Scoped to .feat-grid: the landing-page feature boxes ALSO use class "feat",
   which collides with the featured PRODUCT card variant (.product-card.feat).
   Without this scope, that 24px padding leaks onto featured product cards and
   shrinks their image so the Featured row looks different from the grid. */
.feat-grid .feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fico { font-size: 26px; margin-bottom: 10px; color: var(--accent); }
.fico svg { width: 26px; height: 26px; }
.feat-grid .feat h3 { font-size: 17px; }
.feat-grid .feat p { color: var(--muted); font-size: 14px; margin: 0; }
.band { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px 24px; margin: 20px auto 60px; max-width: 820px; }
.band h2 { font-size: 26px; }
.band p { max-width: 620px; margin: 0 auto 20px; }

/* Page head */
.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: 30px; }

/* Shop directory */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 60px; }
.shop-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.shop-card:hover { border-color: var(--accent); box-shadow: none; }
.shop-logo { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; flex-shrink: 0; }
.shop-logo.lg { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; margin: 0 auto 14px; }
.shop-name { font-weight: 700; }

/* Shop hero */
.shop-hero { text-align: center; padding: 44px 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shop-hero h1 { font-size: 30px; margin: 0 0 4px; }

/* Category filter tabs */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; }
.cat-tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; transition: all .15s ease; }
.cat-tab:hover { color: var(--fg); border-color: var(--accent); }
.cat-tab.on { background: var(--accent); color: #fff; border-color: transparent; }
.cat-subtabs { padding-top: 10px; }
.cat-subtabs .cat-tab { padding: 5px 13px; font-size: 13px; }
.cat-subtabs .cat-tab.on { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--pg-gap, 16px); padding: 20px 0 60px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pc-img { aspect-ratio: 1; background: #f0eef8; display: grid; place-items: center; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pc-img img { transform: scale(1.055); }
.pc-noimg { font-family: var(--head); font-weight: 700; font-size: 42px; color: var(--accent-2); opacity: .5; }
.pc-noimg.lg { font-size: 88px; width: 100%; height: 100%; display: grid; place-items: center; }
.pc-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 3px; }
.pc-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-price { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--accent); margin-top: auto; }
.pc-oos { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 4px; }

/* Product detail */
.product-detail { padding: 24px 0 60px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pd-img { background: #f0eef8; border-radius: 18px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 30px; }
.pd-price { font-family: var(--head); font-weight: 700; font-size: 30px; color: var(--accent); margin-bottom: 10px; }
.pd-opts { color: var(--muted); margin-bottom: 20px; }
.pd-oos { color: var(--red); font-weight: 700; margin: 16px 0; }
.qty-row { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin: 0 0 16px; background: var(--surface); }
.qbtn { width: 38px; height: 38px; border: none; background: transparent; font-size: 20px; cursor: pointer; border-radius: 8px; color: var(--fg); }
.qbtn:hover { background: var(--bg); }
.qty { width: 48px; text-align: center; border: none; font: inherit; font-weight: 600; background: transparent; color: var(--fg); }
.pd-info .btn { margin-right: 8px; margin-bottom: 8px; }
.pd-note { margin-top: 14px; font-size: 13px; }

/* Cart — an open, hairline-divided list on the left; one order card on the right
   holding the summary and the delivery form. Everything reads from the theme
   tokens (colour, radius, fonts) so each template keeps its own character, and
   the template style classes below (headings, density) adjust the rhythm. */
.cart-wrap { padding-bottom: 72px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 32px 0 20px; }
.cart-head h1 { font-size: 30px; margin: 0; }
.cart-n { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; text-transform: none; }
.cart-head .back { margin: 0; font-size: 14px; color: var(--muted); }
.cart-head .back:hover { color: var(--accent); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.cart-root { display: block; border-top: 1px solid var(--line); }
.cart-root:has(> .cart-empty) { border-top: 0; }
.cart-root .cart-line {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start;
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0;
}
.cl-img { width: 88px; height: 88px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); background: var(--img-bg); }
.cl-noimg { display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 28px; color: var(--accent-2); }
.cl-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-name { font-weight: 600; font-size: 15.5px; line-height: 1.35; padding-right: 72px; }
.cl-opts, .cl-unit { font-size: 13px; }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cl-price { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--fg); white-space: nowrap; }
.cart-line .qty-row { margin: 0; padding: 2px; }
.cart-line .qbtn { width: 30px; height: 30px; font-size: 18px; }
.cart-line .qty { width: 32px; }
.cl-remove { position: absolute; top: 20px; right: 0; background: none; border: 0; padding: 2px 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cl-remove:hover { color: var(--red); }

.cart-aside { position: sticky; top: 78px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cart-aside[hidden] { display: none; }
.cart-aside-title { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.cart-aside .cart-summary { background: none; border: 0; border-radius: 0; padding: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 14px; }
.sum-row.total { color: var(--fg); font-weight: 700; font-size: 19px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.sum-row.total span:last-child { color: var(--accent); font-family: var(--head); }
.cart-aside .checkout { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 20px; padding: 22px 0 0; }
.checkout h2 { font-size: 19px; margin-bottom: 4px; }
.checkout-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.checkout .btn { width: 100%; margin-top: 4px; padding: 14px; font-size: 15px; }
.cart-trust { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 14px; color: var(--muted); font-size: 12.5px; text-align: center; }
.cart-trust svg { width: 14px; height: 14px; flex: none; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--bg); color: var(--fg); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.err { color: var(--red); font-size: 14px; min-height: 18px; margin-bottom: 8px; }

/* Empty cart */
.cart-empty { padding: 64px 20px; }
.cart-empty b { display: block; color: var(--fg); font-family: var(--head); font-size: 20px; margin-bottom: 6px; }
.cart-empty p { margin: 0 0 20px; }

/* Template rhythm — the same style options the home page uses */
.ts-headings-centered .cart-head { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ts-headings-refined .cart-head h1 { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.ts-headings-refined .cart-n { font-size: 13px; letter-spacing: .04em; }
.ts-headings-refined .cart-aside-title { letter-spacing: .16em; }
.ts-density-airy .cart-root .cart-line { padding: 26px 0; }
.ts-density-airy .cart-head { padding: 44px 0 26px; }
.ts-density-compact .cart-root .cart-line { padding: 14px 0; }
.ts-density-compact .cart-head { padding: 22px 0 14px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .cart-aside { position: static; }
}
@media (max-width: 560px) {
  .cart-head { padding: 22px 0 14px; }
  .cart-head h1 { font-size: 24px; }
  .cart-root .cart-line { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .cl-img { width: 72px; height: 72px; }
  .cl-remove { top: 16px; }
  .cart-aside { padding: 18px; }
}

/* Confirmation */
.confirm { padding: 56px 0 72px; }
.confirm-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 36px 36px; }
.check { width: 56px; height: 56px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); display: grid; place-items: center; margin: 0 auto 18px; }
.check svg { width: 26px; height: 26px; stroke-width: 2.4; }
.confirm-card h1 { font-size: 28px; margin: 0 0 8px; }
.confirm-box { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; margin: 24px 0 20px; text-align: left; }
.confirm-ref-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order-id { font-family: var(--head); font-weight: 700; font-size: 22px; margin: 2px 0 14px; }
.confirm-items { list-style: none; margin: 0; padding: 0; }
.confirm-items li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.confirm-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 18px; padding-top: 14px; }
.confirm-card .btn { margin-top: 12px; }
.confirm-total span:last-child { color: var(--accent); font-family: var(--head); }
@media (max-width: 560px) { .confirm { padding: 28px 0 48px; } .confirm-card { padding: 32px 20px 26px; } }

/* Error pages (404 / 500) */
.container.err-page { max-width: 560px; margin: 0 auto; padding: 80px 20px 96px; text-align: center; }
.err-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.err-icon svg { width: 30px; height: 30px; }
.err-code { font-size: 12.5px; font-weight: 700; letter-spacing: .22em; color: var(--muted); margin-bottom: 10px; }
.err-page h1 { font-size: 38px; line-height: 1.12; margin: 0 0 12px; }
.err-page > p { margin: 0 auto 26px; max-width: 420px; font-size: 16px; line-height: 1.6; }
.err-search { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 18px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.err-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--fg); padding: 8px 10px; }
.err-search input:focus { outline: none; }
.err-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.err-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; max-width: 440px; margin: 38px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.err-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.err-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .container.err-page { padding: 48px 20px 64px; } .err-page h1 { font-size: 28px; } .err-links { gap: 16px; margin-top: 28px; } }

/* Empty */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h1 { color: var(--fg); }
/* "No products yet": spans the whole product grid (a plain .empty would be a single ~180px cell). */
.pg-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 520px; width: 100%; margin: 0 auto; padding: 44px 24px 48px; color: var(--muted); }
.pg-empty-art { width: 168px; height: auto; margin-bottom: 18px; color: var(--fg); }
.pg-empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--fg); }
.pg-empty p { margin: 0 0 22px; max-width: 400px; line-height: 1.6; }
@media (max-width: 560px) { .pg-empty { padding: 28px 12px 36px; } .pg-empty-art { width: 140px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; text-align: center; background: var(--surface); margin-top: 40px; }
.footer .muted { font-size: 13px; margin-top: 4px; }

/* Manage-Shop-driven elements */
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.announce { background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.pc-old, .pd-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .8em; margin-left: 6px; }
.pd-short { color: var(--muted); margin: 0 0 14px; }
.pd-desc { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd-desc h3 { font-size: 17px; }
.pd-desc p { color: var(--muted); }
/* Variant selectors */
.pd-variant { margin: 14px 0; }
.pd-vlabel { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pd-vlabel .req { color: var(--red); }
.pd-vopts { display: flex; flex-wrap: wrap; gap: 8px; }
.vopt { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.vopt:hover { border-color: var(--accent); }
.vopt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.vopt .vextra { font-size: 12px; opacity: .8; }
/* Variant option with a swatch image */
.vopt.has-img { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; }
.vopt-img { width: 28px; height: 28px; object-fit: cover; border-radius: 7px; }
[data-variant-err] { color: var(--red); font-size: 13px; min-height: 18px; }
/* Ratings */
.stars { color: var(--amber); letter-spacing: 1px; }
.pc-rating { font-size: 12px; margin-top: 4px; }
.pc-badge { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-radius: var(--radius-sm); padding: 1px 7px; }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.pd-stock { font-size: 13px; font-weight: 600; margin: 6px 0; }
.pd-stock.in { color: var(--green); }
.pd-stock.out { color: var(--red); }
/* Reviews block */
.pd-reviews { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; max-width: 720px; }
.pd-reviews h3 { font-size: 19px; }
.rv-summary { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.rv-list { display: grid; gap: 12px; margin-bottom: 22px; }
.rv-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rv-item p { color: var(--muted); font-size: 14px; margin: 0; }
.rv-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.rv-form h4 { margin: 0 0 10px; font-size: 15px; }
.rv-stars-pick { display: flex; gap: 4px; margin-bottom: 12px; }
.rv-star { font-size: 26px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--line); padding: 0; }
.rv-star.on { color: var(--amber); }
.rv-form .small { margin-top: 8px; }
/* Specs table */
.pd-specs { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd-specs h3 { font-size: 17px; }
.pd-specs table { width: 100%; border-collapse: collapse; }
.pd-specs td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-specs td:first-child { width: 40%; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.policy-body { color: var(--fg); max-width: 700px; line-height: 1.8; padding-bottom: 40px; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.social a { color: var(--accent); font-weight: 600; font-size: 14px; }
/* Social links are round icon buttons (the name is the tooltip and the screen-reader label). */
.social a.soc { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); color: var(--fg); transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.social a.soc svg { width: 17px; height: 17px; }
.social a.soc:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.social { gap: 10px; }
.social-lg a.soc { width: 44px; height: 44px; }
.social-lg a.soc svg { width: 20px; height: 20px; }
.foot-dark .social a.soc, .foot-common .social a.soc, .foot-brand .social a.soc { color: rgba(255, 255, 255, .85); }
.foot-dark .social a.soc:hover, .foot-common .social a.soc:hover, .foot-brand .social a.soc:hover { background: #fff; border-color: #fff; color: var(--accent); }
.foot-common .social { justify-content: flex-start; margin-bottom: 0; }
.chat-fab { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: var(--accent); color: #fff; font-weight: 600; padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 14px; }
.chat-fab:hover { filter: brightness(1.06); }

@media (max-width: 640px) {
  .pd-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 56px 0 40px; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }
  .chat-fab { padding: 11px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Theme-customizer additions — shape presets, sectioned homepage, dark mode.
   ══════════════════════════════════════════════════════════════════════════ */

/* Shape tokens applied to shared elements */
.btn { border-radius: var(--radius-sm); }
.product-card, .shop-card, .feat, .card, .checkout, .cart-summary, .cart-line,
.trust-item, .rich-card, .cat-tile-img { border-radius: var(--radius); }

/* Button-style presets (body.btn-solid / btn-gradient / btn-outline).
   Solid is now the base, so btn-gradient has to opt back in explicitly —
   a merchant who picked "Gradient" still gets exactly what they picked. */
body.btn-solid .btn.primary { background: var(--accent); }
body.btn-gradient .btn.primary { background: var(--grad); border-color: transparent; }
body.btn-outline .btn.primary { background: transparent; color: var(--accent); border: 1.6px solid var(--accent); box-shadow: none; }
body.btn-outline .btn.primary:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* Card-style presets (body.card-elevated / card-bordered / card-minimal) */
body.card-elevated .product-card, body.card-elevated .shop-card { box-shadow: 0 6px 18px -14px rgba(28, 25, 20, .38); }
body.card-bordered .product-card { border-width: 1.5px; box-shadow: none; }
body.card-minimal .product-card { border-color: transparent; background: transparent; }
body.card-minimal .pc-body { padding-left: 2px; padding-right: 2px; }

/* Store wrapper + section headings */
/* Vertical-only padding — must NOT reset the container's horizontal gutter,
   or every store section bleeds to the screen edge (no side margin). */
.store-sec { padding-top: 20px; padding-bottom: 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; margin: 0; position: relative; padding-left: 13px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 3px; border-radius: 1px; background: var(--accent); }
.sec-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sec-link svg { width: 15px; height: 15px; }

/* Product-card image badges */
.pc-img { position: relative; background: var(--img-bg); }
.pd-img, .cl-noimg { background: var(--img-bg); }
.pc-disc { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; letter-spacing: .02em; }
.pc-oos-tag { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim); color: var(--fg); font-weight: 700; font-size: 13px; z-index: 2; }

/* Gradient hero */
.shop-hero.grad-hero { background: var(--grad); color: #fff; border: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 48px 0 40px; }
.grad-hero h1 { color: #fff; }
.grad-hero .shop-tag { color: rgba(255, 255, 255, .9); font-size: 16px; margin: 0 0 20px; }
.grad-hero .shop-logo.lg { background: rgba(255, 255, 255, .16); box-shadow: none; }
.grad-hero.hero-fg h1, .grad-hero.hero-fg .shop-tag { color: inherit; }
.grad-hero.hero-fg .hero-cta { color: var(--hero-bg, var(--accent)) !important; }
.grad-hero.hero-s-l h1 { font-size: clamp(30px, 5vw, 46px); }
.grad-hero.hero-s-xl h1 { font-size: clamp(34px, 6.5vw, 62px); line-height: 1.05; }
.grad-hero.hero-anim .container > * { animation: hero-up .8s ease both; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; }
.hero-cta svg { width: 16px; height: 16px; }

/* Banner + slider hero */
.hero-wrap { padding-top: 22px; }
.hero-slide { min-height: 320px; border-radius: var(--radius-lg); background-size: cover; background-position: center; display: flex; align-items: center; overflow: hidden; position: relative; color: #fff; }
.hero-slide-link { position: absolute; inset: 0; }
.brand-logo-link { display: inline-flex; }
.hero-slide.no-img { background: var(--grad); }
/* --ov is the merchant's "Image darkening" setting (0-.8); the horizontal ramp
   keeps the left-aligned copy readable while the right side of the photo stays
   visible. Falls back to the old fixed values when a block doesn't set it. */
.hero-slide:not(.no-img)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, calc(var(--ov, .35) + .23)), rgba(0, 0, 0, calc(var(--ov, .35) * .4))); }
.hero-copy { position: relative; padding: 34px 36px; max-width: 580px; }
.hero-copy h1 { color: #fff; font-size: clamp(24px, 4vw, 40px); margin: 0 0 10px; }
.hero-copy p { color: rgba(255, 255, 255, .92); font-size: 16px; margin: 0 0 18px; max-width: 460px; }
.hero-slider { position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; }
.hero-slider .hero-slide { position: absolute; inset: 0; min-height: 0; border-radius: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slider .hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px; background: var(--line); cursor: pointer; transition: all .2s ease; }
.hero-dot.on { background: var(--accent); width: 24px; }
/* Any hero CTA sits on a dark image / gradient → white pill (wins over presets) */
.grad-hero .hero-cta, .hero-slide .hero-cta, .promo-strip .btn.primary { background: #fff !important; color: var(--accent) !important; border: none !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45) !important; }
/* Buttons setting on banner buttons. The banner button keeps its fixed light look for "Solid" (the
   default, so existing shops don't change); "Gradient" and "Outline" now show too. The editorial
   hero draws its own underlined link button, so it is left alone. */
body:not(.ts-hero-editorial).btn-gradient .hero-slide .hero-cta { background: var(--grad) !important; color: #fff !important; }
body:not(.ts-hero-editorial).btn-outline .hero-slide .hero-cta, body:not(.ts-hero-editorial).btn-outline .grad-hero .hero-cta { background: transparent !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: none !important; }

/* Banner look settings (Theme Studio: position, height, size, text colour, button, animation) */
.hero-h-short .hero-slide { min-height: 240px; }
.hero-h-short .hero-slider { min-height: 260px; }
.hero-h-tall .hero-slide { min-height: 460px; }
.hero-h-tall .hero-slider { min-height: 480px; }
.hero-h-full .hero-slide { min-height: 78vh; }
.hero-h-full .hero-slider { min-height: 80vh; }
.hero-h-short .hero-split { min-height: 240px; }
.hero-h-tall .hero-split { min-height: 460px; }
.hero-h-full .hero-split { min-height: 78vh; }
.hero-a-center .hero-slide { justify-content: center; text-align: center; }
.hero-a-center .hero-copy p, .hero-a-center .hero-split-copy p { margin-inline: auto; }
.hero-a-center .hero-slide:not(.no-img)::before { background: rgba(0, 0, 0, calc(var(--ov, .35) + .12)); }
.hero-a-right .hero-slide { justify-content: flex-end; text-align: right; }
.hero-a-right .hero-copy p { margin-left: auto; }
.hero-a-right .hero-slide:not(.no-img)::before { background: linear-gradient(270deg, rgba(0, 0, 0, calc(var(--ov, .35) + .23)), rgba(0, 0, 0, calc(var(--ov, .35) * .4))); }
.hero-s-l .hero-copy h1, .hero-s-l .hero-split-copy h1 { font-size: clamp(28px, 5vw, 52px); }
.hero-s-xl .hero-copy h1, .hero-s-xl .hero-split-copy h1 { font-size: clamp(32px, 6.5vw, 68px); line-height: 1.05; }
.hero-s-l .hero-copy p { font-size: 18px; }
.hero-s-xl .hero-copy p { font-size: 20px; }
.hero-tone-dark .hero-slide { color: #111827; }
.hero-tone-dark .hero-copy h1 { color: #111827; }
.hero-tone-dark .hero-copy p { color: #374151; }
.hero-tone-dark .hero-slide:not(.no-img)::before { background: linear-gradient(90deg, rgba(255, 255, 255, calc(var(--ov, .35) + .4)), rgba(255, 255, 255, calc(var(--ov, .35) * .3))); }
.hero-tone-dark.hero-a-center .hero-slide:not(.no-img)::before { background: rgba(255, 255, 255, calc(var(--ov, .35) + .3)); }
.hero-tone-dark.hero-a-right .hero-slide:not(.no-img)::before { background: linear-gradient(270deg, rgba(255, 255, 255, calc(var(--ov, .35) + .4)), rgba(255, 255, 255, calc(var(--ov, .35) * .3))); }
.hero-cta-outline .hero-slide .hero-cta, .hero-cta-outline .hero-split-copy .hero-cta { background: transparent !important; color: inherit !important; border: 2px solid currentColor !important; box-shadow: none !important; }
.hero-cta-pill .hero-cta { border-radius: 999px !important; padding-inline: 30px !important; }
.hero-anim .hero-copy-inner { animation: hero-up .8s ease both; }
@keyframes hero-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-anim .hero-copy-inner { animation: none; } .hero-t-zoom .hero-slider .hero-slide { transition: opacity .3s ease; transform: none; } }

/* Slider extras: zoom transition + arrows */
.hero-t-zoom .hero-slider .hero-slide { transform: scale(1.07); transition: opacity .8s ease, transform 1.6s ease; }
.hero-t-zoom .hero-slider .hero-slide.on { transform: none; }
.hero-arrow { position: absolute; top: 50%; z-index: 5; width: 42px; height: 42px; margin-top: -21px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #111827; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transition: transform .15s ease; }
.hero-arrow:hover { transform: scale(1.08); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* Photo + text panel */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.hero-split.no-img { grid-template-columns: 1fr; }
.hero-split-right .hero-split-img { order: 2; }
.hero-split-img { background-size: cover; background-position: center; min-height: 240px; }
.hero-split-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; background: var(--grad); color: #fff; }
.hero-split-copy h1 { color: inherit; font-size: clamp(24px, 3.6vw, 40px); margin: 0 0 12px; }
.hero-split-copy p { color: inherit; opacity: .92; font-size: 16px; margin: 0 0 20px; max-width: 460px; }
.hero-tone-dark .hero-split-copy { background: var(--surface); color: var(--fg); }
.hero-split-copy .hero-cta { align-self: flex-start; background: #fff !important; color: var(--accent) !important; border: none !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45) !important; }
.hero-tone-dark .hero-split-copy .hero-cta { background: var(--grad) !important; color: #fff !important; }
.hero-a-center .hero-split-copy .hero-cta { align-self: center; }
.hero-a-right .hero-split-copy .hero-cta { align-self: flex-end; }
.hero-a-center .hero-split-copy { text-align: center; align-items: center; }
.hero-a-right .hero-split-copy { text-align: right; align-items: flex-end; }
@media (max-width: 720px) { .hero-split { grid-template-columns: 1fr; } .hero-split-right .hero-split-img { order: 0; } .hero-split-copy { padding: 26px 22px; } .hero-h-tall .hero-slide, .hero-h-tall .hero-slider { min-height: 340px; } }

/* Photo with text card */
.hero-card:not(.no-img)::before { background: rgba(0, 0, 0, calc(var(--ov, .2) * .9)) !important; }
.hero-card { padding: 12px; }
.hero-card .hero-copy { margin: 20px 26px; padding: 28px 32px; max-width: 470px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .96); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .55); color: #111827; }
.hero-card .hero-copy h1 { color: #111827; }
.hero-card .hero-copy p { color: #4b5563; }
.hero-card .hero-badge { background: var(--accent); color: var(--accent-fg, #fff); }
.hero-card .hero-cta { background: var(--grad) !important; color: #fff !important; box-shadow: none !important; }

/* Spotlight hero (a featured product) */
.spotlight-hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.spotlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 20px; }
.spot-media { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--img-bg); }
.spot-media img { width: 100%; height: 100%; object-fit: cover; }
.spot-copy h1 { font-size: clamp(24px, 4vw, 38px); margin: 6px 0 10px; }
.spot-copy .pd-price { margin: 8px 0 18px; }

/* Trust badges strip */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 24px auto; }
.trust-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.trust-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.trust-ico svg { width: 21px; height: 21px; }
.trust-h { font-weight: 700; font-size: 14px; }
.trust-s { font-size: 12px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.cat-tile { text-align: center; }
.cat-tile-img { aspect-ratio: 1; overflow: hidden; background: var(--img-bg); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--accent-2); transition: transform .15s ease, box-shadow .15s ease; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .cat-tile-img { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile-name { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--fg); }

/* Featured products carousel */
.featured-row { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.featured-row .product-card { flex: 0 0 210px; scroll-snap-align: start; }

/* Promo strip */
.promo-strip { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad); background-size: cover; background-position: center; color: #fff; padding: 44px 32px; text-align: center; margin: 20px 0; }
.promo-strip:not(.no-img)::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .44); }
.promo-copy { position: relative; }
.promo-copy h2 { color: #fff; font-size: 27px; margin: 0 0 8px; }
.promo-copy p { color: rgba(255, 255, 255, .92); max-width: 560px; margin: 0 auto 18px; }

/* Rich text / about block */
.rich-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.rich-card h2 { font-size: 22px; margin: 0 0 10px; }

/* ── Block variants ──────────────────────────────────────────────────────────
   Everything below is selected by a block's `variant` in the theme registry.
   Class names are built from schema-whitelisted values (see coerceProps), so a
   merchant can never inject an arbitrary selector here. */

/* Announcement bar — each style has its own palette (inline colours only when the merchant overrides) */
.ann-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; overflow: hidden; background: var(--accent); color: var(--accent-fg, #fff); }
.ann-static { background: linear-gradient(90deg, #14b8a6, #0ea5e9); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.ann-cta { color: inherit; text-decoration: underline; white-space: nowrap; font-weight: 700; }
@keyframes ann-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Celebration card */
.ann-celebrate { padding: 14px 20px; background: linear-gradient(120deg, #fff1f2, #fef3c7 50%, #e0f2fe); color: #7c2d12; border-bottom: 3px solid #fbbf24; font-size: 15px; }
.ann-ctext { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; z-index: 1; }
.ann-ctext small { font-size: 12px; font-weight: 500; opacity: .8; }
.ann-emoji { font-size: 28px; z-index: 1; animation: ann-bob 1.6s ease-in-out infinite; }
.ann-emoji-r { animation-delay: .4s; }
@keyframes ann-bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(8deg); } }
.ann-confetti { position: absolute; inset: 0; pointer-events: none; }
.ann-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 6.4%); width: 7px; height: 11px; border-radius: 2px; background: hsl(calc(var(--i) * 47), 85%, 58%); animation: ann-fall calc(2.4s + (var(--i) % 5) * .5s) linear infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes ann-fall { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(80px) rotate(360deg); opacity: .6; } }

/* Person holding a sign */
.ann-holding { padding: 14px 16px 0; background: linear-gradient(180deg, #fff7ed, #fed7aa); color: #9a3412; gap: 0; align-items: flex-end; border-bottom: 3px solid #fb923c; }
.ann-person { flex: none; margin-bottom: -2px; position: relative; z-index: 2; }
.ann-sign { display: flex; align-items: center; gap: 10px; margin: 0 14px 12px -6px; padding: 8px 16px; background: #fff; border: 3px solid #f97316; border-radius: 8px; box-shadow: 0 3px 0 #ea580c, 0 8px 14px rgba(154, 52, 18, .18); transform-origin: 0 100%; animation: ann-wave 2.6s ease-in-out infinite; }
.ann-sign b { padding: 1px 8px; border-radius: 6px; background: #f97316; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .04em; }
@keyframes ann-wave { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2deg); } }

/* Festival flags */
.ann-bunting { flex-direction: column; gap: 4px; padding: 0 16px 10px; background: #fffbeb; color: #78350f; border-bottom: 1px solid #fde68a; }
.ann-flags { display: flex; justify-content: space-between; width: calc(100% + 32px); margin: 0 -16px; padding-top: 6px; background: linear-gradient(#a16207, #a16207) 0 8px / 100% 2px no-repeat; }
.ann-flags i { width: 24px; height: 22px; margin-top: 2px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: hsl(calc(var(--i) * 57 + 340), 85%, 56%); transform-origin: 50% 0; animation: ann-sway 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
@keyframes ann-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* Coupon ticket */
.ann-offer { padding: 10px 30px; background: linear-gradient(90deg, #fef9c3, #fde68a); color: #713f12; -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.ann-badge { padding: 3px 12px; border-radius: 6px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); animation: ann-pulse 1.8s ease-in-out infinite; }
.ann-code { font: inherit; font-weight: 800; letter-spacing: .08em; color: inherit; background: #fff; border: 2px dashed #b45309; border-radius: 6px; padding: 2px 12px; cursor: pointer; }
.ann-code:hover { background: #fffbeb; }

/* Animated gradient */
.ann-glow { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); background: linear-gradient(90deg, #f43f5e, #f97316, #eab308, #22c55e, #06b6d4, #6366f1, #f43f5e); background-size: 300% 100%; animation: ann-flow 9s linear infinite; }
.ann-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); background-size: 250% 100%; animation: ann-shine 3.2s linear infinite; pointer-events: none; }
@keyframes ann-flow { to { background-position: 300% 0; } }
@keyframes ann-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* Floating pill */
.ann-float { position: sticky; top: 8px; z-index: 60; padding: 8px 12px; pointer-events: none; }
.ann-sticky { max-width: 760px; margin: 0 auto; padding: 9px 44px; border-radius: 999px; background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff; box-shadow: 0 8px 22px rgba(99, 102, 241, .4); pointer-events: auto; }
.ann-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.ann-close:hover { background: rgba(255, 255, 255, .45); }

/* Countdown timer (optional, any style) */
.ann-timer { --cd-size: 20px; gap: 6px; text-shadow: none; }
.ann-timer .cd-cell { min-width: 44px; padding: 6px 6px 5px; border-radius: 10px; background: #fff; color: #6d28d9; box-shadow: 0 3px 0 rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(109, 40, 217, .12); }
.ann-timer .cd-cell:last-child .cd-num { animation: ann-tick 1s ease-in-out infinite; }
.ann-timer .cd-unit { opacity: .7; margin-top: 3px; font-size: 9px; font-weight: 700; }
.ann-discount .ann-timer .cd-cell { color: #be123c; }
.ann-marquee .ann-timer { position: absolute; right: 0; z-index: 2; padding: 4px 12px; background: #facc15; }
.ann-celebrate .ann-timer, .ann-bunting .ann-timer { z-index: 1; }
.ann-sticky .ann-timer { --cd-size: 15px; }
.ann-sticky .ann-timer .cd-cell { min-width: 34px; padding: 3px 4px; }
@keyframes ann-tick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Big discount banner */
.ann-discount { padding: 10px 24px; gap: 18px; background: linear-gradient(100deg, #f43f5e, #fb7185 55%, #f97316); color: #fff; font-size: 15px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ann-burst { position: relative; flex: none; display: grid; place-items: center; width: 62px; height: 62px; margin: -6px 0; }
.ann-burst i { position: absolute; inset: 0; background: #fde047; clip-path: polygon(50% 0, 61% 14%, 79% 9%, 82% 27%, 99% 32%, 90% 49%, 100% 66%, 82% 71%, 79% 90%, 61% 85%, 50% 100%, 39% 85%, 21% 90%, 18% 71%, 0 66%, 10% 49%, 1% 32%, 18% 27%, 21% 9%, 39% 14%); animation: ann-spin 14s linear infinite; }
.ann-burst b { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; color: #be123c; font-size: 17px; font-weight: 900; text-shadow: none; }
.ann-burst small { font-size: 10px; letter-spacing: .1em; }
.ann-dtext { font-size: 16px; }
@keyframes ann-spin { to { transform: rotate(360deg); } }

/* Sale tape */
.ann-marquee { justify-content: flex-start; padding: 11px 0; background: #facc15; color: #422006; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.ann-marquee::before, .ann-marquee::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(-45deg, #ea580c 0 8px, #facc15 8px 16px); }
.ann-marquee::before { top: 0; }
.ann-marquee::after { bottom: 0; }
.ann-track { display: flex; align-items: center; gap: 18px; white-space: nowrap; animation: ann-scroll linear infinite; }
.ann-track .ann-item, .ann-track .ann-sep { flex: none; }
.ann-sep { color: #ea580c; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Text slide show (extra messages), in any style */
.ann-rot { position: relative; display: inline-grid; place-items: center; overflow: hidden; vertical-align: bottom; }
.ann-rot-item { grid-area: 1 / 1; opacity: 0; transform: translateY(100%); animation: ann-rot linear infinite; text-align: center; }
@keyframes ann-rot { 0% { opacity: 0; transform: translateY(100%); } 4% { opacity: 1; transform: none; } 24% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateY(-100%); } }

/* Picture beside the message */
.ann-pic { flex: none; width: 34px; height: 34px; margin: -4px 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.ann-celebrate .ann-pic { width: 46px; height: 46px; z-index: 1; }
.ann-person-photo { width: 62px; height: 62px; border-radius: 14px 14px 0 0; object-fit: cover; margin-bottom: 0; }

/* Photo banner */
.ann-photo { min-height: 150px; padding: 28px 36px; gap: 18px; flex-wrap: wrap; justify-content: flex-start; background: linear-gradient(120deg, #6366f1, #ec4899); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.ann-ptext { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.ann-ptext b { font-size: 1.9em; line-height: 1.15; font-weight: 900; }
.ann-ptext small { font-size: 1.05em; font-weight: 500; opacity: .92; }
.ann-photo .ann-cta { text-decoration: none; background: #fff; color: #111; padding: 9px 22px; border-radius: 999px; text-shadow: none; }
.ann-photo.ann-a-center { justify-content: center; text-align: center; }
.ann-photo.ann-a-center .ann-ptext { align-items: center; }
.ann-photo.ann-a-right { justify-content: flex-end; text-align: right; }
.ann-photo.ann-a-right .ann-ptext { align-items: flex-end; }

.ann-pic-r { order: 99; }
.ann-split { padding: 0; gap: 0; align-items: stretch; flex-wrap: nowrap; text-shadow: none; }
.ann-split-img { flex: none; width: 38%; min-height: 150px; object-fit: cover; }
.ann-split-right { flex-direction: row-reverse; }
.ann-split-body { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 24px 32px; }
.ann-split.ann-a-center .ann-split-body { justify-content: center; text-align: center; }
.ann-split.ann-a-right .ann-split-body { justify-content: flex-end; text-align: right; }
@media (max-width: 640px) { .ann-split { flex-direction: column; } .ann-split-img { width: 100%; min-height: 140px; max-height: 180px; } }

/* Text controls (kept last so they win over each style's own padding/size) */
.ann-s-s { font-size: 11.5px; }
.ann-s-l { font-size: 17px; }
.ann-w-normal { font-weight: 400; }
.ann-w-bold { font-weight: 700; }
.ann-w-black { font-weight: 900; }
.ann-a-left { justify-content: flex-start; text-align: left; }
.ann-a-right { justify-content: flex-end; text-align: right; }
.ann-bunting.ann-a-left, .ann-bunting.ann-a-right { align-items: flex-start; }
.ann-bunting.ann-a-right { align-items: flex-end; }
.ann-h-compact { padding-block: 4px; }
.ann-h-tall { padding-block: 20px; }
.ann-upper { text-transform: uppercase; letter-spacing: .05em; }
.ann-cta-btn .ann-cta { text-decoration: none; background: #fff; color: #111827; padding: 4px 16px; border-radius: 999px; text-shadow: none; }
.ann-bar > .ann-close { right: 10px; }
.ann-bar:not(.ann-sticky) > .ann-close { z-index: 3; }

@media (prefers-reduced-motion: reduce) { .ann-track, .ann-badge, .ann-glow, .ann-glow::after, .ann-emoji, .ann-confetti i, .ann-sign, .ann-flags i { animation: none; } .ann-burst i, .ann-timer .cd-cell:last-child .cd-num { animation: none; } .ann-rot-item { animation: none; } .ann-rot-item:first-child { opacity: 1; transform: none; } }

/* Hero badge (slider slides) */
.hero-badge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .22); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Section sub-heading */
.sec-sub { margin: 4px 0 0; font-size: 14px; }

/* Trust variants */
.trust-cards .trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.trust-compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 14px auto; }
.trust-compact .trust-item { gap: 7px; padding: 6px 0; }
.trust-compact .trust-ico { width: 20px; height: 20px; }
.trust-compact .trust-h { font-size: 13px; }
/* Row: plain, no boxes (Cards keeps the boxed look). */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; }
.trust-row .trust-item { background: none; border: 0; padding: 6px 0; }
/* Scrolling ticker: full-width strip, the track slides left by one group, forever. */
.trust-marquee { display: block; overflow: hidden; margin: 16px 0; padding: 0; border-block: 1px solid var(--line); background: var(--surface); }
.trust-marquee .trust-track { display: flex; width: max-content; animation: kt-trust-scroll 45s linear infinite; }
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-marquee .trust-group { display: flex; flex: none; gap: 56px; padding: 10px 28px; }
.trust-marquee .trust-item { background: none; border: 0; padding: 0; white-space: nowrap; flex-direction: row; align-items: center; gap: 8px; }
.trust-marquee .trust-ico { width: 24px; height: 24px; border-radius: 50%; }
.trust-marquee .trust-ico svg { width: 14px; height: 14px; }
.trust-marquee .trust-h { font-size: 13px; }
@keyframes kt-trust-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust-marquee .trust-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .trust-marquee .trust-group[aria-hidden] { display: none; } }
/* Brand bar: one strip in the brand colour. */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding: 12px 20px; background: var(--accent); color: #fff; border-radius: var(--radius); }
.trust-bar .trust-item { background: none; border: 0; padding: 0; gap: 8px; flex-direction: row; align-items: center; }
.trust-bar .trust-ico { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; }
.trust-bar .trust-ico svg { width: 14px; height: 14px; }
.trust-bar .trust-h { font-size: 13px; color: #fff; }
/* Pills */
.trust-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-pills .trust-item { border-radius: 999px; padding: 7px 16px 7px 8px; gap: 8px; flex-direction: row; align-items: center; }
.trust-pills .trust-ico { width: 26px; height: 26px; border-radius: 50%; }
.trust-pills .trust-ico svg { width: 14px; height: 14px; }
.trust-pills .trust-h { font-size: 13px; }
/* Centred icons */
.trust-centered { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 18px; }
.trust-centered .trust-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; background: none; border: 0; padding: 8px; }
.trust-centered .trust-ico { width: 56px; height: 56px; border-radius: 50%; }
.trust-centered .trust-ico svg { width: 26px; height: 26px; }

/* Category variants */
.cat-scroll { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cat-scroll .cat-tile { flex: 0 0 130px; scroll-snap-align: start; }
.cat-circles .cat-tile-img { border-radius: 50%; aspect-ratio: 1; }
.cat-circles .cat-tile-name { text-align: center; }
/* A few round tiles used to hug the left of a wide auto-fill grid; centre the row instead (it still wraps). */
.cat-tiles.cat-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; }
.cat-circles .cat-tile { width: 120px; }
@media (max-width: 640px) {
  .cat-tiles.cat-circles { gap: 14px 10px; }
  .cat-circles .cat-tile { width: calc((100% - 20px) / 3); }
}

/* Product grid column counts — the merchant picks these per block. */
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
/* Products block styles (pg-v-*): photo shape + details layout. An explicit "Photo shape"
   (ratio-*) later in this file still wins over the shape a style implies. */
.product-grid.pg-v-wide .pc-img { aspect-ratio: 4 / 3; }
.product-grid.pg-v-portrait .pc-img { aspect-ratio: 3 / 4; }
.product-grid.pg-v-rounded .product-card { border-radius: 24px; }
.product-grid.pg-v-rounded .pc-img { margin: 8px 8px 0; border-radius: 18px; }
.product-grid.pg-v-arch .product-card { background: transparent; border-color: transparent; }
.product-grid.pg-v-arch .pc-img { aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
.product-grid.pg-v-circle .product-card { background: transparent; border-color: transparent; }
.product-grid.pg-v-circle .pc-img { aspect-ratio: 1 !important; border-radius: 50%; }
.product-grid.pg-v-arch .pc-body, .product-grid.pg-v-circle .pc-body, .product-grid.pg-v-centered .pc-body { align-items: center; text-align: center; }
.product-grid.pg-v-arch .pc-name, .product-grid.pg-v-circle .pc-name, .product-grid.pg-v-centered .pc-name { min-height: 0; }
.product-grid.pg-v-centered .product-card { background: transparent; border-color: transparent; }
.product-grid.pg-v-overlay .product-card, .product-grid.pg-v-reveal .product-card { position: relative; }
.product-grid.pg-v-overlay .pc-img, .product-grid.pg-v-reveal .pc-img { aspect-ratio: 3 / 4; }
.product-grid.pg-v-overlay .pc-body, .product-grid.pg-v-reveal .pc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-top: 40px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .82)); }
.product-grid.pg-v-overlay .pc-name, .product-grid.pg-v-overlay .pc-price,
.product-grid.pg-v-reveal .pc-name, .product-grid.pg-v-reveal .pc-price { color: #fff; min-height: 0; }
.product-grid.pg-v-overlay .pc-body .muted, .product-grid.pg-v-overlay .pc-old,
.product-grid.pg-v-reveal .pc-body .muted, .product-grid.pg-v-reveal .pc-old { color: rgba(255, 255, 255, .8); }
.product-grid.pg-v-overlay .pc-badge, .product-grid.pg-v-reveal .pc-badge { background: rgba(255, 255, 255, .92); }
/* Everything else in the details (stock line, brand · category, rating) must stay readable on the dark gradient. */
.product-grid.pg-v-overlay .pc-stock, .product-grid.pg-v-overlay .pc-meta, .product-grid.pg-v-overlay .pc-rating,
.product-grid.pg-v-reveal .pc-stock, .product-grid.pg-v-reveal .pc-meta, .product-grid.pg-v-reveal .pc-rating { color: #fff; opacity: .95; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.product-grid.pg-v-overlay .pc-stock.low, .product-grid.pg-v-reveal .pc-stock.low { color: #ffd479; }
/* The quick "Add to cart" bar would sit on top of the details: make it a round icon in the photo's top-right corner. */
.product-grid.pg-v-overlay .pc-add, .product-grid.pg-v-reveal .pc-add { left: auto; right: 8px; top: 8px; bottom: auto; width: 36px; height: 36px; padding: 0; border-radius: 999px; transform: none; z-index: 3; }
.product-grid.pg-v-overlay .pc-add span, .product-grid.pg-v-reveal .pc-add span { display: none; }
.product-grid.pg-v-reveal .pc-body { transform: translateY(100%); transition: transform .28s ease; }
.product-grid.pg-v-reveal .product-card:hover .pc-body, .product-grid.pg-v-reveal .product-card:focus-visible .pc-body { transform: none; }
@media (hover: none) { .product-grid.pg-v-reveal .pc-body { transform: none; } }
.product-grid.pg-v-list { grid-template-columns: repeat(2, 1fr) !important; }
.product-grid.pg-v-list .product-card { flex-direction: row; align-items: stretch; }
.product-grid.pg-v-list .pc-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 150px; height: auto; }
.product-grid.pg-v-list .pc-body { justify-content: center; }
@media (max-width: 700px) { .product-grid.pg-v-list { grid-template-columns: 1fr !important; } }

/* Promo variants */
.promo-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin: 20px 0; }
.promo-split.no-img { grid-template-columns: 1fr; }
.promo-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.promo-split .promo-copy { padding: 28px 30px; color: var(--fg); text-align: left; }
/* Split sits on the light surface: its words must not inherit the white banner text. */
.promo-split .promo-copy h2 { color: var(--fg); }
.promo-split .promo-copy p { color: var(--muted); margin-left: 0; }
.promo-card { max-width: 900px; margin: 20px auto; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.review-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.review-row .review-card { flex: 0 0 260px; scroll-snap-align: start; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rv-body { margin: 8px 0; font-size: 14px; line-height: 1.6; }
.rv-who { font-size: 13px; }

/* Rich text variants */
.rich-plain h2 { font-size: 22px; margin: 0 0 10px; }
.rich-body.two-col { columns: 2; column-gap: 32px; }

/* Image gallery */
.gal { display: grid; gap: 10px; }
.gal-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gal-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal-cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Landscape 4:3 tiles (a square tile made the photo gallery very tall on wide screens). */
.gal-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--line); }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gal-tile:hover img { transform: scale(1.05); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.gal-scroll { display: flex; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.gal-scroll .gal-tile { flex: 0 0 200px; scroll-snap-align: start; }
/* Collage: first image spans 2×2, the rest tile around it. */
.gal-collage { grid-auto-flow: dense; }
.gal-collage .gal-tile:first-child { grid-column: span 2; grid-row: span 2; }

/* Brand showcase */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.logo-item { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 10px; }
.logo-grid .logo-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-item img { max-height: 44px; max-width: 130px; object-fit: contain; }
.logo-item span { font-weight: 700; color: var(--muted); }
.logo-strip.gray img, .logo-grid.gray img { filter: grayscale(1); opacity: .65; transition: filter .2s ease, opacity .2s ease; }
.logo-strip.gray .logo-item:hover img, .logo-grid.gray .logo-item:hover img { filter: none; opacity: 1; }

/* Video embed */
.vid-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.vid-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid-sound { position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; color: #fff; background: rgba(0, 0, 0, .65); cursor: pointer; backdrop-filter: blur(4px); }
.vid-sound:hover { background: rgba(0, 0, 0, .85); }
.vid-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.store-sec:has(> .vid-small) .sec-head { text-align: center; justify-content: center; }
.vid-small { max-width: 560px; margin: 0 auto; }
.vid-beside { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.vid-beside.vid-right .vid-media { order: 2; }
.vid-copy h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.vid-copy p { font-size: 15px; line-height: 1.7; margin: 0 0 18px; }
.vid-copy .vid-ph { opacity: .45; font-style: italic; }
@media (max-width: 760px) {
  .vid-beside { grid-template-columns: 1fr; gap: 18px; }
  .vid-beside.vid-right .vid-media { order: 0; }
}

/* FAQ — native details/summary, no JS */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq-q { padding: 15px 0; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-q::-webkit-details-marker { display: none; }
summary.faq-q::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); transition: transform .2s ease; }
details[open] > summary.faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 15px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.faq-item.open .faq-q { cursor: default; }

/* Spacer divider */
.spacer-line { display: flex; align-items: center; }
.spacer-line hr { width: 100%; max-width: 1080px; margin: 0 auto; border: 0; border-top: 1px solid var(--line); }

/* ── Navbar block variants ─────────────────────────────────────────────────── */
.nav-nostick { position: static; }
.nav-links-row { display: flex; align-items: center; gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-links-row::-webkit-scrollbar { display: none; }
.nav-links-row .nav-link { white-space: nowrap; }
.nav-links-row .nav-link:hover { color: var(--accent); }
/* Brand-coloured bar */
.nav.nav-solid { background: var(--accent); border-bottom-color: transparent; }
[data-theme="dark"] .nav.nav-solid { background: var(--accent); }
.nav-solid .brand, .nav-solid .nav-link, .nav-solid .powered, .nav-solid .powered b { color: #fff; }
.nav-solid .nav-link:hover { color: rgba(255, 255, 255, .8); }
.nav-solid .cart-btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.nav-solid .cart-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; border-color: #fff; }
/* Centered logo, menu underneath */
/* Split navbar: logo left · menu centred · icons right. Opt-in variant only. */
.nav-inner-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.nav-inner-split .nav-links-row { justify-content: center; gap: 28px; }
.nav-inner-split .nav-link { color: var(--fg); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.nav-icons { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--fg); transition: background .2s ease; }
.nav-icon-btn:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav-icon-btn svg { width: 19px; height: 19px; }
.nav-split .cart-btn { background: transparent; border-color: transparent; }
.nav-split .cart-btn:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
/* With the search icon on, the bar stays hidden until the icon (#shop-search) targets it. */
.nav.has-search + .shop-search-bar, .kt-gnav:has(> .has-search) + .shop-search-bar { display: none; }
.nav.has-search + .shop-search-bar:target, .nav.has-search + .shop-search-bar.open,
.kt-gnav:has(> .has-search) + .shop-search-bar:target, .kt-gnav:has(> .has-search) + .shop-search-bar.open { display: block; }
.nav-solid .nav-icon-btn { color: #fff; }
.nav-solid .nav-icon-btn:hover { background: rgba(255, 255, 255, .18); }
.nav-start .nav-icon-btn { margin-left: auto; }
.nav-start .nav-icon-btn + .cart-btn { margin-left: 0; }
@media (max-width: 720px) {
  .nav-inner-split { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav-inner-split .nav-links-row { gap: 12px; justify-content: center; min-width: 0; }
  .nav-inner-split .nav-link { font-size: 12.5px; }
  .nav-split .brand { font-size: 15px; gap: 6px; }
  .nav-split .nav-icon-btn, .nav-split .cart-btn { width: 34px; height: 34px; }
  .nav-icons { gap: 0; }
}
@media (max-width: 420px) { .nav-split .brand { font-size: 0; } .nav-split .brand .logo, .nav-split .brand-logo { font-size: 15px; } }
.nav-inner-center { flex-direction: column; height: auto; padding: 10px 0 8px; gap: 6px; }
.nav-center-brand { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; position: relative; }
.nav-center-brand .cart-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.nav-center-brand .nav-icon-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.nav-center .nav-links-row { justify-content: center; width: 100%; }
/* "Right menu" navbar: logo left, every link on the right in small spaced capitals. */
.nav-end .nav-right { flex: 1; justify-content: flex-end; gap: 22px; min-width: 0; }
.nav-end .nav-links-row { gap: 26px; }
.nav-end .nav-link { color: var(--fg); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-end .nav-link:hover { color: var(--accent); }
.nav-end .powered { display: none; }
/* Phone menu button (navbar block): hidden on wide screens; under 640px the link row folds into it. */
.nav-burger { display: none; position: relative; flex-shrink: 0; }
.nav-burger > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; color: var(--fg); }
.nav-burger > summary::-webkit-details-marker { display: none; }
.nav-burger > summary svg { width: 22px; height: 22px; }
.nav-burger-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 200px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.nav-burger-menu a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--fg); font-weight: 500; }
.nav-burger-menu a:hover { background: var(--bg); color: var(--accent); }
.nav-solid .nav-burger > summary { color: #fff; }
@media (max-width: 640px) {
  .nav-burger { display: block; }
  .nav .nav-links-row { display: none; }
  .nav-center-brand .nav-burger { margin-right: auto; }
  /* With the links folded away, keep search + cart on the right edge. */
  .nav-burger ~ .nav-right { margin-left: auto; justify-content: flex-end; }
  .nav-burger ~ .nav-icons { margin-left: auto; }
}
/* "Left menu" navbar: logo, then the links right beside it; only the cart sits on the far right. */
.nav-start .nav-right { flex: 1; min-width: 0; gap: 0; }
.nav-start .nav-links-row { order: -1; flex: 1; justify-content: flex-start; gap: 24px; margin-left: 28px; }
.nav-start .cart-btn { margin-left: auto; }
.nav-start .powered { display: none; }
/* Classic and Brand-bar navbars on a phone: the menu row scrolls sideways, but only if its parents are
   allowed to shrink — otherwise logo + menu + 'powered by' + cart widen the whole page. Navbars with no
   menu (the plain built-in header) are untouched. */
@media (max-width: 640px) {
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) { gap: 10px; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) .brand { flex-shrink: 0; }
  .nav-right:has(.nav-links-row) { min-width: 0; flex: 1; gap: 10px; }
  .nav-right:has(.nav-links-row) .powered { display: none; }
  .nav-right .nav-links-row { min-width: 0; flex: 1; gap: 14px; justify-content: flex-start; }
  .nav-right .cart-btn { flex-shrink: 0; }
}
/* Small tablets (641–900px), header with a menu row: the same give-and-take as on phones. The shop name keeps its
   width, the links take what is left (and scroll sideways if they still don't fit), and "powered by" steps aside
   (the footer still credits Kotha AI) — before, the links slid over the shop name. */
@media (min-width: 641px) and (max-width: 900px) {
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) { gap: 16px; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) .brand { flex-shrink: 0; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) .brand .brand-txt { white-space: nowrap; }
  .nav-right:has(.nav-links-row) { min-width: 0; flex: 1; gap: 14px; }
  .nav-right:has(.nav-links-row) .powered { display: none; }
  .nav-right .nav-links-row { min-width: 0; flex: 1; justify-content: flex-start; }
  .nav-right > .sf-lang, .nav-right > .cart-btn, .nav-right > .nav-account { flex-shrink: 0; }
}
/* Plain built-in header (no menu) on phones: logo + shop name + "powered by" + EN/বাংলা + cart was wider than
   the screen, pushing the cart off the edge and widening the page. The name may now wrap, the right-hand
   group keeps its size, and below 480px the "powered by" line steps aside (the footer still credits Kotha AI). */
@media (max-width: 640px) {
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center):not(:has(.nav-links-row)) .brand { flex-shrink: 1; min-width: 0; font-size: 16px; line-height: 1.2; }
  /* Menu-button headers (links folded into ☰): same idea — the name gives way, not the language switch or cart. */
  .nav-inner:has(.nav-burger):not(.nav-inner-split):not(.nav-inner-center) .brand { flex-shrink: 1; min-width: 0; }
  .nav-inner:has(.nav-burger):not(.nav-inner-split):not(.nav-inner-center) .nav-right { flex: none; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center) .brand .brand-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center):not(:has(.nav-links-row)) .nav-right { flex: none; gap: 10px; }
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center):not(:has(.nav-links-row)) .logo,
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center):not(:has(.nav-links-row)) .brand-logo { flex: none; }
}
@media (max-width: 480px) {
  .nav-inner:not(.nav-inner-split):not(.nav-inner-center):not(:has(.nav-links-row)) .powered { display: none; }
}

/* ── Footer block variants ─────────────────────────────────────────────────── */
.foot-cols { text-align: left; }
.foot-contact { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.foot-contact a, .foot-contact span { color: inherit; opacity: .85; text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { opacity: 1; color: var(--accent); }
.foot-contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.foot-dark .foot-contact a, .foot-dark .foot-contact span { color: rgba(255, 255, 255, .72); opacity: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 18px; }
.foot-h { display: block; color: var(--fg); margin-bottom: 8px; font-size: 15px; }
.foot-about { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.foot-stack { flex-direction: column; align-items: flex-start; gap: 7px; justify-content: flex-start; margin-bottom: 6px; }
.foot-cols .social { justify-content: flex-start; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; text-align: center; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.foot-cols .pay-badges, .footer .pay-badges { justify-content: flex-start; }
.footer:not(.foot-cols) .pay-badges { justify-content: center; }
.pay-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--bg); }
/* Footer styles: Soft, Brand colour, Centered, Minimal */
.foot-soft { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-top-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.foot-soft .foot-h { color: var(--accent); }
.foot-brand { background: var(--accent); border-top-color: transparent; color: rgba(255, 255, 255, .86); }
.foot-brand .foot-h, .foot-brand b { color: #fff; }
.foot-brand .footer-links a, .foot-brand .foot-contact a, .foot-brand .foot-contact span { color: rgba(255, 255, 255, .86); opacity: 1; }
.foot-brand .foot-bottom { border-top-color: rgba(255, 255, 255, .22); }
.foot-brand .pay-badge { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.foot-centered .foot-big { display: block; color: var(--fg); font-family: var(--head); font-size: 26px; letter-spacing: .02em; margin-bottom: 6px; }
.foot-centered .foot-about { max-width: 520px; margin: 0 auto 16px; }
.foot-centered .social { margin-bottom: 18px; }
.foot-centered .foot-ruled { border-top: 1px solid var(--line); padding-top: 16px; margin: 4px auto 14px; max-width: 640px; }
.foot-centered .foot-bottom { margin-top: 8px; }
.foot-minimal { padding: 16px 0; margin-top: 32px; text-align: left; }
.foot-min-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.foot-min-brand { display: grid; gap: 2px; min-width: 0; }
.foot-min-brand b { color: var(--fg); font-size: 15px; }
.foot-min-brand span { font-size: 12.5px; }
.foot-min-links { margin: 0; flex: 1; justify-content: center; }
.foot-minimal .social { margin: 0; }
@media (max-width: 640px) { .foot-min-row { flex-direction: column; text-align: center; } .foot-min-brand { justify-items: center; } }
/* Dark footer panel — a deep shade of the theme's main colour (same recipe as .foot-common) */
.foot-dark { --fc-bg-theme: color-mix(in srgb, var(--accent) 55%, #000); background: var(--fc-bg-theme); border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .72); }
.foot-dark .foot-h, .foot-dark b { color: #fff; }
.foot-dark .footer-links a, .foot-dark .social a { color: rgba(255, 255, 255, .72); }
.foot-dark .foot-bottom { border-top-color: rgba(255, 255, 255, .16); }
.foot-dark .pay-badge { border-color: rgba(255, 255, 255, .24); background: transparent; color: rgba(255, 255, 255, .72); }

/* ── Pagination (Products page) ────────────────────────────────────────────── */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 6px 0 40px; }
.pager a, .pager .pg-cur { min-width: 36px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--surface); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .pg-cur { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Navbar dropdown submenus ──────────────────────────────────────────────── */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-car { font-size: 10px; opacity: .7; }
.nav-dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 40; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: flex; flex-direction: column; }
.nav-dd-menu a { padding: 9px 12px; border-radius: 8px; color: var(--fg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-dd-menu a:hover { background: var(--bg); color: var(--accent); }
.nav-solid .nav-dd-menu a { color: var(--fg); }
/* Active page link (route.js). Declared after the variants so it wins their colours. */
.nav .nav-link.active, .nav .nav-dd-menu a.active { color: var(--accent); }
.nav-solid .nav-link.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ── Product photo shape (per-grid) ────────────────────────────────────────── */
.product-grid.ratio-square .pc-img { aspect-ratio: 1; height: auto; }
.product-grid.ratio-portrait .pc-img { aspect-ratio: 3 / 4; height: auto; }
.product-grid.ratio-square .pc-img img, .product-grid.ratio-portrait .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-grid.ratio-landscape .pc-img { aspect-ratio: 4 / 3; height: auto; }
.product-grid.ratio-landscape .pc-img img { width: 100%; height: 100%; object-fit: cover; }
/* "As uploaded": each photo keeps its own shape (rows may be uneven). */
.product-grid.ratio-natural .pc-img { aspect-ratio: auto; height: auto; min-height: 120px; display: block; }
.product-grid.ratio-natural .pc-img img { width: 100%; height: auto; object-fit: initial; display: block; }

/* ── Category wide banners ─────────────────────────────────────────────────── */
.cat-banner { grid-template-columns: repeat(2, 1fr); }
.cat-banner .cat-tile { position: relative; }
.cat-banner .cat-tile-img { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); }
.cat-banner .cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner .cat-tile-name { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 6px 14px; background: rgba(0, 0, 0, .58); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }

/* ── Featured review quote ─────────────────────────────────────────────────── */
.review-hero { max-width: 680px; margin: 0 auto; text-align: center; }
.review-hero blockquote { margin: 12px 0; font-size: 21px; line-height: 1.6; font-family: var(--head); font-weight: 600; }
/* Big quote as a slider: a scroll-snap track (swipe works with no script); arrows, dots and the
   auto-advance come from store.js. Every slide is the full track width and as tall as the tallest. */
.rv-slider { position: relative; max-width: 780px; margin: 0 auto; }
.rv-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-slide { flex: 0 0 100%; max-width: none; margin: 0; padding: 0 10px; box-sizing: border-box; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rv-slide blockquote { overflow-wrap: anywhere; }
.rv-nav { position: absolute; top: calc(50% - 30px); width: 44px; height: 44px; display: none; place-items: center; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.rv-nav:hover { border-color: var(--accent); color: var(--accent); }
.rv-nav.prev { left: -8px; }
.rv-nav.next { right: -8px; }
.rv-dots { display: flex; justify-content: center; margin-top: 14px; }
.rv-dot { width: 24px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.rv-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .4; transition: width .2s, opacity .2s, background .2s; }
.rv-dot.on::before { width: 22px; border-radius: 4px; background: var(--accent); opacity: 1; }
.rv-dot:focus-visible, .rv-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 720px) { .rv-nav { display: grid; } .rv-slide { padding: 0 56px; } }
@media (prefers-reduced-motion: reduce) { .rv-dot::before { transition: none; } }

/* ── Logo marquee ──────────────────────────────────────────────────────────── */
.logo-marquee { overflow: hidden; }
.logo-track { display: flex; gap: 40px; width: max-content; animation: logo-scroll 22s linear infinite; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; } }
.logo-marquee.gray img { filter: grayscale(1); opacity: .65; }

/* ── Special offer block ───────────────────────────────────────────────────── */
.offer-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 11px 16px; color: #fff; font-weight: 700; font-size: 14px; }
.offer-strip .offer-sub { font-weight: 500; opacity: .9; }
.offer-strip .offer-cta { padding: 6px 14px; font-size: 13px; }
.offer-count { font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .25); padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 800; }
.offer-banner { border-radius: var(--radius-lg); padding: 44px 32px; text-align: center; color: #fff; background-size: cover; background-position: center; }
.offer-banner h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 8px; }
.offer-banner .offer-timer { margin: 14px 0; font-size: 22px; }
.offer-banner .offer-timer .offer-count { padding: 8px 18px; font-size: 20px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.offer-card { max-width: 460px; margin: 0 auto; text-align: center; background: var(--surface); border: 2px dashed var(--accent); border-radius: var(--radius-lg); padding: 28px 24px; }
.offer-card h2 { margin: 0 0 6px; }
.offer-card .offer-timer { margin: 12px 0; font-size: 18px; }
.offer-card .offer-count { background: var(--accent-soft, rgba(0,0,0,.08)); color: var(--accent); }
/* With a background picture (strip and card): the picture fills the section, the words go white. */
.offer-pic { background-size: cover; background-position: center; }
.offer-card.offer-pic { color: #fff; border-color: rgba(255, 255, 255, .85); }
.offer-card.offer-pic .offer-count { background: rgba(0, 0, 0, .35); color: #fff; }
.offer-card.offer-pic .offer-code { color: #fff; }
.offer-code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 800; letter-spacing: .08em; padding: 9px 18px; border: 2px dashed currentColor; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.offer-card .offer-code { color: var(--accent); margin: 6px 0 12px; }

/* ── Team block ────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.team-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.team-row .team-card { flex: 0 0 160px; scroll-snap-align: start; }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
.team-photo { width: 86px; height: 86px; margin: 0 auto 10px; }
.team-photo img, .team-ph { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; }
.team-ph { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 800; }
.team-card b { display: block; font-size: 15px; }
.team-card .muted { font-size: 13px; }

/* Team: big portraits (name over the photo) */
.team-portrait { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tp-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.tp-card:hover { transform: translateY(-4px); }
.tp-card img, .tp-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tp-card:hover img { transform: scale(1.06); }
.tp-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 64px; font-weight: 800; }
.tp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .74)); pointer-events: none; }
.tp-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 16px 18px; color: #fff; }
.tp-cap b { display: block; font-size: 17px; line-height: 1.2; }
.tp-cap span { display: block; margin-top: 3px; font-size: 13px; opacity: .88; }

/* Team: profile cards (photo beside name, role and a short intro) */
.team-profile { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tpf-card { display: flex; align-items: center; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tpf-photo { flex: none; width: 96px; height: 96px; border-radius: 22px; padding: 3px; background: var(--grad); }
.tpf-photo img, .tpf-ph { width: 100%; height: 100%; border-radius: 19px; object-fit: cover; display: block; border: 2px solid var(--surface); box-sizing: border-box; }
.tpf-ph { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 34px; font-weight: 800; }
.tpf-txt { min-width: 0; }
.tpf-txt b { display: block; font-size: 17px; }
.tpf-role { display: inline-block; margin: 5px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft, rgba(0, 0, 0, .06)); color: var(--accent); font-size: 12px; font-weight: 700; }
.tpf-txt p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 480px) { .team-portrait { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tp-ph { font-size: 44px; } .team-profile { grid-template-columns: 1fr; } }

/* ── Contact form block ────────────────────────────────────────────────────── */
.ct-form-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.ct-form { display: flex; flex-direction: column; gap: 10px; }
.ct-form input, .ct-form textarea { width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font: inherit; font-size: 14px; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--accent); }
.ct-form textarea { resize: vertical; }
.ct-hintline { font-size: 12px; margin: 0; }

/* ── Theme Studio canvas editing (draft previews only) ─────────────────────── */
.kt-blk { position: relative; }
/* Customize Theme preview (?ktfrom=customize): no section toolbar, just one "Edit in Theme Studio"
   button in the hovered section's corner (always shown on touch screens, which can't hover). */
body.kt-customize .kt-blk:hover { outline: 2px dashed color-mix(in srgb, #1257e0 55%, transparent); outline-offset: -2px; }
body.kt-customize .kt-blk.kt-clickedit { cursor: pointer; }
.kt-studio-btn { position: absolute; top: 10px; right: 10px; z-index: 30; display: none; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 10px; background: #0f1b2d; color: #fff; font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); cursor: pointer; }
.kt-studio-btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kt-studio-btn:hover, .kt-studio-btn:focus-visible { background: #1257e0; outline: none; }
body.kt-customize .kt-blk:hover > .kt-studio-btn, .kt-studio-btn:focus-visible { display: inline-flex; }
/* Touch screens can't hover, so the button stays reachable there, but as a small icon only (the words show on hover). */
@media (hover: none) {
  body.kt-customize .kt-studio-btn { display: inline-flex; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 999px; opacity: .85; }
  body.kt-customize .kt-studio-btn span { display: none; }
}
/* The menu bar is sticky; its editor wrapper must be what sticks, or wrapping it would un-stick it. */
.kt-blk.kt-gnav { position: sticky; top: 0; z-index: 20; }
/* "Stick to top on scroll" off: the wrapper must not stick either. */
.kt-blk.kt-gnav.kt-gnav-nostick { position: relative; }
/* Studio preview wraps every block, which would trap the Chat button's sticky bar
   inside its own wrapper (it would sit mid-page). The wrapper sticks instead, just
   as the live page's bar does. */
.kt-blk:has(> .cb-dock) { position: sticky; bottom: 0; z-index: 40; }
.kt-blk > .cb-dock { position: static; }
.kt-gnav > .nav { position: relative; }
body.kt-editing .kt-blk { cursor: pointer; }
body.kt-editing .kt-blk:hover { outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; }
/* Selected section: drawn as real child elements in the editor's own blue (not the shop's
   accent, which can be dark or pale and vanish), above the section's content, so it shows on
   full-width sections and never gets clipped. The label names what is being edited. */
.kt-blk.kt-sel { outline: none !important; }
.kt-blk.kt-sel::after { content: ""; position: absolute; inset: 0; border: 3px solid #1257e0; box-shadow: inset 0 0 0 1px #fff; pointer-events: none; z-index: 28; }
.kt-blk.kt-sel[data-kt-label]::before { content: "Editing: " attr(data-kt-label); position: absolute; top: 3px; left: 3px; z-index: 29; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 9px; border-radius: 0 0 6px 0; background: #1257e0; color: #fff; font: 700 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; pointer-events: none; }
.kt-chip { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; max-width: calc(100% - 16px); z-index: 30; display: none; align-items: center; gap: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 14px; font-weight: 700; }
.kt-gnav .kt-chip .kt-img { display: none !important; }
/* A shop can't be without its menu, products or footer, so those sections can't be deleted. */
.kt-gnav .kt-chip .kt-del, [data-kt-type="navbar"] > .kt-chip .kt-del, [data-kt-type="footer"] > .kt-chip .kt-del, [data-kt-type="products"] > .kt-chip .kt-del { display: none !important; }
.kt-chip.kt-chip-below { top: auto; bottom: 0; transform: translate(-50%, 50%); }
body.kt-editing .kt-blk:hover .kt-chip, .kt-blk.kt-sel .kt-chip { display: inline-flex; }
.kt-chip .kt-grab { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; padding: 9px 13px; background: var(--accent); color: #fff; }
.kt-chip .kt-grab:active { cursor: grabbing; }
.kt-chip .kt-img { display: none; cursor: pointer; padding: 9px 13px; background: #fff; color: #111; border-right: 1px solid rgba(0, 0, 0, .12); }
.kt-blk.kt-hasimg .kt-chip .kt-img { display: inline-block; }
.kt-chip .kt-img:hover { background: #eef2ff; }
.kt-chip .kt-edit, .kt-chip .kt-del { cursor: pointer; padding: 9px 13px; background: #fff; color: #111; border-left: 1px solid rgba(0, 0, 0, .12); }
.kt-chip .kt-edit:hover { background: #eef2ff; }
.kt-chip .kt-del:hover { background: #fee2e2; color: #b91c1c; }
.kt-fabchip { position: fixed; right: 24px; bottom: 76px; z-index: 9998; display: none; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 14px; font-weight: 700; background: #fff; }
.kt-fabchip.show { display: inline-flex; }
.kt-fabchip .kt-edit { cursor: pointer; padding: 9px 14px; color: #111; }
.kt-fabchip .kt-edit:hover { background: #eef2ff; }
.kt-toast { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 8px); z-index: 9999; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.kt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.product-card.kt-card-sel { outline: 2px solid var(--accent); outline-offset: 3px; }
.kt-blk.kt-dragging { opacity: .45; }
.kt-blk.kt-drop-above { box-shadow: 0 -4px 0 0 var(--accent); }
.kt-blk.kt-drop-below { box-shadow: 0 4px 0 0 var(--accent); }
.kt-stub { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; margin: 10px auto; text-align: center; color: var(--muted); font-size: 14px; }

/* Contact page with no details yet */
.ct-empty { max-width: 560px; margin: 0 auto; padding: 28px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.ct-empty p { margin: 0; }
.ct-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
/* Contact */
.ct-wrap { display: grid; gap: 20px; }
.ct-wrap.split { grid-template-columns: 1fr 1fr; align-items: start; }
.ct-info { display: flex; flex-direction: column; gap: 14px; }
.ct-info-row { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.ct-info-row svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.ct-map iframe { width: 100%; min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 760px) {
  /* Legacy class-driven grids (blocks saved before `cols` went responsive)
     still collapse here. Anything using .pg-resp / .gal-resp does NOT — its
     phone column count is a value the merchant set, and this stylesheet must
     not overrule it. */
  .product-grid.cols-2, .product-grid.cols-3, .product-grid.cols-4, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .product-grid.colsm-1 { grid-template-columns: 1fr; }
  .promo-split, .ct-wrap.split { grid-template-columns: 1fr; }
  .rich-body.two-col { columns: 1; }
  .gal-cols-3, .gal-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-strip { gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  /* .cat-tiles repeat(3,1fr) further down would otherwise win and squash these into pills */
  .cat-tiles.cat-banner { grid-template-columns: repeat(2, 1fr); }
  .cat-banner .cat-tile-img { aspect-ratio: 4 / 3; }
  .offer-strip { font-size: 13px; gap: 8px; }
}
.rich-body { color: var(--muted); line-height: 1.8; }

/* Sticky mobile add-to-cart */
.pd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .35); }
.pd-sticky[hidden] { display: none !important; }
.pd-sticky-info { flex: 1; min-width: 0; }
.pd-sticky-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sticky-price { font-family: var(--head); font-weight: 700; color: var(--accent); }
.pd-sticky .btn { min-height: 44px; flex-shrink: 0; }
@media (min-width: 721px) { .pd-sticky { display: none !important; } }

/* ══════════════════════════════════════════════════════════════════════════
   Storefront 2.0 — quick add, hover image swap, Buy now, related products,
   toast, scroll-reveal. (2026-07 competitor-parity pass.)
   ══════════════════════════════════════════════════════════════════════════ */

/* Hollow (outline-accent) button — secondary CTA next to a primary Buy now */
.btn.hollow { background: var(--surface); color: var(--accent); border: 1.6px solid var(--accent); box-shadow: none; }
.btn.hollow:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.btn.hollow svg { width: 18px; height: 18px; }

/* Product page CTA row */
.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.pd-cta .btn { flex: 1 1 170px; margin: 0; }
.pd-cta .btn svg { width: 17px; height: 17px; }

/* Second photo fades in over the first on card hover (Dawn-style) */
.pc-img .pc-img2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; z-index: 1; }
.product-card:hover .pc-img .pc-img2 { opacity: 1; }

/* Quick add-to-cart on product cards: slides up over the image on hover */
.pc-add { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, background .18s ease, color .18s ease; }
.product-card:hover .pc-add, .pc-add:focus-visible { opacity: 1; transform: none; }
.pc-add:hover { background: var(--accent); color: #fff; }
.pc-add svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Card design presets (body.cardt-*) — Customize Theme → Product cards ──
   classic = base look (no extra rules). */
/* Overlay: name + price sit on a dark gradient over a taller image */
body.cardt-overlay .product-card { position: relative; }
body.cardt-overlay .pc-img { aspect-ratio: 3 / 4; }
body.cardt-overlay .pc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .82)); padding-top: 40px; }
body.cardt-overlay .pc-name { color: #fff; min-height: 0; }
body.cardt-overlay .pc-price { color: #fff; }
body.cardt-overlay .pc-body .muted { color: rgba(255, 255, 255, .8); }
body.cardt-overlay .pc-badge { background: rgba(255, 255, 255, .92); }
body.cardt-overlay .pc-add { left: auto; right: 8px; top: 8px; bottom: auto; width: 36px; height: 36px; padding: 0; border-radius: 999px; }
body.cardt-overlay .pc-add span { display: none; }
/* Centered: boutique look — centered text under the image */
body.cardt-center .pc-body { align-items: center; text-align: center; }
body.cardt-center .pc-name { min-height: 0; }
/* Framed: image inset inside the card like a gallery mat */
body.cardt-frame .pc-img { margin: 10px 10px 0; border-radius: var(--radius-sm); }
/* Elegant (Elessi/pegboard-style grid): flat borderless card, centered
   one-line name, round icon add button sliding in over the image */
body.cardt-elegant .product-card { background: transparent; border-color: transparent; }
body.cardt-elegant .pc-img { border-radius: var(--radius); }
body.cardt-elegant .pc-body { align-items: center; text-align: center; padding-left: 4px; padding-right: 4px; }
body.cardt-elegant .pc-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-height: 0; }
body.cardt-elegant .pc-add { left: auto; right: 10px; bottom: 10px; width: 38px; height: 38px; padding: 0; border-radius: 999px; transform: translateX(12px); }
body.cardt-elegant .pc-add span { display: none; }
body.cardt-elegant .product-card:hover .pc-add, body.cardt-elegant .pc-add:focus-visible { transform: none; }
body.cardt-elegant .pc-img .pc-img2 { transition-duration: .8s; }

/* ── Card hover-animation presets (body.canim-*) — 'lift' is the base ────── */
body.canim-none .product-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
body.canim-none .product-card:hover .pc-img img { transform: none; }
body.canim-zoom .product-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
body.canim-zoom .product-card:hover .pc-img img { transform: scale(1.12); }
/* card-elevated has a static resting shadow — keep it when hover adds none */
body.canim-none.card-elevated .product-card:hover,
body.canim-zoom.card-elevated .product-card:hover { box-shadow: 0 8px 22px -16px rgba(30, 20, 60, .35); }
body.canim-tilt .product-card:hover { transform: perspective(900px) rotateX(2.5deg) rotateY(-3deg) translateY(-3px); }
body.canim-glow .product-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 16px 38px -14px color-mix(in srgb, var(--accent) 55%, transparent); }
/* Crossfade (pegboard/Elessi-style): the card stays still while the photo
   slowly crossfades to the second image — the swap IS the animation */
body.canim-fade .product-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
body.canim-fade .pc-img img, body.canim-fade .pc-img .pc-img2 { transition: opacity .8s ease, transform .8s ease; }
body.canim-fade .product-card:hover .pc-img img { transform: none; }
body.canim-fade .product-card:hover .pc-img:has(.pc-img2) > img:first-of-type { opacity: 0; }
body.canim-fade.card-elevated .product-card:hover { box-shadow: 0 8px 22px -16px rgba(30, 20, 60, .35); }
/* Static-hover animations must not paint a border on borderless card styles */
body.card-minimal.canim-none .product-card:hover, body.card-minimal.canim-zoom .product-card:hover, body.card-minimal.canim-fade .product-card:hover,
body.cardt-elegant.canim-none .product-card:hover, body.cardt-elegant.canim-zoom .product-card:hover, body.cardt-elegant.canim-fade .product-card:hover { border-color: transparent; }

/* ── Quick-add button TYPE (body.cbtn-*) — 'bar' is the base style ─────────
   Kept AFTER the card-design presets so an explicit type beats a design's
   default button styling (e.g. Elegant's round icon). */
/* Icon: round corner button over the image, label hidden */
body.cbtn-icon .pc-add { left: auto; right: 10px; bottom: 10px; width: 38px; height: 38px; padding: 0; border-radius: 999px; }
body.cbtn-icon .pc-add span { display: none; }
/* Button: always-visible full-width button under the card info */
body.cbtn-button .pc-add { position: static; opacity: 1; transform: none; width: 100%; margin-top: 8px; background: var(--accent); color: #fff; box-shadow: none; backdrop-filter: none; }
body.cbtn-button .pc-add:hover { background: var(--accent); filter: brightness(1.08); }
body.cbtn-button .pc-add span { display: inline; }
body.cbtn-button.btn-gradient .pc-add { background: var(--grad); }
body.cbtn-button.btn-gradient .pc-add:hover { background: var(--grad); }
body.cbtn-button.btn-outline .pc-add { background: transparent; color: var(--accent); border: 1.6px solid var(--accent); }
body.cbtn-button.btn-outline .pc-add:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); filter: none; }
/* Hidden: no quick-add on cards at all */
body.cbtn-none .pc-add { display: none !important; }

/* ── Quick-add REVEAL animation (body.cba-*) — 'slide' is the base ──────── */
body.cba-fade .pc-add { transform: none; }
body.cba-always .pc-add { opacity: 1; transform: none; }

/* Related products (product page) */
.pd-related { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.pd-related .product-grid { padding-top: 6px; padding-bottom: 10px; }

/* Toast — "Added to cart · View cart →" */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 60; display: flex; align-items: center; gap: 9px; background: var(--ink-panel); color: #f5f2ea; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.toast-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; flex-shrink: 0; }

/* Gallery thumbnails — active state */
.pd-thumbs img { cursor: pointer; border: 2px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.pd-thumbs img:hover { transform: translateY(-2px); }
.pd-thumbs img.on { border-color: var(--accent); }

/* Scroll-reveal (store.js adds .reveal to below-the-fold cards, .in on entry) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
}

/* Sticky mobile bar now holds Add (icon) + Buy now */
.pd-sticky .btn.hollow { width: 46px; padding: 0; flex: 0 0 46px; }
.pd-sticky .btn.primary { flex: 1 1 auto; max-width: 220px; }

/* Dark-mode fine-tuning */
[data-theme="dark"] a { color: var(--accent-2); }
[data-theme="dark"] .pc-price, [data-theme="dark"] .pd-price, [data-theme="dark"] .cart-line .cl-price { color: var(--accent-2); }
[data-theme="dark"] .pc-add { background: var(--surface); }
[data-theme="dark"] .toast { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }

@media (max-width: 720px) {
  .spotlight-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { padding: 24px 22px; }
  .hero-slide, .hero-slider { min-height: 240px; }
  .product-detail { padding-bottom: 84px; }
  .sec-head h2 { font-size: 19px; }
  .featured-row .product-card { flex-basis: 158px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Mobile refinements — kept LAST so they win the cascade over the base rules
   above (equal specificity → source order decides). This is what makes the
   phone view read like a real Bangladeshi shop: 2 products per row, tidy
   gutters, compact cards.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Slightly tighter side gutter on a phone gives products more room */
  .container { padding: 0 13px; }

  /* Two products per row — the way Bangladesh shops on a phone */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; padding-top: 14px; padding-bottom: 48px; }
  .pc-body { padding: 10px 11px 12px; gap: 2px; }
  .pc-name { font-size: 13px; min-height: 2.55em; }
  .pc-price { font-size: 15px; }
  .pc-disc { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
  .pc-rating, .pc-badge { font-size: 10.5px; }

  /* Trust badges as a tidy 2×2 instead of one tall 4-row stack */
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px auto; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .trust-ico { width: 36px; height: 36px; }
  .trust-ico svg { width: 18px; height: 18px; }

  /* Category tiles: 3 across scans faster than 2 oversized ones */
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tile-name { font-size: 12.5px; margin-top: 6px; }

  /* Featured carousel cards match the 2-up grid width, with a peek of the next */
  .featured-row { gap: 11px; }
  .featured-row .product-card { flex-basis: 44vw; max-width: 220px; }

  .store-sec { padding-top: 16px; padding-bottom: 16px; }
  .sec-head { margin-bottom: 12px; }
  .page-head { padding: 22px 0 12px; }
  .page-head h1 { font-size: 24px; }

  /* Gradient hero: a touch more compact so products appear sooner */
  .shop-hero.grad-hero { padding: 36px 0 30px; }
  .shop-hero h1 { font-size: 25px; }
  .shop-logo.lg { width: 60px; height: 60px; font-size: 26px; margin-bottom: 12px; }

  /* Cart stacks to one column; the aside is no longer sticky */
  .cart-layout { grid-template-columns: 1fr; gap: 14px; }
  .cart-aside { position: static; }
  .cart-head { padding: 18px 0 12px; }
  .cart-head h1 { font-size: 22px; }

  /* Quick add on touch: always-visible round icon button, bottom-right of image */
  .pc-add { left: auto; right: 7px; bottom: 7px; width: 36px; height: 36px; padding: 0; border-radius: 999px; opacity: 1; transform: none; background: var(--surface); color: var(--accent); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
  body.cardt-elegant .pc-add { right: 7px; bottom: 7px; transform: none; }
  /* 'Button' type stays a full-width button under the info on phones too */
  body.cbtn-button .pc-add { position: static; width: 100%; height: auto; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; box-shadow: none; margin-top: 7px; font-size: 12.5px; }
  body.cbtn-button .pc-add span { display: inline; }
  body.cbtn-none .pc-add { display: none; }
  .pc-add span { display: none; }
  .pc-add svg { width: 17px; height: 17px; }

  /* Product page: CTA buttons side by side, full width */
  .pd-cta { gap: 8px; }
  .pd-cta .btn { flex: 1 1 46%; }
  .pd-info h1 { font-size: 24px; }
  .pd-price { font-size: 25px; }

  /* Toast sits above the sticky add-to-cart bar */
  .toast { bottom: 84px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive block engine
   ───────────────────────────────────────────────────────────────────────────
   Blocks whose layout the merchant set per device don't get a class per
   breakpoint — the renderer emits a scoped rule that sets these custom
   properties at each band, and the rules below just read them. Adding a new
   responsive setting therefore costs nothing here.

   The band edges (768 / 1024) are declared once in @kotha/db (BREAKPOINTS) and
   must match the media queries the renderer writes.
   ═══════════════════════════════════════════════════════════════════════════ */

.pg-resp { grid-template-columns: repeat(var(--pg-cols, 4), 1fr); }
.gal-resp { grid-template-columns: repeat(var(--gal-cols, 3), 1fr); }
.kt-spacer { height: var(--sp-h, 40px); }

/* Per-device section visibility. !important because a block's own display rule
   (grid/flex) would otherwise win the cascade. */
@media (max-width: 767px) { .kt-hide-m { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .kt-hide-t { display: none !important; } }
@media (min-width: 1024px) { .kt-hide-d { display: none !important; } }

/* ── Deal timer ──────────────────────────────────────────────────────────── */
.cd-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 11px 18px; color: #fff; }
.cd-label { font-weight: 700; font-size: 14px; }
.cd-timer { display: flex; gap: 8px; font-variant-numeric: tabular-nums; }
.cd-cell { display: grid; place-items: center; min-width: calc(var(--cd-size, 28px) + 16px); padding: 6px 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .18); line-height: 1; }
.cd-num { font-size: var(--cd-size, 28px); font-weight: 800; }
.cd-unit { font-size: 10px; opacity: .8; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.cd-done { font-size: 15px; font-weight: 700; }
.cd-card { text-align: center; color: #fff; padding: 34px 24px; border-radius: var(--radius-lg); display: grid; gap: 14px; justify-items: center; }
.cd-card h2 { margin: 0; font-size: 26px; }
.cd-card p { margin: 0; opacity: .9; max-width: 52ch; }
.cd-split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; color: #fff; padding: 30px 32px; border-radius: var(--radius-lg); }
.cd-split h2 { margin: 0 0 6px; font-size: 24px; }
.cd-split p { margin: 0; opacity: .9; }
.cd-side { display: grid; gap: 14px; justify-items: end; }
.cd-bar .btn, .cd-card .btn, .cd-side .btn { background: #fff; color: var(--accent); border: 0; }

/* ── Numbers strip ───────────────────────────────────────────────────────── */
.st-grid { display: grid; grid-template-columns: repeat(var(--st-cols, 4), 1fr); gap: 14px; }
.st-item { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 10px; }
.st-ico svg { width: 26px; height: 26px; }
.st-val { font-family: var(--head); font-size: 27px; font-weight: 800; line-height: 1.1; }
.st-lab { font-size: 13px; }
.st-cards .st-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.st-band { padding: 26px 0; margin: 24px 0; }
.st-band .st-item, .st-band .st-lab { color: #fff; }
.st-band .st-ico { color: #fff !important; opacity: .85; }
.st-band .st-lab { opacity: .85; }

/* ── How to order ────────────────────────────────────────────────────────── */
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sp-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sp-item { display: flex; gap: 14px; align-items: flex-start; }
.sp-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 800; font-family: var(--head); }
.sp-mark svg { width: 20px; height: 20px; }
.sp-body b { display: block; font-size: 15px; margin-bottom: 3px; }
.sp-body p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.sp-stack { max-width: 620px; margin-inline: auto; }
/* Connector line down the vertical variant — pure CSS, no extra markup. */
.sp-stack .sp-item { position: relative; padding-bottom: 6px; }
.sp-stack .sp-item:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: -12px; width: 2px; background: var(--line); }
.sp-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sp-cards .sp-item { flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sp-cta { margin-top: 20px; text-align: center; }

/* ── Size guide ──────────────────────────────────────────────────────────── */
.sz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.sz-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 380px; }
.sz-table th, .sz-table td { padding: 10px 14px; text-align: left; white-space: nowrap; }
.sz-table thead th { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-weight: 700; }
.sz-table tbody tr + tr td { border-top: 1px solid var(--line); }
.sz-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--line) 22%, transparent); }
.sz-note { font-size: 13px; margin: 10px 0 0; }
.sz-img { width: 100%; border-radius: var(--radius); display: block; }
.sz-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.sz-figure img { width: 100%; }
.sz-fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.sz-fold > summary { padding: 15px 0; font-weight: 600; cursor: pointer; list-style: none; }
.sz-fold > summary::-webkit-details-marker { display: none; }
.sz-fold > summary::after { content: "+"; float: right; font-size: 20px; color: var(--accent); }
.sz-fold[open] > summary::after { content: "–"; }
.sz-foldbody { padding-bottom: 16px; }

/* ── Order-on-chat bar ───────────────────────────────────────────────────── */
.cb-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: var(--radius-sm); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45); }
.cb-btn svg { width: 20px; height: 20px; }
.cb-inline { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cb-note { font-size: 13px; }
/* Sticky dock sits above the theme's own add-to-cart bar and respects the
   phone home-indicator inset. */
.cb-dock { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cb-bubble { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.cb-bubble svg { width: 22px; height: 22px; }

/* ── Lookbook ────────────────────────────────────────────────────────────── */
.lb-grid, .lb-stagger { display: grid; grid-template-columns: repeat(var(--lb-cols, 3), 1fr); gap: 14px; }
.lb-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.lb-scroll .lb-card { flex: 0 0 calc((100% - (var(--lb-cols, 3) - 1) * 14px) / var(--lb-cols, 3)); min-width: 150px; scroll-snap-align: start; }
.lb-card { display: block; text-decoration: none; color: inherit; }
.lb-shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); padding-top: var(--lb-pad, 133%); }
.lb-shot img, .lb-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lb-card:hover .lb-shot img { transform: scale(1.04); }
.lb-price { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: 12.5px; font-weight: 700; }
.lb-meta { display: block; padding: 9px 2px 0; }
.lb-meta b { display: block; font-size: 14.5px; }
.lb-meta span { font-size: 12.5px; }
/* Staggered: every second column drops, magazine-style. */
.lb-stagger .lb-card:nth-child(even) { transform: translateY(26px); }

/* Floating bubbles: round photos with a soft ring and shine, each drifting on its own rhythm. Hovering one
   holds it still and swells it a little. Still for visitors who ask for less motion. */
.lb-bubbles { display: grid; grid-template-columns: repeat(var(--lb-cols, 3), 1fr); gap: 30px 18px; padding: 14px 0 22px; }
.lb-bubbles .lb-card { text-align: center; animation: lb-float 6s ease-in-out infinite; }
.lb-bubbles .lb-card:nth-child(2n) { animation-duration: 7.4s; animation-delay: -2.2s; }
.lb-bubbles .lb-card:nth-child(3n) { animation-duration: 5.2s; animation-delay: -3.6s; }
.lb-bubbles .lb-card:nth-child(5n) { animation-duration: 8.2s; animation-delay: -1.1s; }
.lb-bubbles .lb-card:hover { animation-play-state: paused; }
.lb-bubbles .lb-shot { width: min(100%, 280px); margin: 0 auto; padding-top: 0; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent), 0 16px 32px -12px rgba(0, 0, 0, .35); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
.lb-bubbles .lb-card:hover .lb-shot { transform: scale(1.06); box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent), 0 22px 38px -12px rgba(0, 0, 0, .4); }
.lb-bubbles .lb-card:hover .lb-shot img { transform: scale(1.08); }
.lb-bubbles .lb-shot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.lb-bubbles .lb-price { left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); z-index: 1; }
.lb-bubbles .lb-meta { padding-top: 14px; }
@keyframes lb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .lb-bubbles .lb-card { animation: none !important; } .lb-bubbles .lb-shot { transition: none; } }

/* ── Banner tiles ────────────────────────────────────────────────────────── */
.bn-grid { display: grid; grid-template-columns: repeat(var(--bn-cols, 2), 1fr); gap: 14px; }
.bn-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; color: #fff; min-height: var(--bn-h, 240px); }
.bn-tile.bn-wide { grid-column: 1 / -1; }
.bn-photo { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--line); transition: transform .5s ease; }
.bn-tile:hover .bn-photo { transform: scale(1.04); }
.bn-copy { position: relative; display: grid; align-content: end; gap: 5px; height: 100%; min-height: var(--bn-h, 240px); padding: 22px 24px; }
.bn-copy b { font-family: var(--head); font-size: 22px; line-height: 1.2; }
.bn-copy span { font-size: 13.5px; opacity: .92; }
.bn-cta { justify-self: start; margin-top: 8px; padding: 7px 16px; border-radius: var(--radius-sm); background: #fff; color: var(--fg); font-weight: 700; font-size: 13px; }
/* "Text beside photo": copy leaves the image and sits under it in a card, so a
   busy photo never has to carry legible text. */
.bn-beside .bn-tile { color: inherit; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: var(--bn-h, 240px) auto; min-height: 0; }
.bn-beside .bn-photo { position: relative; inset: auto; }
.bn-beside .bn-copy { min-height: 0; padding: 16px 18px 20px; }
.bn-beside .bn-cta { background: var(--accent); color: #fff; }

/* ── Payment strip ───────────────────────────────────────────────────────── */
.pm-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.pm-chip svg { width: 18px; height: 18px; color: var(--accent); }
.pm-note { text-align: center; font-size: 13px; margin: 12px 0 0; }
.pm-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 14px 0; font-size: 13px; }
.pm-line .pm-chip { border: 0; background: none; padding: 0; font-weight: 500; }

@media (max-width: 760px) {
  .cd-split { grid-template-columns: 1fr; padding: 22px; }
  .cd-side { justify-items: stretch; }
  .cd-card h2 { font-size: 21px; }
  .sz-split { grid-template-columns: 1fr; }
  .sp-row, .sp-cards { grid-template-columns: 1fr; }
  .st-val { font-size: 22px; }
  .bn-copy b { font-size: 18px; }
  /* Two staggered columns look intentional; one looks like a mistake. */
  .lb-stagger .lb-card:nth-child(even) { transform: none; }
}

/* ── Template style kit ───────────────────────────────────────────────────────
   One block per option, switched by a `ts-<option>-<value>` body class (see
   TEMPLATE_STYLE_OPTIONS in packages/db/src/blocks.ts). The FIRST value of each
   option is the default and has NO rules here — that is what keeps every shop
   that never picked a style looking exactly as it did before. Colours come from
   the theme tokens (--accent / --accent-2 / --fg), never hard-coded. */

/* headings: centered */
.ts-headings-centered .sec-head { justify-content: center; text-align: center; margin-bottom: 28px; }
.ts-headings-centered .sec-head h2 { padding-left: 0; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.01em; }
.ts-headings-centered .sec-head h2::before { display: none; }
/* …but a product row keeps a compact, left-set heading beside its "See all" link */
.ts-headings-centered .sec-catalog .sec-head { justify-content: space-between; text-align: left; }
.ts-headings-centered .sec-catalog .sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.ts-headings-centered .store-sec { padding-top: 34px; padding-bottom: 34px; }

/* surface: bands — white page, tinted full-width bands (alternate story rows). The reviews
   section sits on the page background like every other section. */
.ts-surface-bands { --bg: #fff; --band: color-mix(in srgb, var(--accent-2) 70%, #fff); }
.ts-surface-bands .sec-story ~ .sec-story {
  background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
  padding-top: 54px; padding-bottom: 54px;
}

/* hero: editorial — full-bleed still life, headline set right in capitals, text-link CTA */
.ts-hero-editorial .hero-wrap { max-width: none; padding: 0; }
.ts-hero-editorial .hero-slide { border-radius: 0; min-height: clamp(360px, 50vw, 680px); justify-content: flex-end; }
/* The slider variant's slides are absolutely positioned, so the tall height has to come from the slider itself. */
.ts-hero-editorial .hero-slider { border-radius: 0; min-height: clamp(360px, 50vw, 680px); }
.ts-hero-editorial .hero-slide:not(.no-img)::before { background: linear-gradient(270deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%); }
.ts-hero-editorial .hero-copy { max-width: 720px; padding: 0 6vw; text-align: right; }
.ts-hero-editorial .hero-copy h1 { color: var(--accent); text-transform: uppercase; font-size: clamp(34px, 5.4vw, 78px); line-height: 1.02; letter-spacing: .01em; }
.ts-hero-editorial .hero-copy p { color: var(--accent); margin-left: auto; }
.ts-hero-editorial .hero-slide .hero-cta { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-top: 18px; color: var(--accent) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; text-decoration: underline; text-underline-offset: 6px; }

/* collage: tilted — overlapping cards at varied heights/angles (the angles cycle by position) */
.ts-collage-tilted .gal-collage { display: flex; justify-content: center; align-items: center; padding: 14px 0 26px; }
.ts-collage-tilted .gal-collage .gal-tile { flex: 0 0 16.2%; margin-left: -2.2%; aspect-ratio: 3 / 4.1; border-radius: 3px; box-shadow: 0 14px 26px -18px rgba(20, 20, 43, .5); }
.ts-collage-tilted .gal-collage .gal-tile:first-child { grid-column: auto; grid-row: auto; margin-left: 0; transform: rotate(-4deg) translateY(26px); }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(2) { transform: rotate(3deg) translateY(-6px); aspect-ratio: 3 / 4.4; z-index: 2; }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(3) { transform: rotate(-2deg) translateY(28px); aspect-ratio: 3 / 3.8; }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(4) { transform: rotate(1deg) translateY(10px); aspect-ratio: 3 / 4.2; z-index: 3; }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(5) { flex-basis: 18.5%; transform: rotate(-3deg) translateY(-12px); aspect-ratio: 3 / 4.8; z-index: 4; }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(6) { transform: rotate(4deg) translateY(16px); aspect-ratio: 3 / 4.5; z-index: 2; }
.ts-collage-tilted .gal-collage .gal-tile:nth-child(7) { transform: rotate(-2deg) translateY(40px); aspect-ratio: 3 / 3.9; }
.ts-collage-tilted .gal-collage .gal-tile:hover img { transform: none; }

/* look: staggered — small · large · small, with hand-drawn arrows */
.ts-look-staggered .lb-stagger { position: relative; grid-template-columns: 1fr 1.5fr 1fr; gap: 30px; align-items: center; max-width: 880px; margin: 0 auto; }
.ts-look-staggered .lb-stagger .lb-card:nth-child(even) { transform: none; }
.ts-look-staggered .lb-stagger .lb-card:nth-child(1) { align-self: end; }
.ts-look-staggered .lb-stagger .lb-card:nth-child(3) { align-self: start; }
.ts-look-staggered .lb-stagger .lb-shot { padding-top: 96%; border-radius: 6px; }
.ts-look-staggered .lb-stagger .lb-card:nth-child(2) .lb-shot { padding-top: 138%; }
.ts-look-staggered .lb-stagger::before, .ts-look-staggered .lb-stagger::after { content: ""; position: absolute; width: 74px; height: 54px; pointer-events: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 54' fill='none' stroke='%2314142b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8C26 -2 58 8 66 40'/%3E%3Cpath d='M56 34l10 8 4-12'/%3E%3C/svg%3E"); }
.ts-look-staggered .lb-stagger::before { left: 14%; top: -18px; }
.ts-look-staggered .lb-stagger::after { right: 8%; bottom: 22%; transform: scaleX(-1) rotate(180deg); }

/* story: split — open photo | text, no card around it */
.ts-story-split .bn-beside { display: block; }
.ts-story-split .bn-beside .bn-tile { grid-template-columns: minmax(0, 36%) 1fr; grid-template-rows: auto; gap: 7%; align-items: center; background: transparent; border: 0; border-radius: 0; }
.ts-story-split .bn-beside .bn-photo { height: 460px; border-radius: 6px; }
.ts-story-split .bn-beside .bn-copy { padding: 0; align-content: center; gap: 12px; }
.ts-story-split .bn-beside .bn-copy b { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.ts-story-split .bn-beside .bn-copy span { font-size: 14.5px; max-width: 360px; opacity: .8; }
.ts-story-split .bn-beside .bn-cta { background: none; color: var(--fg); padding: 0; margin-top: 10px; font-size: 14px; opacity: 1; }
.ts-story-split .sec-story ~ .sec-story .bn-tile { grid-template-columns: minmax(0, 46%) 1fr; }
.ts-story-split .sec-story ~ .sec-story .bn-photo { height: 320px; }

/* gallery: captioned — captions under the photo, photos at varied heights */
.ts-gallery-captioned .gal-grid { align-items: start; gap: 18px; }
.ts-gallery-captioned .gal-grid .gal-tile { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
.ts-gallery-captioned .gal-grid .gal-tile img { height: auto; aspect-ratio: 3 / 4; border-radius: 8px; }
.ts-gallery-captioned .gal-grid .gal-tile:nth-child(4n+2) img { aspect-ratio: 3 / 4.6; }
.ts-gallery-captioned .gal-grid .gal-tile:nth-child(4n+3) img { aspect-ratio: 1; }
.ts-gallery-captioned .gal-grid .gal-cap { position: static; background: none; color: var(--fg); padding: 9px 2px 0; font-size: 13px; }

/* reviews: open — quotes without the box */
.ts-reviews-open .review-grid { grid-template-columns: repeat(3, 1fr); gap: 44px; }
.ts-reviews-open .review-card { background: none; border: 0; padding: 0; box-shadow: none; }
.ts-reviews-open .review-card .rv-body { font-size: 16px; font-weight: 600; color: var(--fg); }
.ts-reviews-open .review-card .rv-who { font-weight: 700; color: var(--fg); }

/* headings: refined — small spaced capitals over a short hairline, centred */
.ts-headings-refined .sec-head { flex-direction: column; justify-content: center; gap: 0; text-align: center; margin-bottom: 38px; }
.ts-headings-refined .sec-head h2 { padding-left: 0; padding-bottom: 16px; font-size: clamp(16px, 1.7vw, 21px); font-weight: 500; text-transform: uppercase; letter-spacing: .24em; }
.ts-headings-refined .sec-head h2::before { top: auto; bottom: 0; left: 50%; width: 44px; height: 1px; transform: translateX(-50%); }
.ts-headings-refined .sec-catalog .sec-head { flex-direction: row; justify-content: space-between; text-align: left; }

/* hero: immersive — full-bleed, tall, copy centred over the photo (slider or single banner) */
.ts-hero-immersive .hero-wrap { max-width: none; padding: 0; }
.ts-hero-immersive .hero-slider, .ts-hero-immersive .hero-slide { border-radius: 0; }
.ts-hero-immersive .hero-slider { min-height: clamp(420px, 60vw, 740px); }
.ts-hero-immersive .hero-slide { min-height: clamp(420px, 60vw, 740px); justify-content: center; text-align: center; }
.ts-hero-immersive .hero-slider .hero-slide { min-height: 0; }
.ts-hero-immersive .hero-copy { max-width: 780px; padding: 0 7vw; text-align: center; }
.ts-hero-immersive .hero-copy h1 { font-size: clamp(34px, 5.6vw, 70px); line-height: 1.05; }
.ts-hero-immersive .hero-copy p { margin-left: auto; margin-right: auto; font-size: clamp(15px, 1.6vw, 19px); }

/* density: section rhythm — airy breathes, compact packs the shop tight */
.ts-density-airy .store-sec { padding-top: 52px; padding-bottom: 52px; }
.ts-density-airy .sec-head { margin-bottom: 30px; }
.ts-density-compact .store-sec { padding-top: 12px; padding-bottom: 12px; }
.ts-density-compact .sec-head { margin-bottom: 10px; }
.ts-density-compact .hero-wrap { padding-top: 12px; }

@media (max-width: 760px) {
  .ts-hero-editorial .hero-slide, .ts-hero-editorial .hero-slider { min-height: 380px; }
  .ts-collage-tilted .gal-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 14px; }
  .ts-collage-tilted .gal-collage .gal-tile, .ts-collage-tilted .gal-collage .gal-tile:nth-child(n) { flex: none; margin: 0; transform: none; aspect-ratio: 3 / 4; }
  .ts-collage-tilted .gal-collage .gal-tile:nth-child(n+7) { display: none; }
  .ts-collage-tilted .gal-collage .gal-tile:nth-child(odd) { transform: rotate(-1.5deg); }
  .ts-collage-tilted .gal-collage .gal-tile:nth-child(even) { transform: rotate(1.5deg); }
  .ts-story-split .bn-beside .bn-tile, .ts-story-split .sec-story ~ .sec-story .bn-tile { grid-template-columns: 1fr; gap: 18px; }
  .ts-story-split .bn-beside .bn-photo, .ts-story-split .sec-story ~ .sec-story .bn-photo { height: 340px; }
  .ts-look-staggered .lb-stagger { gap: 10px; }
  .ts-look-staggered .lb-stagger::before, .ts-look-staggered .lb-stagger::after { display: none; }
  .ts-gallery-captioned .gal-grid .gal-tile:nth-child(n) img { aspect-ratio: 3 / 4; }
  .ts-reviews-open .review-grid { grid-template-columns: 1fr; gap: 26px; }
  .ts-hero-immersive .hero-slider, .ts-hero-immersive .hero-slide { min-height: 420px; }
  .ts-density-airy .store-sec { padding-top: 30px; padding-bottom: 30px; }
  .ts-headings-refined .sec-head { margin-bottom: 26px; }
}
/* ── Common footer (every shop without a Theme Studio footer block) ─────────── */
.foot-common { --fc-bg: color-mix(in srgb, var(--accent) 55%, #000); background: var(--fc-bg); color: rgba(255, 255, 255, .72); text-align: left; border-top: 0; padding: 48px 0 22px; margin-top: 48px; }
.foot-common a { color: rgba(255, 255, 255, .72); }
.foot-common a:hover { color: #fff; }
.fc-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.fc-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.fc-h { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.fc-name { color: #fff; font-size: 22px; letter-spacing: .02em; }
.fc-brand p { margin: 0; max-width: 340px; }
.fc-logo { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); padding: 4px; margin-bottom: 4px; }
.fc-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .fc-grid { grid-template-columns: 1fr 1fr; } .fc-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .fc-grid { grid-template-columns: 1fr; gap: 26px; } .fc-bottom { flex-direction: column; } }

/* catalog: compact — Simple template's narrow, information-rich product cards.
   Monochrome by construction: colours all come from the template's tokens. */
.ts-catalog-compact .store-sec { padding-top: 22px; padding-bottom: 22px; }
.ts-catalog-compact .sec-head h2 { font-size: 20px; }
.ts-catalog-compact .cat-tabs { gap: 6px; padding-top: 14px; }
.ts-catalog-compact .cat-tab { padding: 6px 13px; font-size: 13px; border-radius: var(--radius-sm); background: var(--surface); }
.ts-catalog-compact .cat-tab.on { background: var(--fg); color: var(--bg); }
.ts-catalog-compact .product-grid { padding: 14px 0 24px; }
.ts-catalog-compact .product-card { border-radius: var(--radius-sm); box-shadow: none; }
.ts-catalog-compact .product-card:hover { transform: none; box-shadow: none; border-color: var(--fg); }
.ts-catalog-compact .product-card:hover .pc-img img { transform: none; }
.ts-catalog-compact .pc-body { padding: 9px 10px 11px; gap: 2px; }
.ts-catalog-compact .pc-meta { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-catalog-compact .pc-name { font-size: 13px; font-weight: 600; min-height: 0; margin: 0; }
.ts-catalog-compact .pc-price { font-family: inherit; font-size: 13.5px; color: var(--fg); margin-top: 2px; }
.ts-catalog-compact .pc-old { font-size: 12px; }
.ts-catalog-compact .pc-stock { font-size: 11px; color: var(--muted); }
.ts-catalog-compact .pc-stock.low { color: var(--fg); font-weight: 600; }
.ts-catalog-compact .pc-stock.out { text-decoration: line-through; }
.ts-catalog-compact .pc-rating { margin-top: 0; font-size: 11px; }
.ts-catalog-compact .pc-badge { margin-top: 2px; font-size: 10.5px; padding: 1px 6px; border-radius: 2px; }
.ts-catalog-compact .pc-add { left: 6px; right: 6px; bottom: 6px; padding: 7px 8px; font-size: 12px; border-radius: var(--radius-sm); }
.ts-catalog-compact .pager { padding-bottom: 24px; }
.ts-catalog-compact .pager a, .ts-catalog-compact .pager .pg-cur { border-radius: var(--radius-sm); min-width: 32px; padding: 6px 10px; font-size: 13px; }
.ts-catalog-compact .pager .pg-cur { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.ts-catalog-compact .pager a:hover { border-color: var(--fg); color: var(--fg); }
/* Beat the card-style preset (card-minimal strips the card) so the catalogue keeps its bordered white card and border-only hover. */
body.ts-catalog-compact .product-card { background: var(--surface); border-color: var(--line); }
body.ts-catalog-compact .product-card:hover, body.ts-catalog-compact.canim-none .product-card:hover { border-color: var(--fg); transform: none; box-shadow: none; }
body.ts-catalog-compact .pc-body { padding: 9px 10px 11px; }
/* Simple template trust badges ("compact" variant): one centred line of dot + label. */
.ts-catalog-compact .trust-compact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin: 24px auto; }
.ts-catalog-compact .trust-compact .trust-item { background: none; border: 0; padding: 0; gap: 8px; }
.ts-catalog-compact .trust-compact .trust-ico { display: none; }
.ts-catalog-compact .trust-compact .trust-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); flex-shrink: 0; }
.ts-catalog-compact .trust-compact .trust-h { font-size: 13px; font-weight: 600; }

/* Chat button: keep it reachable on every page. Which button a page gets is decided
   in render.ts (the Chat button block, else the floating link — never both), so
   nothing here hides anything. The floating link, the sticky bar and the corner
   bubble all sit above the product page's sticky buy bar (z 45) and lift clear of
   it while it is showing. */
.chat-fab:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
body:has(.pd-sticky:not([hidden])) .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
body:has(.pd-sticky:not([hidden])) .cb-bubble { bottom: calc(84px + env(safe-area-inset-bottom)); }
body:has(.pd-sticky:not([hidden])) .cb-dock { bottom: 64px; z-index: 44; }
/* Chat button — "Corner button" style: a rectangular sibling of the round bubble. */
.cb-corner { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: var(--radius-sm); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.cb-corner svg { width: 20px; height: 20px; flex: none; }
.cb-corner:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
body:has(.pd-sticky:not([hidden])) .cb-corner { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) { .cb-corner { padding: 10px 14px; font-size: 13px; } }

/* ── Cart design (Theme Studio → Cart page) ───────────────────────────────────
   Every default value is a no-op, so a shop that never touched these renders as
   before. Classes come from the style kit (ts-cart*-<value>); the two colours
   arrive as --cart-panel / --cart-btn on .cart-wrap. */
/* The order card (summary + delivery form) is the cart's panel. The panel colour paints it;
   if the merchant picks one, the item rows become tinted cards too. */
.cart-wrap .cart-aside { background: var(--cart-panel, var(--surface)); }
.cart-wrap[style*="--cart-panel"] .cart-root { display: flex; flex-direction: column; gap: 10px; border-top: 0; }
.cart-wrap[style*="--cart-panel"] .cart-root .cart-line { background: var(--cart-panel); border: 1px solid var(--line); border-radius: var(--cart-r, var(--radius)); padding: 14px; }
.cart-wrap.has-cbtn .btn.primary { --accent: var(--cart-btn); --accent-2: color-mix(in srgb, var(--cart-btn) 70%, #fff); --grad: linear-gradient(135deg, var(--cart-btn), color-mix(in srgb, var(--cart-btn) 70%, #fff)); }
.ts-cartlayout-stacked .cart-layout { grid-template-columns: minmax(0, 1fr); }
.ts-cartlayout-stacked .cart-aside { position: static; }
.ts-cartspace-compact .cart-layout { gap: 18px; }
.ts-cartspace-compact .cart-root .cart-line { padding-block: 8px; }
.ts-cartspace-compact .cart-aside { padding: 14px 16px; }
.ts-cartspace-airy .cart-layout { gap: 56px; }
.ts-cartspace-airy .cart-root .cart-line { padding-block: 28px; gap: 20px; }
.ts-cartspace-airy .cart-aside { padding: 30px 30px; }
.ts-cartborder-none .cart-aside, .ts-cartborder-none .cart-root .cart-line { border-color: transparent; box-shadow: none; }
.ts-cartborder-none .cart-root { border-top-color: transparent; }
.ts-cartborder-bold .cart-aside { border-width: 2px; border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.ts-cartborder-bold .cart-root { border-top: 2px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.ts-cartborder-bold .cart-root .cart-line { border-bottom-width: 2px; border-bottom-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.ts-cartradius-sharp .cart-wrap { --cart-r: 4px; }
.ts-cartradius-sharp .cart-aside { border-radius: 4px; }
.ts-cartradius-soft .cart-wrap { --cart-r: 14px; }
.ts-cartradius-soft .cart-aside { border-radius: 14px; }
.ts-cartradius-round .cart-wrap { --cart-r: 24px; }
.ts-cartradius-round .cart-aside { border-radius: 24px; }
.ts-cartradius-sharp .cart-wrap .btn, .ts-cartradius-sharp .cart-wrap .qbtn { border-radius: 3px; }
.ts-cartradius-soft .cart-wrap .btn, .ts-cartradius-soft .cart-wrap .qbtn { border-radius: 10px; }
.ts-cartradius-round .cart-wrap .btn, .ts-cartradius-round .cart-wrap .qbtn { border-radius: 999px; }
.ts-cartbutton-solid .cart-wrap .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.ts-cartbutton-gradient .cart-wrap .btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.ts-cartbutton-outline .cart-wrap .btn.primary { background: transparent; color: var(--accent); border: 1.6px solid var(--accent); box-shadow: none; }
.ts-cartbutton-outline .cart-wrap .btn.primary:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); filter: none; }
/* Studio preview: the order button is inert there, so say so. */
.cart-preview-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Phones: the generic .trust-item stacking must not break the inline trust styles. */
@media (max-width: 700px) {
  .trust-row, .trust-bar, .trust-pills { display: flex; }
  .trust-row .trust-item, .trust-bar .trust-item, .trust-pills .trust-item, .trust-marquee .trust-item { flex-direction: row; align-items: center; }
  .trust-row .trust-item { padding: 4px 0; }
  .trust-bar .trust-item { padding: 0; }
  .trust-pills .trust-item { padding: 7px 14px 7px 8px; }
  .trust-centered { grid-template-columns: 1fr 1fr; }
  .trust-centered .trust-item { flex-direction: column; align-items: center; padding: 8px; }
}

/* Contact form: honeypot, status line and the "also chat" button */
.ct-form .ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-status { margin: 0; font-size: 14px; font-weight: 600; }
.ct-status.ok { color: #15803d; }
.ct-status.err { color: #b91c1c; }
.ct-form .btn[disabled] { opacity: .6; cursor: wait; }

/* "Write a review" section: the button, its pop-up, and the star picker inside the form. */
.rf-cta { display: flex; justify-content: center; }
.rf-cta .btn { min-height: 46px; padding: 12px 26px; font-size: 15px; }
.rf-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 26px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.rf-dialog::backdrop { background: rgba(0,0,0,.5); }
.rf-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.rf-form .rv-stars-pick { justify-content: center; gap: 6px; margin: 4px 0 6px; }
.rf-form .rv-star { width: 44px; height: 44px; font-size: 34px; }
.rf-form .rv-star:not(.on) { color: var(--muted); opacity: .6; }
.rf-form .rv-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ct-chatbtn { display: inline-block; margin-top: 4px; font-weight: 600; }

/* Studio preview only: chip icons and the friendlier empty-section card. */
.kt-chip svg, .kt-fabchip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-right: 5px; vertical-align: -2px; }
.kt-chip .kt-grab svg { fill: currentColor; stroke: none; }
.kt-chip span { display: inline-flex; align-items: center; }
.kt-stub { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kt-stub b { font-size: 16px; color: var(--fg, #1b2433); }
.kt-stub span { max-width: 46ch; }
.kt-stub .kt-stub-cta { margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }

/* Studio preview: the section toolbar is one dark pill — Edit, up, down, hide, duplicate, delete. */
.kt-chip { gap: 2px; padding: 5px 8px; border-radius: 12px; background: #0f1b2d; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); overflow: visible; }
.kt-chip button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.kt-chip button:hover:not(:disabled), .kt-chip button:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.kt-chip button:disabled { opacity: .35; cursor: default; }
.kt-chip button svg { width: 18px; height: 18px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kt-chip button b { font-weight: 700; padding-right: 6px; }
.kt-chip .kt-edit { margin-right: 4px; }
.kt-chip .kt-edit, .kt-chip .kt-del { background: transparent; color: #fff; border-left: 0; padding: 0 8px; }
.kt-chip .kt-edit:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.kt-chip .kt-del:hover:not(:disabled) { background: rgba(239, 68, 68, .3); color: #fff; }
.kt-chip .kt-img { display: none; background: transparent; color: #fff; border-right: 0; padding: 0 8px; }
.kt-blk.kt-hasimg .kt-chip .kt-img { display: inline-flex; }
.kt-chip .kt-img:hover { background: rgba(255, 255, 255, .14); }
.kt-chip.is-off .kt-vis svg { stroke: #fbbf24; }
/* Not every section can do everything: the menu bar and footer are fixed in place; products can't be
   deleted; one-per-page sections can't be duplicated. */
.kt-gnav .kt-chip .kt-up, .kt-gnav .kt-chip .kt-down, .kt-gnav .kt-chip .kt-vis, .kt-gnav .kt-chip .kt-dup,
[data-kt-type="footer"] > .kt-chip .kt-up, [data-kt-type="footer"] > .kt-chip .kt-down, [data-kt-type="footer"] > .kt-chip .kt-vis, [data-kt-type="footer"] > .kt-chip .kt-dup,
[data-kt-single] > .kt-chip .kt-dup { display: none !important; }

/* "Preview as a shopper" (unpublished blank-design draft in its own tab): always says it's a draft. */
.kt-draft-ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 9999; max-width: calc(100vw - 24px); padding: 9px 14px; border-radius: 999px; background: #111827; color: #fff; font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Cart checkout: three numbered steps in one card (contact details, delivery address,
   order summary). The delivery charge follows the chosen upazila / thana. */
.cart-aside .checkout { border-top: 0; margin-top: 0; padding: 0; }
.co-step + .co-step { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.co-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--fg); }
.co-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
/* Cascading Bangladesh address: Division → District → Upazila/Thana → Union/Area. */
.co-geo { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.sel-wrap { position: relative; }
.sel-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.sel-wrap.is-loading::after { width: 14px; height: 14px; margin-top: -7px; right: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; transform: none; animation: co-spin .7s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
.sel-wrap[hidden] { display: none; }
.field select { width: 100%; padding: 12px 38px 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--bg); color: var(--fg); appearance: none; -webkit-appearance: none; text-overflow: ellipsis; cursor: pointer; }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.field select:disabled { background: color-mix(in srgb, var(--line) 35%, var(--bg)); color: var(--muted); cursor: not-allowed; }
.field input[hidden], .field textarea[hidden] { display: none; }
.field-err { margin: 5px 0 0; min-height: 0; font-size: 12.5px; line-height: 1.4; color: var(--red); }
.field-err:empty { display: none; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
.field.has-err input:focus, .field.has-err select:focus, .field.has-err textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
/* "Deliver to": the exact destination and its delivery fee, so the shopper confirms it before ordering. */
.co-deliver { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: start; margin: 2px 0 16px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.co-deliver[hidden] { display: none; }
.co-deliver-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.co-deliver-ic svg { width: 16px; height: 16px; }
.co-deliver-main { min-width: 0; font-size: 13px; line-height: 1.45; }
.co-deliver-main b { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.co-deliver-main span { display: block; color: var(--fg); overflow-wrap: anywhere; }
.co-deliver-fee { text-align: right; white-space: nowrap; }
.co-deliver-fee small { display: block; font-size: 11.5px; color: var(--muted); }
.co-deliver-fee b { font-family: var(--head); font-size: 15px; color: var(--accent); }
@media (max-width: 520px) {
  .co-geo { grid-template-columns: 1fr; }
  .co-deliver { grid-template-columns: auto 1fr; }
  .co-deliver-fee { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--line); text-align: left; }
  .field input, .field textarea, .field select { font-size: 16px; } /* iOS: no zoom-on-focus */
}
.co-pay { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.sum-note { margin-top: 6px; font-size: 12px; }
.ts-headings-refined .co-title { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }

/* Order details (confirmation + receipt), My orders */
.cart-head-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.od-when { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.od-items { list-style: none; margin: 0; padding: 0; }
.od-item { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.od-qty { color: var(--muted); }
.od-price { font-weight: 600; white-space: nowrap; }
.od-money { margin-top: 10px; }
.od-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.od-row.od-total { color: var(--fg); font-weight: 700; font-size: 18px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.od-row.od-total span:last-child { color: var(--accent); font-family: var(--head); }
.od-who { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; text-align: left; }
.od-who div { display: flex; gap: 12px; font-size: 14px; }
.od-who b { flex: 0 0 92px; color: var(--muted); font-weight: 600; }
.od-who span { min-width: 0; overflow-wrap: anywhere; }
/* Continue shopping on its own row; receipt and My orders share the next one. */
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.confirm-actions .btn { margin-top: 0; width: 100%; }
.confirm-actions .btn.primary, .confirm-actions .btn:nth-child(2):last-child { grid-column: 1 / -1; }
@media (max-width: 420px) { .confirm-actions { grid-template-columns: 1fr; } }
.orders-page { padding-bottom: 72px; }
.orders-list { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.oc-ref { font-family: var(--head); font-size: 17px; }
.oc-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.oc-status.oc-cancelled, .oc-status.oc-returned { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }
.oc-date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.oc-items { font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.oc-total { font-family: var(--head); font-size: 17px; }
.oc-links { display: flex; gap: 8px; }
.orders-empty { padding: 36px 20px; }
.orders-find { max-width: 420px; }
.orders-find h2 { font-size: 18px; margin-bottom: 4px; }
.orders-find > p { margin: 0 0 16px; font-size: 14px; }
.orders-find .btn { width: 100%; padding: 12px; }

/* My orders: one line per order. On phones each row becomes a small labelled card. */
.orders-list { max-width: 980px; }
.orders-tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.orders-tbl th { text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--fg) 4%, var(--surface)); border-bottom: 1px solid var(--line); }
.orders-tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.orders-tbl tbody tr:last-child td { border-bottom: 0; }
.orders-tbl .ot-ref { font-family: var(--head); font-size: 15px; white-space: nowrap; }
.orders-tbl .ot-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.orders-tbl .ot-items { max-width: 300px; overflow-wrap: anywhere; }
.orders-tbl .ot-total { font-family: var(--head); white-space: nowrap; }
.orders-tbl .oc-links { justify-content: flex-end; }
@media (max-width: 720px) {
  .orders-tbl, .orders-tbl tbody, .orders-tbl tr, .orders-tbl td { display: block; width: 100%; }
  .orders-tbl { border: 0; background: none; }
  .orders-tbl thead { display: none; }
  .orders-tbl tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
  .orders-tbl td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .orders-tbl td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  .orders-tbl td.ot-ref { justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .orders-tbl td.ot-ref::before { content: "Order"; }
  .orders-tbl td.ot-actions { justify-content: flex-end; padding-top: 10px; }
  .orders-tbl td.ot-actions::before { display: none; }
}

/* Customer login pages */
.container.account-page { padding: 56px 20px 88px; }
.account-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.account-card h1 { font-size: 26px; margin: 0 0 6px; }
.account-card > p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.account-card .btn { width: 100%; padding: 13px; margin-top: 4px; }
.account-switch { margin: 18px 0 0 !important; text-align: center; font-size: 14px; color: var(--muted); }
.account-switch a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .container.account-page { padding: 28px 16px 56px; } .account-card { padding: 24px 20px; } }

/* Checkout: login note and the menu account link */
.co-login { margin: 14px 0 0; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--muted); }
.co-login a { color: var(--accent); font-weight: 600; }
.co-login.co-login-need { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.co-login[hidden] { display: none; }

/* Password box with a show / hide eye (cart.js adds the button) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--fg); }
.pw-toggle svg { width: 19px; height: 19px; display: block; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye-off { display: block; }

.orders-hint { margin: 0 0 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--fg); }
.orders-hint[hidden] { display: none; }

.account-forgot { margin: 6px 0 0; font-size: 13px; text-align: right; }
.account-forgot a { color: var(--accent); font-weight: 600; }
.code-input { font-size: 26px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.account-card [hidden] { display: none; }

/* Theme Studio preview only: a section with a date window carries a tag; one shoppers can't see right now
   ("before" it starts / "after" it ended) also gets a dashed amber frame. */
.kt-sched-tag { position: absolute; top: 8px; right: 8px; z-index: 27; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 4px 10px; border-radius: 999px; background: #1b2433; color: #fff; font: 700 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.kt-sched-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.kt-sched-tag.kt-sched-before, .kt-sched-tag.kt-sched-after { background: #8a560f; }
.kt-sched-tag.kt-sched-before::before, .kt-sched-tag.kt-sched-after::before { background: #fcd34d; }
.kt-blk[data-kt-sched="before"], .kt-blk[data-kt-sched="after"] { outline: 2px dashed #d9a441; outline-offset: -2px; }

/* Chat button with both channels (WhatsApp + Messenger). */
.cb-two { flex-wrap: nowrap; }
.cb-dock.cb-two .cb-btn, .cb-inline.cb-two .cb-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 11px 12px; font-size: 14px; max-width: 280px; }
.cb-dock.cb-two .cb-btn span, .cb-inline.cb-two .cb-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .cb-dock.cb-two .cb-btn, .cb-inline.cb-two .cb-btn { font-size: 13px; gap: 6px; } .cb-dock.cb-two .cb-btn svg { width: 18px; height: 18px; } }
/* Two bubbles: one corner column. */
.cb-bubbles { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-direction: column; gap: 8px; }
.cb-bubbles .cb-bubble { position: static; width: 40px; height: 40px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); transition: transform .15s ease; }
.cb-bubbles .cb-bubble:hover { transform: scale(1.08); }
.cb-bubbles .cb-bubble svg { width: 19px; height: 19px; }
body:has(.pd-sticky:not([hidden])) .cb-bubbles { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* One corner button that opens a two-item menu. */
.cb-corner-wrap { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; }
.cb-corner-wrap > .cb-corner { position: static; list-style: none; cursor: pointer; }
.cb-corner-wrap > .cb-corner::-webkit-details-marker { display: none; }
.cb-corner-menu { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; gap: 6px; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); }
.cb-corner-menu a, .cb-corner-menu button { width: 100%; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; }
.cb-corner-menu a:hover, .cb-corner-menu button:hover { background: var(--bg); color: var(--accent); }
.cb-corner-menu svg { width: 20px; height: 20px; flex: none; }
body:has(.pd-sticky:not([hidden])) .cb-corner-wrap { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ── Shop live chat (the "Chat with us" window; livechat.js) ── */
.lc-fab { border: 0; cursor: pointer; font-family: inherit; }
/* The Shop chat button inside the Chat button block: a <button> that looks like its link siblings. */
button.cb-btn, button.cb-bubble, button.cb-corner { border: 0; cursor: pointer; font-family: inherit; }
button.cb-bubble { padding: 0; }
.cb-btn.lc-unread, .cb-menu-item.lc-unread { position: relative; }
.cb-bubble.lc-unread::after, .cb-corner.lc-unread::after, .cb-btn.lc-unread::after, .cb-menu-item.lc-unread::after { content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; border: 2px solid var(--surface); }
.lc-fab.lc-unread::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; border: 2px solid var(--surface); }
body:has(.cb-bubble, .cb-corner-wrap, .cb-corner) .lc-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
body:has(.cb-bubbles) .lc-fab { bottom: calc(140px + env(safe-area-inset-bottom)); }
.lc-panel { position: fixed; right: 16px; top: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: none; flex-direction: column; width: 380px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45); overflow: hidden; }
.lc-panel.lc-open { display: flex; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--accent); color: var(--accent-fg); }
.lc-title { display: grid; min-width: 0; }
.lc-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.lc-sub { font-size: 12px; opacity: .85; }
.lc-close { background: transparent; border: 0; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.lc-close:hover { background: rgba(255, 255, 255, .18); }
.lc-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.lc-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; padding: 0 12px; }
.lc-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.lc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.lc-time { font-size: 11px; opacity: .65; margin-top: 3px; }
.lc-me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 4px; }
.lc-shop { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lc-err { color: #b42318; font-size: 13px; padding: 0 14px; }
.lc-err:empty { display: none; }
.lc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.lc-input { flex: 1; resize: none; max-height: 110px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; background: var(--bg); color: var(--fg); }
.lc-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lc-send { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.lc-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) { .lc-panel { top: 0; right: 0; left: 0; bottom: 0; width: auto; max-width: none; height: 100vh; height: 100dvh; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); } .lc-head { padding-top: calc(14px + env(safe-area-inset-top)); } }
/* While the chat is open on a phone it covers the whole screen: hide the corner buttons and stop the page behind it scrolling. */
@media (max-width: 480px) { body:has(.lc-panel.lc-open) { overflow: hidden; } body:has(.lc-panel.lc-open) :is(.lc-fab, .cb-bubble, .cb-bubbles, .cb-corner, .cb-corner-wrap, .cb-dock) { visibility: hidden; } }
.lc-ai { margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.lc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: lc-dot 1.1s infinite ease-in-out; }
.lc-typing i:nth-child(2) { animation-delay: .15s; }
.lc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .lc-typing i { animation: none; opacity: .6; } }
.lc-clip { flex: none; display: grid; place-items: center; width: 38px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.lc-clip:hover { color: var(--accent); background: var(--bg); }
.lc-preview { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.lc-preview[hidden] { display: none; }
.lc-pthumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg); flex: none; }
.lc-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.lc-px { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer; }
.lc-imgwrap { display: block; margin: -2px -4px 4px; }
.lc-img, .lc-vid { display: block; width: 100%; max-width: 260px; max-height: 280px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.lc-vid { max-height: 300px; }
.lc-msg:has(.lc-img, .lc-vid) { max-width: 88%; }

/* ── Product card (marketplace style) ─────────────────────────────────────────
   A clean white card: square photo, two-line name, one strong price, the old price
   and discount on their own line, rating, free-delivery tag. Quiet border, shadow on
   hover (no jumping), visible keyboard focus. Theme Studio's card presets
   (body.cardt-* / .pg-v-* / .card-*) are more specific than these single-class rules,
   so a merchant's own choices still win. */
.product-card { border-color: color-mix(in srgb, var(--line) 80%, transparent); transition: box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: none; border-color: color-mix(in srgb, var(--fg) 14%, var(--line)); box-shadow: 0 8px 22px -12px rgba(15, 23, 42, .28); }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-body { padding: 10px 12px 13px; gap: 5px; }
.pc-meta { font-size: 11.5px; letter-spacing: .02em; color: var(--muted); }
.pc-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; min-height: 2.8em; margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.product-card:hover .pc-name { color: color-mix(in srgb, var(--accent) 70%, var(--fg)); }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; margin-top: auto; padding-top: 2px; font-size: 17px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pc-now { font: inherit; }
.pc-was { flex-basis: 100%; display: flex; align-items: baseline; gap: 7px; font-size: 12px; line-height: 1.3; }
.pc-was .pc-old { margin: 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.pc-off { font-weight: 600; color: var(--red); }
.pc-rating { display: flex; align-items: center; gap: 4px; margin-top: 0; font-size: 12px; line-height: 1.2; }
.pc-rating .stars { font-size: 12px; letter-spacing: 0; }
.pc-rating .muted { font-size: 11.5px; }
.pc-badge { align-self: flex-start; margin-top: 1px; font-size: 11px; font-weight: 600; letter-spacing: .01em; padding: 2px 8px; border-radius: 999px; }
.pc-stock { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.pc-stock.low { color: var(--amber); font-weight: 600; }
.pc-stock.out { color: var(--red); font-weight: 600; }
/* Sold out: the photo greys, a label says why, the price stops competing for attention. */
.product-card.is-oos .pc-img img { filter: grayscale(.85); opacity: .65; }
.product-card.is-oos .pc-now { color: var(--muted); }
.pc-oos-tag { background: color-mix(in srgb, var(--surface) 45%, transparent); font-size: 12.5px; letter-spacing: .02em; }
/* Photo placeholder while it loads: a soft shimmer instead of a flat box. */
.pc-img { background: linear-gradient(100deg, var(--img-bg) 30%, color-mix(in srgb, var(--img-bg) 55%, var(--surface)) 50%, var(--img-bg) 70%) 0 0 / 200% 100%; animation: pc-shimmer 1.6s ease-in-out infinite; }
.pc-img:has(img:not(.pc-img2)) { animation: none; }
@keyframes pc-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pc-img { animation: none; } }
/* Light-on-dark card presets: the old price and discount follow the photo-overlay text colour. */
body.cardt-overlay .pc-old, body.cardt-overlay .pc-off,
.product-grid.pg-v-overlay .pc-off, .product-grid.pg-v-reveal .pc-off { color: rgba(255, 255, 255, .85); }
body.cardt-center .pc-price, body.cardt-elegant .pc-price,
.product-grid.pg-v-arch .pc-price, .product-grid.pg-v-circle .pc-price, .product-grid.pg-v-centered .pc-price { justify-content: center; }
body.cardt-center .pc-rating, body.cardt-elegant .pc-rating,
.product-grid.pg-v-arch .pc-rating, .product-grid.pg-v-circle .pc-rating, .product-grid.pg-v-centered .pc-rating { justify-content: center; }
body.cardt-center .pc-was, body.cardt-elegant .pc-was,
.product-grid.pg-v-arch .pc-was, .product-grid.pg-v-circle .pc-was, .product-grid.pg-v-centered .pc-was { justify-content: center; }
[data-theme="dark"] .pc-now { color: var(--accent-2); }
[data-theme="dark"] .product-card:hover { box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .6); }
@media (max-width: 640px) {
  .pc-body { padding: 9px 10px 11px; gap: 4px; }
  .pc-name { font-size: 13px; min-height: 2.8em; }
  .pc-price { font-size: 15.5px; }
  .pc-was, .pc-was .pc-old { font-size: 11.5px; }
}

/* ── Cart & checkout page polish ──────────────────────────────────────────────
   Items sit in one white card; the order card on the right is a clean stack of
   steps with consistent field sizes, then a tinted summary and a full-width button.
   Border, radius and padding of the cards stay with the Theme Studio cart presets. */
.cart-head { padding: 30px 0 18px; align-items: center; }
.cart-head h1 { font-size: 28px; letter-spacing: -.01em; }
.cart-n { display: inline-block; vertical-align: middle; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); font-size: 13px; font-weight: 600; margin-left: 10px; }
.cart-head-links .back { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 13px; }
.cart-head-links .back:hover { border-color: var(--accent); }
.cart-layout { grid-template-columns: minmax(0, 1fr) 430px; gap: 28px; }
.cart-root { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.cart-root:has(> .cart-empty) { background: none; border: 0; padding: 0; }
.cart-wrap[style*="--cart-panel"] .cart-root { background: none; border: 0; padding: 0; }
.cart-root .cart-line { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px 0; }
.cart-root .cart-line:last-child { border-bottom: 0; }
.cl-img { width: 96px; height: 96px; border-radius: var(--radius-sm); }
.cl-name { font-size: 15px; font-weight: 600; padding-right: 64px; }
.cl-unit { font-size: 13px; }
.cl-row { margin-top: auto; padding-top: 10px; }
.cl-price { font-size: 17px; }
.cart-line .qty-row { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 2px; }
.cart-line .qbtn { width: 32px; height: 32px; border-radius: 50%; }
.cl-remove { top: 20px; text-decoration: none; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cl-remove:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }

.cart-aside .co-step + .co-step { margin-top: 26px; padding-top: 26px; }
.co-title { gap: 10px; margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.co-n { width: 24px; height: 24px; font-size: 12px; }
.checkout .field { margin-bottom: 16px; }
.checkout .field label { margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--fg); }
.checkout .field input, .checkout .field select { height: 46px; padding: 0 14px; background: var(--surface); }
.checkout .field select { padding-right: 38px; }
.checkout .field textarea { padding: 12px 14px; min-height: 76px; resize: vertical; background: var(--surface); }
.checkout .field input::placeholder, .checkout .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.checkout .field input:hover, .checkout .field select:not(:disabled):hover, .checkout .field textarea:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.co-geo { grid-template-columns: 1fr; }
.co-deliver { margin-top: 0; }

/* Summary: a tinted block, total in focus, one clear button. */
.cart-aside .co-step:last-child .cart-summary { background: color-mix(in srgb, var(--fg) 4%, var(--surface)); border-radius: var(--radius-sm); padding: 6px 16px 14px; margin-bottom: 14px; }
.cart-aside .co-step:last-child .cart-summary .sum-row { padding: 9px 0; }
.cart-aside .co-step:last-child .cart-summary .sum-row + .sum-row { border-top: 1px dashed var(--line); }
.cart-aside .co-step:last-child .sum-row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; font-size: 20px; }
.sum-note { padding-top: 4px; line-height: 1.4; }
.co-pay { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--fg); font-size: 13px; }
#place-order { height: 52px; padding: 0 18px; font-size: 16px; font-weight: 700; margin-top: 2px; }
#place-order:disabled { opacity: .7; cursor: progress; }
.cart-trust { margin-top: 12px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .cart-head { padding: 20px 0 12px; }
  .cart-head h1 { font-size: 23px; }
  .cart-root { padding: 2px 14px; }
  .cart-root .cart-line { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .cl-img { width: 76px; height: 76px; }
  .cl-remove { top: 14px; }
  #place-order { position: sticky; bottom: 10px; z-index: 5; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
}

/* Cart row: trash icon instead of a "Remove" word, and a quiet details link. */
.cl-remove { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.cl-remove svg { display: block; }
.cl-details { align-self: flex-start; margin-top: 2px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.cl-details:hover { border-color: var(--accent); color: var(--accent); }
.cl-details:focus-visible, .cl-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Checkout: payment method + order-page payment notices ───────────────── */
.co-paysel { margin: 0 0 14px; }
.co-paytitle { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.co-payopt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); background: var(--surface, #fff); cursor: pointer; font-size: 14px; }
.co-payopt:has(input:checked) { border-color: var(--green, #0f7a4f); background: color-mix(in srgb, var(--green, #0f7a4f) 7%, var(--surface, #fff)); }
.co-payopt input { accent-color: var(--green, #0f7a4f); width: 17px; height: 17px; margin: 0; }
.co-payfields { margin: 4px 0 10px; padding: 12px; border-radius: var(--radius-sm, 10px); background: color-mix(in srgb, var(--green, #0f7a4f) 6%, var(--surface, #fff)); }
.co-payfields[hidden], .co-paynote[hidden] { display: none; }
.co-paynote { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--fg, #111); }
.co-paynum { font-size: 15px; letter-spacing: .02em; user-select: all; }
.pay-box { margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm, 10px); text-align: left; background: color-mix(in srgb, var(--green, #0f7a4f) 8%, var(--surface, #fff)); font-size: 13.5px; }
.pay-box p { margin: 4px 0 0; }
.pay-box .btn { margin-top: 10px; }
.pay-warn { background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--surface)); }

/* Cart design: one list card. Row = [tick] [photo] [details + qty] [price + remove]. */
.cart-root { padding: 0 20px 4px; border-radius: 16px; }
.cart-selall { display: flex; position: relative; align-items: center; gap: 12px; margin: 0 -20px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.cart-selall em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; }
.cart-selall span::before { content: ""; display: inline-block; vertical-align: middle; margin-right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); }
.cart-selall input { position: absolute; opacity: 0; left: 20px; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.cart-selall input:checked + span::before, .cart-selall input:indeterminate + span::before { background: var(--accent); border-color: var(--accent); }
.cart-selall input:checked + span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.cart-root .cart-line { grid-template-columns: 22px 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; }
.cart-root .cart-line .cl-img { width: 88px; height: 88px; }
.cl-select { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.cl-select input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cl-select span { width: 100%; height: 100%; border-radius: 4px; }
.cl-select:has(input:checked) { background: var(--accent); border-color: var(--accent); }
.cl-select input:checked + span { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.cl-select:has(input:focus-visible), .cart-selall:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-root .cl-name { padding-right: 0; }
.cart-root .cl-row { margin-top: 8px; padding-top: 0; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 10px; }
.cl-side .cl-remove { position: static; }
.cart-line.is-unsel .cl-img, .cart-line.is-unsel .cl-main, .cart-line.is-unsel .cl-price { opacity: .5; }
@media (max-width: 560px) {
  .cart-root { padding: 0 14px 2px; }
  .cart-selall { margin: 0 -14px; padding: 12px 14px; }
  .cart-selall input { left: 14px; }
  .cart-root .cart-line { grid-template-columns: 22px 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
  .cart-root .cart-line .cl-img { width: 64px; height: 64px; }
  .cl-side { align-self: start; }
}

/* Phone header (centred navbar): menu, name, EN/বাংলা and cart sit in one row instead of the cart
   floating over the language switch. The name takes the spare room and may wrap. */
@media (max-width: 640px) {
  .nav-center-brand { justify-content: flex-start; gap: 8px; }
  .nav-center-brand .nav-burger { margin-right: 0; }
  .nav-center-brand .cart-btn, .nav-center-brand .nav-icon-btn { position: static; transform: none; flex: none; width: 36px; height: 36px; }
  .nav-center-brand .brand { flex: 1; min-width: 0; justify-content: center; font-size: 16px; line-height: 1.2; text-align: center; }
  .nav-center-brand .sf-lang { flex: none; }
  .sf-lang button { padding: 6px 8px; font-size: 12px; }
  /* Not enough room for the whole name (menu + search + logo + language + cart): the logo stays, the name ends
     in "…" — before, a centred name that didn't fit spilled left over the menu and search icons. */
  .nav-center-brand .brand { justify-content: safe center; }
  .nav-center-brand .brand .brand-logo, .nav-center-brand .brand .logo { flex: none; }
  .nav-center-brand .brand .brand-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
