/* ==========================================================================
   Storefront - themeable through CSS variables set per merchant:
   --brand (primary), --accent, --font, plus .theme-modern / .theme-classic / .theme-bold
   ========================================================================== */
:root {
  --brand: #4f46e5; --accent: #f59e0b; --font: 'Inter', system-ui, sans-serif;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-soft-2: color-mix(in srgb, var(--brand) 16%, #fff);
  --ink: #14161f; --ink-2: #4b5163; --ink-3: #848a9c; --line: #e9eaf0; --bg: #fff; --bg-2: #f7f7fa;
  --success: #12a05c; --danger: #d6385a; --warn: #c77a07;
  --r: 14px; --r-lg: 22px; --r-sm: 9px; --heading-weight: 750; --heading-tracking: -.025em; --heading-case: none;
  --shadow: 0 1px 2px rgba(20,22,31,.05), 0 12px 32px -16px rgba(20,22,31,.22);
}
.theme-classic { --r: 4px; --r-lg: 6px; --r-sm: 3px; --heading-weight: 600; --heading-tracking: -.01em; }
.theme-classic h1, .theme-classic h2, .theme-classic .display { font-family: 'Playfair Display', Georgia, serif; }
.theme-bold { --r: 0px; --r-lg: 0px; --r-sm: 0px; --heading-weight: 850; --heading-tracking: -.03em; --heading-case: uppercase; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sf { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.sf :where(a) { color: inherit; text-decoration: none; } .sf img { max-width: 100%; display: block; }
.sf h1, .sf h2, .sf h3, .sf h4 { margin: 0; line-height: 1.15; letter-spacing: var(--heading-tracking); font-weight: var(--heading-weight); text-transform: var(--heading-case); }
.sf p { margin: 0 0 1em; }
.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } .i-sm { width: 16px; height: 16px; } .i-lg { width: 24px; height: 24px; }
.wrap { width: min(1280px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; } .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 650 14.5px var(--font); cursor: pointer; transition: .18s; white-space: nowrap; }
.theme-classic .btn, .theme-bold .btn { border-radius: var(--r); } .btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-accent:hover { filter: brightness(.92); background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; } .btn-light:hover { background: var(--bg-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; } .btn-block { width: 100%; } .btn-lg { height: 54px; font-size: 16px; padding: 0 34px; } .btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sf input[type=text], .sf input[type=email], .sf input[type=tel], .sf input[type=password], .sf input[type=number], .sf input[type=search], .sf select, .sf textarea {
  width: 100%; height: 48px; padding: 0 16px; font: 500 15px var(--font); color: var(--ink); background: #fff; border: 1.5px solid #d8dae4; border-radius: var(--r-sm); outline: none; transition: .15s; }
.sf textarea { height: auto; min-height: 90px; padding: 12px 16px; } .sf select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23848a9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.sf input:focus, .sf select:focus, .sf textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.sf input[type=checkbox], .sf input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; display: flex; gap: 10px; border: 1px solid; } .alert-danger { background: #fdecef; color: #a3213f; border-color: #f6c3cf; } .alert-info { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft-2); } .alert-warn { background: #fff4de; color: #8a5500; border-color: #f2d9a3; } .alert-success { background: #e6f7ee; color: #0b6b3c; border-color: #bfe8d1; }

/* ---------- announcement + header ---------- */
.announce { background: var(--brand-ink); color: #fff; text-align: center; font-size: 13px; font-weight: 550; padding: 9px 16px; letter-spacing: .01em; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--brand-ink); white-space: nowrap; } .brand img { height: 38px; width: auto; } .brand .mark { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 16px; }
.hdr-search { flex: 1; max-width: 520px; position: relative; margin: 0 auto; } .sf .hdr-search input[type=search] { height: 46px; border-radius: 999px; padding-left: 46px; background: var(--bg-2); border-color: transparent; } .theme-classic .hdr-search input[type=search], .theme-bold .hdr-search input[type=search] { border-radius: var(--r); }
.hdr-search .i { position: absolute; left: 16px; top: 13px; color: var(--ink-3); width: 20px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; } .icon-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: .15s; } .icon-link:hover { background: var(--bg-2); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nav-bar { border-top: 1px solid var(--line); background: #fff; } .nav-bar .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-link { position: relative; padding: 13px 16px; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; } .nav-link:hover { color: var(--brand); } .nav-link.active { color: var(--brand); }
.nav-link.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.burger { display: none; }
@media (max-width: 860px) { .hdr-in { gap: 10px; height: 64px; } .hdr-search { display: none; } .burger { display: grid; } .brand { font-size: 18px; margin-right: auto; } .nav-bar { display: none; } .nav-bar.open { display: block; } .nav-bar .wrap { flex-direction: column; } }
.mobile-search { display: none; padding: 10px 20px 14px; } @media (max-width: 860px) { .mobile-search { display: block; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-ink); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; } .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-ink) 94%, #000) 0%, color-mix(in srgb, var(--brand-ink) 70%, transparent) 48%, transparent 100%); }
.hero-in { position: relative; z-index: 2; padding: 104px 0 112px; max-width: 640px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 18px; } .hero p { font-size: clamp(16px, 2vw, 19px); opacity: .88; max-width: 520px; margin-bottom: 30px; }
@media (max-width: 700px) { .hero-in { padding: 64px 0 72px; } .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-ink) 60%, transparent), color-mix(in srgb, var(--brand-ink) 92%, #000)); } }

/* ---------- sections ---------- */
.section { padding: 72px 0; } .section-alt { background: var(--bg-2); } .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); } .section-head p { color: var(--ink-3); margin: 8px 0 0; } .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); } .link-arrow:hover .i { transform: translateX(4px); } .link-arrow .i { transition: .15s; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); background: #fff; } .trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid var(--line); } .trust-item:last-child { border: 0; }
.trust-item .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; } .trust-item b { display: block; font-size: 14.5px; } .trust-item span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(2) { border-right: 0; } .trust-item { border-bottom: 1px solid var(--line); } }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cat-tile { position: relative; display: block; aspect-ratio: 4/3.2; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-soft); isolation: isolate; } .cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); z-index: -1; } .cat-tile:hover img { transform: scale(1.07); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,12,20,.72)); z-index: -1; } .cat-tile .t { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; } .cat-tile h3 { font-size: 22px; } .cat-tile .arr { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); display: grid; place-items: center; transition: .2s; } .cat-tile:hover .arr { background: var(--accent); transform: rotate(-45deg); }

