:root {
    --ink: #202624;
    --muted: #68736f;
    --paper: #f6f6f3;
    --surface: #ffffff;
    --line: #dce2de;
    --green: #58b879;
    --green-dark: #367b50;
    --mint: #e4f2e8;
    --lime: #58b879;
    --warm: #e9ebe7;
    --danger: #b74040;
    --shadow: 0 18px 55px rgba(32, 38, 36, 0.11);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f0f4f1;
    --muted: #a7b1ac;
    --paper: #111513;
    --surface: #1b211e;
    --line: #303936;
    --green: #58b879;
    --green-dark: #79ce97;
    --mint: #20352a;
    --lime: #58b879;
    --warm: #302f2b;
    --danger: #ef8585;
    --shadow: 0 20px 65px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 12px clamp(20px, 5vw, 76px);
    border-bottom: 1px solid rgba(32, 38, 36, 0.09);
    background: rgba(246, 246, 243, 0.92);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .site-header {
    background: rgba(17, 21, 19, 0.92);
}

.brand img {
    display: block;
    width: clamp(235px, 23vw, 360px);
    height: 86px;
    object-fit: contain;
    object-position: center;
}

.brand .logo-dark {
    display: none;
}

html[data-theme="dark"] .brand .logo-light {
    display: none;
}

html[data-theme="dark"] .brand .logo-dark {
    display: block;
}

.brand {
    grid-column: 2;
    justify-self: center;
}

.header-spacer {
    grid-column: 1;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-button,
.header-scan-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    font-size: 1.15rem;
}

.header-scan-button {
    color: var(--green);
    border-color: color-mix(in srgb, var(--green) 45%, var(--line));
    cursor: pointer;
}

.theme-button span,
.nav-icon,
.cart-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    line-height: 0;
}

.theme-button svg,
.header-scan-button svg,
.nav-icon svg,
.cart-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-scan-button svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
}

.cart-icon {
    color: #fff;
}

.cart-icon svg {
    stroke-width: 2;
}

.theme-button:hover,
.header-scan-button:hover {
    border-color: var(--green);
    transform: translateY(-1px);
}

.header-scan-button:hover {
    color: #fff;
    background: var(--green);
}

.nav-button,
.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 700;
}

.nav-button:hover,
.nav-button.is-active {
    border-color: var(--line);
    background: var(--surface);
}

.nav-button span {
    font-size: 1.25rem;
}

#favoritesButton .nav-icon {
    transform: translateX(1.5px);
}

.cart-button {
    color: #fff;
    background: var(--green);
}

.cart-button:hover {
    background: var(--green-dark);
}

.cart-button strong {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    color: #202624;
    border-radius: 999px;
    background: #fff;
    font-size: 0.72rem;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    column-gap: clamp(30px, 7vw, 100px);
    row-gap: 22px;
    align-items: center;
    min-height: 470px;
    padding: 64px clamp(20px, 7vw, 110px) 76px;
    color: #f8fff9;
    background:
        radial-gradient(circle at 85% 10%, rgba(88, 184, 121, 0.22), transparent 30%),
        linear-gradient(135deg, #1a1f1d 0%, #202624 68%, #303835 100%);
}

.hero::after {
    position: absolute;
    right: -80px;
    bottom: -145px;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.eyebrow,
.section-kicker {
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    font-size: clamp(3rem, 6.5vw, 6.3rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-family: Georgia, serif;
    font-weight: 600;
}

.hero-title-accent {
    color: var(--lime);
    font-family: Georgia, serif;
    font-weight: 600;
    font-style: normal;
}

.hero-copy p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.hero-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 32px;
    border: 1px solid rgba(88, 184, 121, 0.68);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.hero-card p {
    max-width: 390px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.hero-mobile-cta {
    display: none;
}

.catalog-section {
    width: min(1420px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 110px;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 34px 0 26px;
}

.section-kicker {
    color: var(--green);
}

.catalog-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.055em;
    font-family: Georgia, serif;
    font-weight: 600;
}

.result-count {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.search-panel {
    display: grid;
    grid-template-columns:
        minmax(170px, 238px)
        minmax(260px, 1fr)
        minmax(170px, 238px);
    gap: 12px;
    margin-bottom: 28px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(32, 38, 36, 0.04);
}

.search-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(88, 184, 121, 0.14);
}

.search-box span {
    position: relative;
    z-index: 1;
    color: var(--green);
    font-size: 1.7rem;
    pointer-events: none;
}

.search-box input {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 124px 0 52px;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
}

.search-submit {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 40px;
    padding: 0 15px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.manual-item-form {
    display: grid;
    gap: 8px;
    padding: 16px 17px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 84%, var(--green) 4%);
}

.manual-item-form > label {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.manual-item-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.manual-item-form input {
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: var(--paper);
    font: inherit;
}

.manual-item-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(88, 184, 121, 0.14);
}

.manual-item-form button {
    min-height: 44px;
    padding: 0 14px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    font-weight: 800;
}

.manual-item-form > small,
.manual-items-empty {
    color: var(--muted);
    font-size: 0.7rem;
}

.manual-items-empty {
    margin: 0;
    padding: 17px;
    border-top: 1px solid var(--line);
}

.remove-manual-item {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.remove-manual-item:hover {
    color: #fff;
    border-color: #c74c4c;
    background: #c74c4c;
}

.search-submit:hover,
.search-submit:focus-visible {
    filter: brightness(0.94);
}

.floating-search {
    position: fixed;
    z-index: 19;
    top: 94px;
    left: 50%;
    display: flex;
    align-items: center;
    width: min(calc(100% - 32px), 760px);
    height: 56px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--green) 58%, var(--line));
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 16px 45px rgba(22, 31, 27, 0.2);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.floating-search:focus-within {
    border-color: var(--green);
    box-shadow:
        0 0 0 4px rgba(88, 184, 121, 0.16),
        0 16px 45px rgba(22, 31, 27, 0.2);
}

.floating-search span {
    color: var(--green);
    font-size: 1.65rem;
    pointer-events: none;
}

.floating-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 12px;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
}

.sort-field {
    position: relative;
    display: block;
    width: 100%;
    height: 58px;
    cursor: pointer;
}

.sort-field > span {
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 16px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    pointer-events: none;
    text-transform: uppercase;
}

.search-panel select {
    width: 100%;
    height: 58px;
    padding: 17px 42px 0 16px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
}

.region-field {
    position: relative;
    display: block;
}

.region-field > span {
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 16px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    pointer-events: none;
    text-transform: uppercase;
}

.region-field select {
    padding-top: 13px;
}

.retailer-filter {
    margin: -12px 0 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.retailer-filter summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    padding: 0 18px;
    cursor: pointer;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.retailer-filter summary::-webkit-details-marker {
    display: none;
}

.retailer-filter summary::after {
    content: "+";
    color: var(--green);
    font-size: 1.25rem;
    line-height: 1;
}

.retailer-filter[open] summary::after {
    content: "−";
}

.retailer-filter summary strong {
    margin-left: auto;
    color: var(--green);
    font-size: 0.72rem;
}

.retailer-filter-body {
    padding: 16px 18px 18px;
    border-top: 1px solid var(--line);
}

.retailer-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.retailer-filter-actions span {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.retailer-filter-actions a {
    color: var(--green-dark);
    font-weight: 800;
}

.retailer-filter-actions button {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--green-dark);
    border: 1px solid var(--green);
    border-radius: 999px;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
}

.retailer-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.retailer-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.72rem;
    font-weight: 750;
}

.retailer-checkbox:has(input:checked) {
    border-color: var(--green);
    background: color-mix(in srgb, var(--green) 14%, var(--paper));
}

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -14px 2px 24px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.catalog-freshness {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 13px;
    line-height: 1.5;
}

.freshness-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.freshness-item i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.freshness-item.is-current {
    color: var(--green-dark);
}

.freshness-prices.is-current {
    color: var(--ink);
}

.freshness-item.is-aging {
    color: color-mix(in srgb, var(--ink) 72%, #9b7c3c);
}

.freshness-item.is-old {
    color: var(--danger);
}

.freshness-item.is-loading {
    color: var(--green-dark);
}

.freshness-item.is-loading i {
    animation: freshness-pulse 1.2s ease-in-out infinite;
}

@keyframes freshness-pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.72);
    }
}

.catalog-meta button {
    flex: 0 0 auto;
    padding: 0;
    color: var(--green-dark);
    border: 0;
    background: transparent;
    font-size: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.retailer-checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--green);
}

