:root {
    /* Direzione Too Good To Go: blu-verde scuro + vista white */
    --ink: #1a2e2d;
    --smart-green: #00615f;
    --smart-green-dark: #004d4b;
    --brand-orange: #00615f;
    --brand-orange-dark: #004d4b;
    --lime: #e3f4f2;
    --soft-cream: #f9f3f0;
    --dark-slate: #1a2e2d;
    --slate-muted: #5c6f6e;
    --flyer-yellow: #e3f4f2;
    --flyer-yellow-deep: #00615f;
    --accent-orange: #00615f;
    --sky: #00615f;
    --pink: #00615f;
    --yellow: #e3f4f2;
    --line: #e8e4e1;
    --border: #d9d3cf;
    --white: #ffffff;
    --body-font: 'Nunito', sans-serif;
    --title-font: 'Outfit', sans-serif;
    --radius: 24px;
    --shadow: 0 10px 30px rgba(0, 97, 95, 0.08);
    --shadow-sm: 0 4px 16px rgba(26, 46, 45, 0.06);
    --nav-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--dark-slate);
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 97, 95, 0.08), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(244, 162, 97, 0.12), transparent 26%),
        linear-gradient(180deg, #fff8f3 0%, var(--soft-cream) 42%, #f3ebe5 100%);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

/* ----- Nav ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(249, 243, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-slate);
}

.brand__mark {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    object-fit: cover;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 97, 95, 0.18);
}

.brand__smart {
    color: var(--smart-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--slate-muted);
    font-weight: 700;
    font-size: 0.92rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--smart-green-dark);
    background: var(--lime);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-user {
    font-weight: 700;
    color: var(--dark-slate);
    padding: 0.35rem 0.25rem;
    white-space: nowrap;
}

.zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 11rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--smart-green-dark);
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-chip.is-set {
    background: #d3ece8;
    border-color: rgba(0, 97, 95, 0.12);
}

.zone-chip__pin {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.zone-chip:hover {
    background: #d3ece8;
}

.notif-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a4b16;
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
    border: 1px solid rgba(154, 75, 22, 0.12);
}

.notif-chip__badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #c2410c;
    color: #fff;
    font-size: 0.72rem;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.pref-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0;
    font-weight: 700;
    color: var(--dark-slate);
}

.pref-toggle input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--smart-green);
}

.notif-list {
    display: grid;
    gap: 0.55rem;
}

.notif-item {
    display: grid;
    gap: 0.2rem;
    text-align: left;
    width: 100%;
    padding: 0.95rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.notif-item strong {
    font-family: var(--title-font);
    font-weight: 800;
}

.notif-item.is-unread {
    border-color: rgba(0, 97, 95, 0.35);
    background: var(--lime);
}

.notif-item:hover {
    box-shadow: var(--shadow-sm);
}

.zone-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 auto 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(28, 45, 42, 0.04);
}

.zone-banner p {
    margin: 0;
    color: var(--dark-slate);
    font-weight: 600;
}

.zone-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zone-list {
    display: grid;
    gap: 0.55rem;
}

.zone-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--dark-slate);
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.zone-option:hover,
.zone-option.is-active {
    border-color: var(--smart-green);
    background: var(--lime);
    color: var(--smart-green-dark);
}

.zone-option__check {
    color: var(--smart-green);
    font-weight: 800;
    opacity: 0;
}

.zone-option.is-active .zone-option__check {
    opacity: 1;
}

.zone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-family: var(--title-font);
    font-weight: 800;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--smart-green);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 97, 95, 0.22);
}

.btn-primary:hover {
    background: var(--smart-green-dark);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(0, 77, 75, 0.26);
}

.btn-primary:active {
    box-shadow: 0 4px 12px rgba(0, 77, 75, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--dark-slate);
}

.btn-ghost:hover {
    background: var(--lime);
}

.btn-outline {
    background: var(--white);
    color: var(--smart-green-dark);
    border: 2px solid var(--smart-green);
    box-shadow: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-slate);
    cursor: pointer;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 3.75rem 0 3rem;
    background: transparent;
    border-bottom: 0;
    min-height: min(58vh, 480px);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 88% 12%, rgba(0, 97, 95, 0.18), transparent 34%),
        radial-gradient(circle at 18% 80%, rgba(244, 162, 97, 0.18), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff1e8 48%, #e3f4f2 100%);
}

@keyframes floatCard {
    from { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
    to { transform: translate3d(0, -10px, 0) rotate(var(--rot, 0deg)); }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 1.5rem 2rem;
    align-items: center;
    width: min(1120px, calc(100% - 2rem));
}

.hero__content {
    width: min(640px, 100%);
    padding: 0.25rem 0;
    animation: riseIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__collage {
    position: relative;
    min-height: 320px;
    height: min(38vw, 360px);
    animation: riseIn 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__collage[hidden] {
    display: none !important;
}

.hero-stack__card {
    position: absolute;
    width: min(58%, 220px);
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: var(--smart-green);
    box-shadow: 0 18px 40px rgba(26, 46, 45, 0.22);
    border: 3px solid #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stack__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stack__card--empty {
    display: grid;
    place-items: center;
    padding: 1rem;
    color: #fff;
    font-family: var(--title-font);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(145deg, #00615f, #0b8a7f);
}

.hero-stack__card--0 {
    --rot: -8deg;
    left: 8%;
    top: 18%;
    z-index: 1;
    transform: rotate(var(--rot));
    animation: floatCard 7s ease-in-out infinite alternate;
}

.hero-stack__card--1 {
    --rot: 4deg;
    left: 34%;
    top: 6%;
    z-index: 3;
    transform: rotate(var(--rot));
    animation: floatCard 8s 0.4s ease-in-out infinite alternate;
}

.hero-stack__card--2 {
    --rot: 10deg;
    left: 52%;
    top: 22%;
    z-index: 2;
    transform: rotate(var(--rot));
    animation: floatCard 7.5s 0.8s ease-in-out infinite alternate;
}

.hero-stack__card:hover {
    z-index: 5;
    box-shadow: 0 22px 48px rgba(0, 97, 95, 0.28);
}

.hero__kicker {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--lime);
    border: 0;
    color: var(--smart-green);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: none;
}

.hero__brand {
    font-family: var(--title-font);
    font-size: clamp(3rem, 7.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.96;
    margin: 0 0 0.9rem;
    color: var(--dark-slate);
}

.hero__brand span {
    color: var(--smart-green);
    -webkit-text-fill-color: unset;
    background: none;
}

.hero__lead {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--slate-muted);
    max-width: 34rem;
    margin: 0 0 1.7rem;
    font-weight: 600;
}

.search-bar {
    display: flex;
    gap: 0.45rem;
    padding: 0.5rem;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--smart-green);
    box-shadow: 0 16px 40px rgba(0, 97, 95, 0.12);
}

.search-bar input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.85rem 1.2rem;
    font-size: 1.08rem;
    min-width: 0;
    color: var(--dark-slate);
}

.search-bar .btn {
    flex-shrink: 0;
}

.search-hint {
    margin: 1.05rem 0 0;
    color: var(--slate-muted);
    font-size: 0.95rem;
    animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.search-hint strong {
    color: var(--smart-green-dark);
    font-weight: 800;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.shortcut {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.35rem 1.2rem;
    border: 0;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 136px;
}

.shortcut:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: var(--white);
    box-shadow: var(--shadow);
}

.shortcut__mark {
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    width: 2.6rem;
    height: 2.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--lime);
    color: var(--smart-green-dark);
    border: 0;
    box-shadow: none;
}

.shortcut strong {
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 800;
}

.shortcut span:last-child {
    color: var(--slate-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.shortcut--mint,
.shortcut--soft,
.shortcut--peach,
.shortcut--sky {
    background: var(--white);
    border-color: transparent;
}

.shortcut--mint .shortcut__mark,
.shortcut--soft .shortcut__mark,
.shortcut--peach .shortcut__mark,
.shortcut--sky .shortcut__mark {
    color: var(--smart-green-dark);
    border: 0;
    background: var(--lime);
}

.section--tight {
    padding: 0.75rem 0 0.25rem;
}

/* ----- Sections ----- */
.section {
    padding: 3.25rem 0;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section__title {
    font-family: var(--title-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.section__sub {
    margin: 0.35rem 0 0;
    color: var(--slate-muted);
}

.page-head {
    padding: 2.25rem 0 1.25rem;
}

.page-head--flyers {
    padding: 2.4rem 0 1.6rem;
    background:
        linear-gradient(120deg, rgba(0, 97, 95, 0.1), rgba(244, 162, 97, 0.12)),
        #fff;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
}

.page-head h1 {
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.page-head p {
    margin: 0.4rem 0 0;
    color: var(--slate-muted);
}

.flyer-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.75rem;
}

.flyer-detail-head .flyer-card__place {
    margin: 0.35rem 0 0;
    color: var(--slate-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.flyer-detail-head__logo .shop-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

/* ----- Lists ----- */
.product-list,
.flyer-list,
.compare-list,
.cart-list {
    display: grid;
    gap: 0.85rem;
}

.flyer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flyer-card {
    display: grid;
    grid-template-rows: 160px auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(26, 46, 45, 0.06);
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(26, 46, 45, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 100%;
}

.flyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 97, 95, 0.14);
}

.flyer-card__cover {
    position: relative;
    overflow: hidden;
    background: var(--smart-green);
}

.flyer-card__cover--a { background: linear-gradient(145deg, #00615f, #0b8a7f); }
.flyer-card__cover--b { background: linear-gradient(145deg, #c45c26, #e08a3c); }
.flyer-card__cover--c { background: linear-gradient(145deg, #1f4d6b, #3d7ea6); }
.flyer-card__cover--d { background: linear-gradient(145deg, #3f5d2a, #7aa84a); }

.flyer-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.flyer-card__cover-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--title-font);
    font-size: 4rem;
    font-weight: 900;
    z-index: 0;
}

.flyer-card__cover-logo {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(26, 46, 45, 0.18);
}

.flyer-card__cover-logo .shop-logo,
.flyer-card__cover-logo .shop-logo--fallback {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.flyer-card__expiry {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    max-width: calc(100% - 3.5rem);
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    background: #b45309;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flyer-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.flyer-card__brand {
    margin: 0;
    font-family: var(--title-font);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--smart-green);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flyer-card__place {
    margin: 0;
    color: var(--slate-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.flyer-card__shop {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.flyer-card__shop-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.flyer-card__shop-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flyer-card__city {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: #fff1e4;
    color: #9a4b16;
    font-family: var(--title-font);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.flyer-card__title {
    margin: 0.25rem 0 0;
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.flyer-card__meta {
    margin: 0.15rem 0 0;
    color: var(--slate-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.flyer-card__meta--expiry {
    color: #b45309;
}

.shop-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    flex-shrink: 0;
    padding: 4px;
}

.shop-logo--fallback {
    display: inline-grid;
    place-items: center;
    background: var(--lime);
    color: var(--smart-green-dark);
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 1.1rem;
    border: 0;
    padding: 0;
}

.product-row,
.flyer-row,
.compare-row,
.cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.2rem;
    background: var(--white);
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-row--thumb {
    grid-template-columns: 64px 1fr auto;
}

.product-row--search {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.9rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
}

.search-result__body {
    min-width: 0;
}

.search-result__deal {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 9.5rem;
    justify-content: flex-end;
}

.search-result__deal .shop-logo {
    width: 40px;
    height: 40px;
}

.search-result__deal-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 0;
}

.search-result__price {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--smart-green-dark);
    letter-spacing: -0.02em;
    background: var(--lime);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
}

.search-result__shop {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-muted);
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.search-result__deal--empty {
    justify-content: flex-end;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-chip {
    display: inline-flex;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--smart-green-dark);
    box-shadow: var(--shadow-sm);
}

.search-chip:hover {
    background: var(--lime);
    border-color: transparent;
}

.empty-state--rich {
    text-align: left;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.empty-state--rich p:first-child {
    margin: 0 0 0.4rem;
    font-weight: 800;
    color: var(--dark-slate);
}

.cart-row--thumb {
    grid-template-columns: 64px minmax(0, 1fr) auto 42px;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    align-items: center;
    border-radius: 24px;
}

.cart-row__body {
    min-width: 0;
}

.cart-row__price {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.cart-row__shop {
    display: block;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--smart-green-dark);
    margin-bottom: 0;
}

.cart-row__price .price {
    display: inline-flex;
    align-items: center;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-style: normal;
    background: var(--lime);
    border: 0;
    padding: 0.4rem 0.75rem;
    box-shadow: none;
    border-radius: 999px;
    color: var(--smart-green);
}

.cart-row__price .meta {
    margin: 0;
    font-size: 0.78rem;
}

.compare-summary {
    margin-bottom: 1rem;
    padding: 1.35rem 1.4rem;
    border-radius: 28px;
    background: var(--smart-green);
    border: 0;
    color: var(--white);
    box-shadow: var(--shadow);
}

.compare-summary--warn {
    background: var(--white);
    border: 0;
    box-shadow: var(--shadow-sm);
    color: var(--dark-slate);
}

.compare-summary .meta {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

.compare-summary--warn .meta {
    color: var(--slate-muted);
    opacity: 1;
}

.cart-mix {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-top: 1.15rem;
    padding: 1.05rem 1.2rem;
    border-radius: 24px;
    background: var(--smart-green);
    border: 0;
    color: var(--white);
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.cart-mix__label {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
}

.cart-mix__price {
    font-family: var(--title-font);
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
}

.cart-mix .meta {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-size: 0.88rem;
}

.compare-row--partial {
    opacity: 0.78;
}

.compare-row--partial .price {
    color: var(--slate-muted);
    background: #eef3f0;
    box-shadow: none;
}

.compare-row .price {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--lime);
}

.compare-row--best .price {
    background: var(--lime);
    box-shadow: none;
    color: var(--smart-green);
}

.compare-summary__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-summary--warn .compare-summary__label {
    color: var(--slate-muted);
}

.compare-summary__shop {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.35rem;
    color: inherit;
}

.compare-summary__price {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-style: normal;
    color: inherit;
    margin-top: 0.25rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Cart page layout */
.cart-page .page-head h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.cart-page .detail-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: start;
}

.cart-page #bestBanner {
    grid-column: 1 / -1;
}

.cart-page #guestBox {
    grid-column: 1 / -1;
    max-width: 520px;
}

@media (max-width: 900px) {
    .cart-page .detail-grid {
        grid-template-columns: 1fr;
    }
}

.compare-row--best {
    border-color: transparent;
    background: #eefbf5;
    box-shadow: 0 0 0 2px var(--smart-green), var(--shadow-sm);
}

.compare-row__shop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: 650;
}

.compare-row--logo {
    grid-template-columns: 48px 1fr auto;
    gap: 0.85rem;
}

.compare-row--logo .shop-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.compare-summary__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 0.5rem;
}

.compare-summary__head .shop-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
}

.compare-summary .flyer-card__city {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--slate-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.btn-icon:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    background: #eef8f2;
    border: 1px solid var(--border);
    padding: 4px;
}

.product-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--smart-green);
    background: #e8fbf3;
}

.product-hero {
    width: min(220px, 100%);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 20px;
    background: #eef8f2;
    border: 1px solid var(--border);
    padding: 12px;
    margin: 0 0 1rem;
}

.product-hero--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 3rem;
    color: var(--smart-green);
    background: #e8fbf3;
}

.product-row:hover,
.flyer-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-row__title,
.flyer-row__title {
    font-family: var(--body-font);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: 0;
    font-style: normal;
}

.flyer-row__shop {
    display: inline-block;
    margin: 0 0 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--smart-green-dark);
    font-family: var(--title-font);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
}

.flyer-row .flyer-row__title {
    margin-top: 0.1rem;
}

.meta {
    color: var(--slate-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.price {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.35rem;
    font-style: normal;
    letter-spacing: -0.02em;
    color: var(--dark-slate);
    white-space: nowrap;
}

.compare-row--best .price,
.product-row .price {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--lime);
}

.price--was {
    color: var(--slate-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: line-through;
    margin-right: 0.4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--title-font);
}

.badge--promo {
    background: var(--smart-green);
    color: var(--white);
}

.badge--source {
    background: var(--lime);
    color: var(--smart-green-dark);
}

.empty-state,
.loading,
.error-box {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--slate-muted);
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-weight: 500;
}

.error-box {
    border-style: solid;
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.detail-grid {
    display: grid;
    gap: 1.5rem;
}

.detail-panel {
    background: var(--white);
    border: 0;
    border-radius: 28px;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.detail-panel--mint,
.detail-panel--peach,
.detail-panel--sky {
    background: var(--white);
    border-color: var(--line);
    box-shadow: none;
}

.detail-panel h2 {
    font-family: var(--title-font);
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--dark-slate);
}

.detail-panel--mint h2,
.detail-panel--peach h2,
.detail-panel--sky h2 {
    color: var(--dark-slate);
}

.compare-row {
    grid-template-columns: 1fr auto;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

/* ----- Product page ----- */
.product-page {
    padding: 1.5rem 0 3rem;
}

.product-page__back {
    margin: 0 0 1rem;
}

.product-page__back a {
    color: var(--slate-muted);
    font-weight: 700;
}

.product-page__back a:hover {
    color: var(--smart-green-dark);
}

.product-hero-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    border: 0;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.product-hero-card__media {
    display: grid;
    place-items: center;
}

.product-hero-card .product-hero {
    width: min(240px, 100%);
    margin: 0;
    background: #f4faf7;
    border: 0;
    border-radius: 24px;
}

.product-hero-card__brand {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--smart-green);
    font-weight: 800;
    font-size: 0.85rem;
    border: 0;
}

.product-hero-card__brand:empty {
    display: none;
}

.product-hero-card h1 {
    font-family: var(--title-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.product-best {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        'label label'
        'shop price';
    align-items: end;
    gap: 0.25rem 1rem;
    margin: 1.25rem 0 0.35rem;
    padding: 1.15rem 1.3rem;
    border-radius: 28px;
    background: var(--smart-green);
    border: 0;
    box-shadow: var(--shadow);
    color: var(--white);
}

.product-best__label {
    grid-area: label;
    width: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-best__shop {
    grid-area: shop;
    font-family: var(--title-font);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.product-best__price {
    grid-area: price;
    font-family: var(--title-font);
    font-size: clamp(2.3rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.045em;
    line-height: 1;
    animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-detail-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 820px) {
    .product-hero-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .product-hero-card__media {
        margin-inline: 0;
        width: min(180px, 100%);
    }

    .product-hero-card__body .actions-row {
        justify-content: flex-start;
    }

    .product-best {
        text-align: left;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth */
.auth-wrap {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2.5rem 0;
}

.auth-card {
    width: min(440px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-family: var(--title-font);
    font-size: 1.7rem;
    margin: 0 0 0.35rem;
}

.auth-card > p {
    margin: 0 0 1.5rem;
    color: var(--slate-muted);
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.form-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    background: var(--soft-cream);
    outline: 0;
}

.form-field input:focus {
    border-color: var(--smart-green);
    box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.15);
    background: var(--white);
}

.tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    background: var(--soft-cream);
    padding: 0.3rem;
    border-radius: 999px;
}

.tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--slate-muted);
}

.tabs button.is-active {
    background: var(--white);
    color: var(--dark-slate);
    box-shadow: 0 2px 8px rgba(22, 53, 40, 0.06);
}

.qty {
    font-weight: 650;
    color: var(--slate-muted);
    white-space: nowrap;
}

.select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    background: var(--white);
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 1.75rem 0;
    color: var(--slate-muted);
    font-size: 0.92rem;
    background: var(--white);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer strong {
    color: var(--dark-slate);
    font-family: var(--title-font);
    display: block;
    margin-bottom: 0.2rem;
}

.site-footer a {
    color: var(--smart-green-dark);
    font-weight: 700;
    margin-right: 1rem;
}

.dropzone {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--soft-cream);
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--smart-green);
    background: rgba(31, 157, 87, 0.06);
}

.dropzone__title {
    font-family: var(--title-font);
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.dropzone__hint {
    margin: 0;
    color: var(--slate-muted);
    font-size: 0.9rem;
}

.dropzone__preview {
    margin-top: 1rem;
    max-height: 220px;
    margin-inline: auto;
    border-radius: 12px;
    object-fit: contain;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .form-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .site-header.is-open .nav-links,
    .site-header.is-open .nav-actions {
        display: flex;
    }

    .site-header.is-open {
        height: auto;
        padding-bottom: 1rem;
    }

    .site-header.is-open .site-header__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 1rem;
    }

    .site-header.is-open .nav-links,
    .site-header.is-open .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-bar .btn {
        width: 100%;
    }

    .flyer-grid {
        grid-template-columns: 1fr;
    }

    .flyer-card {
        grid-template-rows: 140px auto;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero__collage {
        order: -1;
        min-height: 220px;
        height: 240px;
        max-width: 360px;
        margin-inline: auto;
    }

    .hero-stack__card {
        width: min(46%, 150px);
    }

    .product-row,
    .flyer-row,
    .compare-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .compare-row--logo {
        grid-template-columns: 44px 1fr;
    }

    .compare-row--logo .price {
        grid-column: 2;
        justify-self: start;
    }

    .product-row--thumb {
        grid-template-columns: 56px 1fr;
    }

    .product-row--search {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .search-result__deal {
        grid-column: 2;
        justify-content: flex-start;
    }

    .search-result__deal-text {
        align-items: flex-start;
    }

    .search-result__shop {
        text-align: left;
    }

    .cart-row--thumb {
        grid-template-columns: 48px minmax(0, 1fr) 36px;
        gap: 0.55rem 0.7rem;
        padding: 0.75rem 0.85rem;
    }

    .cart-row__price {
        grid-column: 2;
        text-align: left;
    }

    .cart-row--thumb .btn-icon {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

.ad-slot {
    margin: 0.5rem 0 1.25rem;
    padding: 0.65rem 0.75rem 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    min-height: 110px;
}

.ad-slot--large {
    min-height: 120px;
}

.ad-slot__label {
    margin: 0 0 0.4rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-muted);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
