/* Design System - CHAR E-commerce */

/* CSS Variables for Dark & Light Themes */
:root {
    /* Канон: лише IBM Plex Sans (+ generic sans-serif як останній резерв завантаження) */
    --font-sans: 'IBM Plex Sans', sans-serif;
    /* Вертикальний ритм між секціями / від хедера до першого блоку */
    --section-gap-y: 20px;
    /* Фіксований хедер: inset зверху + висота «пігулки» (один ряд) */
    --header-sticky-top: 12px;
    --header-bar-height: 70px;
    /* Для scroll-padding та як «повна» висота зони під хедер + зазор */
    --header-space: calc(var(--header-sticky-top) + var(--header-bar-height) + var(--section-gap-y));
    /* Ширина навбару та вирівняних секцій (пігулка = outer, inner = контент) */
    --layout-max: 1248px;
    --layout-gutter: 16px;
    --layout-inner-max: 1200px;
    --layout-inner-padding: 24px;
    /* Base tokens (shared) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --shadow-soft: 0 8px 30px rgba(0,0,0,.12);
    
    /* Brand Gradients */
    --grad-mango: linear-gradient(90deg,#f47176,#fdbe3c);
    --grad-apple: linear-gradient(90deg,#5dba47,#e3d562);
    --grad-berry: linear-gradient(90deg,#e73a36,#c65e9b);
    --grad-green-pink: linear-gradient(90deg,#5bbc6e,#e45586);
    --grad-orange-purple: linear-gradient(90deg,#e76238,#b73196);

    /* Dynamic accent (Aurora-synced). Defaults = mango; JS може перевизначити на сторінці. */
    --accent-from: #f47176;
    --accent-to: #fdbe3c;
    --grad-accent: linear-gradient(90deg, var(--accent-from), var(--accent-to));
}

/* Dark Theme (default) */
[data-theme="dark"],
:root {
    --bg-main: #171717;
    --bg-secondary: #1f1f1f;
    --bg-card: #232323;
    --text-primary: #f7f7f7;
    --text-secondary: #bdbdbd;
    --text-muted: #8a8a8a;
    --border-subtle: rgba(255,255,255,.08);
}

/* Light Theme */
[data-theme="light"] {
    --bg-main: #f7f7f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #171717;
    --text-secondary: #3a3a3a;
    --text-muted: #6b6b6b;
    --border-subtle: rgba(0,0,0,.08);
}

/* Typography */
html {
    scroll-padding-top: var(--header-space);
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    /* Зазор під хедером включено в padding; між секціями — margin-bottom у «пігулок» */
    padding-top: var(--header-space);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Форми та моноширинні теги — без системного UI-шрифта браузера */
button,
input,
select,
textarea,
optgroup {
    font: inherit;
}

pre,
code,
kbd,
samp {
    font-family: var(--font-sans);
}

/* Фон сайту: окремий fixed-шар (стабільніше за background-attachment: fixed на iOS) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation: backgroundMove 35s ease-in-out infinite;
}

[data-theme="dark"] body::before,
:root:not([data-theme="light"]) body::before {
    background-image: url('/static/img/bg-dark.png');
}

[data-theme="light"] body::before {
    background-image: url('/static/img/тло для світлої теми.png');
}

@media (min-width: 900px) {
    body::before {
        background-size: 120%;
    }
}

/* Анімація руху фону - паралакс ефект */
@keyframes backgroundMove {
    0%, 100% {
        background-position: 50% 50%;
    }
    20% {
        background-position: 38% 58%;
    }
    40% {
        background-position: 62% 42%;
    }
    60% {
        background-position: 55% 55%;
    }
    80% {
        background-position: 42% 38%;
    }
}

h1 { font-size: 52px; font-weight: bold; line-height: 1.1; }
h2 { font-size: 38px; font-weight: 500; line-height: 1.1; }
h3 { font-size: 26px; font-weight: 500; line-height: 1.1; }
p, body { font-size: 18px; line-height: 1.6; }
small { font-size: 14px; }

/* Paragraph width limit per ARCHITECTURE.md */
p {
    max-width: 640px;
}

/* Allow override for specific contexts */
.seo-block p,
.product-description p {
    max-width: 640px;
}

/* Buttons */
.btn-primary {
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    /* Живе переливання на базі динамічних --accent-from / --accent-to (Aurora) */
    background-color: var(--accent-from);
    background-image: linear-gradient(
        100deg,
        var(--accent-from) 0%,
        var(--accent-to) 35%,
        var(--accent-from) 70%,
        var(--accent-to) 100%
    );
    background-size: 280% 100%;
    background-position: 0% 50%;
    animation: btn-primary-accent-flow 5.5s ease-in-out infinite alternate;
}

@keyframes btn-primary-accent-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 113, 118, 0.3);
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid color-mix(in srgb, var(--text-muted) 38%, transparent);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-secondary:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.badge.bestseller {
    background: var(--grad-berry);
    color: #fff;
    border: none;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f47176;
    box-shadow: 0 0 0 3px rgba(244, 113, 118, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: var(--header-sticky-top);
    left: var(--layout-gutter);
    right: var(--layout-gutter);
    z-index: 100;
    width: auto;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: var(--bg-main);
    box-shadow: var(--shadow-soft);
}

/* Header icon buttons — unified style */
.theme-toggle,
.cart-icon,
.nav-burger {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover,
.cart-icon:hover,
.nav-burger:hover {
    border-color: color-mix(in srgb, var(--text-muted) 55%, transparent);
    background: var(--bg-secondary);
}

/* Theme Toggle */
.theme-toggle {
    color: var(--accent-from);
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-secondary);
}

/* Header Layout */
.header-container {
    max-width: var(--layout-inner-max);
    margin: 0 auto;
    padding: 0 var(--layout-inner-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-left a,
.nav-right a {
    color: var(--text-primary);
    font-size: 16px;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--text-secondary);
}

.nav-left a.active,
.nav-right a.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-left a.active::after,
.nav-right a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
}

.nav-right a.header-logo.active::after {
    display: none;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    color: var(--text-primary);
    --logo-plate: transparent;
}

.header-logo .site-logo-svg {
    display: block;
    height: 40px;
    width: auto;
}

.cart-icon {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
}

.cart-icon:focus-visible {
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
}

#cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--grad-accent);
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.25;
    border: 1px solid var(--bg-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Burger button — hidden on desktop, shown on mobile */
.nav-burger {
    display: none;
    color: var(--text-primary);
}

.nav-burger i[data-lucide],
.nav-burger svg {
    width: 20px;
    height: 20px;
}

.nav-burger .icon-burger-close { display: none; }
.header.menu-open .nav-burger .icon-burger-open { display: none; }
.header.menu-open .nav-burger .icon-burger-close { display: block; }

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 40px;
    align-items: stretch;
    position: relative;
    isolation: isolate;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.hero .btn-primary,
.hero .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    margin: 0;
    max-width: 36rem;
    font-size: 1.08rem;
    color: color-mix(in srgb, var(--text-secondary) 92%, var(--text-primary));
    line-height: 1.7;
    text-wrap: balance;
}

.hero-tagline {
    margin: 0;
    font-size: clamp(0.78rem, 1.3vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero.hero--immersive {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    overflow: hidden;
}

.hero-proof {
    min-width: 0;
}

.hero-content--immersive {
    justify-content: center;
    padding: 0;
}

/* Сітка hero: копія + зображення; смуга marquee трохи накриває низ картинки */
.hero-layout--immersive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-width: 0;
}

.hero-copy {
    min-width: 0;
}

.hero-visual {
    margin: 1.25rem 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    overflow: visible;
    isolation: isolate;
}

/* Ті самі --accent-* і анімація, що .btn-primary та .brand-marquee__viewport */
.hero-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: clamp(-20%, -3.25rem, -0.35rem);
    transform: translateX(-50%);
    width: min(138%, 900px);
    height: clamp(10.5rem, 56vw, 23rem);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(64px);
    background-color: var(--accent-from);
    background-image: linear-gradient(
        100deg,
        var(--accent-from) 0%,
        var(--accent-to) 35%,
        var(--accent-from) 70%,
        var(--accent-to) 100%
    );
    background-size: 280% 100%;
    background-position: 0% 50%;
    animation: btn-primary-accent-flow 5.5s ease-in-out infinite alternate;
}

.hero-visual__img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(640px, 100%);
    height: auto;
    display: block;
    object-fit: contain;
    vertical-align: bottom;
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual::before {
        animation: none;
        background-position: 50% 50%;
    }
}

.hero-layout--immersive .hero-marquee-strip {
    grid-column: 1 / -1;
    position: relative;
    z-index: 2;
    margin-top: -8px;
    margin-bottom: 8px;
}

.hero-layout--immersive .hero-metrics {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.hero-layout--immersive .hero-metric {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
    text-align: left;
}

.hero-layout--immersive .hero-metric__text {
    min-width: 0;
}

.hero-layout--immersive .hero-metric__value {
    margin-bottom: 4px;
}

.hero-layout--immersive .hero-metric__figure {
    display: block;
    width: clamp(72px, 14vw, 120px);
    height: auto;
    max-height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hero-layout--immersive {
        grid-template-columns: minmax(0, 0.98fr) minmax(300px, 1.22fr);
        column-gap: clamp(1rem, 3vw, 2rem);
        align-items: end;
    }

    .hero-layout--immersive .hero-copy {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .hero-layout--immersive .hero-visual {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        align-self: end;
        justify-self: center;
        width: 100%;
    }

    .hero-layout--immersive .hero-marquee-strip {
        grid-row: 2;
        margin-top: -10px;
    }

    .hero-layout--immersive .hero-metrics {
        grid-row: 3;
        margin-top: 12px;
    }
}

.hero-eyebrow,
.hero-credo {
    margin: 0;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-credo {
    max-width: 26rem;
    font-size: clamp(1rem, 1.9vw, 1.18rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
    color: #f7f7f7;
}

.hero--immersive h1 {
    margin: 0;
    max-width: min(42rem, 100%);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2px 0 4px;
}

.hero-markers span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border-subtle) 78%, rgba(255,255,255,0.08));
    background: color-mix(in srgb, var(--bg-card) 58%, transparent);
    backdrop-filter: blur(10px);
}

.hero-markers i[data-lucide] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: color-mix(in srgb, var(--accent-to) 70%, #fff);
}

.hero-marquee-strip {
    width: calc(100% + 32px);
    margin-inline: -16px;
    margin-top: 0;
    margin-bottom: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-marquee-strip {
        width: calc(100% + 48px);
        margin-inline: -24px;
    }
}

.hero-marquee-strip .brand-marquee {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.hero-marquee-strip .brand-marquee__viewport {
    border-radius: 0;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.hero-metric {
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 84%, rgba(255,255,255,0.04)) 0%, color-mix(in srgb, var(--bg-main) 92%, rgba(0,0,0,0.18)) 100%);
    border: 1px solid color-mix(in srgb, var(--border-subtle) 86%, rgba(255,255,255,0.05));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.hero-metric__value {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.7rem, 3.1vw, 2.45rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-metric__label {
    margin: 0;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.hero-metric__icon {
    display: block;
    margin-bottom: 10px;
}

.hero-metric__icon i[data-lucide] {
    width: 22px;
    height: 22px;
    color: color-mix(in srgb, var(--accent-to) 75%, #fff);
}

[data-theme="light"] .hero-metric__icon i[data-lucide] {
    color: var(--accent-from);
}

[data-theme="light"] .hero-credo,
[data-theme="light"] .hero-metric__value {
    color: var(--text-primary);
}

[data-theme="light"] .hero-metric,
[data-theme="light"] .hero-markers span {
    box-shadow: 0 18px 36px rgba(18, 18, 18, 0.08);
}

/* Value Section (рамка/фон — спільний блок «пігулка» вище) */
.value-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.value-section__title {
    margin-bottom: 40px;
}

.value-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .value-blocks {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-block {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.value-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.value-block__icon svg {
    width: 28px;
    height: 28px;
}

.value-block__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Value Section redesign: split layout + horizontal proof cards */
.value-proof {
    display: grid;
    gap: 1.25rem;
    text-align: left;
}

.value-proof__intro,
.value-proof__grid {
    position: relative;
    z-index: 1;
}

.value-proof__eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.value-proof .value-section__title {
    margin: 0 0 0.85rem;
    text-wrap: balance;
}

.value-proof__lead {
    margin: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.48;
}

.value-proof__intro-figure {
    margin: 1rem 0 0;
    padding: 0;
    max-width: 100%;
}

.value-proof__intro-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

.value-proof__grid {
    display: grid;
    gap: 0.85rem;
    min-height: 0;
}

.value-proof-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-sizing: border-box;
    transition:
        transform var(--transition-base),
        border-color var(--transition-fast),
        box-shadow var(--transition-base),
        background-color var(--transition-fast);
}

.value-proof-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent-from) 34%, var(--border-subtle));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .value-proof-card,
:root:not([data-theme="light"]) .value-proof-card {
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .value-proof-card:hover,
:root:not([data-theme="light"]) .value-proof-card:hover {
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.3),
        0 0 0 1px color-mix(in srgb, var(--accent-from) 18%, transparent);
}

.value-proof-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    flex-shrink: 0;
}

.value-proof-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.1;
}

.value-proof-card__body {
    min-width: 0;
}

.value-proof-card__fact {
    margin: 0 0 0.28rem;
    max-width: none;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.value-proof-card__title {
    margin: 0 0 0.32rem;
    font-size: 1.03rem;
    line-height: 1.3;
}

.value-proof-card__text {
    margin: 0;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.52;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .value-proof {
        grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
        gap: 1.35rem 1.6rem;
        align-items: stretch;
    }

    .value-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0.95rem;
        align-self: stretch;
        min-height: 0;
    }

    .value-proof-card {
        min-height: 0;
        height: 100%;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.product-card {
    width: 350px;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.product-card a:not(.product-card__details) {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card img,
.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.product-info h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.product-descriptor {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 12px 0;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 14px;
}

.stars {
    font-size: 16px;
}

.stars [data-lucide] {
    color: var(--accent-from);
    fill: var(--accent-from);
}

.rating-text {
    color: var(--text-muted);
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    margin: 12px 0;
    color: var(--text-primary);
}

/* Product card — expand/collapse overlay (image-first, tap/click) */
.product-card.js-product-card {
    cursor: pointer;
}

.product-card.js-product-card:focus {
    outline: none;
}

.product-card.js-product-card:focus-visible {
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
}

.product-card--expandable .product-card__visual {
    display: flex;
    flex-direction: column;
}

.product-card--expandable .product-card__media {
    flex: none;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 440px;
}

.product-card--expandable .product-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    transform: scale(1);
}

.product-card--expandable.product-card--expanded .product-card__img {
    transform: scale(1.04);
}

.product-card--expandable .product-card__overlay {
    flex: none;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: margin-top 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Згорнуто: оверлей під фото, не перекриває */
.product-card--expandable:not(.product-card--expanded) .product-card__overlay {
    margin-top: 0;
    animation: none;
}

/* Розгорнуто: оверлей виповзає вгору на фото */
.product-card--expandable.product-card--expanded .product-card__overlay {
    margin-top: -50%;
    animation: none;
}

@keyframes product-card-overlay-hint {
    0%, 88%, 100% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(-2px);
    }
    92% {
        transform: translateY(0);
    }
}

.product-card__cue {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 8px 16px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.product-card--expandable:not(.product-card--expanded) .product-card__cue {
    padding: 6px 16px 2px;
}

.product-card__cue:focus {
    outline: none;
}

.product-card__cue:focus-visible {
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.product-card__handle {
    display: block;
    width: 2.5rem;
    height: 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-primary) 52%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text-primary) 22%, transparent);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}

.product-card--expandable:not(.product-card--expanded) .product-card__handle {
    animation: none;
}

.product-card--expandable.product-card--expanded .product-card__handle {
    animation: none;
    opacity: 0.72;
    transform: scaleX(0.92);
}

@keyframes product-card-handle-hint {
    0%, 100% {
        opacity: 0.72;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.product-card__overlay-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 16px 14px;
    /* hidden: без «блимання» скролбару під час transition height/max-height */
    overflow: hidden;
}

.product-card--expandable.product-card--expanded .product-card__overlay-inner {
    flex: 1 1 auto;
}

/* Згорнуто: один ряд назви — звільняємо висоту для ціни й «У кошик» без обрізання */
.product-card--expandable:not(.product-card--expanded) .product-card__overlay .product-card__title {
    margin: 0 0 2px 0;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    line-height: 1.35;
    font-weight: 600;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 1.35em;
    max-height: 1.35em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-word;
}

.product-card--expandable.product-card--expanded .product-card__overlay .product-card__title {
    margin: 0 0 4px 0;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    line-height: 1.3;
    font-weight: 600;
    flex-shrink: 0;
    align-self: stretch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
}

.product-card__extra {
    flex: 0 0 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease, transform 0.35s ease;
}

.product-card--expandable.product-card--expanded .product-card__extra {
    max-height: min(11.5rem, 38vh);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    margin-bottom: 4px;
    flex-shrink: 1;
    min-height: 0;
}

.product-card__extra .product-badges {
    margin: 0 0 8px 0;
}

.product-card__extra .product-rating {
    margin: 0 0 10px 0;
}

.product-card__overlay .product-card__desc {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.product-card--expandable.product-card--expanded .product-card__extra .product-card__desc:first-child {
    margin-top: 0;
}

.product-card__overlay .product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0;
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}

/* Згорнуто: без margin-top:auto — інакше футер їде в низ панелі й розриває заголовок і CTA */
.product-card--expandable:not(.product-card--expanded) .product-card__overlay .product-card__footer {
    margin-top: 0;
    padding-top: 2px;
}

.product-card--expandable:not(.product-card--expanded) .product-card__overlay-inner {
    padding-bottom: 8px;
}

.product-card__price {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.product-card__add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card__add svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-card__add-plus {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.product-card__add:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.product-card__add:active:not(:disabled) {
    transform: translateY(0);
}

.product-card__overlay .product-card__details {
    display: inline-block;
    text-align: left;
    padding: 0 0 4px 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-card__overlay .product-card__details:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .product-card--expandable.product-card--expanded .product-card__overlay {
        margin-top: -65%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card--expandable .product-card__overlay,
    .product-card--expandable .product-card__img,
    .product-card__extra,
    .product-card__handle {
        animation: none !important;
    }

    .product-card--expandable .product-card__overlay,
    .product-card--expandable .product-card__img,
    .product-card__extra {
        transition-duration: 0.01ms !important;
    }

    .btn-primary {
        animation: none;
        background: var(--grad-accent);
        background-size: auto;
    }
}

/* Toast (кошик) */
.toast-root {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    font-size: 15px;
    max-width: min(90vw, 360px);
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inline remove confirmation (cart) */
.btn-remove-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.btn-remove-confirm span {
    color: var(--text-muted);
}

.btn-remove-yes,
.btn-remove-cancel {
    padding: 2px 10px;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--border-subtle);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.6;
}

.btn-remove-yes {
    color: #c0392b;
    border-color: #c0392b;
}

.btn-remove-cancel {
    color: var(--text-muted);
}

/* Catalog Page */
/* ══════════════════════════════════════════════════
   Catalog Page
   ══════════════════════════════════════════════════ */

.catalog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
    background: transparent;
}

/* ── Hero ─────────────────────────────────────── */
.catalog-hero--immersive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 64px 0 56px;
    margin-bottom: 64px;
    border-bottom: 1px solid var(--border-subtle);
}

.catalog-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.catalog-hero__credo {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 500;
    color: var(--accent-from);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.catalog-hero--immersive h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--text-primary);
}

.catalog-hero__lead {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    max-width: 520px;
}

.catalog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 4px;
}

.catalog-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.catalog-hero__meta svg {
    width: 15px;
    height: 15px;
    color: var(--accent-from);
    flex-shrink: 0;
}

.catalog-hero__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.catalog-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-hero__stat strong {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.catalog-hero__stat span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    max-width: 100px;
}

/* Hero visual (фото продукту) — без «картки», зі світінням як .hero-visual */
.catalog-hero__visual {
    position: relative;
    height: 320px;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    isolation: isolate;
    background: transparent;
    border: none;
}

.catalog-hero__visual::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: clamp(-12%, -2rem, 0);
    transform: translateX(-50%);
    width: min(120%, 420px);
    height: clamp(8rem, 42vw, 16rem);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(64px);
    background-color: var(--accent-from);
    background-image: linear-gradient(
        100deg,
        var(--accent-from) 0%,
        var(--accent-to) 35%,
        var(--accent-from) 70%,
        var(--accent-to) 100%
    );
    background-size: 280% 100%;
    background-position: 0% 50%;
    animation: btn-primary-accent-flow 5.5s ease-in-out infinite alternate;
}

.catalog-hero__image {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-hero__visual::before {
        animation: none;
        background-position: 50% 50%;
    }
}

/* ── Proof (editorial 01 02 03) ───────────────── */
.catalog-proof--editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 72px;
}

.catalog-proof__item--editorial {
    background: var(--bg-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-proof__fact {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-from);
    text-transform: uppercase;
    margin: 0;
}

.catalog-proof__item--editorial h2 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

.catalog-proof__item--editorial p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Products grid ────────────────────────────── */
.catalog-products {
    margin-bottom: 72px;
}

.catalog-products__heading {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text-primary);
}

/* ── Guidance (flavor profiles) ───────────────── */
.catalog-guidance {
    margin-bottom: 72px;
}

.catalog-guidance__intro {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.catalog-guidance__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.catalog-guidance__intro h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.catalog-guidance__intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.catalog-guidance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.catalog-guidance__card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.catalog-guidance__card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.catalog-guidance__card--berry::before {
    background: radial-gradient(circle at top right, #e0436b 0%, transparent 65%);
    opacity: 0.12;
}

.catalog-guidance__card--citrus::before {
    background: radial-gradient(circle at top right, #f5a623 0%, transparent 65%);
    opacity: 0.12;
}

.catalog-guidance__card--deep::before {
    background: radial-gradient(circle at top right, #8b5cf6 0%, transparent 65%);
    opacity: 0.12;
}

.catalog-guidance__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-from);
    margin: 0 0 10px;
    position: relative;
}

.catalog-guidance__card h3 {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    position: relative;
}

.catalog-guidance__card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
}

/* ── Showcase (manifest) ──────────────────────── */
.catalog-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.catalog-showcase__backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
}

.catalog-showcase__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-from) 12%, transparent) 0%, transparent 60%);
}

.catalog-showcase__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px 48px;
    align-items: center;
}

.catalog-showcase__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-from);
    margin: 0 0 12px;
}

