/* SMELOC storefront — matches the SMELOC app: Urbanist, brand blue on white,
   soft rounded cards. Every colour, size and timing is a token below. */
:root {
    --bg: #FFFFFF;
    --bg-soft: #F3F7FD;
    --card: #FFFFFF;
    --ink: #0F1B2D;
    --ink-muted: #5A6778;
    --accent: #145DBF;
    --accent-deep: #0E4A9C;
    --accent-tint: #E8F0FC;
    --on-accent: #FFFFFF;
    --line: #E3E9F1;
    --green: #1E9E62;
    --green-tint: #E6F5EE;
    --scrim: rgba(15, 27, 45, .45);

    --font: "Urbanist", "Segoe UI", system-ui, -apple-system, sans-serif;

    --container: 1280px;
    --gutter: 40px;
    --gap: 20px;
    --section: 72px;

    --r-card: 20px;
    --r-control: 14px;
    --r-pill: 999px;

    --fs-h1: 44px;
    --fs-h2: 28px;
    --fs-h3: 18px;
    --fs-body: 15px;
    --fs-small: 12.5px;

    --header-h: 72px;
    --nav-h: 48px;

    --t-fast: 150ms;
    --t-med: 280ms;
    --ease: cubic-bezier(.2, .7, .3, 1);
    --shadow: 0 10px 30px rgba(15, 27, 45, .08);
}
@media (max-width: 1023px) { :root { --gutter: 24px; --fs-h1: 36px; } }
@media (max-width: 639px) { :root { --gutter: 16px; --gap: 12px; --section: 48px; --fs-h1: 30px; --fs-h2: 24px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-control); font-weight: 600; }
.skip:focus { top: 12px; }

/* Announcement */
.announce { background: var(--accent); color: var(--on-accent); text-align: center; padding: 9px var(--gutter); font-size: 13px; font-weight: 600; }
.announce p { margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 4px; }
.hdr-right { justify-content: flex-end; }
.hdr-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink); }
.hdr-link:hover { background: var(--bg-soft); color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.wordmark img { width: 38px; height: 38px; }
.wordmark:hover { color: var(--ink); }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.count-badge[hidden] { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }

.primary-nav { height: var(--nav-h); border-top: 1px solid var(--line); }
.primary-nav > ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--container); height: 100%; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.primary-nav > ul::-webkit-scrollbar { display: none; }
.primary-nav > ul > li > a, .primary-nav > ul > li > button { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li > button:hover, .has-mega.open > button { background: var(--bg-soft); color: var(--ink); }
.primary-nav .is-accent { color: var(--accent); }
.primary-nav .is-accent:hover { color: var(--accent-deep); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 32px 0; opacity: 0; visibility: hidden; transition: opacity 120ms var(--ease), visibility 120ms; }
.has-mega.open .mega { opacity: 1; visibility: visible; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.mega h4 { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; font-size: 14px; padding: 5px 0; }
.mega li ul { padding-left: 12px; }

/* Drawers */
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 200ms; z-index: 60; }
.scrim.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(400px, 92vw); background: var(--bg); z-index: 70; display: flex; flex-direction: column; transition: transform var(--t-med) var(--ease); overflow-y: auto; }
.drawer.left { left: 0; transform: translateX(-100%); border-radius: 0 var(--r-card) var(--r-card) 0; }
.drawer.right { right: 0; transform: translateX(100%); border-radius: var(--r-card) 0 0 var(--r-card); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: var(--fs-h3); }
.drawer-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); font-size: 20px; }
.drawer-body { padding: 8px 20px 20px; flex: 1; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-muted); }

.acc { border-bottom: 1px solid var(--line); }
.acc > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 18px; color: var(--accent); }
.acc[open] > summary::after { content: "−"; }
.acc .acc-body { padding: 0 0 16px; color: var(--ink-muted); line-height: 1.6; }
.acc .acc-body ul { list-style: none; margin: 0; padding: 0; }
.acc .acc-body li a { display: block; padding: 8px 0; color: var(--ink); }
.acc .acc-body li ul { padding-left: 12px; }