/* ---------- product card & grid ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; } @media (max-width: 1100px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 760px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.p-card { position: relative; display: flex; flex-direction: column; } .p-img { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); margin-bottom: 14px; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); } .p-card:hover .p-img img { transform: scale(1.06); }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 750; letter-spacing: .02em; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); } .tag-sale { background: var(--accent); color: #fff; } .tag-out { background: var(--ink); color: #fff; } .tag-low { background: #fff4de; color: #8a5500; }
.p-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(8px); transition: .25s; } .p-card:hover .p-quick { opacity: 1; transform: none; } @media (hover: none) { .p-quick { display: none; } }
.p-cat { font-size: 12px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; } .p-name { font-weight: 650; font-size: 15.5px; line-height: 1.35; margin: 3px 0 7px; } .p-name a:hover { color: var(--brand); }
.price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; } .price b { font-size: 17px; font-weight: 750; } .price s { color: var(--ink-3); font-size: 14px; } .price .off { color: var(--success); font-size: 13px; font-weight: 700; }

/* ---------- listing ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding: 22px 0 6px; flex-wrap: wrap; } .crumbs a:hover { color: var(--brand); } .crumbs .i { width: 14px; height: 14px; }
.page-title { padding: 10px 0 28px; } .page-title h1 { font-size: clamp(30px, 4vw, 44px); } .page-title p { color: var(--ink-3); margin: 8px 0 0; max-width: 640px; }
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; padding-bottom: 80px; } @media (max-width: 960px) { .listing { grid-template-columns: 1fr; gap: 20px; } .filters { display: none; } .filters.open { display: block; } }
.filters { position: sticky; top: 100px; align-self: start; } .f-group { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); } .f-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: var(--ink-2); }
.f-list { display: flex; flex-direction: column; gap: 4px; } .f-list a { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2); } .f-list a:hover { background: var(--bg-2); } .f-list a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; } .f-list a small { color: var(--ink-3); }
.list-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; } .list-bar select { width: auto; height: 42px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 54px; } .pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 50%; font-weight: 650; border: 1.5px solid transparent; } .pager a { border-color: var(--line); } .pager a:hover { border-color: var(--brand); color: var(--brand); } .pager span.cur { background: var(--brand); color: #fff; }
.empty { text-align: center; padding: 70px 20px; } .empty h2 { margin: 14px 0 8px; font-size: 24px; } .empty .art { width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; padding: 14px 0 70px; } @media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 26px; } }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-self: start; position: sticky; top: 100px; } @media (max-width: 900px) { .gallery { grid-template-columns: 1fr; position: static; } .thumbs { flex-direction: row !important; order: 2; } }
.thumbs { display: flex; flex-direction: column; gap: 12px; } .thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--bg-2); cursor: pointer; aspect-ratio: 1; width: 84px; } .thumbs button.on { border-color: var(--brand); } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); aspect-ratio: 1; } .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 14px; } .pd-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; } .pd-price b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; } .pd-price s { font-size: 19px; color: var(--ink-3); } .pd-price .off { background: #e6f7ee; color: var(--success); font-weight: 750; font-size: 13px; padding: 4px 11px; border-radius: 99px; }
.tax-note { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.opt-label { font-weight: 700; font-size: 13.5px; margin: 20px 0 10px; display: flex; gap: 8px; } .opt-label span { color: var(--ink-3); font-weight: 500; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; } .pill-opt { position: relative; } .pill-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; } .pill-opt span { display: inline-flex; min-width: 54px; height: 46px; padding: 0 18px; align-items: center; justify-content: center; border: 1.5px solid #d8dae4; border-radius: var(--r-sm); font-weight: 650; font-size: 14.5px; transition: .15s; } .pill-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 1px var(--brand); } .pill-opt input:disabled + span { opacity: .4; text-decoration: line-through; } .pill-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.buy-row { display: flex; gap: 14px; margin: 28px 0 22px; } .qty { display: inline-flex; align-items: center; border: 1.5px solid #d8dae4; border-radius: 999px; height: 54px; } .theme-classic .qty, .theme-bold .qty { border-radius: var(--r); } .qty button { width: 46px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-2); } .qty button:hover { color: var(--brand); } .qty input { width: 44px; height: 100% !important; border: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; background: none !important; font-weight: 700 !important; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-top: 4px; } .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); } .dot.low { background: #e08a0b; } .dot.out { background: var(--danger); }
.assure { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 22px; } .assure div { display: flex; gap: 12px; font-size: 14px; align-items: center; color: var(--ink-2); } .assure .i { color: var(--brand); }
.desc { padding: 40px 0; border-top: 1px solid var(--line); max-width: 820px; } .desc h2 { font-size: 22px; margin-bottom: 16px; } .rich { color: var(--ink-2); } .rich h1, .rich h2, .rich h3 { color: var(--ink); margin: 1.3em 0 .5em; font-size: 20px; } .rich ul, .rich ol { padding-left: 22px; } .rich a { color: var(--brand); text-decoration: underline; } .rich table { border-collapse: collapse; } .rich td, .rich th { border: 1px solid var(--line); padding: 8px 12px; }
.sticky-buy { display: none; } @media (max-width: 900px) { .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); gap: 14px; align-items: center; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.18); } .sticky-buy .price b { font-size: 20px; } }

/* ---------- cart & checkout ---------- */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding: 20px 0 90px; align-items: start; } @media (max-width: 960px) { .cart-page { grid-template-columns: 1fr; gap: 28px; } }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; } .cart-line:first-child { padding-top: 0; } .cart-line img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--r); background: var(--bg-2); }
.cart-line .nm { font-weight: 650; font-size: 16px; } .cart-line .meta { color: var(--ink-3); font-size: 13.5px; margin: 3px 0 10px; } .cart-line .qty { height: 40px; } .cart-line .qty button { width: 36px; } .cart-line .qty input { width: 38px; }
.rm-link { background: none; border: 0; color: var(--ink-3); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; margin-left: 12px; } .rm-link:hover { color: var(--danger); }
.summary { background: var(--bg-2); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px; } .summary h3 { font-size: 20px; margin-bottom: 18px; } .sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; } .sum-row.total { border-top: 1.5px solid var(--ink); margin-top: 10px; padding-top: 16px; font-size: 20px; font-weight: 800; } .sum-row .m { color: var(--ink-3); } .sum-row.disc { color: var(--success); font-weight: 600; }
.coupon { display: flex; gap: 8px; margin: 18px 0; } .coupon input { text-transform: uppercase; height: 46px !important; } .coupon .btn { height: 46px; padding: 0 20px; }
.chk-sec { padding: 30px 0; border-bottom: 1px solid var(--line); } .chk-sec:first-child { padding-top: 0; } .chk-sec h2 { font-size: 21px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; } .chk-sec h2 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.opt-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid #d8dae4; border-radius: var(--r); cursor: pointer; transition: .15s; margin-bottom: 10px; } .opt-card:hover { border-color: var(--ink-3); } .opt-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); } .opt-card b { display: block; font-size: 15px; } .opt-card span.s { font-size: 13px; color: var(--ink-3); } .opt-card .amt { margin-left: auto; font-weight: 750; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; } .mini-line .im { position: relative; } .mini-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; } .mini-line .q { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* ---------- account / confirmation ---------- */
.narrow { width: min(1020px, 100% - 40px); margin: 0 auto; } .auth-box { width: min(460px, 100%); margin: 60px auto 90px; padding: 38px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); } .auth-box h1 { font-size: 30px; margin-bottom: 6px; }
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 20px 0 90px; } @media (max-width: 860px) { .acct { grid-template-columns: 1fr; gap: 24px; } }
.acct-nav { display: flex; flex-direction: column; gap: 4px; } .acct-nav a { padding: 11px 16px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); display: flex; gap: 10px; align-items: center; } .acct-nav a:hover { background: var(--bg-2); } .acct-nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.o-card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 14px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; transition: .15s; } .o-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; } .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; } .status-ok { background: #e6f7ee; color: #0b7a44; } .status-warn { background: #fff4de; color: #9a6200; } .status-info { background: #e8f0ff; color: #2459c7; } .status-bad { background: #fdecef; color: #b02446; } .status-muted { background: var(--bg-2); color: var(--ink-2); }
.track { display: flex; margin: 30px 0 10px; } .track .s { flex: 1; text-align: center; position: relative; font-size: 13px; font-weight: 600; color: var(--ink-3); } .track .s .d { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; position: relative; z-index: 1; color: var(--ink-3); } .track .s::after { content: ""; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: var(--line); } .track .s:last-child::after { display: none; } .track .s.done .d { background: var(--brand); border-color: var(--brand); color: #fff; } .track .s.done::after { background: var(--brand); } .track .s.done, .track .s.cur { color: var(--ink); } .track .s.cur .d { border-color: var(--brand); color: var(--brand); background: #fff; box-shadow: 0 0 0 5px var(--brand-soft-2); }
.success-hero { text-align: center; padding: 50px 0 20px; } .success-hero .ok { width: 84px; height: 84px; border-radius: 50%; background: #e6f7ee; color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); } @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; } .box h3 { font-size: 16px; margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 8px; border-bottom: 1px solid var(--line); } .tbl td { padding: 14px 8px; border-bottom: 1px solid var(--line); } .tbl .r { text-align: right; }

/* ---------- footer ---------- */
.foot { background: #0f1117; color: #b6bac8; padding: 72px 0 0; margin-top: 40px; } .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 54px; } @media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } } @media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; } .foot a { display: block; padding: 5px 0; color: #b6bac8; font-size: 14.5px; } .foot a:hover { color: #fff; } .foot .brand { color: #fff; margin-bottom: 16px; } .foot p { font-size: 14.5px; max-width: 340px; }
.foot .contact div { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14.5px; } .foot .contact .i { color: var(--accent); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 20px; } .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); padding: 0; } .social a:hover { background: var(--accent); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #8a8fa3; } .foot-bottom a { display: inline; color: #b6bac8; }
.wa { position: fixed; right: 20px; bottom: 22px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(37,211,102,.6); } @media (max-width: 900px) { .wa { bottom: 90px; } }
.toasts { position: fixed; z-index: 100; top: 90px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); } .toast { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: var(--r); box-shadow: 0 20px 50px -16px rgba(0,0,0,.3); font-size: 14.5px; animation: tin .3s cubic-bezier(.2,.9,.3,1.2); } .toast.err { border-left-color: var(--danger); } .toast .i { margin-top: 2px; color: var(--success); } .toast.err .i { color: var(--danger); } .toast .x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 0; } @keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .section { padding: 48px 0; } .cart-line { grid-template-columns: 80px 1fr; } .cart-line img { width: 80px; height: 80px; } .cart-line > :last-child { grid-column: 1 / -1; text-align: left; } .track .s { font-size: 11px; } }
@media print { .announce, .hdr, .nav-bar, .foot, .wa, .toasts, .no-print { display: none !important; } }