.catalog-showcase__credo {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.catalog-showcase__lead h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}

.catalog-showcase__lead p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.catalog-showcase__panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-showcase__quote {
    padding: 20px 24px;
    border-left: 3px solid var(--accent-from);
    background: color-mix(in srgb, var(--accent-from) 6%, transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.catalog-showcase__quote p {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.catalog-showcase__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-showcase__chips span {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-secondary) 60%, transparent);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.catalog-showcase__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Empty state ──────────────────────────────── */
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
}

.catalog-empty h2 { margin-bottom: 12px; }

.catalog-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ── Chips / filters (legacy) ─────────────────── */
.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.chip:hover { border-color: var(--text-secondary); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .catalog-hero--immersive {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 40px;
    }
    .catalog-hero__visual { height: 200px; }
    .catalog-proof--editorial { grid-template-columns: 1fr; }
    .catalog-guidance__grid { grid-template-columns: 1fr; gap: 12px; }
    .catalog-showcase__content {
        grid-template-columns: 1fr;
        padding: 36px 28px;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .catalog-page { padding: 0 16px 60px; }
    .catalog-hero--immersive {
        padding: 32px 0 28px;
        margin-bottom: 40px;
    }
    .catalog-hero--immersive h1 { font-size: 1.7rem; }
    .catalog-hero__stats { gap: 16px; }
    .catalog-hero__visual { height: 220px; }
    .catalog-proof--editorial { margin-bottom: 48px; }
    .catalog-showcase__content { padding: 28px 20px; }
}

/* ══════════════════════════════════════════════════
   About / CMS Content Pages
   ══════════════════════════════════════════════════ */

/* ── Content Hero (about pages, simpler than catalog) ── */
.content-hero {
    padding: 56px 0 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
    max-width: 720px;
}

.content-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 8px 0 16px;
    color: var(--text-primary);
}

.content-hero__lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 620px;
}

