/* =========================================================
   Ecommerce Blaze — storefront styles
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --s-primary: #474989;
  --s-secondary: #48487f;
  --primary: var(--s-primary);
  --primary-dark: var(--s-secondary);
  --primary-soft: #efeff8;
  --primary-ring: rgba(71, 73, 137, .28);
  --accent: #ff5b22;
  --ink: #0f1d31;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6ebf2;
  --line-strong: #d5dee9;
  --surface: #f6f8fb;
  --amber: #f5a524;
  --danger: #e11d48;
  --success: #15803d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 14px 34px -14px rgba(15, 35, 60, .2);
  --shadow-lg: 0 28px 64px -24px rgba(15, 35, 60, .3);
  --header-h: 76px;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--font-body); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg.lucide { width: 18px; height: 18px; flex: none; stroke-width: 2; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn svg.lucide { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(71, 73, 137, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-icon { height: 40px; padding: 0 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--primary); }
.icon-btn svg.lucide { width: 20px; height: 20px; }
.icon-btn.small { width: 32px; height: 32px; }
.icon-btn.small svg.lucide { width: 16px; height: 16px; }
.icon-btn.outlined { border: 1px solid var(--line-strong); background: #fff; border-radius: 50%; }
.icon-btn.outlined:hover { border-color: var(--primary); }
.link-btn { padding: 0; border: 0; background: none; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-arrow svg.lucide { transition: transform .2s var(--ease); }
.link-arrow:hover svg.lucide { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(15, 35, 60, .25); }
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; display: flex; }
.brand img { width: 180px; height: auto; }
.nav-toggle, .search-mobile { display: none; }

.search-trigger { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; min-width: 0; max-width: 340px; height: 46px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: #c4c5e2; background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.search-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-trigger kbd { display: grid; place-items: center; min-width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--muted); font: 600 12px var(--font-body); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li.mega { position: static; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-link svg.lucide { width: 16px; height: 16px; transition: transform .2s; }
.nav-link:hover, .nav-link.is-active, .has-menu.is-open > .nav-link { color: var(--primary); }
.nav-link:hover { background: var(--primary-soft); }
.has-menu.is-open > .nav-link svg.lucide { transform: rotate(180deg); }
.nav-badge { padding: 2px 7px; border-radius: 20px; background: var(--accent); color: #fff; font: 700 10px/1.4 var(--font-body); font-style: normal; letter-spacing: .02em; }
.nav-badge:empty { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.has-menu { position: relative; }
.account-trigger, .cart-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; transition: background-color .2s; }
.account-trigger:hover, .cart-trigger:hover, .has-menu.is-open > .account-trigger, .has-menu.is-open > .cart-trigger { background: var(--surface); }
.icon-circle { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); }
.icon-circle svg.lucide { width: 19px; height: 19px; }
.cart-trigger .icon-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.account-copy, .cart-copy { display: flex; flex-direction: column; line-height: 1.2; }
.account-copy strong, .cart-copy strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.account-copy small, .cart-copy small { color: var(--muted); font-size: 12px; }
.cart-badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 20px; background: var(--accent); color: #fff; font: 700 11px/1 var(--font-body); }
.cart-badge.is-empty { background: var(--ink-2); }

/* Dropdowns & mega menu */
.dropdown-menu, .mega-menu { position: absolute; top: calc(100% + 12px); left: 0; z-index: 40; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.dropdown-menu::before, .mega-menu::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; }
.has-menu.is-open > .dropdown-menu, .has-menu.is-open > .mega-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) {
  .main-nav .has-menu:hover > .dropdown-menu, .main-nav .has-menu:hover > .mega-menu,
  .main-nav .has-menu:focus-within > .dropdown-menu, .main-nav .has-menu:focus-within > .mega-menu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .has-menu:hover > .nav-link svg.lucide { transform: rotate(180deg); }
}
.dropdown-right { left: auto; right: 0; }
.menu-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.mega-menu { left: 50%; top: calc(100% - 4px); width: min(820px, 100%); display: grid; grid-template-columns: 1fr 250px; gap: 24px; padding: 24px; transform: translate(-50%, 8px); }
.has-menu.is-open > .mega-menu { transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 901px) {
  .main-nav .has-menu:hover > .mega-menu, .main-nav .has-menu:focus-within > .mega-menu { transform: translate(-50%, 0); }
}
.mega-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-cats a, .dropdown-menu .menu-group a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.mega-cats a:hover, .dropdown-menu .menu-group a:hover { background: var(--surface); }
.mega-cats a:hover strong, .dropdown-menu .menu-group a:hover strong { color: var(--primary); }
.mc-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.mega-cats strong, .menu-group strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mega-cats small, .menu-group small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.mega-feature { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); }
.mf-card { display: block; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.mf-card:hover { border-color: #c4c5e2; box-shadow: var(--shadow-md); }
.mf-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mf-body { display: block; padding: 12px 14px; }
.mf-body strong { display: block; font-size: 15px; }
.mf-body small { color: var(--muted); font-size: 13px; }
.mega-feature .link-arrow { font-size: 14px; }

.dropdown-wide { left: auto; right: 0; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropdown-wide .menu-group a > svg.lucide { width: 18px; height: 18px; color: var(--primary); margin-left: 4px; }
.dropdown-wide .menu-group + .menu-group { padding-left: 16px; border-left: 1px solid var(--line); }

.account-menu { width: 300px; }
.account-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-head strong { display: block; font-size: 15px; }
.account-head small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; font: 600 16px var(--font-head); }
.account-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-links { display: grid; gap: 2px; }
.account-links a, .account-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; }
.account-links a:hover, .account-links button:hover { background: var(--surface); color: var(--primary); }
.account-links em { margin-left: auto; padding: 1px 8px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font: 700 12px var(--font-body); font-style: normal; }
.account-links button[data-logout] { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.account-help { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.account-help:hover { color: var(--primary); }
.account-help svg.lucide { width: 15px; height: 15px; }

.mini-cart { width: 360px; }
.cart-list { display: grid; gap: 4px; }
.mini-cart .cart-list { max-height: 260px; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.cart-item:hover { background: var(--surface); }
.cart-item img { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; object-position: top; }
.ci-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ci-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.ci-info small { color: var(--muted); font-size: 12px; }
.ci-info b { font-size: 14px; }
.cart-item .icon-btn:hover { color: var(--danger); background: #fff1f3; }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cart-subtotal strong { color: var(--ink); font: 600 20px var(--font-head); }
.cart-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; text-align: center; }
.cart-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.cart-empty-icon svg.lucide { width: 28px; height: 28px; stroke-width: 1.6; }
.cart-empty h3 { margin-bottom: 6px; font-size: 18px; }
.cart-empty p { max-width: 260px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(340px, 88%); display: flex; flex-direction: column; gap: 16px; padding: 18px; overflow-y: auto; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav > * { flex-shrink: 0; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; }
.mobile-links { display: grid; gap: 2px; }
.mobile-links > a, .mobile-links summary { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; list-style: none; cursor: pointer; }
.mobile-links summary::-webkit-details-marker { display: none; }
.mobile-links summary svg.lucide:last-child { margin-left: auto; transition: transform .2s; }
.mobile-links details[open] summary svg.lucide:last-child { transform: rotate(180deg); }
.mobile-links > a:hover, .mobile-links summary:hover { background: var(--surface); }
.mobile-links svg.lucide { color: var(--muted); }
.mobile-sub { display: grid; padding: 0 0 8px 42px; }
.mobile-sub a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.mobile-sub a:hover { background: var(--surface); color: var(--primary); }
.mobile-sub small { color: var(--muted); }
.mobile-account { margin-top: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mobile-account .account-head { border-color: var(--line-strong); }
.overlay { position: fixed; inset: 0; z-index: 55; background: rgba(15, 29, 49, .42); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.overlay.is-visible { opacity: 1; visibility: visible; }

/* ---------- Modals ---------- */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(15, 29, 49, .45); }
.modal[open] { animation: modal-in .22s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-card { position: relative; background: #fff; border-radius: 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

.search-modal { width: min(660px, calc(100% - 32px)); margin-top: 9vh; }
.search-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.search-row > svg.lucide { width: 20px; height: 20px; color: var(--primary); }
.search-row input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; color: var(--ink); font: 400 17px var(--font-body); }
.search-row input::-webkit-search-cancel-button { display: none; }
.search-results { max-height: min(62vh, 520px); padding: 18px 20px 22px; overflow-y: auto; }
.sr-group + .sr-group { margin-top: 20px; }
.sr-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.result:hover, .result:focus-visible { background: var(--surface); }
.result img { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; object-position: top; }
.result-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.result > span:not(.result-icon) { flex: 1; min-width: 0; line-height: 1.35; }
.result strong { display: block; font-size: 14px; font-weight: 600; }
.result small { color: var(--muted); font-size: 12.5px; }
.result > svg.lucide:last-child { color: var(--muted); opacity: 0; transition: opacity .15s; }
.result:hover > svg.lucide:last-child { opacity: 1; }
.sr-empty { padding: 28px 0; color: var(--muted); text-align: center; }
.sr-empty svg.lucide { width: 32px; height: 32px; margin-bottom: 8px; }
.sr-empty p { color: var(--ink); font-weight: 600; }

.auth-modal { width: min(440px, calc(100% - 32px)); }
.auth-card { padding: 32px; }
.auth-logo { width: 150px; height: auto; margin-bottom: 26px; }
.auth-view { display: none; }
.auth-view.is-active { display: block; }
.kicker { display: block; margin-bottom: 6px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.auth-view h2 { margin-bottom: 8px; font-size: 26px; }
.auth-subtitle { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.auth-form input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; color: var(--ink); font: 400 14px var(--font-body); transition: border-color .2s, box-shadow .2s; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.forgot-link { display: block; margin: 16px auto; }
.auth-switch { color: var(--muted); font-size: 13px; text-align: center; }

.quick-view { width: min(1040px, calc(100% - 32px)); }
.qv-card { display: grid; grid-template-columns: 1.1fr 1fr; height: min(660px, calc(100dvh - 32px)); overflow: hidden; }
.qv-media { position: relative; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); overscroll-behavior: contain; }
.qv-media img { width: 100%; height: auto; }
.qv-hint { position: sticky; bottom: 16px; left: 0; display: flex; align-items: center; gap: 6px; width: max-content; margin: -52px auto 16px; padding: 8px 14px; border-radius: 30px; background: rgba(15, 29, 49, .85); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.qv-hint svg.lucide { width: 14px; height: 14px; }
.qv-info { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 28px; overflow-y: auto; }
.qv-info h2 { font-size: 30px; }
.qv-info .card-meta { justify-content: flex-start; padding-right: 44px; }
.qv-card .modal-close { background: #fff; box-shadow: var(--shadow-sm); }
.qv-info > p { color: var(--muted); font-size: 15px; }
.qv-price { display: flex; align-items: center; gap: 12px; }
.qv-price .price strong { font-size: 28px; }
.qv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.qv-actions .btn-primary { flex: 1; }
.qv-actions .wish-btn { position: static; width: 52px; height: 52px; border: 1px solid var(--line-strong); box-shadow: none; }
.qv-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.qv-perks li { display: flex; align-items: center; gap: 6px; }
.qv-perks svg.lucide { width: 16px; height: 16px; color: var(--success); }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(420px, 100%); display: flex; flex-direction: column; padding: 24px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-drawer-header h2 { font-size: 24px; }
.cart-drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 12px; }
.cart-drawer-body .cart-list { flex: 1; overflow-y: auto; align-content: start; }
.cart-drawer-body .cart-empty { flex: 1; justify-content: center; }
.cart-drawer-footer { display: grid; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Shared section styles ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-tight { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.light { color: #c3c5f0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-sub { max-width: 560px; margin-top: 10px; color: var(--muted); font-size: 17px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row:not(.compact) { margin: -12px 0 32px; }
.chip { height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 40px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-selected='true'] { border-color: var(--primary); background: var(--primary); color: #fff; }
.search-results .chip { height: 34px; font-size: 13px; font-weight: 500; }

/* Card primitives */
.card-media { position: relative; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; scale: 1.03; transform-origin: top center; transition: object-position 2.4s ease, transform .4s var(--ease); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card-body h3 { font-size: 20px; }
.card-body h3 button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card-body h3 button:hover { color: var(--primary); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; }
.tag.subtle { background: var(--surface); color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.rating svg.lucide { width: 15px; height: 15px; color: var(--amber); fill: var(--amber); }
.rating small { color: var(--muted); }
.price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.price strong { font: 600 20px var(--font-head); color: var(--ink); }
.price s { color: var(--muted); font-size: 14px; }
.card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14.5px; }
.card-actions { display: flex; gap: 8px; }
.card-actions.three { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.card-actions .btn { padding: 0 10px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.badge-sale { background: var(--accent); }
.badge-new { background: var(--primary); }
.badge.static { position: static; }
.wish-btn { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm); cursor: pointer; transition: color .2s, transform .2s var(--ease); }
.wish-btn:hover { color: var(--danger); transform: scale(1.06); }
.wish-btn.is-active { color: var(--danger); }
.wish-btn.is-active svg.lucide { fill: currentColor; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; color: var(--ink-2); font-size: 14px; }
.feature-list li { display: flex; align-items: center; gap: 8px; }
.feature-list svg.lucide { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #e8f7ee; color: var(--success); stroke-width: 3; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.empty-state svg.lucide { width: 32px; height: 32px; color: var(--primary); }
.empty-state h3 { font-size: 20px; }
.empty-state p { max-width: 420px; margin-bottom: 8px; }

/* Horizontal scroll rows (enabled on small screens) */
.scroll-row { scrollbar-width: none; }
.scroll-row::-webkit-scrollbar { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 112px; background: radial-gradient(900px 480px at 78% 40%, #e8e8f5 0%, rgba(232, 232, 245, 0) 70%), #f8f8fc; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; }
.hero h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.035em; }
.hero h1 span { color: var(--primary); }
.hero-text { max-width: 480px; margin-bottom: 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; color: var(--muted); font-size: 14px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .trust-copy { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.45; }
.hero-trust .trust-copy > span { display: flex; align-items: center; gap: 6px; }
.hero-trust .trust-copy small { font-size: 13px; }
.hero-trust strong { color: var(--ink); }
.hero-trust .trusted { height: 34px; padding: 0 12px; border: 1px solid #cdebd7; border-radius: 30px; background: #f0faf3; color: var(--success); font-size: 13px; font-weight: 600; }
.hero-trust .trusted svg.lucide { width: 16px; height: 16px; }
.avatars { display: flex; }
.avatars span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -9px; border: 2px solid #fff; border-radius: 50%; background: #dcdcef; color: #474989; font-size: 11px; font-weight: 700; }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: #e2c7ee; color: #6e4a7c; }
.avatars span:nth-child(3) { background: #cdebcf; color: #3f7a45; }
.avatars span:nth-child(4) { background: var(--primary); color: #fff; }
.avatars svg.lucide { width: 14px; height: 14px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg.lucide { width: 15px; height: 15px; color: var(--amber); fill: var(--amber); }
.stars .off svg.lucide { color: #dfe5ee; fill: #dfe5ee; }

.hero-visual { position: relative; height: 540px; }
.shot { position: absolute; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -20px rgba(20, 55, 95, .35); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; scale: 1.03; transform-origin: top center; }
.shot-main { z-index: 3; left: 29%; top: 7%; width: 42%; height: 82%; border-width: 7px; box-shadow: 0 34px 70px -24px rgba(20, 55, 95, .45); }
.shot-1 { z-index: 1; left: 2%; top: 20%; width: 29%; height: 58%; rotate: -7deg; opacity: .95; }
.shot-2 { z-index: 1; right: 2%; top: 20%; width: 29%; height: 58%; rotate: 7deg; opacity: .95; }
.shot-3 { z-index: 2; left: 13%; top: 14%; width: 31%; height: 66%; rotate: -3deg; }
.shot-4 { z-index: 2; right: 13%; top: 14%; width: 31%; height: 66%; rotate: 3deg; }
.float-badge { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); line-height: 1.25; animation: float 6s ease-in-out infinite; }
.float-badge strong { display: block; font-size: 14px; white-space: nowrap; }
.float-badge small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fb-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.fb-1 { top: 2%; left: 0; }
.fb-2 { top: 44%; right: -1%; animation-delay: -2s; }
.fb-2 .fb-icon { background: #fff2ec; color: var(--accent); }
.fb-3 { bottom: 2%; left: 10%; animation-delay: -4s; }
.fb-3 .fb-icon { background: #e8f7ee; color: var(--success); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Stats ---------- */
.stats-bar { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-md); }
.stats-grid li { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.stats-grid li + li { border-left: 1px solid var(--line); }
.stat-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.stat-icon svg.lucide { width: 22px; height: 22px; }
.stats-grid strong { display: block; font: 600 28px/1.1 var(--font-head); letter-spacing: -.02em; }
.stats-grid small { color: var(--muted); font-size: 14px; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.category-card:hover { border-color: #c4c5e2; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); transition: background-color .2s, color .2s; }
.category-icon svg.lucide { width: 25px; height: 25px; stroke-width: 1.8; }
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-card strong { font-size: 15px; font-weight: 600; }
.category-card small { color: var(--muted); font-size: 13px; }
.category-card.is-empty small { color: #94a3b8; }

/* ---------- Themes ---------- */
.card-grid { display: grid; gap: 28px; }
.theme-grid { grid-template-columns: repeat(3, 1fr); }
.theme-card, .store-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.theme-card:hover, .store-card:hover { border-color: #d8d9ec; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.theme-card .card-media { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.theme-card:hover .card-media img, .store-card:hover .card-media img { object-position: center 35%; }
.theme-card .card-body { flex: 1; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cta-card { align-items: center; justify-content: center; gap: 12px; padding: 40px 28px; border-style: dashed; border-color: #c6c7e3; background: linear-gradient(180deg, #f7f7fc, #fff); text-align: center; }
.cta-card:hover { transform: none; }
.cta-card h3 { font-size: 22px; }
.cta-card p { max-width: 280px; margin-bottom: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Ready stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.store-card .card-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.store-card .card-body { flex: 1; gap: 12px; padding: 24px 26px 26px; }
.store-card h3 { font-size: 22px; }
.store-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.store-foot .price strong { font-size: 24px; }

/* ---------- Shared product card (shop, related, best sellers) ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; transition: opacity .2s; }
.p-grid.cols-4, .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.p-grid.is-loading { opacity: .5; pointer-events: none; }
.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.p-card:hover { border-color: #d8d9ec; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.p-media { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-img { display: block; height: 100%; }
.p-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; scale: 1.03; transform-origin: top center; transition: transform .45s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-type { padding: 4px 10px; border-radius: 20px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.p-badges .badge { font-size: 11.5px; }
.p-hover { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease); }
.p-hover .btn { flex: 1; height: 38px; padding: 0 10px; box-shadow: var(--shadow-md); color: var(--ink); }
.p-hover .btn:hover { color: var(--primary); }
.p-card:hover .p-hover, .p-card:focus-within .p-hover { opacity: 1; transform: none; }
.p-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.p-cat { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.p-title { font-size: 18px; }
.p-title a, .card-body h3 a { color: inherit; text-decoration: none; }
.p-title a:hover, .card-body h3 a:hover { color: var(--primary); }
.p-summary { display: none; color: var(--muted); font-size: 14.5px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.p-foot .price { flex-wrap: wrap; gap: 0 6px; }
.p-foot .price strong { font-size: 19px; }
.p-foot .price s { font-size: 13px; }
.p-foot .btn-icon span { display: none; }
.p-foot .btn-icon { width: 42px; padding: 0; }
.card-media > a { display: block; height: 100%; }
.price .off { color: var(--success); font-size: 13px; font-weight: 700; font-style: normal; }
.price.small strong { font-size: 16px; }
@media (hover: none) {
  .p-hover { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; }
  .p-hover .btn { flex: none; width: 38px; padding: 0; }
  .p-hover .btn span { display: none; }
}

/* ---------- Shared UI primitives ---------- */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d3150; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); color: var(--primary); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after { border-color: rgba(71, 73, 137, .25); border-top-color: var(--primary); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2.5px solid #d6e6f8; border-top-color: var(--primary); border-radius: 50%; animation: spin .75s linear infinite; }
.spinner.small { width: 14px; height: 14px; border-width: 2px; }
.spinner.large { width: 52px; height: 52px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 16px; color: var(--muted); font-size: 15px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg.lucide { width: 14px; height: 14px; color: #a3b1c2; }
.breadcrumb [aria-current] { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert svg.lucide { margin-top: 1px; }
.alert-success { border-color: #bfe5cc; background: #f0faf3; color: #166534; }
.alert-error { border-color: #f6c6cf; background: #fff4f6; color: #b4153a; }
.alert-warning { border-color: #f6dfae; background: #fffaf0; color: #92580a; }
.alert-info { border-color: #d4d5ea; background: var(--primary-soft); color: #3a3c74; }

.empty-block { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.empty-block.compact { grid-column: 1 / -1; max-width: none; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 10px #f6f6fb; }
.empty-icon svg.lucide { width: 38px; height: 38px; stroke-width: 1.6; }
.empty-title { font-size: clamp(24px, 3vw, 30px); }
.empty-block p { color: var(--muted); font-size: 16px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

.qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.qty-btn { display: grid; place-items: center; width: 40px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.qty-btn:hover:not(:disabled) { color: var(--primary); }
.qty-btn:disabled { color: #c3cdd9; cursor: not-allowed; }
.qty-btn svg.lucide { width: 16px; height: 16px; }
.qty input { width: 40px; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 600 15px var(--font-body); text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.totals { display: grid; gap: 10px; margin: 0; font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .is-saving dd { color: var(--success); }
.totals .code { padding: 1px 7px; border-radius: 6px; background: #e8f7ee; color: var(--success); font-size: 12px; font-weight: 700; }
.totals .grand { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.totals .grand dt { color: var(--ink); font-weight: 600; }
.totals .grand dd { font: 600 26px/1 var(--font-head); }

.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; font: 500 14px var(--font-body); text-transform: uppercase; }
.coupon-row input::placeholder { text-transform: none; }
.coupon-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.coupon-row input[aria-invalid='true'] { border-color: var(--danger); }
.coupon-applied { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed #9fd8b3; border-radius: 12px; background: #f0faf3; color: var(--success); }
.coupon-applied span { flex: 1; line-height: 1.35; }
.coupon-applied strong { display: block; color: #166534; letter-spacing: .04em; }
.coupon-applied small { color: #3f7a52; font-size: 13px; }
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--danger); font-size: 13px; }
.field-error[hidden] { display: none; }
.field-error svg.lucide { width: 14px; height: 14px; }

.summary-lines { display: grid; gap: 14px; }
.summary-lines li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.sl-thumb { position: relative; }
.sl-thumb img { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; object-position: top; }
.sl-thumb b { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; background: var(--ink-2); color: #fff; font-size: 11px; }
.sl-info { min-width: 0; line-height: 1.35; }
.sl-info strong { display: block; overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.sl-info small { color: var(--muted); font-size: 12.5px; }
.sl-price { font-weight: 600; font-size: 14.5px; }

.check, .radio { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.check input, .radio input, .terms input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box, .radio-dot { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid #b9c6d6; border-radius: 6px; background: #fff; color: #fff; transition: all .15s; }
.radio-dot { border-radius: 50%; }
.check-box svg.lucide { width: 13px; height: 13px; stroke-width: 3.2; opacity: 0; }
.check input:checked + .check-box, .terms input:checked + .check-box { border-color: var(--primary); background: var(--primary); }
.check input:checked + .check-box svg.lucide, .terms input:checked + .check-box svg.lucide { opacity: 1; }
.radio input:checked + .radio-dot { border: 6px solid var(--primary); }
.check input:focus-visible + .check-box, .radio input:focus-visible + .radio-dot, .terms input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--primary-ring); }
.check-label { display: inline-flex; align-items: center; gap: 6px; flex: 1; }
.check em, .radio em { color: var(--muted); font-size: 12.5px; font-style: normal; }
.check.is-disabled { opacity: .5; cursor: not-allowed; }
.check:hover .check-box, .radio:hover .radio-dot { border-color: var(--primary); }

/* ---------- Promo ---------- */
.promo-section { padding-top: 0; padding-bottom: 0; margin: 96px 0; }
.promo { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 360px; overflow: hidden; border-radius: 28px; background: radial-gradient(600px 360px at 85% 30%, rgba(71, 73, 137, .45), transparent 70%), var(--ink); color: #fff; }
.promo-copy { position: relative; z-index: 1; padding: 64px; }
.promo-copy h2 { margin-bottom: 14px; color: #fff; font-size: clamp(30px, 3.6vw, 46px); }
.promo-copy p:not(.eyebrow) { max-width: 460px; margin-bottom: 30px; color: #c3d1e2; font-size: 17px; }
.promo-media { position: relative; align-self: stretch; }
.promo-media img { position: absolute; left: 12%; top: 48px; width: 64%; height: auto; border: 6px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); rotate: -5deg; }

/* ---------- Why choose us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, border-color .25s; }
.feature-card:hover { border-color: #d8d9ec; box-shadow: var(--shadow-md); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.feature-icon svg.lucide { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; font-size: 19px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 0 8px; text-align: center; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border: 1px solid #d4d5ea; border-radius: 20px; background: #fff; color: var(--primary); font: 600 22px var(--font-head); box-shadow: var(--shadow-sm); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 34px; left: calc(50% + 50px); right: calc(-50% + 50px); border-top: 2px dashed #cbcce4; }
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { max-width: 240px; margin: 0 auto; color: var(--muted); font-size: 15px; }

/* ---------- Testimonials ---------- */
.carousel-nav { display: flex; gap: 8px; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; }
.testimonial { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-snap-align: start; }
.quote-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.quote-icon svg.lucide { fill: currentColor; stroke-width: 0; }
.testimonial blockquote { flex: 1; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.3; }
.testimonial figcaption strong { display: block; font-size: 15px; }
.testimonial figcaption small { color: var(--muted); font-size: 13px; }
.avatar.a1 { background: var(--accent); }
.avatar.a2 { background: #16a34a; }
.avatar.a3 { background: #7c3aed; }

/* ---------- Platform trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.trust-grid li { display: flex; align-items: center; gap: 12px; padding: 22px 18px; line-height: 1.35; }
.trust-grid small { display: block; margin-top: 2px; }
.trust-grid li + li { border-left: 1px solid var(--line); }
.trust-grid svg.lucide { width: 26px; height: 26px; color: var(--primary); stroke-width: 1.7; }
.trust-grid strong { display: block; font-size: 14px; line-height: 1.3; }
.trust-grid small { color: var(--muted); font-size: 12.5px; }

/* ---------- Partners ---------- */
.partners-title { margin-bottom: 28px; color: var(--muted); font: 600 14px var(--font-body); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.partner-row img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partner-row a:hover img { filter: none; opacity: 1; }

/* Logo sliders (integrations, technologies) */
.logo-section .section-head { margin-bottom: 32px; }
.marquee { --marquee-gap: 16px; display: flex; gap: var(--marquee-gap); overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; flex-shrink: 0; gap: var(--marquee-gap); min-width: 100%; animation: marquee var(--marquee-duration, 50s) linear infinite; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--marquee-gap))); } }
.logo-chip { display: flex; align-items: center; gap: 12px; flex: none; height: 68px; padding: 0 22px 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.logo-chip:hover { border-color: #d4d5ea; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-chip img { width: 40px; height: 40px; object-fit: contain; }
.logo-chip span { color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: thin; padding-inline: 16px; }
  .marquee-track { animation: none; min-width: 0; }
  .marquee-track[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
  .marquee { --marquee-gap: 10px; }
  .marquee + .marquee { margin-top: 10px; }
  .logo-chip { height: 56px; gap: 10px; padding: 0 16px 0 10px; border-radius: 14px; }
  .logo-chip img { width: 32px; height: 32px; }
  .logo-chip span { font-size: 14px; }
}

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 52px 56px; border: 1px solid #d9daee; border-radius: 28px; background: var(--primary-soft); }
.newsletter-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.newsletter h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 36px); }
.newsletter p { color: var(--muted); font-size: 16px; }
.newsletter-row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.newsletter-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(71, 73, 137, .12); }
.newsletter-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; background: none; color: var(--ink); font: 400 15px var(--font-body); }
.newsletter-row input[aria-invalid='true'] { color: var(--danger); }
.form-msg { min-height: 22px; margin-top: 10px; font-size: 14px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 96px 0; background: var(--primary); color: #fff; text-align: center; }
.final-cta h2 { margin-bottom: 14px; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.final-cta p { max-width: 640px; margin: 0 auto 34px; color: #e1e2f5; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-2); transition: all .2s; }
.socials a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.site-footer h3 { margin-bottom: 18px; font-size: 16px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s; }
.site-footer nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-secure { display: flex; align-items: center; gap: 6px; }
.footer-secure svg.lucide { color: var(--success); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1440px) {
  .cart-copy { display: none; }
  .nav-link { padding: 0 12px; }
}

@media (max-width: 1200px) {
  .account-copy, .cart-copy { display: none; }
  .search-trigger { max-width: 260px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid li:nth-child(4) { border-left: 0; }
  .trust-grid li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .search-trigger { flex: 0 0 46px; width: 46px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .nav-list { gap: 0; }
  .nav-link { padding: 0 8px; }
  .nav-badge { display: none; }
  .section { padding: 80px 0; }
  .promo-section { margin: 80px 0; }
  .hero-visual { height: 460px; }
  .theme-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid li:nth-child(3) { border-left: 0; }
  .stats-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .testimonial-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .promo-copy { padding: 48px; }
  .newsletter { padding: 44px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 40px); }
  .nav-toggle, .search-mobile { display: inline-grid; }
  .main-nav, .search-trigger { display: none; }
  .header-inner { gap: 6px; }
  .brand { margin-right: auto; }
  .brand img { width: 150px; }
  .header-actions { gap: 2px; }
  .account-trigger, .cart-trigger { padding: 2px; }
  .icon-circle { width: 40px; height: 40px; border: 0; background: none; }
  .icon-circle svg.lucide { width: 22px; height: 22px; }
  .cart-trigger .icon-circle { background: none; color: var(--ink-2); }
  .cart-badge { top: 0; right: -2px; }
  .mini-cart { display: none; }
  .account-menu { position: fixed; top: calc(var(--header-h) + 4px); right: 12px; width: min(320px, calc(100vw - 24px)); }

  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { width: 100%; max-width: 620px; height: 440px; margin: 0 auto; }

  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .section-head.center { align-items: center; }
  .store-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo-media { height: 220px; }
  .promo-media img { left: 50%; top: 0; width: 56%; translate: -50% 0; }
  .newsletter { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .newsletter-icon { margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .qv-card { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; }
  .qv-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .qv-info { padding: 24px 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .promo-section { margin: 64px 0; }
  .section-sub { font-size: 15.5px; }
  .brand img { width: 132px; }
  .icon-btn, .account-trigger .icon-circle, .cart-trigger .icon-circle { width: 38px; height: 38px; }

  .hero { padding: 36px 0 84px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 42px); }
  .hero-text { font-size: 16px; margin-bottom: 26px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 14px; margin-top: 26px; font-size: 13px; }
  .hero-trust .trusted { display: none; }
  .hero-visual { height: 360px; }
  .shot-1, .shot-2 { display: none; }
  .shot-main { left: 25%; width: 50%; top: 8%; height: 80%; border-width: 5px; }
  .shot-3 { left: 3%; width: 38%; top: 18%; height: 62%; rotate: -6deg; border-width: 4px; }
  .shot-4 { right: 3%; width: 38%; top: 18%; height: 62%; rotate: 6deg; border-width: 4px; }
  .float-badge { gap: 8px; padding: 7px 12px 7px 7px; border-radius: 12px; }
  .float-badge small { display: none; }
  .float-badge strong { font-size: 12.5px; }
  .fb-icon { width: 28px; height: 28px; border-radius: 8px; }
  .fb-icon svg.lucide { width: 15px; height: 15px; }
  .fb-1 { left: 0; top: 0; }
  .fb-2 { right: 0; top: auto; bottom: 14%; }
  .fb-3 { display: none; }

  .stats-bar { margin-top: -48px; }
  .stats-grid li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
  .stat-icon svg.lucide { width: 19px; height: 19px; }
  .stats-grid strong { font-size: 24px; }
  .stats-grid small { font-size: 13px; }

  /* Horizontal scroll rows on mobile */
  .scroll-row { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; gap: 14px; }
  .scroll-row > * { scroll-snap-align: start; }
  .category-grid { grid-auto-columns: 38%; }
  .category-card { padding: 20px 10px 18px; }
  .category-icon { width: 50px; height: 50px; }
  .product-grid { grid-auto-columns: 72%; }
  .p-card:hover, .theme-card:hover, .store-card:hover { transform: none; }
  .testimonial-track { grid-auto-columns: 86%; }
  .carousel-nav { display: none; }

  .chip-row:not(.compact) { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 24px; padding: 0 16px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .theme-grid { grid-auto-columns: 84%; }
  .card-actions.three .btn { padding: 0 6px; font-size: 12.5px; }
  .card-body { padding: 18px; }
  .toast { top: calc(var(--header-h) + 12px); bottom: auto; }
  .toast.is-visible { transform: translate(-50%, 0); }
  .store-card .card-body { padding: 20px; }
  .feature-list { grid-template-columns: 1fr; }
  .store-foot { flex-direction: column; align-items: stretch; }
  .store-foot .card-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .feature-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 22px; }
  .feature-card .feature-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 28px; text-align: left; }
  .step-num { grid-row: span 2; width: 56px; height: 56px; margin: 0; border-radius: 16px; font-size: 19px; }
  .step p { margin: 0; max-width: none; }
  .step:not(:last-child)::after { display: block; top: 60px; bottom: 4px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed #cbcce4; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid li { padding: 18px 14px; }
  .trust-grid li:nth-child(odd) { border-left: 0; }
  .trust-grid li:nth-child(4) { border-left: 1px solid var(--line); }
  .trust-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trust-grid svg.lucide { width: 22px; height: 22px; }

  .promo { border-radius: 22px; }
  .promo-copy { padding: 36px 24px 8px; text-align: center; }
  .promo-copy .eyebrow { justify-content: center; }
  .promo-media { height: 190px; }
  .promo-media img { width: 70%; }
  .newsletter { padding: 32px 20px; border-radius: 22px; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { width: 100%; }
  .final-cta { padding: 72px 0; }
  .final-cta p { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .search-modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .search-modal .modal-card { height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .search-results { flex: 1; max-height: none; }
  .sr-cats { grid-template-columns: 1fr; }
  .quick-view { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .qv-card { height: 100dvh; border-radius: 0; }
  .qv-info h2 { font-size: 24px; }
  .auth-card { padding: 26px 22px; }
}

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