/* product page: extended information */
.quick-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; } .quick-facts span { font-size: 12.5px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); } .quick-facts .warn { color: #b45309; border-color: #f3d19e; background: #fff7ea; }
.pd-more { padding: 30px 0; } .pd-more h2 { font-size: 20px; }
.spec-grid { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; margin: 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; } .spec-grid dt, .spec-grid dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); } .spec-grid dt { color: var(--ink-3); background: var(--bg-alt, rgba(0,0,0,.02)); } .spec-grid dt:nth-last-of-type(1), .spec-grid dd:last-of-type { border-bottom: 0; } .spec-grid a { color: var(--brand); text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; } .tag-chip { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--bg-alt, rgba(0,0,0,.04)); color: var(--ink-2); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; } .info-list li { display: flex; gap: 14px; align-items: flex-start; } .info-list li > .i { color: var(--brand); margin-top: 2px; } .info-list b { display: block; font-size: 14.5px; margin-bottom: 2px; } .info-list span { font-size: 14px; color: var(--ink-2); } .info-list a { color: var(--brand); text-decoration: underline; }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr 1fr; } }

/* ===== templates (layout variants). "standard" = the base styles above ===== */
/* boutique: centred brand header, airy editorial homepage, 3-up grid, centred hero, thumbs under the image */
.tpl-boutique .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; height: auto; padding: 18px 0; gap: 16px; }
.tpl-boutique .hdr-in .brand { grid-column: 2; grid-row: 1; justify-self: center; font-size: 1.15em; }
.tpl-boutique .hdr-in .hdr-search { grid-column: 1; grid-row: 1; margin: 0; max-width: 300px; }
.tpl-boutique .hdr-in .hdr-actions { grid-column: 3; grid-row: 1; justify-self: end; }
.tpl-boutique .nav-bar .wrap { justify-content: center; }
.tpl-boutique .hero::after { background: color-mix(in srgb, var(--brand-ink) 62%, transparent); }
.tpl-boutique .hero-in { max-width: 760px; margin: 0 auto; text-align: center; padding: 130px 0 140px; }
.tpl-boutique .hero p { margin-left: auto; margin-right: auto; }
.tpl-boutique .hero .row { justify-content: center; }
.tpl-boutique .section { padding-top: 84px; padding-bottom: 84px; }
.tpl-boutique .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 40px; }
.tpl-boutique .section-head h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.tpl-boutique .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 34px; }
.tpl-boutique .cat-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .tpl-boutique .cat-tile { aspect-ratio: 3/4; }
.tpl-boutique .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.tpl-boutique .gallery { grid-template-columns: 1fr; } .tpl-boutique .thumbs { flex-direction: row !important; order: 2; justify-content: center; }
.tpl-boutique .pd-info { text-align: left; } .tpl-boutique .pd-info h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
@media (max-width: 900px) { .tpl-boutique .hdr-in { display: flex; padding: 0; height: 64px; } .tpl-boutique .hdr-in .hdr-search { display: none; } .tpl-boutique .hdr-in .brand { margin-right: auto; } .tpl-boutique .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } .tpl-boutique .pd { gap: 26px; } .tpl-boutique .hero-in { padding: 80px 0; } .tpl-boutique .nav-bar .wrap { justify-content: flex-start; } }

