/* === 🎨 Переменные (тёплая молочная палитра по макету) === */
:root {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ffffff;
    --bg-card: #faf6f0;
    --text-primary: #3d3542;
    --text-secondary: #7a7278;
    --accent-pink: #d4849e;
    --accent-peach: #e8b88a;
    --accent-lavender: #b8a9c9;
    --accent-mint: #a8d5c8;
    --accent-cream: #e8ddd0;
    --footer-bg: #2c2c2c;
    --footer-text: #f5f0e8;
    --shadow-sm: 0 2px 8px rgba(61, 53, 66, 0.08);
    --shadow-md: 0 8px 24px rgba(61, 53, 66, 0.12);
    --shadow-lg: 0 16px 40px rgba(61, 53, 66, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 999px;
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === 🧱 Базовые стили === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* === 🍬 Хедер === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 53, 66, 0.08);
    padding: 0.8rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.logo span { background: linear-gradient(135deg, var(--accent-pink), var(--accent-lavender)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.main-nav {
    display: flex;
    gap: 1.5rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--bg-secondary); transform: scale(1.05); }

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}
.cart-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--text-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* === 🎀 Hero Баннер (Точно в правый край!) === */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;

    background-size: cover;
    background-position: 10% center; /* Фон максимально влево */
    background-repeat: no-repeat;
    background-color: var(--bg-primary, #f5f0e8);
    overflow: visible; /* Разрешаем выход за границы */
}

/* Градиент */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0,0,0,0) 20%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* РОДИТЕЛЬ — убираем ограничение ширины */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none; /* 🔥 УБИРАЕМ ОГРАНИЧЕНИЕ! */
    padding: 2rem 5% 2rem 5%; /* Отступы от краев экрана */
    text-align: right;
}

/* БЛОК С ТЕКСТОМ — прижимаем к правому краю */
.hero-content-inner {
    /* 🔥 КЛЮЧЕВОЕ: сдвигаем вправо */
    margin-left: auto;
    margin-right: 0;

    /* Фиксированная ширина блока */
    width: 100%;
    max-width: 550px; /* Не шире 550px */

    padding: 3rem;

    /* Стекло */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.15); /* Тень слева */
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--hero-title-color, #ffffff);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--hero-subtitle-color, #f0f0f0);
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
}

/* 📱 Адаптив */
@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
        height: auto;
        display: block;
        background-image: none !important;
        background-color: var(--bg-primary, #f5f0e8);
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-banner::before { display: none; }

    .hero-content {
        padding: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero-content-inner {
        margin: 0 auto;
        max-width: 100%;
        padding: 1.5rem 1rem;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
}

/* === 🎯 Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
}
.btn-outline:hover {
    background: var(--accent-pink);
    color: white;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-add-cart {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === 📚 Секции === */
.section { padding: 4rem 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-lavender));
    margin: 0.8rem auto 0;
    border-radius: var(--radius-full);
}

/* === 🗂️ Категории === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-icon {
    font-size: 2.5rem;
    background: var(--cat-color, var(--accent-mint));
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* === 🍓 Карточки товаров — фон как на макете === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}
.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 🍓 Тёплый кремовый фон как на макете — с молочным градиентом */
    background: linear-gradient(
        160deg,
        #faf6f0 0%,
        #f5ece0 30%,
        #efe5d5 60%,
        #e8ddd0 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 0.5rem;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.placeholder { font-size: 4rem; opacity: 0.3; }
.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.badge-new { background: var(--accent-mint); color: var(--text-primary); }

.product-body {
    padding: 1.2rem;
    flex-grow: 1;
    background: var(--bg-secondary);
}
.product-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    min-height: 2.4rem;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 3.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === 💰 Цены + наличие === */
.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.2rem 0.8rem;
    border-top: 1px solid rgba(61, 53, 66, 0.06);
    margin-top: auto;
    background: var(--bg-secondary);
}
.price-with-discount {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-pink);
}
.price-old {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}
.discount-badge {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.price-regular {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-pink);
}