/* ── Story Metrics strip ──────────────────────── */
.story-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 56px;
}

.story-metric {
    background: var(--bg-card);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.story-metric strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.story-metric span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Content Sections ─────────────────────────── */
.content-section {
    margin-bottom: 40px;
}

.content-section--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ── Content Cards ────────────────────────────── */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
}

.content-card--wide {
    grid-column: 1 / -1;
}

.content-card--soft {
    background: color-mix(in srgb, var(--bg-secondary) 60%, var(--bg-card));
}

.content-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-from);
    margin: 0;
}

.content-card h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

.content-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.content-card .btn-secondary,
.content-card .btn-primary {
    align-self: flex-start;
    margin-top: 4px;
}

/* ── Content List ─────────────────────────────── */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.content-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-from);
    margin-top: 7px;
}

/* ── Rich text block ──────────────────────────── */
.content-richtext p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}

.content-richtext p:last-child { margin-bottom: 0; }

/* ── Media card (full-width image) ───────────── */
.content-media-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 40px;
}

.content-media-card__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ── Story Timeline ───────────────────────────── */
.story-timeline {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.story-step {
    padding: 32px 28px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.story-step:last-child {
    border-bottom: none;
}

.story-step:nth-child(even) {
    background: color-mix(in srgb, var(--bg-secondary) 50%, var(--bg-card));
}

.story-step__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-from);
    margin: 0;
}