.saved-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.saved-item img, .saved-item .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--accent-tint); }
.saved-item .t { font-weight: 600; font-size: 14px; }
.saved-item .p { font-size: 14px; color: var(--ink-muted); }
.saved-item button { font-size: var(--fs-small); color: var(--accent); font-weight: 600; }
.saved-empty { padding: 32px 0; color: var(--ink-muted); }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-control); border: 1px solid var(--accent); background: transparent; color: var(--accent); font-weight: 700; font-size: 15px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.btn:hover { background: var(--accent-tint); color: var(--accent-deep); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.btn-green:hover { background: #17864F; border-color: #17864F; color: var(--on-accent); }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.text-link::after { content: "→"; }
.text-link:hover { color: var(--accent-deep); }
.field { display: block; width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--card); font: inherit; font-size: var(--fs-body); color: var(--ink); padding: 0 16px; }
.field::placeholder { color: var(--ink-muted); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
textarea.field { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.field-error { color: #C53030; font-size: var(--fs-small); margin-top: 6px; }

/* Hero */
.hero { background: var(--bg-soft); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.08; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 17px; color: var(--ink-muted); margin: 16px 0 24px; max-width: 520px; }
.hero-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-control); padding: 6px; box-shadow: var(--shadow); }
.hero-search .field { border: 0; box-shadow: none; height: 44px; }
.hero-search .btn { min-height: 44px; }
.hero-markets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ink-muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.hero-visual .photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, var(--accent-tint), #D6E4F8); display: grid; place-items: center; }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .photo img.mark { width: 44%; height: auto; object-fit: contain; }
.hero-visual .float { position: absolute; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.hero-visual .float small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; }
.hero-visual .float.a { left: -24px; bottom: 56px; }
.hero-visual .float.b { right: -16px; top: 40px; }
.hero-visual .float .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.hero-visual .float .dot.g { background: var(--green-tint); color: var(--green); }
@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
    .hero-visual { justify-self: start; max-width: 400px; }
    .hero-visual .float.a { left: 8px; } .hero-visual .float.b { right: 8px; }
}
@media (max-width: 639px) { .hero-search { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* Sections */
.section { padding-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head h2, .h2 { font-size: var(--fs-h2); line-height: 1.15; }
.section-head p { margin: 4px 0 0; color: var(--ink-muted); }

/* Category chips */
.cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 9px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.cat:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.cat .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.cat small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; line-height: 1.2; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.how-step { background: var(--bg-soft); border-radius: var(--r-card); padding: 24px; }
.how-step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.how-step h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--ink-muted); }
@media (max-width: 767px) { .how { grid-template-columns: 1fr; } }

/* Sell banner */
.sell { margin-top: var(--section); background: var(--accent); color: var(--on-accent); border-radius: var(--r-card); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.sell h2 { font-size: var(--fs-h2); }
.sell p { margin: 8px 0 0; color: rgba(255, 255, 255, .82); max-width: 560px; }
.sell .btn { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.sell .btn:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-deep); }
@media (max-width: 767px) { .sell { grid-template-columns: 1fr; padding: 28px; } }

/* Carousel */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: calc((100% - 84px) / 2); width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); display: grid; place-items: center; transform: translateY(-50%); }
.rail-btn.prev { left: -22px; }
.rail-btn.next { right: -22px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1023px) {
    .rail-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.3); }
    .rail-btn { display: none; }
}

/* Product card */
.card { position: relative; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: box-shadow var(--t-fast), transform var(--t-fast); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1; background: var(--accent-tint); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.ph-block { width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.ph-block .icon { width: 40px; height: 40px; stroke-width: 1.4; opacity: .7; }
.pc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--card); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: var(--r-pill); }
.pc-badge.out { background: var(--ink); color: var(--on-accent); }
.pc-heart { position: absolute; top: 6px; right: 6px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); }
.pc-heart .icon { width: 18px; height: 18px; }
.pc-heart[aria-pressed="true"] { color: var(--accent); }
.pc-heart[aria-pressed="true"] .icon { fill: var(--accent); }
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--ink-muted); margin: 3px 0 0; }
.card-price { font-size: 15px; font-weight: 700; margin: 8px 0 0; color: var(--ink); }
.card a.cover { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }

/* Newsletter */
.newsletter { margin-top: var(--section); padding: 0 var(--gutter); }
.newsletter .inner { max-width: var(--container); margin: 0 auto; background: var(--bg-soft); border-radius: var(--r-card); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.newsletter h2 { font-size: var(--fs-h2); }
.newsletter p.sub { margin: 6px 0 0; color: var(--ink-muted); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; min-width: min(440px, 100%); }
.inline-form button { min-height: 48px; padding: 0 18px; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.inline-form button:hover { background: var(--accent-deep); }
@media (max-width: 767px) { .newsletter .inner { grid-template-columns: 1fr; padding: 24px; } .inline-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--ink-muted); font-size: 14px; }
.f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.f-brand .wordmark { font-size: 22px; white-space: nowrap; }
.f-brand .wordmark img { width: 32px; height: 32px; }
.f-brand p { margin: 12px 0 0; max-width: 300px; }
.f-top h4 { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.f-top a { display: block; padding: 4px 0; color: var(--ink-muted); }
.f-top a:hover { color: var(--accent); }
.f-markets { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.f-markets a { color: var(--ink); font-weight: 600; }
.f-markets span { color: var(--ink-muted); }
.f-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: var(--fs-small); }
.f-legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.f-legal a { color: var(--ink-muted); }
@media (max-width: 1023px) { .f-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .f-top { grid-template-columns: 1fr; gap: 24px; } }

/* Collection pages */
.page-title { font-size: 34px; line-height: 1.15; margin-top: 32px; }
.page-desc { color: var(--ink-muted); max-width: 640px; margin: 10px 0 0; }
.crumbs { margin-top: 20px; font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.crumbs a { color: var(--ink-muted); }
.toolbar { min-height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 24px 0; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .count { font-size: 14px; color: var(--ink-muted); font-weight: 500; text-align: center; }
.toolbar .tb-right { justify-self: end; }
.toolbar .tb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.toolbar .tb-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-wrap { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 30px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.sort-wrap::after { content: "⌄"; position: absolute; right: 12px; top: 4px; pointer-events: none; color: var(--ink-muted); }
.sort-select { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.empty { text-align: center; padding-block: 64px; }
.empty p { font-size: var(--fs-h3); font-weight: 600; margin: 0 0 16px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 40px 0 0; font-size: 14px; font-weight: 600; }
.pager a, .pager span { min-width: 40px; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); }
.pager a:hover { background: var(--bg-soft); }
.pager .current { background: var(--accent); color: var(--on-accent); }
.pager .disabled { color: var(--ink-muted); opacity: .5; }
.filter-opt { display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--ink); }
.filter-opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.seller-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.seller-bar .meta { font-size: 14px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 10px; }
.verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--green-tint); color: var(--green); font-size: 12.5px; font-weight: 700; }

/* Product page */
.pdp { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; padding-top: 24px; align-items: start; }
.pdp-media { display: grid; gap: 12px; }
.pdp-media .frame { aspect-ratio: 1; background: var(--accent-tint); border-radius: var(--r-card); overflow: hidden; }
.pdp-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.pdp-video { aspect-ratio: 16 / 9; }
.pdp-video iframe { width: 100%; height: 100%; border: 0; }
.pdp-dots { display: none; }
.pdp-info { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 20px); }
.pdp-vendor { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.pdp-title { font-size: 28px; line-height: 1.2; margin: 10px 0 8px; }
.pdp-price { font-size: 24px; font-weight: 800; }
.pdp-rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.pdp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.chip.solid { background: var(--ink); color: var(--on-accent); }
.chip.good { background: var(--green-tint); color: var(--green); }
.pdp-note { font-size: 14px; color: var(--ink-muted); margin: 12px 0 0; }
.pdp-actions { display: grid; gap: 10px; }
.pdp-actions .pc-heart { position: static; width: 100%; height: auto; display: inline-flex; flex-direction: row; gap: 8px; border-radius: var(--r-control); background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pdp-actions .pc-heart:hover { border-color: var(--accent); color: var(--accent); }
.pdp-actions .pc-heart[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
@media (max-width: 1023px) {
    .pdp { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
    .pdp-info { position: static; }
    .pdp-media { grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
    .pdp-media::-webkit-scrollbar { display: none; }
    .pdp-media > * { scroll-snap-align: start; }
    .pdp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
    .pdp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
    .pdp-dots i.on { background: var(--accent); }
}

/* Content pages */
.prose { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.prose h1 { font-size: 34px; margin: 32px 0 20px; line-height: 1.15; }
.prose h2 { font-size: 20px; margin: 36px 0 12px; }
.prose p, .prose li { line-height: 1.7; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.about-hero { margin-top: 24px; border-radius: var(--r-card); aspect-ratio: 21 / 9; background: linear-gradient(145deg, var(--accent-tint), #D6E4F8); overflow: hidden; display: grid; place-items: center; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.about-hero img.mark { width: 160px; height: auto; object-fit: contain; }
.about-copy { max-width: 720px; margin: 0 auto; }
.about-copy h1 { font-size: var(--fs-h1); margin: 40px 0 20px; line-height: 1.1; }
.about-copy p { font-size: 17px; line-height: 1.7; margin: 0 0 24px; }
.pull { color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1.4; border-left: 3px solid var(--accent); padding-left: 20px; margin: 0 0 24px; }
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: var(--section); }
.split-block .media { aspect-ratio: 4 / 5; background: var(--accent-tint); border-radius: var(--r-card); overflow: hidden; display: grid; place-items: center; }
.split-block .media img { width: 100%; height: 100%; object-fit: cover; }
.split-block .media img.mark { width: 40%; height: auto; object-fit: contain; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; margin-top: 32px; }
.market-card { background: var(--bg-soft); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 12px; }
.market-card b { font-size: 16px; }
.market-card p { margin: 4px 0 0; }
.market-card table { font-size: 14px; margin-top: 8px; border-collapse: collapse; }
.market-card td { padding: 2px 20px 2px 0; color: var(--ink-muted); }
.contact-form { display: grid; gap: 20px; max-width: 640px; }
.honeypot { position: absolute; left: -9999px; }
.flash { background: var(--green-tint); color: var(--green); font-weight: 600; padding: 14px 16px; border-radius: var(--r-control); margin: 24px 0 0; }
.notfound { text-align: center; padding: 96px 0 40px; }
.notfound h1 { font-size: var(--fs-h1); line-height: 1.1; }
.notfound p { margin: 16px 0 28px; color: var(--ink-muted); }
@media (max-width: 1023px) { .contact-grid, .split-block { grid-template-columns: 1fr; } }

/* Mobile header */
@media (max-width: 1023px) {
    .nav-toggle { display: inline-flex; }
    .hdr-text { display: none; }
    .hdr-link { padding: 0 8px; }
    .primary-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Live search ---------- */
.drawer.top { left: 0; right: 0; top: 0; bottom: auto; width: auto; max-height: 88vh; transform: translateY(-105%); border-radius: 0 0 var(--r-card) var(--r-card); box-shadow: var(--shadow); }
.drawer.top.open { transform: none; }
.search-drawer { width: 100%; max-width: 800px; padding-top: 18px; padding-bottom: 18px; }
.ls-box { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 18px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); transition: border-color 150ms, box-shadow 150ms; }
.ls-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.ls-box > .icon { color: var(--ink-muted); flex: none; }
.ls-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 1.1rem var(--font); color: var(--ink); }
.ls-box input::-webkit-search-cancel-button { display: none; }
[data-live-search] { position: relative; }
.ls-loading .ls-box > .icon, .ls-loading.hero-search::after { animation: ls-pulse 1s ease-in-out infinite; }
@keyframes ls-pulse { 50% { opacity: .35; } }
.ls-results { background: var(--card); }
.ls-results.inline { margin-top: 12px; max-height: calc(88vh - 120px); overflow-y: auto; }
.ls-results.dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 18px 40px rgba(15,27,45,.14); padding: 8px; max-height: 70vh; overflow-y: auto; text-align: left; }
.ls-head { margin: 10px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; }
.ls-item:hover, .ls-item.on { background: var(--bg-soft); }
.ls-item img, .ls-ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.ls-ph.sm { width: 36px; height: 36px; border-radius: 50%; }
.ls-ph .icon { width: 18px; height: 18px; }
.ls-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ls-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-title mark { background: none; color: var(--accent); font-weight: 800; }
.ls-sub { font-size: 13px; color: var(--ink-muted); }
.ls-price { font-weight: 700; white-space: nowrap; }
.ls-all { justify-content: center; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-control) var(--r-control); font-weight: 700; color: var(--accent); }
.ls-empty { margin: 0; padding: 18px 12px; color: var(--ink-muted); text-align: center; }
@media (max-width: 639px) { .ls-price { display: none; } .ls-box { height: 52px; } }
.ls-empty strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 12px; }
.ls-item.ls-chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-weight: 600; font-size: 14px; }
.ls-item.ls-chip:hover, .ls-item.ls-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

/* ---------- Small-screen polish ---------- */
.prose, .about-copy, .market-card, .page-desc, .pdp-info, .card-body { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
@media (max-width: 639px) {
    /* 16px stops iOS Safari zooming the page when a field is focused */
    input, select, textarea, .field, .sort-select, .ls-box input { font-size: 16px; }
    .page-title, .prose h1 { font-size: 28px; margin-top: 24px; }
    .toolbar { grid-template-columns: auto 1fr; row-gap: 4px; }
    .toolbar .count { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 13px; }
    .toolbar .tb-right { justify-self: end; }
    .announce { font-size: 12px; padding-block: 8px; }
    .wordmark { font-size: 22px; gap: 8px; }
    .wordmark img { width: 32px; height: 32px; }
    .sell, .newsletter .inner { border-radius: 16px; }
    .pull { font-size: 19px; }
    .notfound { padding-top: 56px; }
    .market-card td { padding-right: 12px; }
}