/* === 📦 Статусы наличия === */
.stock-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    width: fit-content;
}
.stock-available { background: var(--accent-mint); color: var(--text-primary); }
.stock-low { background: var(--accent-peach); color: var(--text-primary); }
.stock-preorder { background: var(--accent-lavender); color: var(--text-primary); }
.stock-unavailable { background: #fde8e8; color: #c45c4e; }

/* === 🛒 Футер карточки товара === */
.product-footer {
    padding: 0 1.2rem 1.2rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.product-footer .add-cart-form {
    width: 100%;
}
.product-footer .btn-add-cart {
    width: 100%;
    min-width: auto;
    white-space: nowrap;
    padding: 0.6rem 1rem;
    text-align: center;
}

/* === 🦶 Футер === */
.site-footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    color: var(--footer-text);
    font-size: 0.9rem;
    border-top: none;
    margin-top: 3rem;
    background: var(--footer-bg);
}
.footer-copy { margin-bottom: 1.2rem; opacity: 0.7; }
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-contacts { line-height: 1.6; max-width: 600px; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    margin: 0.5rem 0;
}
.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px dashed transparent;
    opacity: 0.8;
}
.footer-link:hover {
    color: var(--accent-peach);
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent-peach);
    opacity: 1;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.social-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.7;
}
.social-links a:hover { opacity: 1; color: var(--accent-peach); transform: translateY(-2px); }

@media (max-width: 600px) {
    .footer-links { flex-direction: column; gap: 0.4rem; }
    .footer-link { padding: 0.5rem 1rem; background: rgba(255,255,255,0.04); }
    .social-links { gap: 0.8rem; font-size: 0.85rem; }
}

/* === 📱 Адаптив (Глобальный) === */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .main-nav.active { display: flex; }
    .header-actions { gap: 0.3rem; }
    .icon-btn, .cart-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .hero-banner { min-height: 400px; }
    .hero-content h1 { font-size: 2rem; }
    .section { padding: 3rem 0; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }

    .product-card { max-width: 100%; }
    .product-title { min-height: 2.8rem; }
    .product-desc { min-height: 4.2rem; }

    .product-footer {
        padding: 0 1rem 1rem;
    }
    .product-footer .btn-add-cart {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* === 🎬 Анимации === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section { animation: fadeInUp 0.5s ease forwards; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }

/* === 🛒 КОРЗИНА === */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 1rem;
}
.cart-table-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.cart-table th {
    text-align: left;
    padding: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid rgba(61, 53, 66, 0.08);
}
.cart-table td {
    padding: 1rem 0.8rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(61, 53, 66, 0.05);
}
.product-cell { display: flex; gap: 1rem; align-items: center; min-width: 200px; }
.product-cell img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; }
.product-cell h3 { margin: 0 0 0.2rem; font-size: 1rem; line-height: 1.3; }
.product-cat { font-size: 0.8rem; color: var(--text-secondary); }