.story-step h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

.story-step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
}

/* ── Gallery (about page) ─────────────────────── */
.about-gallery {
    margin-bottom: 48px;
}

.about-gallery h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 24px;
}

.about-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.about-gallery__card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.about-gallery__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-gallery__caption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ── Page CTA row ─────────────────────────────── */
.page-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 48px;
    margin-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* ── 4th step-card glow colour ────────────────── */
.how-it-works .step-card:nth-child(4) .step-card__glow {
    background: radial-gradient(circle at 50% 50%,
        color-mix(in srgb, var(--accent-to) 55%, transparent) 0%,
        transparent 70%
    );
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .story-metrics { grid-template-columns: repeat(2, 1fr); }
    .content-section--split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .content-hero { padding: 32px 0 28px; margin-bottom: 32px; }
    .content-hero h1 { font-size: 1.7rem; }
    .story-metrics { grid-template-columns: repeat(2, 1fr); }
    .story-metric { padding: 20px 16px; }
    .content-card { padding: 24px 20px; }
    .story-step { padding: 24px 20px; }
    .page-cta { padding-top: 32px; }
}

/* ══════════════════════════════════════════════════
   Product Detail Page
   ══════════════════════════════════════════════════ */

.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

/* ── Breadcrumb ───────────────────────────────── */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.product-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.product-breadcrumb a:hover { color: var(--text-primary); }

