:root {
    color-scheme: light;
    --page: #f5f5f7;
    --surface: #fff;
    --surface-soft: #efeff2;
    --text: #1d1d1f;
    --secondary: #515154;
    --muted: #76767b;
    --accent: #0071e3;
    --accent-dark: #0063c7;
    --success: #248a3d;
    --border: #d2d2d7;
    --shadow: 0 16px 48px rgb(29 29 31 / 7%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { background: var(--page); scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-size: 15px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #78b8ff;
    outline-offset: 3px;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
    width: min(1200px, calc(100% - 64px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(29 29 31 / 7%);
}
.brand { font-size: 21px; font-weight: 720; letter-spacing: -1.2px; }
.brand span, .accent-dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 34px; color: var(--secondary); font-size: 13px; font-weight: 550; }
.main-nav a { min-height: 40px; padding: 0 4px; display: flex; align-items: center; }
.main-nav a:hover { color: var(--accent); }
.main-nav .merchant-link { color: var(--text); }
.merchant-link span { color: var(--accent); }
main { flex: 1; }
.site-footer {
    width: min(1200px, calc(100% - 64px));
    margin: 90px auto 0;
    min-height: 100px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--muted);
    font-size: 12px;
}
.site-footer .brand { color: var(--text); font-size: 17px; }
.demo-label { margin-left: auto; }

.hero {
    width: min(1200px, calc(100% - 64px));
    min-height: 476px;
    margin: 24px auto 0;
    padding: 54px 60px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    overflow: hidden;
    background: #e9eef8;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .035em;
}
.pulse-dot, .status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--success);
}
.hero h1 {
    margin: 18px 0 15px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: .99;
    letter-spacing: -5.8px;
    font-weight: 720;
}
.hero-copy > p { max-width: 430px; margin: 0 0 25px; color: var(--secondary); font-size: 16px; }
.hero-search {
    width: min(540px, 100%);
    height: 62px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgb(29 29 31 / 8%);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 10px 32px rgb(29 29 31 / 8%);
}
.hero-search .search-icon { padding-left: 13px; color: var(--muted); font-size: 27px; line-height: 1; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.hero-search input:focus-visible { outline: 0; }
.hero-search button, .button {
    min-height: 46px;
    padding: 0 19px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    background: var(--accent);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}
.hero-search button:hover, .button:hover { color: white; background: var(--accent-dark); transform: translateY(-1px); }
.popular-searches { display: flex; align-items: center; gap: 15px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.popular-searches a { color: var(--secondary); }
.popular-searches a:hover { color: var(--accent); }
.hero-art { position: relative; height: 350px; }
.art-orbit { position: absolute; border: 1px solid rgb(80 113 176 / 18%); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 405px; height: 225px; top: 50px; left: 16px; }
.orbit-two { width: 350px; height: 190px; top: 78px; left: 45px; transform: rotate(38deg); }
.art-product { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 28px 55px rgb(31 47 77 / 20%); }
.bottle-product {
    width: 128px;
    height: 228px;
    top: 43px;
    left: 106px;
    border: 7px solid #b2c2a8;
    border-radius: 34px 34px 27px 27px;
    background: linear-gradient(110deg, #dce5d2, #b9c9b0);
    color: #64705e;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1px;
    transform: rotate(-8deg);
}
.bottle-product::before { content: ""; position: absolute; width: 47px; height: 24px; top: -25px; border-radius: 9px 9px 2px 2px; background: #77876c; }
.cup-product {
    width: 137px;
    height: 125px;
    top: 159px;
    left: 252px;
    border-radius: 19px 19px 43px 43px;
    background: linear-gradient(120deg, #e0b99b, #b87d62);
    color: #fff4e8;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.05;
    transform: rotate(7deg);
}
.cup-product::after { content: ""; position: absolute; right: -37px; width: 48px; height: 51px; border: 12px solid #c68e72; border-left: 0; border-radius: 0 28px 28px 0; }
.art-note { position: absolute; z-index: 2; top: 38px; right: 3px; padding: 13px 15px; display: flex; gap: 9px; align-items: center; border: 1px solid rgb(29 29 31 / 5%); border-radius: 14px; background: rgb(255 255 255 / 90%); box-shadow: var(--shadow); color: var(--secondary); font-size: 10px; }
.art-note strong { color: var(--text); }
.note-icon { color: var(--accent); font-size: 24px; }
.art-tag { position: absolute; bottom: 30px; right: 12px; color: #6d7890; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.demo-notice {
    width: min(1200px, calc(100% - 64px));
    margin: 18px auto 0;
    padding: 11px 15px;
    border-radius: 11px;
    color: #5a606b;
    background: #eaebee;
    font-size: 11px;
}
.demo-notice span { margin-right: 7px; color: #566987; }
.intro-section {
    width: min(1050px, calc(100% - 64px));
    margin: 112px auto 90px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
}
.intro-section h2, .section-heading h2, .local-teaser h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -2px; line-height: 1.08; }
.intro-section > p { max-width: 390px; margin: 0 0 4px; color: var(--secondary); font-size: 14px; }
.category-section, .store-products { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 31px; letter-spacing: -1.2px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 650; }
.text-link span { margin-left: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 188px; padding: 22px; border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.category-illustration { width: 58px; height: 58px; margin-bottom: auto; border-radius: 18px; display: grid; place-items: center; font-size: 26px; }
.category-home .category-illustration { color: #576986; background: #e9eef6; }
.category-books .category-illustration { color: #846c91; background: #f1eaf4; }
.category-fashion .category-illustration { color: #a76e61; background: #f7ece7; }
.category-office .category-illustration { color: #5b7f70; background: #e7f0eb; }
.category-card > span:nth-child(2) { margin-top: 18px; font-size: 16px; font-weight: 680; }
.category-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.local-teaser { width: min(1200px, calc(100% - 64px)); margin: 90px auto 0; padding: 34px 39px; border-radius: 23px; display: flex; align-items: center; gap: 23px; background: #e5e9f1; }
.teaser-icon { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 17px; color: var(--accent); background: var(--surface); font-size: 28px; }
.local-teaser h2 { font-size: 24px; letter-spacing: -.8px; }
.local-teaser p { margin: 5px 0 0; color: var(--secondary); font-size: 12px; }
.local-teaser .button { margin-left: auto; }
.button-dark { color: white; background: var(--text); }
.button-dark:hover { background: #38383c; }

.page-intro, .filters, .results-meta, .product-grid, .breadcrumbs, .product-detail, .store-hero {
    width: min(1200px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}
.page-intro { margin-top: 60px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-intro h1 { margin: 10px 0 8px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -2.8px; }
.page-intro p { margin: 0; color: var(--secondary); font-size: 13px; }
.location-mark { margin-right: 5px; color: var(--accent); }
.demo-pill { padding: 7px 10px; border-radius: 100px; color: #555b66; background: #e7e8eb; white-space: nowrap; font-size: 10px; font-weight: 620; }
.gtin-lookup { width: min(1200px, calc(100% - 64px)); margin: 20px auto 0; padding: 19px 21px; border: 1px solid rgb(29 29 31 / 5%); border-radius: 17px; display: grid; grid-template-columns: 1fr minmax(280px, .8fr); align-items: center; gap: 18px; background: var(--surface); }
.gtin-lookup h2 { margin: 4px 0; font-size: 20px; letter-spacing: -.5px; }
.gtin-lookup p { margin: 0; color: var(--secondary); font-size: 11px; }
.gtin-form { display: flex; flex-direction: column; gap: 4px; }
.gtin-form > label { color: var(--muted); font-size: 10px; }
.gtin-form > div { display: flex; gap: 8px; }
.gtin-form input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
.gtin-form button { padding: 0 13px; border: 0; border-radius: 10px; color: white; background: var(--accent); font-size: 11px; font-weight: 650; cursor: pointer; }
.gtin-form small { color: var(--muted); font-size: 9px; }
.gtin-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; }
.gtin-result > img, .gtin-no-image { width: 140px; height: 140px; flex: none; border-radius: 12px; object-fit: contain; background: white; }
.gtin-no-image { display: grid; place-items: center; color: var(--muted); font-size: 10px; text-align: center; }
.gtin-result h3 { margin: 4px 0; font-size: 18px; }
.gtin-result .image-attribution { margin-top: 9px; font-size: 10px; }
.gtin-result a, .image-credit a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }
.gtin-message { grid-column: 1 / -1; padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); }
.filters { margin-top: 26px; padding: 12px; border: 1px solid rgb(29 29 31 / 5%); border-radius: 17px; display: flex; align-items: center; gap: 12px; background: var(--surface); }
.filters label:not(.search-field) { min-width: 132px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 9px; }
.filters select { height: 29px; padding: 0 21px 0 0; border: 0; color: var(--text); background: transparent; font-size: 12px; font-weight: 600; }
.search-field { min-width: 180px; flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 22px; }
.search-field input { width: 100%; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field input:focus-visible { outline: 0; }
.filter-submit { min-height: 41px; padding: 0 15px; border: 0; border-radius: 11px; color: white; background: var(--accent); font-size: 11px; font-weight: 650; cursor: pointer; }
.results-meta { margin-top: 26px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.results-meta strong { color: var(--text); }
.product-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid rgb(29 29 31 / 4%); border-radius: 20px; display: flex; flex-direction: column; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-main { display: block; color: inherit; }
.product-card-main:hover { color: inherit; }
.product-visual { position: relative; height: 205px; overflow: hidden; display: grid; place-items: center; }
.product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-photo-placeholder { position: absolute; inset: 0; padding: 20px; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.tone-sage { background: #e8eee6; }
.tone-lilac { background: #eeeaf4; }
.tone-clay { background: #f2e8df; }
.tone-blue { background: #e7edf4; }
.tone-rose { background: #f2e8e8; }
.product-stamp { position: absolute; z-index: 1; top: 13px; left: 13px; padding: 4px 7px; border: 1px solid rgb(29 29 31 / 12%); border-radius: 100px; color: #676a70; background: rgb(255 255 255 / 88%); font-size: 8px; font-weight: 720; letter-spacing: .07em; }
.product-glyph { color: rgb(29 29 31 / 55%); font-size: 70px; line-height: 1; }
.product-category { position: absolute; z-index: 1; right: 13px; bottom: 12px; padding: 4px 7px; border-radius: 7px; color: rgb(29 29 31 / 78%); background: rgb(255 255 255 / 88%); font-size: 9px; font-weight: 600; }
.product-card-copy { padding: 15px 16px 14px; }
.image-credit { padding: 7px 11px 9px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.product-brand { color: var(--muted); font-size: 10px; }
.product-card h2 { margin: 4px 0 0; overflow: hidden; font-size: 15px; letter-spacing: -.25px; text-overflow: ellipsis; white-space: nowrap; }
.product-variant { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.product-card-bottom { margin-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product-card-bottom strong { font-size: 16px; letter-spacing: -.4px; }
.offer-count { color: var(--accent); font-size: 10px; font-weight: 600; }
.product-distance { margin-top: 9px; padding-top: 8px; border-top: 1px solid #ececef; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.product-distance .status-dot { width: 6px; height: 6px; flex: none; }
.pagination { width: min(1200px, calc(100% - 64px)); margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--secondary); font-size: 12px; }
.pagination .button { min-height: 38px; font-size: 11px; }
.empty-state { width: min(600px, calc(100% - 48px)); margin: 90px auto; padding: 45px; border-radius: 22px; text-align: center; background: var(--surface); }
.empty-state > span { color: var(--accent); font-size: 42px; }
.empty-state h1, .empty-state h2 { margin: 12px 0 7px; font-size: 24px; letter-spacing: -.8px; }
.empty-state p { margin: 0 auto 23px; color: var(--secondary); font-size: 13px; }
.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; }

.breadcrumbs { margin-top: 32px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs span { margin: 0 7px; }
.product-detail { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.detail-visual { min-height: 500px; position: relative; overflow: hidden; border-radius: 25px; display: grid; place-items: center; }
.detail-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-visual .product-stamp { top: 20px; left: 20px; }
.detail-glyph { color: rgb(29 29 31 / 52%); font-size: 130px; }
.detail-caption { position: absolute; right: 18px; bottom: 17px; color: var(--muted); font-size: 10px; }
.detail-image-credit { position: absolute; right: 14px; bottom: 14px; left: 14px; border-radius: 9px; background: rgb(255 255 255 / 90%); }
.detail-copy { padding: 14px 0 0; }
.detail-copy h1 { margin: 12px 0 4px; font-size: 42px; line-height: 1.04; letter-spacing: -2.3px; }
.detail-variant { margin: 0; color: var(--secondary); font-size: 13px; }
.detail-description { max-width: 460px; margin: 20px 0 23px; color: var(--secondary); font-size: 13px; }
.detail-price { padding: 15px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; align-items: end; justify-content: space-between; }
.detail-price > div { display: flex; flex-direction: column; }
.detail-price > div span, .vat-note { color: var(--muted); font-size: 10px; }
.detail-price strong { margin-top: 1px; font-size: 28px; letter-spacing: -1px; }
.vat-note { padding-bottom: 4px; }
.offer-heading { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.6px; }
.offer-heading > div > span { color: var(--muted); font-size: 10px; }
.offer-list { margin-top: 12px; border-top: 1px solid var(--border); }
.offer-row { padding: 15px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.offer-store-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #5b6983; background: #e9edf4; font-size: 19px; }
.offer-store { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.offer-store a { font-size: 12px; font-weight: 680; }
.offer-store a span { color: var(--accent); }
.offer-store > span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.offer-store .offer-freshness { white-space: normal; }
.offer-price { display: flex; flex-direction: column; align-items: end; white-space: nowrap; }
.offer-price strong { font-size: 14px; }
.offer-price span { color: var(--muted); font-size: 10px; }
.distance-note { margin: 14px 0; color: var(--muted); font-size: 10px; }
.no-offers { padding: 20px; border-radius: 14px; color: var(--secondary); background: var(--surface); font-size: 13px; }

.store-hero { margin-top: 39px; padding: 28px; border-radius: 25px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; background: #e9edf4; }
.store-art { min-height: 270px; border-radius: 19px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #596986; background: #dfe5ef; }
.store-art > span { font-size: 90px; }
.store-art small { margin-top: 12px; color: #6e7788; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.store-info h1 { margin: 10px 0; font-size: 44px; letter-spacing: -2.7px; }
.store-info > p { max-width: 520px; color: var(--secondary); font-size: 14px; }
.store-meta { margin: 24px 0 17px; display: flex; flex-direction: column; gap: 8px; color: var(--secondary); font-size: 12px; }
.store-products { margin-top: 62px; }
.merchant-portal { width: min(1200px, calc(100% - 64px)); margin: 56px auto 0; }
.merchant-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.merchant-heading h1 { margin: 10px 0 7px; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -3.4px; }
.merchant-heading p { margin: 0; color: var(--secondary); font-size: 14px; }
.merchant-demo-note { margin: 26px 0 18px; padding: 13px 16px; border: 1px solid #d6e5f7; border-radius: 13px; color: #35516f; background: #edf5ff; font-size: 12px; }
.merchant-store-bar { margin: 18px 0; padding: 17px 20px; border: 1px solid var(--border); border-radius: 17px; display: flex; align-items: end; justify-content: space-between; gap: 20px; background: var(--surface); }
.merchant-store-picker { display: flex; align-items: end; gap: 10px; }
.merchant-store-picker label { display: grid; gap: 5px; color: var(--secondary); font-size: 11px; font-weight: 600; }
.merchant-store-picker select { min-width: 230px; min-height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface); }
.merchant-store-picker .button { min-height: 42px; }
.merchant-stats { margin: 18px 0 37px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.merchant-stat { min-height: 104px; padding: 19px; border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: var(--surface); }
.merchant-stat span { color: var(--secondary); font-size: 12px; }
.merchant-stat strong { font-size: 28px; letter-spacing: -1px; }
.merchant-inventory { margin-top: 40px; }
.merchant-inventory .section-heading { align-items: end; }
.merchant-inventory .section-heading h2 { margin-top: 7px; }
.merchant-count { color: var(--muted); font-size: 12px; }
.merchant-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.merchant-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; }
.merchant-table th, .merchant-table td { padding: 14px 16px; border-bottom: 1px solid #ececef; vertical-align: middle; }
.merchant-table th { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.merchant-table td { color: var(--secondary); font-size: 12px; }
.merchant-table tbody tr:last-child td { border-bottom: 0; }
.merchant-product-link { display: block; color: var(--text); font-weight: 650; }
.merchant-product-variant { display: block; max-width: 250px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-price { color: var(--text) !important; font-weight: 650; white-space: nowrap; }
.merchant-stock { padding: 5px 8px; border-radius: 999px; display: inline-flex; font-size: 10px; font-weight: 600; white-space: nowrap; }
.merchant-stock-available { color: #176d30; background: #e8f6ec; }
.merchant-stock-empty { color: #9c3e33; background: #fff0ed; }
.merchant-stock-stale, .merchant-stock-unknown { color: #765d1b; background: #fff7dc; }
.merchant-empty { padding: 30px; border: 1px solid var(--border); border-radius: 16px; color: var(--secondary); background: var(--surface); text-align: center; }
.merchant-import-panel, .merchant-review-panel, .merchant-import-history { margin: 24px 0; padding: 23px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.merchant-import-panel .section-heading, .merchant-review-panel .section-heading, .merchant-import-history .section-heading { margin-bottom: 12px; }
.merchant-import-panel .section-heading h2, .merchant-review-panel .section-heading h2, .merchant-import-history .section-heading h2 { margin-top: 6px; font-size: 26px; letter-spacing: -1px; }
.merchant-import-description { max-width: 850px; margin: 0 0 18px; color: var(--secondary); font-size: 12px; }
.merchant-upload-form { display: grid; justify-items: start; gap: 12px; }
.merchant-file-label { color: var(--secondary); font-size: 12px; font-weight: 650; }
.merchant-upload-form input[type="file"] { max-width: 100%; color: var(--secondary); font-size: 12px; }
.merchant-mapping { width: 100%; margin: 5px 0; padding: 16px; border: 1px solid var(--border); border-radius: 13px; }
.merchant-mapping legend { padding: 0 7px; color: var(--text); font-size: 12px; font-weight: 650; }
.merchant-mapping > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.merchant-ai-mapping { margin: 12px 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.merchant-ai-mapping p { margin: 0; color: var(--muted); font-size: 11px; }
.merchant-mapping-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.merchant-mapping-grid label, .merchant-import-row-form label { min-width: 0; display: grid; gap: 5px; color: var(--secondary); font-size: 10px; font-weight: 600; }
.merchant-mapping-grid select, .merchant-import-row-form input { width: 100%; min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 11px; }
.merchant-import-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }
.merchant-feedback { margin: 16px 0; padding: 12px 15px; border-radius: 12px; font-size: 12px; }
.merchant-feedback-success { color: #176d30; background: #e8f6ec; }
.merchant-feedback-error { color: #9c3e33; background: #fff0ed; }
.merchant-import-disabled { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--secondary); background: var(--surface); font-size: 12px; }
.merchant-review-summary { margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--secondary); font-size: 11px; }
.merchant-review-summary strong { color: var(--text); }
.merchant-import-row { margin: 13px 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fbfbfd; }
.merchant-import-row-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-size: 12px; }
.merchant-import-row-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 11px; }
.merchant-row-errors { grid-column: 1 / -1; margin: 0; padding: 10px 12px 10px 30px; border-radius: 9px; color: #9c3e33; background: #fff0ed; font-size: 11px; }
.merchant-row-hint { grid-column: 1 / -1; margin: 0; color: #765d1b; font-size: 11px; }
.merchant-row-save { min-height: 38px; padding: 0 12px; font-size: 11px; }
.merchant-publish-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.merchant-confirm-label { display: flex; align-items: start; gap: 9px; color: var(--secondary); font-size: 11px; }
.merchant-confirm-label input { margin-top: 3px; accent-color: var(--accent); }
.merchant-import-history ul { margin: 0; padding: 0; list-style: none; }
.merchant-import-history li { padding: 12px 0; border-top: 1px solid #ececef; display: grid; grid-template-columns: minmax(170px, 1fr) 130px 1fr; gap: 14px; color: var(--muted); font-size: 11px; }
.merchant-import-history li a { color: var(--text); font-weight: 650; }
.merchant-import-history li a:hover { color: var(--accent); }

@media (max-width: 900px) {
    .hero { padding: 44px 38px; grid-template-columns: 1fr .8fr; }
    .hero-art { transform: scale(.82); transform-origin: center left; }
    .hero h1 { font-size: 62px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-detail { gap: 34px; }
    .detail-visual { min-height: 420px; }
}

@media (max-width: 1100px) and (min-width: 681px) {
    .filters { flex-wrap: wrap; }
    .search-field { flex: 1 1 210px; }
    .filters label:not(.search-field) { min-width: 0; flex: 1 1 132px; }
    .filters select, .filters input[type="number"] { max-width: 100%; }
    .filters label:not(.search-field).availability-filter {
        flex-direction: row;
        align-items: center;
        white-space: nowrap;
    }
    .filter-submit { margin-left: auto; }
}

@media (max-width: 680px) {
    .site-header, .site-footer, .hero, .demo-notice, .intro-section, .category-section,
    .local-teaser, .page-intro, .filters, .results-meta, .product-grid, .breadcrumbs,
    .product-detail, .store-hero, .store-products, .gtin-lookup, .pagination { width: min(100% - 32px, 520px); }
    .site-header { height: auto; min-height: 62px; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
    .main-nav { width: 100%; justify-content: space-between; gap: 4px; font-size: 11px; }
    .main-nav .merchant-link { font-size: 10px; }
    .brand { font-size: 19px; }
    .hero { min-height: 0; margin-top: 13px; padding: 35px 24px 0; grid-template-columns: 1fr; border-radius: 23px; }
    .hero h1 { margin-top: 15px; font-size: clamp(50px, 13vw, 68px); letter-spacing: -4px; }
    .hero-copy > p { max-width: 330px; font-size: 14px; }
    .hero-search { height: 56px; gap: 7px; }
    .hero-search .search-icon { padding-left: 7px; }
    .hero-search input { font-size: 12px; }
    .hero-search button { min-height: 42px; padding: 0 12px; font-size: 11px; }
    .popular-searches { gap: 10px; font-size: 9px; }
    .hero-art { width: 100%; height: 248px; margin-top: 7px; transform: scale(.75); transform-origin: top center; }
    .orbit-one { left: 0; }
    .bottle-product { left: 73px; }
    .cup-product { left: 215px; }
    .art-note { right: 0; }
    .art-tag { right: 6px; bottom: 45px; }
    .demo-notice { margin-top: 12px; font-size: 10px; }
    .intro-section { margin-top: 70px; margin-bottom: 48px; align-items: start; flex-direction: column; gap: 13px; }
    .intro-section h2 { font-size: 34px; }
    .intro-section > p { font-size: 12px; }
    .section-heading h2 { font-size: 25px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { min-height: 155px; padding: 15px; }
    .category-illustration { width: 48px; height: 48px; border-radius: 15px; font-size: 23px; }
    .category-card > span:nth-child(2) { margin-top: 12px; font-size: 14px; }
    .category-card small { font-size: 9px; }
    .local-teaser { margin-top: 62px; padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 13px; }
    .teaser-icon { width: 46px; height: 46px; border-radius: 14px; }
    .local-teaser h2 { font-size: 19px; }
    .local-teaser p { font-size: 10px; }
    .local-teaser .button { min-height: 42px; grid-column: 1 / -1; margin: 7px 0 0; }
    .site-footer { min-height: 90px; margin-top: 63px; flex-wrap: wrap; gap: 8px 16px; font-size: 10px; }
    .site-footer .brand { font-size: 15px; }
    .demo-label { width: 100%; margin: -20px 0 14px; text-align: right; }
    .page-intro { margin-top: 38px; align-items: start; flex-direction: column; gap: 12px; }
    .page-intro h1 { font-size: 34px; letter-spacing: -1.8px; }
    .page-intro p { font-size: 11px; }
    .gtin-lookup { margin-top: 15px; padding: 15px; grid-template-columns: 1fr; gap: 11px; }
    .gtin-lookup h2 { font-size: 18px; }
    .gtin-result { align-items: flex-start; gap: 11px; }
    .gtin-result > img, .gtin-no-image { width: 95px; height: 95px; }
    .gtin-result h3 { font-size: 15px; }
    .gtin-result .image-attribution { font-size: 9px; }
    .pagination { gap: 9px; font-size: 10px; }
    .pagination .button { min-height: 35px; padding: 0 10px; font-size: 9px; }
    .filters { margin-top: 18px; padding: 10px; flex-wrap: wrap; gap: 7px 12px; }
    .search-field { min-width: 100%; }
    .search-field input { padding: 6px 0; }
    .filters label:not(.search-field) { min-width: 0; flex: 1; }
    .filters label:not(.search-field).availability-filter { flex-direction: row; justify-content: flex-start; }
    .filters select { font-size: 11px; }
    .filter-submit { min-height: 36px; }
    .results-meta { margin-top: 20px; align-items: start; flex-direction: column; gap: 3px; font-size: 10px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-visual { height: 158px; }
    .product-card-copy { padding: 12px 11px; }
    .product-card h2 { font-size: 12px; }
    .product-brand, .product-variant { font-size: 9px; }
    .product-card-bottom { margin-top: 12px; align-items: start; flex-direction: column; gap: 2px; }
    .product-card-bottom strong { font-size: 15px; }
    .product-distance { font-size: 8px; }
    .breadcrumbs { margin-top: 22px; font-size: 10px; }
    .product-detail { margin-top: 16px; grid-template-columns: 1fr; gap: 22px; }
    .detail-visual { min-height: 300px; }
    .detail-glyph { font-size: 100px; }
    .detail-copy { padding-top: 0; }
    .detail-copy h1 { font-size: 34px; letter-spacing: -1.7px; }
    .offer-heading h2 { font-size: 17px; }
    .offer-store > span { max-width: 180px; }
    .store-hero { margin-top: 25px; padding: 15px; grid-template-columns: 1fr; gap: 20px; }
    .store-art { min-height: 185px; }
    .store-art > span { font-size: 68px; }
    .store-info { padding: 3px 5px 6px; }
    .store-info h1 { font-size: 35px; }
    .store-info > p { font-size: 12px; }
    .store-meta { margin: 17px 0 12px; font-size: 11px; }
    .store-products { margin-top: 40px; }
    .merchant-portal { width: min(100% - 32px, 520px); margin-top: 35px; }
    .merchant-heading { align-items: start; flex-direction: column; gap: 17px; }
    .merchant-heading h1 { font-size: 39px; letter-spacing: -2.5px; }
    .merchant-heading p { font-size: 12px; }
    .merchant-demo-note { margin: 20px 0 14px; font-size: 11px; }
    .merchant-store-bar { align-items: stretch; flex-direction: column; padding: 14px; }
    .merchant-store-picker { align-items: stretch; flex-direction: column; }
    .merchant-store-picker select { min-width: 0; width: 100%; }
    .merchant-store-picker .button { width: 100%; }
    .merchant-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 30px; }
    .merchant-stat { min-height: 90px; padding: 14px; }
    .merchant-stat span { font-size: 10px; }
    .merchant-stat strong { font-size: 24px; }
    .merchant-import-panel, .merchant-review-panel, .merchant-import-history { padding: 15px; }
    .merchant-import-panel .section-heading, .merchant-review-panel .section-heading, .merchant-import-history .section-heading { flex-direction: column; align-items: start; }
    .merchant-import-panel .section-heading h2, .merchant-review-panel .section-heading h2, .merchant-import-history .section-heading h2 { font-size: 23px; }
    .merchant-mapping-grid, .merchant-import-row-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .merchant-publish-form { align-items: stretch; flex-direction: column; }
    .merchant-publish-form .button { width: 100%; }
    .merchant-import-history li { grid-template-columns: 1fr; gap: 3px; }
    .merchant-inventory .section-heading { align-items: start; }
    .merchant-inventory .section-heading h2 { font-size: 25px; }
    .merchant-count { padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