/* market: dense catalogue-first layout - compact header, short hero, round category chips, 5-up grid, image-grid product page */
.tpl-market .hdr-in { height: 60px; gap: 20px; } .tpl-market .hdr-search { max-width: 640px; }
.tpl-market .nav-bar .wrap { gap: 0; } .tpl-market .nav-link { text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; font-weight: 700; }
.tpl-market .hero-in { padding: 44px 0 48px; max-width: 760px; } .tpl-market .hero h1 { font-size: clamp(28px, 4vw, 44px); } .tpl-market .hero p { margin-bottom: 20px; }
.tpl-market .hero .eyebrow { margin-bottom: 12px; }
.tpl-market .section { padding-top: 34px; padding-bottom: 34px; } .tpl-market .section-head { margin-bottom: 18px; } .tpl-market .section-head h2 { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: .04em; }
.tpl-market .trust { padding-top: 10px; padding-bottom: 10px; }
.tpl-market .cat-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.tpl-market .cat-tile { aspect-ratio: 1; border-radius: 50%; } .tpl-market .cat-tile .t { padding: 0; align-items: center; justify-content: center; text-align: center; background: color-mix(in srgb, #000 38%, transparent); } .tpl-market .cat-tile .t h3 { font-size: 14px; } .tpl-market .cat-tile .arr { display: none; }
.tpl-market .p-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
@media (max-width: 1200px) { .tpl-market .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 960px) { .tpl-market .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 700px) { .tpl-market .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl-market .pd { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-self: start; } .gallery-grid .main-img { aspect-ratio: 3/4; border-radius: var(--r-sm); } .gallery-grid .main-img.wide { grid-column: 1 / -1; aspect-ratio: 4/3; }
.tpl-market .pd-info { position: sticky; top: 100px; align-self: start; } .tpl-market .pd-info h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; }
@media (max-width: 900px) { .tpl-market .pd { grid-template-columns: 1fr; } .tpl-market .pd-info { position: static; } .tpl-market .hdr-in { height: 56px; } }

/* merchant-side picker lives in admin css; nothing here */