.product-breadcrumb span { color: var(--text-secondary); }

/* ── Hero layout ──────────────────────────────── */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}

/* ── Gallery ──────────────────────────────────── */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: calc(var(--header-bar-height, 70px) + 16px);
}

.product-gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    aspect-ratio: 3 / 4;
}

.product-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumbnails img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--accent-from);
}

/* ── Product info ─────────────────────────────── */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-info__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-from);
    margin: 0 0 10px;
}

.product-info h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.product-info__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 20px;
}

/* Badges */
.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.badge--accent {
    background: color-mix(in srgb, var(--accent-from) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent-from) 30%, transparent);
    color: var(--accent-from);
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.product-pricing__price {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.product-pricing__volume {
    font-size: 14px;
    color: var(--text-muted);
}

/* Purchase row */
.product-purchase {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    line-height: 1;
}

.quantity-selector .qty-btn:hover {
    background: var(--bg-secondary);
}

.quantity-selector input[type="number"] {
    width: 52px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    -moz-appearance: textfield;
    padding: 0;
}

.quantity-selector input[type="number"]::-webkit-inner-spin-button,
.quantity-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn-add-to-cart {
    flex: 1;
    min-width: 160px;
    height: 44px;
    font-size: 15px;
}

/* Trust markers */
.product-trust-markers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--accent-from);
    flex-shrink: 0;
}

/* ── Detail sections (description, benefits) ─── */
.product-detail-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.product-detail-section__title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text-primary);
}

.product-detail-section__body {
    max-width: 680px;
}

.product-detail-section__body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}

/* Benefits grid */
.product-benefits {}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-from) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-from);
}

