/* Dokan storefront — light, mobile-first, purple accent (matches Kotha AI). */
:root {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --line: #e8e9f4;
  --fg: #14152a;
  --muted: #5f6485;
  --accent: #3f4ce0;
  --accent-2: #7580ef;
  --grad: linear-gradient(135deg, #3f4ce0, #7580ef);
  --green: #12a866;
  --red: #e5484d;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --img-bg: #f0eef8;
  --scrim: rgba(255, 255, 255, .72);
  --shadow: 0 12px 30px -14px rgba(60, 40, 110, .28);
  --font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  --head: "Space Grotesk", "Noto Sans Bengali", system-ui, sans-serif;
}

/* Dark storefront (theme.darkMode = on / auto) */
[data-theme="dark"] {
  --bg: #0f1017;
  --surface: #181a24;
  --line: #282a38;
  --fg: #eef0f6;
  --muted: #9aa0b8;
  --img-bg: #20222e;
  --scrim: rgba(10, 11, 16, .66);
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .nav { background: rgba(20, 22, 32, .82); }
* { 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 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--fg); }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 16px; box-shadow: var(--shadow); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--muted); font-weight: 500; }
.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 { position: sticky; top: 61px; z-index: 19; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.shop-search { display: flex; align-items: center; gap: 8px; margin: 9px 0; padding: 3px 8px 3px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; 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 */
.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: 11px; min-height: 46px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; touch-action: manipulation; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--grad); color: #fff; border: none; box-shadow: var(--shadow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }

/* Hero / landing */
.hero { padding: 84px 0 60px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 6vw, 56px); }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.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 { transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); 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: 999px; 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(--grad); color: #fff; border-color: transparent; }

/* 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(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 28%, 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 — items on the left, sticky summary + checkout aside on the right */
.cart-wrap { padding-bottom: 60px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 16px; }
.cart-head h1 { font-size: 28px; margin: 0; }
.cart-head .back { margin: 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-root { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cl-img { width: 64px; height: 64px; 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: 24px; color: var(--accent-2); }
.cl-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cl-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cl-opts, .cl-unit { font-size: 12px; }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.cl-price { font-family: var(--head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.cart-line .qty-row { margin: 0; padding: 3px; }
.cart-line .qbtn { width: 30px; height: 30px; font-size: 18px; }
.cart-line .qty { width: 32px; }
.cl-remove { align-self: flex-start; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 3px 5px; border-radius: 7px; }
.cl-remove:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.cart-aside { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: 14px; }
.sum-row.total { color: var(--fg); font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.sum-row.total span:last-child { color: var(--accent); font-family: var(--head); }
.checkout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.checkout h2 { font-size: 18px; margin-bottom: 4px; }
.checkout-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.checkout .btn { width: 100%; margin-top: 4px; }
.cart-trust { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; 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; }

/* Confirmation */
.confirm { padding: 50px 0; }
.confirm-card { max-width: 520px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; box-shadow: var(--shadow); }
.check { width: 64px; height: 64px; border-radius: 999px; background: var(--green); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 16px; }
.check svg { width: 32px; height: 32px; stroke-width: 2.5; }
.confirm-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; text-align: left; }
.order-id { font-family: var(--head); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.confirm-items { margin: 8px 0; padding-left: 18px; color: var(--muted); }
.confirm-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }

/* 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); }

/* 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(--grad); 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: #f59e0b; 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: #059669; background: color-mix(in srgb, #059669 12%, var(--surface)); border-radius: 6px; 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: #059669; }
.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: 28px; line-height: 1; background: none; border: none; cursor: pointer; color: #f59e0b; padding: 0; }
.rv-star.on { color: #f59e0b; }
.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; }
.chat-fab { position: fixed; bottom: 20px; right: 20px; z-index: 40; background: var(--grad); color: #fff; font-weight: 600; padding: 12px 18px; border-radius: 999px; 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) */
body.btn-solid .btn.primary { background: var(--accent); }
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 8px 22px -16px rgba(30, 20, 60, .35); }
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: 4px; border-radius: 4px; background: var(--grad); }
.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; }
.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.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; }

/* 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 */
.ann-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; overflow: hidden; }
.ann-cta { color: inherit; text-decoration: underline; white-space: nowrap; }
.ann-marquee { justify-content: flex-start; }
.ann-track { display: flex; gap: 40px; white-space: nowrap; animation: ann-scroll linear infinite; }
.ann-track .ann-item { flex: none; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ann-track { animation: none; } }
.ann-count { font-variant-numeric: tabular-nums; opacity: .9; }

/* Hero badge (slider slides) */
.hero-badge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; 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; }

/* 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; }

/* 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); }
.product-grid.masonry { display: block; column-gap: 16px; }
.product-grid.masonry .product-card { break-inside: avoid; margin-bottom: 16px; }
.product-grid.masonry.cols-2 { column-count: 2; }
.product-grid.masonry.cols-3 { column-count: 3; }
.product-grid.masonry.cols-4 { column-count: 4; }
.product-grid.masonry.cols-5 { column-count: 5; }

/* 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; }
.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); }
.gal-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; 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-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }

/* 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-solid { background: var(--accent); border-bottom-color: transparent; }
[data-theme="dark"] .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 { color: #fff; border-color: rgba(255, 255, 255, .35); }
/* Centered logo, menu underneath */
.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 .nav-links-row { justify-content: center; width: 100%; }

/* ── Footer block variants ─────────────────────────────────────────────────── */
.foot-cols { text-align: left; }
.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: 999px; color: var(--muted); background: var(--bg); }
/* Dark footer panel — fixed dark regardless of page theme */
.foot-dark { background: #14161f; border-top-color: #262a38; color: #9aa1b5; }
.foot-dark .foot-h, .foot-dark b { color: #fff; }
.foot-dark .footer-links a, .foot-dark .social a { color: #9aa1b5; }
.foot-dark .foot-bottom { border-top-color: #262a38; }
.foot-dark .pay-badge { border-color: #2c3040; background: transparent; color: #9aa1b5; }

/* ── 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); }

/* ── 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; }

/* ── 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, .55); color: #fff; border-radius: 999px; 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; }

/* ── 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: 999px; 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); }
.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(--grad); color: #fff; font-size: 30px; font-weight: 800; }
.team-card b { display: block; font-size: 15px; }
.team-card .muted { font-size: 13px; }

/* ── 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; }
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; }
.kt-blk.kt-sel { outline: 2px solid var(--accent) !important; outline-offset: -2px; }
.kt-chip { position: absolute; top: 8px; right: 8px; z-index: 30; display: none; align-items: center; gap: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 12px; font-weight: 700; }
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: 6px 9px; background: var(--accent); color: #fff; }
.kt-chip .kt-grab:active { cursor: grabbing; }
.kt-chip .kt-edit { padding: 6px 10px; background: #fff; color: #111; }
.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 */
.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) {
  /* Phone: multi-column desktop choices collapse; the merchant's mobile column
     count (colsm-*) is the only grid setting that applies here. */
  .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; }
  .product-grid.masonry.cols-2, .product-grid.masonry.cols-3, .product-grid.masonry.cols-4, .product-grid.masonry.cols-5 { column-count: 2; }
  .product-grid.masonry.colsm-1 { column-count: 1; }
  .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-banner { grid-template-columns: 1fr; }
  .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: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); color: var(--fg); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); 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(--fg); color: var(--bg); padding: 11px 20px; border-radius: 999px; 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: color-mix(in srgb, var(--surface) 82%, transparent); }
[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; }
}