.qty-form { display: flex; gap: 0.5rem; align-items: center; }
.qty-input { width: 50px; padding: 0.3rem; border: 1px solid #ddd; border-radius: 6px; text-align: center; }
.btn-update, .btn-remove {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-update { background: var(--accent-mint); color: var(--text-primary); }
.btn-update:hover { transform: scale(1.1); }
.btn-remove { background: #fde8e8; color: #c45c4e; }
.btn-remove:hover { background: #c45c4e; color: white; }

.cart-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-row.total { font-size: 1.3rem; font-weight: 800; border-top: 2px solid rgba(61, 53, 66, 0.1); padding-top: 1rem; margin-top: 0.5rem; }
#checkout-btn { margin-top: 1.5rem; width: 100%; }

.empty-cart { text-align: center; padding: 4rem 2rem; background: var(--bg-secondary); border-radius: var(--radius-md); }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.6; }

@media (max-width: 900px) {
    .cart-container { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
    .cart-table-wrapper {
        padding: 1rem;
        margin: 0 -1.5rem;
        border-radius: 0;
    }
    .cart-table {
        min-width: 450px;
        font-size: 0.9rem;
    }
    .cart-table th, .cart-table td {
        padding: 0.8rem 0.5rem;
    }
    .product-cell { gap: 0.8rem; }
    .product-cell img { width: 50px; height: 50px; }
    .product-cell h3 { font-size: 0.95rem; }
    .qty-input { width: 45px; padding: 0.5rem; }
    .btn-update, .btn-remove {
        width: 36px; height: 36px;
    }
    .btn-remove {
        width: 40px; height: 40px;
    }
}

/* === 🔢 Кнопки количества в корзине === */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-lavender);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.qty-btn:hover {
    background: var(--accent-pink);
    color: white;
    transform: scale(1.05);
}
.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.qty-input {
    width: 50px;
    padding: 0.4rem;
    border: 1px solid rgba(61, 53, 66, 0.12);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    background: white;
}
.qty-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(212, 132, 158, 0.2);
}

@keyframes priceUpdate {
    0% { background: rgba(168, 213, 200, 0.4); }
    100% { background: transparent; }
}
.price-updated {
    animation: priceUpdate 0.4s ease;
}

@media (max-width: 768px) {
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { display: none; }
    .qty-control { transform: scale(0.95); }
}

/* === 🎬 Анимация полёта товара === */
@keyframes flyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.cart-btn.flying {
    animation: flyPulse 0.3s ease;
}

/* === ✨ Пульсация счётчика === */
@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); background: var(--accent-mint); }
    100% { transform: scale(1); }
}
.cart-count.updated {
    animation: badgePop 0.3s ease;
}

/* === 🖼️ Галерея товара === */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}
.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--accent-pink);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
}
.gallery-main {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

/* === 🔗 Ссылка в карточке товара === */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
.product-card:hover .product-title {
    color: var(--accent-pink);
    transition: var(--transition);
}

/* === ✨ Красивое описание на странице товара === */
.product-description {
    background: linear-gradient(135deg, var(--bg-card), #fdf9fb);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-pink);
    margin: 1.5rem 0;
}
.product-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.product-description p:last-child { margin-bottom: 0; }

/* === 🪟 Попап состава === */
.composition-wrapper {
    position: relative;
    padding: 0 1.2rem 0.5rem;
    overflow: visible !important;
    z-index: 10;
}
.composition-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid rgba(61, 53, 66, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}
.composition-btn:hover {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
}
.composition-btn svg {
    width: 14px; height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.composition-popover {
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(61, 53, 66, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem 1rem 1rem;
    box-shadow: 0 -8px 24px rgba(61, 53, 66, 0.14);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}
.composition-popover.show {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.composition-popover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--bg-secondary) transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.composition-popover-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 25;
    padding: 0.3rem;
    transition: color 0.2s;
}
.composition-popover-close:hover { color: var(--accent-pink); }

.composition-popover-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
}
.composition-popover-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.composition-popover.show::-webkit-scrollbar { width: 5px; }
.composition-popover.show::-webkit-scrollbar-track { background: transparent; }
.composition-popover.show::-webkit-scrollbar-thumb { background: var(--accent-lavender); border-radius: 3px; }

@media (max-width: 480px) {
    .composition-popover {
        max-height: 220px;
        padding: 0.8rem 2.2rem 0.8rem 0.8rem;
    }
    .composition-popover-close {
        top: 0.5rem;
        right: 0.6rem;
        font-size: 1.2rem;
    }
}

/* === 📱 Детальная страница товара === */
.product-detail-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.back-link:hover { color: var(--accent-pink); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-detail-info .product-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.detail-composition { margin: 1rem 0; }

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: auto 0 1.5rem;
    flex-wrap: wrap;
}
.product-meta .product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-pink);
}
.product-stock {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.stock-available { background: var(--accent-mint); color: var(--text-primary); }
.stock-unavailable { background: #fde8e8; color: #c45c4e; }

.detail-form .detail-add-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 48px;
}

@media (max-width: 768px) {
    .product-detail-container { margin: 1.5rem auto; padding: 0 0.8rem; }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.2rem;
    }
    .product-detail-gallery .gallery-main img {
        aspect-ratio: 1/1;
        max-height: 350px;
    }
    .product-detail-info .product-title { font-size: 1.6rem; }
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 1rem 0 1.5rem;
    }
    .product-meta .product-price { font-size: 1.5rem; }
    .detail-form .detail-add-btn {
        padding: 0.9rem;
        font-size: 1rem;
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    }
}

