/* 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; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
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; }

/* 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; font-size: 20px; }
.cart-count { position: absolute; top: -8px; right: -10px; 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); }

/* 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; }
.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 h3 { font-size: 17px; }
.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(210px, 1fr)); gap: 16px; padding: 20px 0 60px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-img { aspect-ratio: 1; background: #f0eef8; display: grid; place-items: center; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.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: 14px; }
.pc-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pc-price { font-family: var(--head); font-weight: 700; color: var(--accent); }
.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 */
.cart-root { padding: 20px 0; max-width: 640px; }
.cart-line { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.cl-img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); background: var(--bg); }
.cl-noimg { display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--accent-2); }
.cart-line .cl-name { font-weight: 600; flex: 1; }
.cl-unit { font-size: 12px; font-weight: 400; margin-top: 3px; }
.cart-line .cl-price { font-family: var(--head); font-weight: 700; color: var(--accent); }
.cart-line .qty-row { margin: 0; }
.cl-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.cl-remove:hover { color: var(--red); }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 8px; max-width: 640px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.sum-row.total { color: var(--fg); font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.checkout { max-width: 640px; margin: 24px 0 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checkout h2 { font-size: 20px; }
.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 rgba(109,40,217,.12); }
.checkout .btn { width: 100%; }
.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 */
.store-sec { padding: 20px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; margin: 0; }
.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); }
.hero-slide:not(.no-img)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .12)); }
.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; }
.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; } }

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

@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; }
}