.category-browser {
    margin: -8px 0 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.category-browser-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.category-browser-heading span {
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.category-browser-heading h3 {
    margin: 4px 0 0;
    font-size: 1.08rem;
}

.category-browser-heading button {
    padding: 0;
    color: var(--green-dark);
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    font-size: 0.74rem;
    font-weight: 800;
}

.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
}

.main-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 3px 0 5px;
}

.main-category-card {
    display: grid;
    min-width: 0;
    min-height: 112px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 13px 8px;
    color: var(--ink);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.main-category-card > span {
    font-size: 1.55rem;
    line-height: 1;
}

.main-category-card strong {
    font-size: 0.86rem;
    line-height: 1.25;
}

.main-category-card small {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.3;
}

.main-category-card:hover,
.main-category-card.is-selected {
    border-color: var(--green);
    background: var(--mint);
    transform: translateY(-2px);
}

.category-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.76rem;
    font-weight: 700;
}

.category-chip:hover,
.category-chip.is-selected {
    border-color: var(--green);
    background: var(--mint);
}

.category-chip small {
    margin-left: 5px;
    color: var(--muted);
    font-size: 0.62rem;
}

.category-children {
    margin-top: 11px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.category-children .category-chips {
    flex-wrap: wrap;
    overflow: visible;
}

.category-path {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.category-placeholder {
    color: var(--muted);
    font-size: 0.78rem;
}

.active-view {
    align-items: center;
    justify-content: space-between;
    margin: -8px 0 24px;
    padding: 13px 17px;
    border: 1px solid #afd2ba;
    border-radius: 13px;
    background: var(--mint);
    font-size: 0.88rem;
    font-weight: 700;
}

.active-view:not([hidden]) {
    display: flex;
}

.active-view button {
    padding: 0;
    color: var(--green-dark);
    border: 0;
    border-bottom: 1px solid;
    background: transparent;
    font-weight: 800;
}

.status-message {
    display: grid;
    place-items: center;
    min-height: 240px;
    color: var(--muted);
}

.status-message.is-search-progress {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: 24px;
    display: flex;
    min-height: 0;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    transform: translateX(-50%);
}

.status-message.is-search-progress p {
    margin: 0;
}

.status-message.is-search-progress .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    transition: opacity 150ms ease;
}

.product-grid.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-panel select {
    box-shadow: none;
}

html[data-theme="dark"] .product-visual {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(140deg, #24312b, #29332f);
}

html[data-theme="dark"] .favorite-toggle {
    background: rgba(27, 33, 30, 0.94);
}

html[data-theme="dark"] .favorite-toggle.is-favorite {
    color: #202624;
    background: var(--lime);
}

.product-card:hover {
    z-index: 1;
    border-color: #a9cbb4;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.product-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent);
    outline-offset: 3px;
}

.product-card {
    cursor: pointer;
}

.product-card button {
    cursor: pointer;
}

.favorite-toggle {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--green-dark);
    border: 1px solid rgba(32, 38, 36, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
}

.favorite-toggle.is-favorite {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

.product-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 118px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 28%),
        linear-gradient(140deg, var(--mint), #f0f3ef);
}

.product-visual span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: var(--green-dark);
    border-radius: 24px 24px 34px 34px;
    background: var(--lime);
    box-shadow: 0 13px 25px rgba(88, 184, 121, 0.17);
    font-size: 2rem;
    font-weight: 800;
    transform: rotate(-4deg);
}

.product-image {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    border-radius: inherit;
    background: #fff;
}

.product-category {
    overflow: hidden;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card h3 {
    margin: 0 0 6px;
    font-size: 0.94rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.product-brand {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.76rem;
}

.normalized-unit-price {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.add-controls {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.add-controls label {
    display: grid;
    gap: 3px;
}

.add-controls label > span {
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 700;
}

.product-quantity {
    width: 48px;
    height: 43px;
    box-sizing: border-box;
    padding: 0 4px 0 8px;
    color: var(--ink);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 800;
}

.product-quantity:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(88, 184, 121, 0.13);
}

.price-block span {
    display: block;
    color: var(--muted);
    font-size: 0.65rem;
}

.price-block strong {
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.price-block small {
    display: block;
    max-width: 110px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-button {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background: var(--green);
    font-size: 1.35rem;
}

.add-button:hover {
    background: var(--green-dark);
    transform: scale(1.04);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 65px 20px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #c9d2cd;
    border-radius: 20px;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.2rem;
}

.load-more-button {
    min-width: 250px;
    min-height: 52px;
    margin: 34px auto 0;
    padding: 0 24px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    font-weight: 800;
}

.load-more-button:not([hidden]) {
    display: block;
}

.load-more-button:hover {
    background: var(--green-dark);
}

.drawer-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    background: rgba(20, 25, 23, 0.52);
    backdrop-filter: blur(3px);
}

.cart-drawer {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(470px, 100%);
    height: 100dvh;
    background: var(--surface);
    box-shadow: -25px 0 70px rgba(20, 25, 23, 0.24);
    transform: translateX(105%);
    transition: transform 260ms ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px;
    border-bottom: 1px solid var(--line);
}

.drawer-header span {
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.drawer-header h2 {
    margin: 4px 0 0;
    letter-spacing: -0.04em;
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.clear-cart-button {
    min-height: 38px;
    padding: 0 12px;
    color: var(--danger);
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    font-size: 0.75rem;
    font-weight: 800;
}

.clear-cart-button:hover:not(:disabled) {
    border-color: var(--danger);
}

.clear-cart-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.close-button {
    width: 42px;
    height: 42px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    font-size: 1.6rem;
}

.cart-items {
    flex: 1;
    padding: 20px 26px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--green-dark);
    border-radius: 14px;
    background: var(--mint);
    font-weight: 800;
    overflow: hidden;
}

.cart-item-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
    background: #fff;
}

.cart-item h4 {
    margin: 0 0 5px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.cart-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-controls button {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
}

.quantity-controls span {
    min-width: 18px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.cart-summary {
    padding: 23px 26px 28px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.cart-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cart-summary span,
.cart-summary small {
    color: var(--muted);
}

.cart-summary strong {
    font-size: 1.45rem;
    white-space: nowrap;
}

.cart-total-copy {
    max-width: 265px;
}

.cart-summary .cart-total-copy small {
    margin-top: 4px;
    font-size: 0.62rem;
    line-height: 1.4;
}

.checkout-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 55px;
    padding: 0 20px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    font-weight: 800;
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.floating-support-button {
    position: fixed;
    z-index: 50;
    left: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    color: #fff !important;
    border: 1px solid var(--green-dark);
    border-radius: 999px;
    background: var(--green);
    box-shadow: var(--shadow);
    font-size: 0.76rem;
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease;
}

.floating-support-button img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.floating-support-button:hover {
    border-color: var(--green-dark);
    background: color-mix(in srgb, var(--green) 82%, white);
    transform: translateY(-2px);
}

.pwa-actions {
    position: fixed;
    z-index: 50;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.install-app-button,
.saved-list-button,
.shopping-list-finish {
    min-height: 44px;
    padding: 0 16px;
    color: #fff;
    border: 1px solid var(--green-dark);
    border-radius: 999px;
    background: var(--green);
    box-shadow: var(--shadow);
    font-size: 0.76rem;
    font-weight: 800;
}

.saved-list-button {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
}

.offline-banner {
    position: fixed;
    z-index: 120;
    top: 10px;
    left: 50%;
    width: min(520px, calc(100% - 28px));
    padding: 10px 16px;
    color: #fff;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: #101713;
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.install-backdrop {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: rgba(20, 25, 23, 0.64);
    backdrop-filter: blur(5px);
}

.install-modal {
    position: fixed;
    z-index: 111;
    top: 50%;
    left: 50%;
    width: min(460px, calc(100% - 30px));
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%);
    transition: opacity 160ms ease, transform 160ms ease;
}

.install-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.install-modal h2 {
    margin: 8px 0 10px;
}

.install-modal p,
.install-instructions {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

/* v66 mobile onboarding and navigation */
.menu-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 15px;color:var(--ink);border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:.82rem;font-weight:800}
.region-field-main,#informationButton{display:none}
.search-panel{grid-template-columns:minmax(260px,1fr) minmax(170px,238px)}
.region-chip{display:inline-flex;align-items:center;gap:8px;margin:-14px 0 24px;padding:8px 12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:.75rem}
.region-chip strong{color:var(--green-dark)}
.plan-option:disabled{cursor:not-allowed;color:var(--muted);border-color:var(--line);background:color-mix(in srgb,var(--surface) 72%,var(--line));opacity:.62;filter:grayscale(1)}
.plan-option:disabled:hover{transform:none;box-shadow:none}
.floating-cart-button{position:fixed;z-index:45;right:14px;bottom:max(70px,calc(env(safe-area-inset-bottom) + 70px));display:none;align-items:center;gap:7px;min-height:48px;padding:0 14px;color:#fff;border:0;border-radius:999px;background:var(--green);box-shadow:0 14px 35px rgba(0,0,0,.28);font-weight:800}
.floating-cart-button strong{display:grid;min-width:24px;height:24px;place-items:center;color:#202624;border-radius:50%;background:#fff;font-size:.72rem}
.menu-backdrop,.region-setup-backdrop,.tour-backdrop{position:fixed;z-index:80;inset:0;background:rgba(5,10,7,.65);backdrop-filter:blur(3px)}
.app-menu{position:fixed;z-index:81;top:0;right:0;width:min(390px,92vw);height:100dvh;padding:24px;border-left:1px solid var(--line);background:var(--surface);box-shadow:-22px 0 55px rgba(0,0,0,.24);transform:translateX(105%);transition:transform 180ms ease}
.app-menu.is-open{transform:translateX(0)}
.app-menu-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.app-menu-header span,.menu-region-field>span{color:var(--green);font-size:.65rem;font-weight:900;letter-spacing:.12em}
.app-menu-header h2{margin:4px 0 0}
.app-menu-header button{width:42px;height:42px;color:var(--ink);border:1px solid var(--line);border-radius:50%;background:transparent;font-size:1.4rem}
.app-menu>button,.menu-region-field select{width:100%;min-height:52px;margin-top:10px;padding:0 14px;color:var(--ink);border:1px solid var(--line);border-radius:13px;background:var(--paper);text-align:left;font-weight:750}
.app-menu .menu-theme-button{display:flex;align-items:center;gap:12px;height:auto;min-height:62px}
.menu-theme-button #themeIcon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;color:#fff;border-radius:50%;background:var(--green)}
.menu-theme-button #themeIcon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.menu-theme-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.menu-theme-copy small{color:var(--muted);font-size:.68rem;font-weight:700}
.menu-theme-copy strong{color:var(--ink);font-size:.84rem;line-height:1.25}
.region-setup-modal{position:fixed;z-index:82;top:50%;left:50%;width:min(520px,calc(100% - 30px));padding:34px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow);transform:translate(-50%,-46%);opacity:0;pointer-events:none;transition:180ms ease}
.region-setup-modal.is-open{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.region-setup-modal h2{margin:10px 0}.region-setup-modal p{color:var(--muted);line-height:1.6}
.region-setup-modal select,.region-setup-modal button{width:100%;min-height:52px;margin-top:12px;padding:0 14px;border-radius:13px}
.region-setup-modal select{color:var(--ink);border:1px solid var(--line);background:var(--paper)}
.region-setup-modal button{color:#fff;border:0;background:var(--green);font-weight:850}
.tour-backdrop{z-index:89;background:transparent;backdrop-filter:none}
.tour-spotlight{position:fixed;z-index:90;border:3px solid var(--green);border-radius:18px;background:transparent;box-shadow:0 0 0 9999px rgba(5,10,7,.72),0 0 0 7px rgba(88,184,121,.18);pointer-events:none;transition:top 180ms ease,left 180ms ease,width 180ms ease,height 180ms ease}
.tour-card{position:fixed;z-index:92;right:clamp(18px,5vw,70px);bottom:clamp(18px,5vw,60px);width:min(430px,calc(100% - 30px));padding:24px;color:var(--ink);border:1px solid var(--green);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.tour-card>span{color:var(--green);font-size:.7rem;font-weight:900;letter-spacing:.12em}
.tour-card h2{margin:8px 0}.tour-card p{margin:0 0 20px;color:var(--muted);line-height:1.55}
.tour-actions{display:flex;gap:8px;justify-content:flex-end}
.tour-actions button{min-height:42px;padding:0 13px;color:var(--ink);border:1px solid var(--line);border-radius:999px;background:var(--paper);font-weight:800}
#tourNextButton{color:#fff;border-color:var(--green);background:var(--green)}
.tour-highlight{position:relative;z-index:91!important;outline:4px solid var(--green);outline-offset:5px;border-radius:16px}
@media(max-width:760px){
    .menu-button{width:42px;height:42px;padding:0;font-size:0}.menu-button span{font-size:1.2rem}
    .search-panel{grid-template-columns:1fr}.region-chip{width:100%;justify-content:space-between;margin-top:-12px}
    .category-children .category-chips{display:grid;grid-template-columns:1fr;max-height:300px;overflow-y:auto}
    .category-chip{width:100%;justify-content:space-between;text-align:left}
    .floating-cart-button.is-visible{display:inline-flex}
    .tour-card{right:15px;bottom:max(15px,env(safe-area-inset-bottom))}.tour-actions{flex-wrap:wrap}
}

.install-steps {
    margin: 0;
    padding-left: 1.4rem;
    text-align: left;
}

.install-steps li + li {
    margin-top: 8px;
}

.install-instructions small {
    display: block;
    margin-top: 14px;
    text-align: left;
    line-height: 1.5;
}

.install-icon {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    border-radius: 20px;
}

.cart-summary small {
    display: block;
    margin-top: 12px;
    font-size: 0.67rem;
    line-height: 1.5;
}

.comparison-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    background: rgba(20, 25, 23, 0.58);
    backdrop-filter: blur(5px);
}

.product-detail-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(20, 25, 23, 0.62);
    backdrop-filter: blur(5px);
}

.barcode-backdrop {
    position: fixed;
    z-index: 160;
    inset: 0;
    background: rgba(10, 14, 12, 0.76);
    backdrop-filter: blur(7px);
}

.support-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(10, 14, 12, 0.68);
    backdrop-filter: blur(7px);
}

.price-alert-backdrop {
    position: fixed;
    z-index: 120;
    inset: 0;
    background: rgba(10, 14, 12, 0.7);
    backdrop-filter: blur(7px);
}

.information-backdrop {
    position: fixed;
    z-index: 140;
    inset: 0;
    background: rgba(10, 14, 12, 0.72);
    backdrop-filter: blur(7px);
}

.support-modal {
    position: fixed;
    z-index: 110;
    top: 50%;
    left: 50%;
    width: min(470px, calc(100% - 36px));
    padding: 34px;
    color: var(--ink);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.support-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.price-alert-modal {
    position: fixed;
    z-index: 130;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 36px));
    max-height: min(720px, calc(100dvh - 36px));
    padding: 34px;
    overflow-y: auto;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.price-alert-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.information-modal {
    position: fixed;
    z-index: 150;
    top: 50%;
    left: 50%;
    width: min(650px, calc(100% - 36px));
    max-height: min(780px, calc(100dvh - 36px));
    padding: 34px;
    overflow-y: auto;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.information-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.information-modal > h2 {
    margin: 7px 44px 22px 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

.information-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.information-content section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
}

.information-content h3 {
    margin: 0 0 7px;
    font-size: 0.86rem;
}

.information-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.information-confirm {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    font-weight: 800;
}

.price-alert-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 17px;
    place-items: center;
    color: #fff;
    border-radius: 20px;
    background: var(--green);
    font-size: 1.65rem;
    font-weight: 800;
}

.price-alert-modal h2 {
    margin: 0 34px 20px;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.price-alert-list {
    display: grid;
    gap: 9px;
}

.price-alert-row {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
}

.price-alert-row strong {
    font-size: 0.82rem;
    line-height: 1.45;
}

.price-alert-row span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.price-alert-row b {
    margin: 0 5px;
    color: var(--green);
}

.price-alert-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 15px;
    padding: 15px 2px 4px;
    border-top: 1px solid var(--line);
}

.price-alert-total span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.price-alert-total strong {
    white-space: nowrap;
    font-size: 1.1rem;
}

.price-alert-total .is-saving {
    color: var(--green);
}

.price-alert-total .is-increase {
    color: #d45f5f;
}

.price-alert-confirm {
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    font-weight: 800;
}

.support-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    font-size: 1.15rem;
}

.support-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 22px;
    background: var(--mint);
}

.support-icon img {
    width: 48px;
    height: 48px;
}

.support-modal h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.support-modal p {
    margin: 14px auto 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.support-actions {
    display: grid;
    gap: 10px;
}

.support-donate-button,
.support-decline-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
}

.support-donate-button {
    color: #fff;
    border: 1px solid var(--green);
    background: var(--green);
}

.support-donate-button img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

.support-donate-button:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.support-decline-button {
    color: var(--muted);
    border: 1px solid var(--line);
    background: transparent;
}

.support-decline-button:hover {
    color: var(--ink);
    background: var(--paper);
}

.product-detail-modal {
    position: fixed;
    z-index: 90;
    top: 50%;
    left: 50%;
    width: min(650px, calc(100% - 36px));
    max-height: min(760px, calc(100dvh - 36px));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(20, 25, 23, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -47%) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.product-detail-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.barcode-modal {
    position: fixed;
    z-index: 170;
    top: 50%;
    left: 50%;
    width: min(600px, calc(100% - 36px));
    max-height: min(820px, calc(100dvh - 36px));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(20, 25, 23, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -47%) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.barcode-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.barcode-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.barcode-header span {
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.barcode-header h2 {
    margin: 4px 0 0;
    letter-spacing: -0.035em;
}

.barcode-content {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.barcode-camera {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #070a08;
}

.barcode-camera video {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.barcode-target {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(82%, 420px);
    height: 116px;
    border: 3px solid var(--green);
    border-radius: 16px;
    box-shadow:
        0 0 0 999px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(88, 184, 121, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.barcode-target::after {
    position: absolute;
    top: 50%;
    left: 8%;
    width: 84%;
    height: 2px;
    content: "";
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.barcode-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.barcode-status.is-error {
    color: #c34f4f;
    font-weight: 700;
}

.barcode-status.is-success {
    color: var(--green-dark);
    font-weight: 800;
}

.barcode-manual-form {
    display: grid;
    gap: 8px;
}

.barcode-manual-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.barcode-manual-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
}

.barcode-manual-form input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: var(--paper);
    font: inherit;
}

.barcode-manual-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(88, 184, 121, 0.14);
}

.barcode-manual-form button {
    min-height: 48px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.barcode-manual-form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.barcode-note {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.product-detail-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.product-detail-header span,
.product-detail-summary > div > span {
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-detail-header h2,
.product-detail-summary h3 {
    margin: 4px 0 0;
    letter-spacing: -0.035em;
}

.product-detail-content {
    padding: 26px;
}

.product-detail-loading {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
}

.product-detail-summary {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.product-detail-summary h3 {
    line-height: 1.35;
}

.product-detail-summary p {
    margin: 7px 0 0;
    color: var(--muted);
}

.product-detail-image {
    position: relative;
    display: grid;
    width: 110px;
    height: 110px;
    overflow: hidden;
    place-items: center;
    color: var(--green-dark);
    border-radius: 18px;
    background: var(--mint);
    font-size: 2rem;
    font-weight: 800;
}

.product-detail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #fff;
}

.retailer-price-list {
    display: grid;
    gap: 9px;
}

.retailer-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.retailer-price-row > div {
    display: grid;
    gap: 3px;
}

.retailer-price-row small {
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 800;
}

.retailer-price-row > b {
    font-size: 1.08rem;
}

.retailer-price-row.is-cheapest {
    border-color: color-mix(in srgb, var(--green) 55%, var(--line));
    background: color-mix(in srgb, var(--mint) 58%, var(--surface));
}

.comparison-modal {
    position: fixed;
    z-index: 70;
    top: 50%;
    left: 50%;
    width: min(1040px, calc(100% - 36px));
    max-height: min(880px, calc(100dvh - 36px));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(20, 25, 23, 0.30);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -47%) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.comparison-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.comparison-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.comparison-header span {
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.comparison-header h2 {
    margin: 4px 0 0;
    letter-spacing: -0.04em;
}

.comparison-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    padding: 18px 28px 0;
}

.comparison-toolbar label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.comparison-toolbar select {
    min-width: 150px;
    height: 44px;
    padding: 0 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    font-weight: 700;
}

.comparison-loading {
    min-height: 300px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
}

.comparison-loading:not([hidden]) {
    display: grid;
}

.comparison-results {
    padding: 22px 28px 32px;
}

.comparison-intro {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.plan-selection {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--paper) 78%, transparent);
}

.plan-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-option {
    position: relative;
    min-height: 150px;
    padding: 20px;
    color: var(--ink);
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
}

.plan-option:hover,
.plan-option.is-selected {
    border-color: var(--green);
}

.plan-option.is-selected {
    box-shadow: 0 0 0 3px rgba(88, 184, 121, 0.13);
}

.plan-option.has-saving {
    padding-top: 48px;
}

.plan-option:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.plan-option-label {
    display: block;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.plan-option strong {
    display: block;
    font-size: 1.65rem;
}

.plan-option small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.saving-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    color: #202624;
    border-radius: 999px;
    background: var(--green);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.alternative-plans {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.alternative-plans-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.alternative-plans-heading span {
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.alternative-plans-heading h3 {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.alternative-plans-heading small {
    color: var(--muted);
}

.alternative-plan-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.alternative-plans-empty {
    margin: 0;
    padding: 16px 18px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: var(--paper);
    line-height: 1.5;
}

.alternative-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 13px 15px;
    color: var(--ink);
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.alternative-plan:hover,
.alternative-plan.is-selected {
    border-color: var(--green);
}

.alternative-plan.is-selected {
    box-shadow: 0 0 0 3px rgba(88, 184, 121, 0.13);
}

.alternative-retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.alternative-retailers b {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--mint);
    font-size: 0.66rem;
}

.alternative-price {
    flex: 0 0 auto;
    text-align: right;
}

.alternative-price strong,
.alternative-price small {
    display: block;
}

.alternative-price small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.64rem;
}

.show-alternatives-button {
    display: block;
    margin: 14px auto 0;
    padding: 8px 0;
    color: var(--green-dark);
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 800;
}

.selected-plan {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.selected-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.selected-plan-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.selected-plan-header h3 {
    margin: 4px 0 0;
    font-size: 1.3rem;
}

.section-step {
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.selected-plan-header strong {
    color: var(--green-dark);
    font-size: 1.35rem;
}

.selected-plan-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.download-pdf-button,
.shopping-list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 15px;
    color: #202624;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    font-size: 0.8rem;
    font-weight: 800;
}

.shopping-list-button {
    color: var(--ink);
    border: 1px solid var(--green);
    background: transparent;
}

.download-pdf-button:hover,
.shopping-list-button:hover {
    filter: brightness(1.05);
}

.download-pdf-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.plan-retailers {
    display: grid;
    gap: 12px;
}

.retailer-plan {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.retailer-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 17px;
    background: var(--mint);
}

.retailer-plan-header h4,
.retailer-plan-header strong {
    margin: 0;
}

.plan-product-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 17px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.plan-product-line span:nth-child(2) {
    color: var(--muted);
    white-space: nowrap;
}

.shopping-list-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.shopping-list-finish {
    box-shadow: none;
}

.shopping-list-footer {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.shopping-list-footer .shopping-list-finish {
    min-width: min(320px, 100%);
}

.shopping-list-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    font-size: 0.75rem;
    font-weight: 800;
}

.shopping-list-brand {
    padding: 4px 20px 25px;
    text-align: center;
}

.shopping-list-brand img {
    display: block;
    width: min(330px, 72vw);
    height: 92px;
    margin: 0 auto 7px;
    object-fit: contain;
}

.shopping-list-brand .logo-dark {
    display: none;
}

html[data-theme="dark"] .shopping-list-brand .logo-light {
    display: none;
}

html[data-theme="dark"] .shopping-list-brand .logo-dark {
    display: block;
}

.shopping-list-brand h3 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.shopping-list-brand p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.shopping-list-brand p strong {
    color: var(--green-dark);
}

.shopping-list-retailers {
    display: grid;
    gap: 18px;
}

.shopping-list-retailer {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.shopping-list-retailer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    color: #fff;
    background: #202624;
}

.shopping-list-retailer-header span {
    color: var(--green);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.shopping-list-retailer-header h4 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 1.2rem;
}

.shopping-list-retailer-header > strong {
    display: grid;
    min-width: 43px;
    min-height: 43px;
    place-items: center;
    border-radius: 999px;
    color: #202624;
    background: var(--green);
    font-size: 0.75rem;
}

.shopping-check-items {
    display: grid;
}

.shopping-check-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 74px;
    padding: 13px 17px;
    border-top: 1px solid var(--line);
    cursor: pointer;
    transition: background 150ms ease, opacity 150ms ease;
}

.shopping-check-main {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    cursor: pointer;
}

.find-similar-button {
    min-height: 36px;
    padding: 0 11px;
    color: var(--green-dark);
    border: 1px solid var(--green);
    border-radius: 10px;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.find-similar-button:hover {
    background: var(--mint);
}

.shopping-check-item:first-child {
    border-top: 0;
}

.shopping-check-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.shopping-checkbox {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 2px solid var(--green);
    border-radius: 8px;
    background: var(--surface);
}

.shopping-check-item input:focus-visible + .shopping-checkbox {
    outline: 3px solid rgba(88, 184, 121, 0.25);
    outline-offset: 3px;
}

.shopping-check-item input:checked + .shopping-checkbox {
    background: var(--green);
}

.shopping-check-item input:checked + .shopping-checkbox::after {
    content: "✓";
    color: #202624;
    font-size: 1rem;
    font-weight: 900;
}

.shopping-check-details {
    min-width: 0;
}

.shopping-check-details strong,
.shopping-check-details small {
    display: block;
}

.shopping-check-details strong {
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.4;
}

.shopping-check-details small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.shopping-check-item.is-checked {
    background: color-mix(in srgb, var(--green) 10%, var(--paper));
}

.shopping-check-item.is-checked .shopping-check-details strong {
    color: var(--muted);
    text-decoration: line-through;
}

.similar-intro {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

.similar-intro strong {
    color: var(--ink);
}

.similar-product-list {
    display: grid;
    gap: 9px;
}

.similar-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    width: 100%;
    min-height: 82px;
    padding: 10px 13px;
    color: var(--ink);
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.similar-product:hover {
    border-color: var(--green);
    background: var(--mint);
}

.similar-product-image {
    display: grid;
    width: 64px;
    height: 64px;
    overflow: hidden;
    place-items: center;
    border-radius: 10px;
    background: #fff;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.similar-product strong,
.similar-product small {
    display: block;
}

.similar-product strong {
    line-height: 1.35;
}

.similar-product small {
    margin-top: 4px;
    color: var(--muted);
}

.similar-product b {
    color: var(--green-dark);
    white-space: nowrap;
}

.comparison-error {
    padding: 42px 20px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 16px;
}

.comparison-error strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
}

.toast {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 24px;
    padding: 13px 19px;
    color: #fff !important;
    border: 1px solid var(--green-dark);
    border-radius: 999px;
    background: var(--green);
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 180ms ease, transform 180ms ease;
}

html[data-theme="light"] .toast,
html[data-theme="dark"] .toast {
    color: #fff !important;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
    .main-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand img {
        width: 250px;
        height: 76px;
    }

    .nav-button {
        width: 44px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .nav-button span {
        font-size: 1.25rem;
    }

    .cart-button {
        padding: 0 12px;
        font-size: 0;
    }

    .cart-button > span {
        font-size: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 680px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .main-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-category-card {
        min-height: 96px;
    }

    .support-modal {
        padding: 30px 20px 22px;
        border-radius: 20px;
    }

    .price-alert-modal {
        width: calc(100% - 28px);
        padding: 30px 20px 22px;
        border-radius: 20px;
    }

    .floating-support-button {
        left: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: auto;
        min-height: 46px;
        justify-content: center;
        overflow: visible;
        padding: 0 15px 0 11px;
        color: #fff !important;
        font-size: 0.76rem;
    }

    .pwa-actions {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        align-items: flex-end;
        flex-direction: column;
    }

    .install-app-button,
    .saved-list-button {
        min-height: 42px;
        padding-inline: 13px;
    }

    .floating-support-button img {
        width: 27px;
        height: 27px;
    }

    .site-header {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-height: auto;
        padding: 6px 14px 10px;
    }

    .brand img {
        width: 235px;
        height: 66px;
    }

    .header-spacer {
        display: none;
    }

    .brand {
        align-self: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 7px;
    }

    .nav-button {
        width: 42px;
        height: 42px;
        padding: 0;
        align-items: center;
        justify-content: center;
        font-size: 0;
    }

    .theme-button,
    .header-scan-button {
        width: 42px;
        height: 42px;
    }

    .theme-button span,
    .nav-icon,
    .cart-icon {
        width: 22px;
        height: 22px;
    }

    .cart-button {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0;
    }

    .cart-button > .cart-icon {
        display: grid;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 24px 22px 26px;
    }

    .hero::after {
        right: -120px;
        bottom: -190px;
    }

    .eyebrow {
        display: none;
    }

    .hero h1 {
        margin: 0;
        font-size: clamp(1.75rem, 8.5vw, 2.7rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .hero-copy p {
        display: none;
    }

    .hero-card {
        display: none;
    }

    .hero-mobile-cta {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        align-self: center;
        gap: 7px;
        min-height: 44px;
        padding: 0 14px;
        color: #fff;
        white-space: nowrap;
        border: 1px solid rgba(88, 184, 121, 0.78);
        border-radius: 999px;
        background: var(--green);
        font-size: 0.72rem;
        font-weight: 800;
        text-decoration: none;
    }

    .catalog-section {
        width: min(100% - 28px, 1420px);
        scroll-margin-top: 118px;
        padding: 24px 0 80px;
    }

    .catalog-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .floating-search {
        z-index: 60;
        top: calc(70px + env(safe-area-inset-top, 0px));
        width: calc(100% - 24px);
        height: 52px;
        padding: 0 7px 0 13px;
        border-radius: 14px;
    }

    .floating-search input {
        padding: 0 7px;
        font-size: 0.86rem;
    }

    .floating-search .search-submit {
        min-height: 38px;
        padding: 0 11px;
        font-size: 0.7rem;
    }

    .search-panel select,
    .sort-field {
        height: 50px;
    }

    .sort-field > span {
        top: 5px;
    }

    .region-field > span {
        top: 5px;
    }

    .retailer-filter {
        margin-top: -10px;
    }

    .retailer-filter-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .information-modal {
        width: calc(100% - 28px);
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .information-content {
        grid-template-columns: 1fr;
    }

    .retailer-checkbox {
        flex: 1 1 calc(50% - 4px);
    }

    .category-browser {
        padding: 16px;
    }

    .category-browser-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .active-view:not([hidden]) {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        min-height: 315px;
        padding: 13px;
    }

    .comparison-modal {
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 92dvh;
        border-radius: 22px 22px 0 0;
        transform: translate(-50%, 30px);
    }

    .comparison-modal.is-open {
        transform: translate(-50%, 0);
    }

    .product-detail-modal {
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 92dvh;
        border-radius: 22px 22px 0 0;
        transform: translate(-50%, 30px);
    }

    .product-detail-modal.is-open {
        transform: translate(-50%, 0);
    }

    .barcode-modal {
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 94dvh;
        border-radius: 22px 22px 0 0;
        transform: translate(-50%, 30px);
    }

    .barcode-modal.is-open {
        transform: translate(-50%, 0);
    }

    .barcode-camera video {
        height: min(42dvh, 330px);
    }

    .product-detail-content {
        padding: 20px;
    }

    .product-detail-summary {
        grid-template-columns: 82px 1fr;
        gap: 14px;
    }

    .product-detail-image {
        width: 82px;
        height: 82px;
    }

    .plan-option-grid {
        grid-template-columns: 1fr;
    }

    .alternative-plan-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .site-header {
        padding-inline: 10px;
    }

    .brand img {
        width: min(240px, 78vw);
    }

    .header-actions {
        gap: 5px;
    }

    .retailer-filter summary {
        padding-inline: 14px;
    }

    .retailer-filter-body {
        padding-inline: 14px;
    }

    .retailer-checkbox {
        flex-basis: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 20px 18px 22px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
        text-align: center;
    }

    .hero-mobile-cta {
        justify-self: center;
    }

    .catalog-section {
        width: calc(100% - 24px);
    }

    .catalog-heading h2 {
        font-size: 2.15rem;
    }

    .search-box {
        height: 54px;
        padding: 0 15px;
    }

    .search-box input {
        padding: 0 111px 0 47px;
        font-size: 0.9rem;
    }

    .search-box .search-submit {
        min-height: 38px;
        padding: 0 11px;
        font-size: 0.7rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 300px;
        padding: 16px;
    }

    .load-more-button {
        width: 100%;
        min-width: 0;
    }

    .drawer-header {
        padding: 19px 20px;
    }

    .cart-items {
        padding: 12px 20px;
    }

    .cart-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 11px;
    }

    .cart-item-icon {
        width: 44px;
        height: 44px;
    }

    .quantity-controls {
        grid-column: 2;
        justify-self: start;
    }

    .cart-summary {
        padding: 18px 20px max(20px, env(safe-area-inset-bottom));
    }

    .toast {
        width: calc(100% - 28px);
        bottom: max(14px, env(safe-area-inset-bottom));
        text-align: center;
    }

    .price-alert-modal h2 {
        margin-inline: 26px;
    }

    .price-alert-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .comparison-header {
        padding: 18px 19px;
    }

    .comparison-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 19px 0;
    }

    .comparison-results {
        padding: 18px 19px max(26px, env(safe-area-inset-bottom));
    }

    .selected-plan-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .selected-plan-heading {
        align-items: end;
        width: 100%;
        gap: 12px;
    }

    .selected-plan-heading h3 {
        font-size: 1.05rem;
    }

    .alternative-plans-heading,
    .alternative-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .alternative-price {
        text-align: left;
    }

    .selected-plan-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .selected-plan-price {
        flex: 0 0 auto;
        width: auto;
        max-width: 160px;
        text-align: right;
    }

    .selected-plan-price strong {
        white-space: nowrap;
    }

    .selected-plan-price small {
        max-width: 150px;
        font-size: 0.62rem;
    }

    .download-pdf-button,
    .shopping-list-button {
        justify-content: center;
        width: 100%;
        padding-inline: 10px;
        font-size: 0.72rem;
    }

    .shopping-list-button {
        order: 1;
    }

    .download-pdf-button {
        order: 2;
    }

    .plan-product-line {
        grid-template-columns: 1fr auto;
        gap: 7px 12px;
    }

    .plan-product-line span:nth-child(2) {
        grid-row: 2;
    }

    .plan-product-line strong {
        grid-row: 1 / 3;
        grid-column: 2;
    }

    .shopping-list-brand {
        padding-inline: 4px;
    }

    .shopping-list-brand img {
        width: min(280px, 76vw);
        height: 78px;
    }

    .shopping-check-item {
        grid-template-columns: 1fr;
        min-height: 82px;
        padding: 14px;
    }

    .find-similar-button {
        justify-self: end;
    }

    .similar-product {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .similar-product-image {
        width: 54px;
        height: 54px;
    }

    .similar-product b {
        grid-column: 2;
    }
}
.disclaimer-gate {
    display: none;
}

html.needs-disclaimer {
    overflow: hidden;
}

html.needs-disclaimer .disclaimer-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(circle at 50% 0%, rgba(85, 190, 126, 0.18), transparent 42%),
        var(--paper);
}

.disclaimer-card {
    width: min(780px, 100%);
    margin: auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.disclaimer-card > img {
    width: min(260px, 70%);
    height: auto;
    margin: 0 auto 22px;
}

.disclaimer-card > .logo-light {
    display: block;
}

.disclaimer-card > .logo-dark {
    display: none;
}

html[data-theme="dark"] .disclaimer-card > .logo-light {
    display: none;
}

html[data-theme="dark"] .disclaimer-card > .logo-dark {
    display: block;
}

.disclaimer-card > h1 {
    margin: 8px 0 22px;
    font-family: Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.disclaimer-content {
    display: grid;
    gap: 16px;
    max-height: min(50vh, 520px);
    padding-right: 8px;
    overflow: auto;
}

.disclaimer-content section {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.08);
}

.disclaimer-content h2 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.disclaimer-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.disclaimer-content p + p {
    margin-top: 9px;
}

.disclaimer-note {
    margin: 22px 0 14px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}

.disclaimer-accept,
.information-terms-button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #48b875;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.disclaimer-accept {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
}

.information-terms-button {
    margin-top: 12px;
    padding: 10px 15px;
}

.information-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--green-dark);
    font-weight: 800;
}

.information-danger-button {
    margin-top: 12px;
    padding: 10px 15px;
    border: 1px solid color-mix(in srgb, var(--danger) 48%, transparent);
    border-radius: 999px;
    color: var(--danger);
    background: transparent;
    font: inherit;
    font-weight: 800;
}

.information-danger-button:hover {
    color: #fff;
    background: var(--danger);
}

.savings-summary {
    display: flex;
    gap: 10px 20px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.hero .savings-summary {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    color: #fff;
    border-color: rgba(88, 184, 121, 0.48);
    background: rgba(9, 18, 13, 0.38);
    backdrop-filter: blur(12px);
}

.hero .savings-summary p {
    font-size: 1rem;
}

.hero .savings-summary strong {
    font-size: 1.35rem;
}

.hero .savings-summary small {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.72);
}

.savings-summary > span {
    color: #55be7e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.savings-summary p {
    margin: 0;
    font-weight: 700;
}

.savings-summary strong {
    margin-left: 5px;
    color: #55be7e;
    font-size: 1.15rem;
}

.savings-summary small {
    margin-left: auto;
    color: var(--muted);
}

.selected-plan-price {
    display: grid;
    gap: 2px;
    text-align: right;
}

.selected-plan-price small {
    max-width: 230px;
    color: #55be7e;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 640px) {
    html.needs-disclaimer .disclaimer-gate {
        place-items: start center;
        padding: 12px;
    }

    .disclaimer-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .disclaimer-content {
        max-height: none;
    }

    .savings-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero .savings-summary {
        gap: 5px;
        align-items: center;
        padding: 12px 14px;
        text-align: center;
    }

    .hero .savings-summary > span {
        font-size: 0.58rem;
    }

    .hero .savings-summary p {
        font-size: 0.82rem;
    }

    .hero .savings-summary small {
        font-size: 0.66rem;
    }

    .savings-summary small {
        margin-left: 0;
    }

    .selected-plan-price {
        width: auto;
        max-width: 150px;
        text-align: right;
    }
}

.category-dropdown-field {
    display: grid;
    gap: 9px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(88, 184, 121, 0.45);
    border-radius: 16px;
    background: var(--mint);
}

.category-dropdown-field > span:first-child {
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-dropdown-control {
    position: relative;
    display: block;
}

.category-dropdown-field select {
    appearance: none;
    cursor: pointer;
    width: 100%;
    min-height: 58px;
    padding: 0 54px 0 17px;
    color: var(--ink);
    border: 2px solid var(--green);
    border-radius: 14px;
    outline: 0;
    background: var(--paper);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 850;
}

.category-dropdown-field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(88, 184, 121, 0.14);
}

.category-dropdown-arrow {
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 17px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--green);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.category-children .category-chips {
    display: block;
}

@media (max-width: 760px) {
    .category-children .category-chips {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .category-dropdown-field {
        padding: 12px;
    }

    .category-dropdown-field select {
        min-height: 56px;
        font-size: 0.88rem;
    }
}