/* === 📄 Пагинация === */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
}
.pagination {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(61, 53, 66, 0.1);
}
.page-link:hover {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
    transform: translateY(-2px);
}
.page-item.active .page-link {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
    cursor: default;
    transform: none;
}
.page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 480px) {
    .pagination { gap: 0.2rem; }
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
        padding: 0 0.6rem;
    }
    .price-with-discount { gap: 0.4rem; }
    .price-new { font-size: 1.3rem; }
    .price-old { font-size: 0.95rem; }
}

/* === 📢 Маркетинговые блоки === */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.quiz-option {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    background: var(--bg-secondary); padding: 1.5rem; border-radius: var(--radius-md);
    text-decoration: none; color: var(--text-primary); transition: var(--transition);
    border: 2px solid transparent; box-shadow: var(--shadow-sm);
}
.quiz-option:hover { border-color: var(--accent-pink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quiz-icon { font-size: 2rem; }
.quiz-label { font-weight: 600; text-align: center; }

.bundles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.bundle-card {
    background: var(--bg-secondary); padding: 1.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.bundle-card:hover { box-shadow: var(--shadow-md); }
.bundle-title { font-size: 1.1rem; margin-bottom: 1rem; }
.bundle-products { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bundle-item { display: flex; flex-direction: column; align-items: center; width: 70px; text-align: center; text-decoration: none; color: var(--text-secondary); font-size: 0.8rem; }
.bundle-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-bottom: 0.3rem; }
.bundle-plus { font-size: 1.5rem; color: var(--accent-peach); font-weight: 700; }
.bundle-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.bundle-save { background: var(--accent-mint); padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

.upsell-banner {
    background: linear-gradient(135deg, var(--bg-card), #fdf9fb);
    border: 2px dashed var(--accent-lavender);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.upsell-content { flex: 1; min-width: 250px; }
.upsell-content h3 { margin-bottom: 0.3rem; }
.upsell-products { display: flex; gap: 0.5rem; margin: 0.8rem 0; }
.upsell-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; }
.upsell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

@media (max-width: 600px) {
    .quiz-grid { grid-template-columns: 1fr 1fr; }
    .bundles-grid { grid-template-columns: 1fr; }
    .upsell-banner { flex-direction: column; text-align: center; }
    .upsell-content { align-items: center; display: flex; flex-direction: column; }
}

/* === 🚚 Доставка в карточке товара === */
.product-delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-secondary);
    background: transparent;
    border-top: 1px dashed rgba(61, 53, 66, 0.1);
    border-bottom: none;
    text-align: center;
    flex-wrap: wrap;
}

.product-delivery-info strong {
    color: var(--accent-pink);
    font-weight: 700;
    white-space: nowrap;
}

.free-delivery-hint {
    font-size: 0.75rem;
    color: var(--accent-mint);
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}

.free-delivery-hint::before {
    content: '•';
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 0.25rem;
}

.product-delivery-info::after { display: none; }

@media (max-width: 900px) {
    .product-delivery-info {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        gap: 0.2rem;
        flex-direction: column;
    }
    .free-delivery-hint::before {
        display: none;
    }
    .product-delivery-info strong,
    .product-delivery-info .free-delivery-hint {
        white-space: normal;
    }
}

/* === 📚 КАТАЛОГ === */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar { background: var(--bg-secondary); padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.close-sidebar { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.filter-group { margin-bottom: 1.5rem; }
.filter-group h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--text-primary); }
.category-tree { list-style: none; padding: 0; margin: 0; }
.category-tree li { margin-bottom: 0.3rem; }
.category-tree a { text-decoration: none; color: var(--text-secondary); display: block; padding: 0.3rem 0; transition: var(--transition); border-radius: 6px; padding-left: 0.5rem; }
.category-tree a:hover, .category-tree li.active > a { color: var(--accent-pink); font-weight: 600; background: rgba(212, 132, 158, 0.1); }
.sub-cat { padding-left: 1rem; margin-top: 0.3rem; }
.sub-cat li.active > a { background: rgba(212, 132, 158, 0.15); }

.price-inputs { display: flex; align-items: center; gap: 0.5rem; }
.price-inputs input { width: 100%; padding: 0.5rem; border: 1px solid rgba(61, 53, 66, 0.12); border-radius: 6px; text-align: center; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }

.catalog-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.sort-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.sort-select { padding: 0.4rem 0.8rem; border-radius: 20px; border: 1px solid rgba(61, 53, 66, 0.12); background: white; font-size: 0.9rem; cursor: pointer; }

.empty-catalog { text-align: center; padding: 4rem 2rem; background: var(--bg-secondary); border-radius: var(--radius-md); grid-column: 1 / -1; }
.mobile-filter-btn { display: none; width: 100%; padding: 0.8rem; margin-bottom: 1rem; background: var(--bg-secondary); border: 1px solid rgba(61, 53, 66, 0.1); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 85%; max-width: 320px; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 20px 0 40px rgba(0,0,0,0.1); overflow-y: auto; }
    .catalog-sidebar.open { transform: translateX(0); }
    .close-sidebar { display: block; }
    .mobile-filter-btn { display: block; }
    .catalog-main { margin-top: 0; }
}

/* === 🍪 Cookie Баннер === */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(61, 53, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent-peach);
    max-width: 900px;
    width: calc(100% - 2rem);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.cookie-banner.show { bottom: 0; }
.cookie-content { flex: 1; min-width: 0; }
.cookie-content h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.3rem; color: var(--text-primary); }
.cookie-content p { font-size: 0.9rem; margin: 0; color: var(--text-secondary); line-height: 1.5; }
.cookie-content a { color: var(--accent-pink); text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--accent-pink); }
.cookie-content a:hover { border-bottom-style: solid; }