.benefit-item p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Related products ─────────────────────────── */
.related-products {
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
    .product-gallery { position: static; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .product-page { padding: 16px 16px 60px; }
    .product-purchase { flex-direction: column; align-items: stretch; }
    .quantity-selector { justify-content: center; }
    .btn-add-to-cart { min-width: 0; }
    .product-trust-markers { grid-template-columns: 1fr; gap: 8px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .benefit-item { padding: 20px 12px; }
}


/* Спільна «пігулка» (1248px): кошик, головна (hero, value, товари, як це працює, FAQ головна, FAQ+відгуки) */
.cart-page,
.faq-reviews-section,
.value-section,
.hero.hero--immersive,
.products-preview,
.how-it-works,
.lifestyle-section {
    width: calc(100% - 32px);
    max-width: 1248px;
    margin: 0 auto var(--section-gap-y);
    padding: 40px 24px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg-main) 78%, transparent);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .cart-page,
[data-theme="light"] .faq-reviews-section,
[data-theme="light"] .value-section,
[data-theme="light"] .hero.hero--immersive,
[data-theme="light"] .products-preview,
[data-theme="light"] .how-it-works,
[data-theme="light"] .lifestyle-section {
    background: color-mix(in srgb, var(--bg-secondary) 58%, transparent);
}

.cart-page > h1 {
    margin-bottom: 5px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.item-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.item-volume,
.item-price {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 4px 0;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast);
}

.qty-btn:hover {
    border-color: var(--text-secondary);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.item-total {
    font-size: 20px;
    font-weight: 600;
}

.btn-remove {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.btn-remove:hover {
    color: var(--text-primary);
}

.cart-summary {
    width: 100%;
    max-width: none;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.summary-row--shipping .summary-shipping-note {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--border-subtle);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 600;
}

.cart-summary .btn-primary,
.cart-summary .btn-secondary {
    width: 100%;
    margin-top: 16px;
    text-align: center;
    display: block;
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.suggestions {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.suggestion-item:hover {
    background: var(--bg-secondary);
}

.suggestion-item.error {
    color: var(--text-muted);
    cursor: default;
}

.btn-pay {
    width: 100%;
    margin-top: 24px;
    background: var(--grad-mango);
    color: #fff;
}

/* Sections */
.reviews-section,
.faq-section {
    max-width: 1200px;
    margin: 0 auto var(--section-gap-y);
    padding: 0 24px;
    text-align: center;
}

.products-preview {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.products-preview__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.products-preview__checkout--hidden {
    display: none;
}

.faq-reviews-section {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.faq-reviews-section__title {
    text-align: center;
    margin: 0 0 28px 0;
}

.faq-reviews__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
}

.faq-reviews__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.faq-reviews__col-title {
    flex-shrink: 0;
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-reviews__panel {
    padding: 0 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
    min-width: 0;
}

.faq-reviews__col--reviews .faq-reviews__panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.faq-reviews__col--reviews .faq-reviews__panel--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
    padding: 16px 12px;
}

.faq-reviews__split-col {
    min-width: 0;
}

.faq-reviews__split-col--reviews {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-reviews__panel-col-title {
    flex-shrink: 0;
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-reviews__panel--split .review-form-wrap {
    margin-top: 0;
}

.faq-reviews__split-col--reviews .reviews-pagination--split {
    margin-top: 0.75rem;
}

.reviews-grid--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

.reviews-pagination--split {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reviews-pagination--split .reviews-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reviews-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

a.reviews-pagination__link--page {
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

a.reviews-pagination__link--page:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.reviews-pagination__page--current {
    background: color-mix(in srgb, var(--accent-from) 18%, transparent);
    border-color: color-mix(in srgb, var(--accent-from) 45%, transparent);
    color: var(--text-primary);
}

.reviews-pagination--split .reviews-pagination__link--nav {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.reviews-pagination__link--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Компактні картки відгуків у блоці на головній (3 шт. на сторінку) */
.faq-reviews__panel .reviews-grid--split {
    gap: 8px;
}

.faq-reviews__panel .review-card--horizontal.card {
    padding: 10px 12px;
    gap: 6px;
}

.faq-reviews__panel .review-card--horizontal.card:hover {
    transform: none;
    box-shadow: none;
}

.faq-reviews__panel .review-card--horizontal .review-card__aside {
    gap: 8px;
}

.faq-reviews__panel .review-card--horizontal .review-card__avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 0.9rem;
}

.faq-reviews__panel .review-card--horizontal .review-card__author {
    font-size: 0.875rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.faq-reviews__panel .review-card--horizontal .review-card__rating {
    gap: 2px;
    margin-bottom: 0;
}

.faq-reviews__panel .review-card--horizontal .review-card__star {
    width: 14px;
    height: 14px;
}

.faq-reviews__panel .review-card--horizontal .review-card__rating-text {
    font-size: 0.75rem;
    margin-left: 4px;
}

.faq-reviews__panel .review-card--horizontal .review-card__text {
    font-size: 0.8125rem;
    line-height: 1.35;
}

/* Акордеон FAQ (кошик, головна в lifestyle — спільні класи cart-faq) */
.lifestyle-section__faq-wrap .cart-faq {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.cart-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-faq__item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.cart-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.cart-faq__q:hover {
    background: color-mix(in srgb, var(--bg-secondary) 55%, transparent);
}

.cart-faq__q:focus {
    outline: none;
}

.cart-faq__q:focus-visible {
    outline: 2px solid var(--accent-from);
    outline-offset: -2px;
}

.cart-faq__q-text {
    flex: 1;
    min-width: 0;
}

.cart-faq__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.cart-faq__item.is-open .cart-faq__chevron {
    transform: rotate(180deg);
}

.cart-faq__item.is-open .cart-faq__q {
    border-bottom: 1px solid var(--border-subtle);
}

.cart-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.cart-faq__item.is-open .cart-faq__panel {
    grid-template-rows: 1fr;
}

.cart-faq__panel-inner {
    overflow: hidden;
    min-height: 0;
}

.cart-faq__a {
    margin: 0;
    padding: 14px 16px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: none;
}

@media (prefers-reduced-motion: reduce) {
    .cart-faq__panel {
        transition-duration: 0.01ms;
    }

    .cart-faq__chevron {
        transition-duration: 0.01ms;
    }
}

/* Відгуки на головній: одна картка на ряд, ширина панелі; зверху автор, під ним коментар */
.review-card--horizontal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.review-card--horizontal:hover {
    border-color: var(--text-muted);
}

.review-card--horizontal:focus {
    outline: none;
}

.review-card--horizontal:focus-visible {
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
}

.review-card--horizontal .review-card__aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 100%;
}

.review-card--horizontal .review-card__avatar {
    flex-shrink: 0;
}

.review-card--horizontal .review-card__meta {
    flex: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.review-card--horizontal .review-card__author {
    margin: 0;
}

.review-card--horizontal .review-card__body {
    width: 100%;
    min-width: 0;
    flex: none;
}

.review-card--horizontal .review-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: none;
}

.review-card--horizontal:not(.is-expanded) .review-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.review-card--horizontal.is-expanded .review-card__text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.reviews-grid--split .review-card--horizontal {
    justify-self: stretch;
}

/* how-it-works: спільна «пігулка»; картки кроків — непрозорі, сітка з рівною висотою */
.how-it-works {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.how-it-works__header {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.how-it-works__header h2 {
    margin-bottom: 0.75rem;
}

.how-it-works__lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.how-it-works__hook {
    margin: 1rem auto 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.how-it-works__hook a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent-from) 45%, transparent);
    text-underline-offset: 0.2em;
}

.how-it-works__hook a:hover {
    color: var(--text-primary);
}

.how-it-works__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin: 1.25rem auto 0;
    padding: 0;
    list-style: none;
    max-width: 36rem;
}

.how-it-works__chips li {
    margin: 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-secondary);
}

.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 2.5rem;
    align-items: stretch;
    text-align: left;
    min-height: 0;
}

@media (max-width: 899px) {
    .how-it-works .steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.how-it-works__footer {
    margin-top: 0.5rem;
}

.how-it-works__footer .btn-primary {
    display: inline-flex;
}

.step.step-card {
    text-align: left;
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-sizing: border-box;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

[data-theme="light"] .step.step-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .step.step-card,
:root:not([data-theme="light"]) .step.step-card {
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.step.step-card:hover {
    transform: translateY(-4px);
    background: var(--bg-secondary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: color-mix(in srgb, var(--accent-from) 35%, var(--border-subtle));
}

[data-theme="dark"] .step.step-card:hover,
:root:not([data-theme="light"]) .step.step-card:hover {
    background: var(--bg-secondary);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px color-mix(in srgb, var(--accent-from) 18%, transparent);
}

.step-card__visual {
    position: relative;
    flex-shrink: 0;
    min-height: 152px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.step-card__glow {
    position: absolute;
    width: 150px;
    height: 110px;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.55;
    pointer-events: none;
}

.how-it-works .step-card:nth-child(1) .step-card__glow {
    background: radial-gradient(
        circle,
        rgba(244, 113, 118, 0.48) 0%,
        rgba(253, 190, 60, 0.22) 45%,
        transparent 70%
    );
}

.how-it-works .step-card:nth-child(2) .step-card__glow {
    background: radial-gradient(
        circle,
        rgba(93, 186, 71, 0.42) 0%,
        rgba(227, 213, 98, 0.2) 50%,
        transparent 70%
    );
}

.how-it-works .step-card:nth-child(3) .step-card__glow {
    background: radial-gradient(
        circle,
        rgba(198, 94, 155, 0.38) 0%,
        rgba(91, 188, 110, 0.18) 50%,
        transparent 70%
    );
}

.step-card .step-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
    font-size: inherit;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.step-card .step-icon i[data-lucide] {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
    color: var(--accent-from);
}

.how-it-works .step-card:nth-child(2) .step-icon i[data-lucide] {
    color: #5dba47;
}

.how-it-works .step-card:nth-child(3) .step-icon i[data-lucide] {
    color: #c65e9b;
}

.step-card__body {
    flex: 1;
    min-height: 0;
    padding: 1.35rem 1.35rem 1.5rem;
}

.step-card__body h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.step-card__body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .step.step-card {
        background: var(--bg-card);
    }

    .step-card__visual {
        background: var(--bg-secondary);
    }

    .how-it-works__chips li {
        background: var(--bg-secondary);
    }
}

/* Кроки без картки (якщо десь лишився старий маркер) */
.step:not(.step-card) {
    text-align: center;
}

.step:not(.step-card) .step-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* How craft section (homepage redesign) */
.how-craft {
    text-align: left;
    min-width: 0;
}

.how-craft__intro {
    margin: 0 auto 1.5rem;
    max-width: 70rem;
}

.how-craft__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.how-craft__title {
    margin: 0;
    text-align: left;
}

.how-craft__lead {
    margin: 0.8rem 0 0;
    color: var(--text-secondary);
    line-height: 1.58;
    max-width: 48rem;
}

.how-craft__intro-figure {
    margin: 1rem 0 0;
    padding: 0;
    max-width: 100%;
}

.how-craft__intro-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

.how-craft__timeline {
    margin: 0 auto;
    max-width: 70rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    min-height: 0;
}

.how-craft-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-sizing: border-box;
    transition:
        transform var(--transition-base),
        border-color var(--transition-fast),
        box-shadow var(--transition-base);
}

.how-craft-step:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent-from) 34%, var(--border-subtle));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .how-craft-step,
:root:not([data-theme="light"]) .how-craft-step {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .how-craft-step:hover,
:root:not([data-theme="light"]) .how-craft-step:hover {
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.32),
        0 0 0 1px color-mix(in srgb, var(--accent-from) 20%, transparent);
}

.how-craft-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.how-craft-step__body {
    min-width: 0;
}

.how-craft-step__title {
    margin: 0 0 0.42rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.06rem;
    line-height: 1.3;
}

.how-craft-step__title i[data-lucide] {
    width: 1rem;
    height: 1rem;
    color: var(--accent-from);
    flex-shrink: 0;
}

.how-craft-step__text {
    margin: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.55;
}

.how-craft__footer {
    margin-top: 1.35rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.how-craft__footer .btn-primary {
    display: inline-flex;
}

@media (min-width: 768px) {
    .how-craft {
        display: grid;
        /* Колонка 1 — intro (текст + зображення), колонка 2 — таймлайн */
        grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
        gap: 1.5rem 1.75rem;
        align-items: stretch;
    }

    .how-craft__intro {
        margin-bottom: 0;
        max-width: none;
    }

    .how-craft__timeline {
        margin: 0;
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-self: stretch;
        min-height: 0;
    }

    .how-craft-step {
        padding: 1.05rem;
        min-height: 0;
        height: 100%;
    }
}

/* Lifestyle Section (головна: FAQ — та сама «пігулка», що how-it-works) */
.lifestyle-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.lifestyle-faq {
    position: relative;
    z-index: 1;
    text-align: left;
    min-width: 0;
}

.lifestyle-faq__intro {
    margin: 0 auto 1.25rem;
    max-width: 70rem;
}

.lifestyle-section__faq-heading {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.lifestyle-section__faq-wrap {
    margin: 0 auto;
    max-width: 70rem;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
    min-height: 0;
}

@media (min-width: 768px) {
    .lifestyle-section__faq-wrap .cart-faq {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
    }
}

.lifestyle-section__faq-wrap .cart-faq__item {
    min-width: 0;
}

.lifestyle-section__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    min-height: 280px;
}

.lifestyle-section__image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Reviews Section */
.reviews-section__title {
    margin-bottom: 8px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

.reviews-grid.reviews-grid--split {
    margin-top: 5px;
    margin-bottom: 5px;
}

@media (min-width: 640px) {
    .reviews-grid:not(.reviews-grid--split) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .reviews-grid:not(.reviews-grid--split) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    text-align: left;
}

.review-card__header {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__avatar {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
}

.review-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__avatar-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: -0.02em;
}

.review-card__avatar.review-card__avatar--placeholder {
    background: linear-gradient(135deg, var(--accent-from) 0%, var(--accent-to) 100%);
    border: 2px solid var(--accent-from);
}

[data-theme="light"] .review-card__avatar.review-card__avatar--placeholder {
    background: linear-gradient(135deg, var(--accent-from) 0%, var(--accent-to) 100%);
    border: 2px solid var(--accent-from);
}

.review-card__meta {
    min-width: 0;
    flex: 1;
}

.review-card__author {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.review-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.review-card__star {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.review-card__star.filled {
    color: var(--accent-from);
}

.review-card__rating-text {
    margin-left: 6px;
    font-size: 0.9rem;
    color: var(--accent-from);
}

.review-card__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.reviews-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.reviews-pagination.reviews-pagination--split {
    margin-top: 5px;
    margin-bottom: 5px;
}

.reviews-pagination__link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.reviews-pagination__link:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.reviews-pagination__current {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-rating {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.review-author {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.faq-question {
    font-weight: 500;
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   Contacts Page
   ══════════════════════════════════════════════════ */

/* ── Contact grid ─────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
    border-color: color-mix(in srgb, var(--text-muted) 50%, transparent);
    box-shadow: var(--shadow-soft);
}

.contact-card--accent {
    grid-column: span 2;
    background: color-mix(in srgb, var(--accent-from) 8%, var(--bg-card));
    border-color: color-mix(in srgb, var(--accent-from) 30%, transparent);
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-from) 12%, transparent);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.contact-card__icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-from);
}

.contact-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.contact-card h2 {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary);
}

.contact-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card h2 a:hover {
    color: var(--accent-from);
}

.contact-card--accent h2 a:hover {
    color: var(--accent-to);
}

.contact-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ── FAQ (contacts page) ──────────────────────── */
.content-faq {
    margin-bottom: 48px;
}

.content-faq__title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-list .faq-item {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.faq-list .faq-item:last-child {
    border-bottom: none;
}

.faq-list .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
    transition: background var(--transition-fast);
}

.faq-list .faq-question:hover {
    background: color-mix(in srgb, var(--bg-secondary) 60%, transparent);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-list .faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-list .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                padding 0.35s ease;
    padding: 0 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-list .faq-item.is-open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-list .faq-answer a {
    color: var(--accent-from);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-card--accent {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card--accent {
        grid-column: auto;
    }
    .faq-list .faq-question {
        padding: 16px 18px;
    }
    .faq-list .faq-item.is-open .faq-answer {
        padding: 0 18px 16px;
    }
}

/* Footer */
.footer {
    width: calc(100% - 32px);
    max-width: 1248px;
    margin: var(--section-gap-y) auto;
    padding: 32px 24px 24px;
    box-sizing: border-box;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-main);
    max-height: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 32px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo > a {
    display: inline-flex;
    line-height: 0;
    color: var(--text-primary);
    text-decoration: none;
    --logo-plate: transparent;
}

.footer-logo .site-logo-svg {
    display: block;
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover .site-logo-svg {
    opacity: 1;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 14px;
    position: relative;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-nav a.active {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.footer-social a:hover {
    color: var(--text-primary);
}

.footer-social i[data-lucide] {
    width: 20px;
    height: 20px;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 12px;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 16px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-powered {
    font-size: 12px;
}

.footer-powered a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-powered a:hover {
    color: var(--text-secondary);
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    position: relative;
    padding-left: 24px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
}

/* Image Placeholders */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Placeholder для зображень, які не завантажились */
img[src=""],
img:not([src]),
img[src*="undefined"],
img[src*="null"] {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-subtle);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src=""]::after,
img:not([src])::after,
img[src*="undefined"]::after,
img[src*="null"]::after {
    content: '📷';
    font-size: 48px;
    color: var(--text-muted);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Специфічні заглушки для різних типів зображень */
.product-image:not([src]),
.product-image[src=""],
.product-card img:not([src]),
.product-card img[src=""] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    min-height: 280px;
}

.main-image:not([src]),
.main-image[src=""] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    min-height: 500px;
}

.item-image:not([src]),
.item-image[src=""] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    min-height: 120px;
}

.gallery-thumbnails img:not([src]),
.gallery-thumbnails img[src=""] {
    background: var(--bg-secondary);
    min-height: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    :root {
        --header-sticky-top: 8px;
        --header-bar-height: 64px;
        --layout-gutter: 12px;
        --layout-inner-padding: 16px;
    }

    .header {
        border-radius: var(--radius-md);
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0;
    }

    /* Nav-left: collapse into dropdown */
    .nav-left {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-main);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 280ms ease, opacity 200ms ease;
        z-index: 10;
    }

    .header.menu-open .nav-left {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-left a {
        padding: 14px 20px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-subtle);
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-left a:last-child {
        border-bottom: none;
    }

    .nav-left a.active::after {
        display: none;
    }

    /* Nav-right: full width, logo to far left */
    .nav-right {
        width: 100%;
        gap: 8px;
        justify-content: flex-end;
    }

    .nav-right .header-logo {
        order: -1;
        margin-right: auto;
    }

    /* Show burger */
    .nav-burger {
        display: inline-flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 28px 16px 40px;
        gap: 24px;
    }

    .hero-credo {
        max-width: none;
        font-size: 0.94rem;
        letter-spacing: 0.06em;
    }

    .hero-markers {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-markers span {
        justify-content: flex-start;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-page,
    .faq-reviews-section,
    .value-section,
    .hero.hero--immersive,
    .products-preview,
    .how-it-works,
    .lifestyle-section {
        width: calc(100% - 24px);
        margin: 0 auto var(--section-gap-y);
        padding: 32px 16px;
        border-radius: var(--radius-md);
    }
    
    .item-quantity,
    .item-total,
    .btn-remove {
        grid-column: 2;
    }
    
    .item-quantity {
        justify-self: start;
    }
    
    .item-total {
        justify-self: end;
    }
    
    .btn-remove {
        justify-self: end;
        grid-row: 1;
    }
    
    .sticky-add-to-cart.mobile-only {
        display: flex;
    }
    
    .how-it-works .steps {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .faq-reviews__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq-reviews__col--reviews .faq-reviews__panel--split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 14px 10px;
    }
    
    .footer {
        width: calc(100% - 24px);
        margin: var(--section-gap-y) auto;
        padding: 24px 16px 20px;
        border-radius: var(--radius-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Lucide Icons Styling */
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    stroke-width: 1.5;
}

/* Icon sizes */
.star-icon {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    fill: #fbbf24;
}

.benefit-icon i[data-lucide],
.step-icon i[data-lucide] {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.theme-toggle [data-lucide] {
    width: 20px;
    height: 20px;
}

.cart-icon [data-lucide] {
    width: 22px;
    height: 22px;
    stroke-width: 2.25;
    color: var(--text-primary);
}

.trust-item i[data-lucide],
.hero-markers i[data-lucide] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.review-rating [data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--accent-from);
    fill: var(--accent-from);
    margin-right: 4px;
}

.success-icon i[data-lucide] {
    width: 64px;
    height: 64px;
    color: #5dba47;
}

.btn-remove i[data-lucide] {
    width: 18px;
    height: 18px;
}