/* === ⬆️ Кнопка "Наверх" === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 1rem; gap: 0.8rem; }
    .cookie-banner .btn { width: 100%; }
    .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
    .back-to-top svg { width: 20px; height: 20px; }
}

/* === 🔍 Живой поиск === */
.search-wrapper {
    position: relative;
    width: 220px;
    transition: width 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.search-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: none;
}
.search-toggle-btn:hover { background: rgba(212, 132, 158, 0.1); }

.search-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(61, 53, 66, 0.1);
    background: var(--bg-card);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.search-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(212, 132, 158, 0.2);
    background: white;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    border: 1px solid rgba(61, 53, 66, 0.06);
}
.search-results.active { display: block; animation: fadeIn 0.2s ease; }

.search-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem;
    text-decoration: none; color: var(--text-primary); transition: var(--transition);
    border-bottom: 1px solid rgba(61, 53, 66, 0.05);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: rgba(212, 132, 158, 0.08); }

.search-img {
    width: 45px; height: 45px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: linear-gradient(135deg, #f5e6e8, #ede6f5);
}
.search-info { flex: 1; min-width: 0; }
.search-name { font-weight: 600; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-meta { font-size: 0.8rem; color: var(--text-secondary); display: flex; justify-content: space-between; }
.search-price { color: var(--accent-pink); font-weight: 700; }

.search-empty, .search-loading {
    text-align: center; padding: 1.5rem; color: var(--text-secondary); font-size: 0.9rem;
}
.search-loading { color: var(--accent-pink); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .search-wrapper { width: auto; }
    .search-toggle-btn { display: block; }
    .search-input {
        display: none;
        position: absolute;
        right: 0; top: 50%; transform: translateY(-50%);
        width: 200px; padding-left: 2rem;
        z-index: 1002;
    }
    .search-wrapper.active .search-input { display: block; }
    .search-wrapper.active .search-toggle-btn { display: none; }
    .search-results {
        right: 0; left: auto; width: 260px; max-height: 250px;
    }
}

@media (max-width: 480px) {
    .search-input { width: 180px; font-size: 0.85rem; padding: 0.4rem 0.6rem 0.4rem 2rem; }
    .search-results { width: 240px; max-height: 200px; font-size: 0.85rem; }
    .search-img { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
    .header-actions { gap: 0.2rem; }
    .icon-btn, .cart-btn, .search-toggle-btn {
        width: 36px; height: 36px; font-size: 1rem; padding: 0;
        display: flex; align-items: center; justify-content: center;
    }
    .cart-count { width: 16px; height: 16px; font-size: 0.65rem; }
}

/* === 🎨 Логотип в хедере === */
.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}
.logo:hover { opacity: 0.9; }
.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo-img { max-height: 40px; }
    .logo { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .logo-img { max-height: 35px; }
}

/* === 🛒 Оформление заказа === */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-form .form-group { margin-bottom: 1.2rem; }
.checkout-form label { display:block; font-weight:600; margin-bottom:0.4rem; color:var(--text-primary); }
.form-input {
    width:100%; padding:0.8rem 1rem; border:1px solid rgba(61, 53, 66, 0.12); border-radius:var(--radius-sm);
    font-size:1rem; transition:var(--transition); background:var(--bg-card);
}
.form-input:focus { border-color:var(--accent-pink); box-shadow:0 0 0 3px rgba(212,132,158,0.2); outline:none; }
.form-error { color:#c45c4e; font-size:0.85rem; margin-top:0.3rem; display:block; }

.checkout-summary {
    background:var(--bg-secondary); padding:1.5rem; border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm); position:sticky; top:90px;
}
.order-items { border-bottom:1px solid rgba(61, 53, 66, 0.1); padding-bottom:1rem; margin-bottom:1rem; }
.order-item { display:flex; justify-content:space-between; align-items:center; padding:0.5rem 0; }
.order-item-info { display:flex; align-items:center; gap:0.5rem; }
.order-item-qty { color:var(--text-secondary); font-size:0.9rem; }
.order-item-price { font-weight:600; color:var(--accent-pink); }

.order-totals { font-size:0.95rem; }
.order-total-row { display:flex; justify-content:space-between; padding:0.4rem 0; }
.order-total-row.grand-total {
    border-top:2px solid var(--accent-pink); padding-top:0.8rem; margin-top:0.5rem;
    font-size:1.1rem;
}

@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position:static; }
}

/* === ✅ Страница успеха === */
.success-page code { font-family:monospace; background:var(--accent-peach); padding:0.2rem 0.5rem; border-radius:4px; }

/* === 🔐 Согласие на обработку ПДн === */
.consent-block {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-pink);
    padding: 1rem;
    margin: 1.5rem 0;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    user-select: none;
}
.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-pink);
    cursor: pointer;
}
.consent-label a {
    color: var(--accent-pink);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-pink);
    transition: var(--transition);
}
.consent-label a:hover {
    border-bottom-style: solid;
    opacity: 0.9;
}
.consent-label small {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

#checkoutBtn:disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    background: var(--text-secondary) !important;
}
#checkoutBtn:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    background: var(--accent-pink) !important;
}

@media (max-width: 600px) {
    .consent-label { font-size: 0.85rem; }
    .consent-label small { font-size: 0.75rem; }
}

/* === 🔐 Кнопка оформления заказа с согласием === */
.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    transition: all 0.2s ease;
    background: var(--text-secondary) !important;
    color: white !important;
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.checkout-btn:enabled,
.checkout-btn:not(:disabled) {
    background: var(--accent-pink) !important;
    color: white !important;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.checkout-btn:hover:enabled {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    .checkout-btn { font-size: 0.95rem; padding: 0.8rem 1rem; }
}

/* === 🌊 Молочная волна между секциями === */
.section-wave {
    position: relative;
    margin-top: -1px; /* Убираем границу */
}

.section-wave::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-primary, #f5f0e8);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

/* Альтернатива: SVG волна */
.wave-divider {
    position: relative;
    margin-top: -1px;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f5f0e8' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* =============================================================================
   === 🏠 СТИЛИ ГЛАВНОЙ СТРАНИЦЫ (Home Page) ===
   ============================================================================= */

/* 🔗 Стили для ссылки-карточки */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}
.product-link:hover .product-title {
    color: var(--accent-pink);
}

/* === 🎀 Hero Баннер === */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Текст справа */
    text-align: right;
    background-color: var(--bg-primary, #f5f0e8);
    /* Картинка на весь блок, не обрезается */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 2rem 5%; /* Отступ справа для красоты */
    width: 100%;
}

.hero-content-inner {
    max-width: 600px;
    margin-left: auto; /* Прижимаем блок текста к правому краю */
    margin-right: 0;
}

.hero-content h1 {
    font-family: var(--hero-title-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--hero-title-color, #ffffff);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--hero-subtitle-color, #f0f0f0);
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
}

/* 🥛 Молочная волна */
.milk-wave-divider {
    height: 80px;
    background: #f5f0e8;
    border-radius: 50% 50% 0 0 / 100px 100px 0 0;
    margin-top: -1px;
    position: relative;
    z-index: 10;
}

/* 📱 Адаптив (Мобильная версия) */
@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
        height: auto;
        display: block;
        padding: 3rem 0;

        /* 🔥 УБИРАЕМ КАРТИНКУ НА МОБИЛЬНОМ */
        background-image: none !important;

        /* Текст по центру */
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content-inner {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 1.5rem; }
}

/* =============================================================================
   === 📢 МАРКЕТИНГОВЫЕ БЛОКИ (Главная и Корзина) ===
   ============================================================================= */

/* Контейнер слайдера */
.marketing-items-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: var(--accent-pink) transparent;
}

/* Стилизация скроллбара для Webkit (Chrome, Safari) */
.marketing-items-slider::-webkit-scrollbar {
    height: 6px;
}
.marketing-items-slider::-webkit-scrollbar-track {
    background: transparent;
}
.marketing-items-slider::-webkit-scrollbar-thumb {
    background-color: var(--accent-pink);
    border-radius: 10px;
}

/* Карточка элемента */
.marketing-item-card {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Эффект наведения */
.marketing-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Адаптив для мобильных, чтобы карточки были шире */
@media (max-width: 768px) {
    .marketing-item-card {
        min-width: 85vw; /* Почти во всю ширину экрана */
    }
}

/* =============================================================================
   === ❓ КВИЗ: СТИЛИ ===
   ============================================================================= */

/* Вопрос квиза */
.quiz-question {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

/* Варианты ответов */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: var(--accent-pink);
    background: var(--bg-primary);
}

.quiz-option.selected {
    border-color: var(--accent-pink);
    background: rgba(255, 158, 197, 0.1);
}

.quiz-option input {
    margin: 0;
    accent-color: var(--accent-pink);
}

/* Рейтинг (звёзды) */
.quiz-rating {
    display: flex;
    gap: 0.3rem;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.quiz-rating input {
    display: none;
}

.quiz-rating label {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.quiz-rating label:hover,
.quiz-rating label:hover ~ label,
.quiz-rating input:checked ~ label {
    color: #ffc107; /* Золотой для звёзд */
}

/* Текстовое поле */
.quiz-text-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.quiz-text-input:focus {
    outline: none;
    border-color: var(--accent-pink);
}

/* Подсказка */
.quiz-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Адаптив */
@media (max-width: 768px) {
    .quiz-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .quiz-question-title {
        font-size: 1rem;
    }
}

/* === 🖼️ ГАЛЕРЕЯ ТОВАРОВ === */
.gallery-thumb.active {
    border-color: var(--accent-pink, #ff9ec5);
    box-shadow: 0 0 0 2px rgba(255, 158, 197, 0.3);
}
.gallery-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gallery-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-close, .gallery-prev, .gallery-next {
    position: absolute;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
}
.gallery-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.5rem; }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover {
    background: white;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .gallery-modal { padding: 1rem; }
    .gallery-close, .gallery-prev, .gallery-next {
        width: 40px; height: 40px; font-size: 1.5rem;
    }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}