﻿/*
Theme Name: novogodnie2027KOZA_horo
Theme URI: https://professional2009.ru
Description: Christmas gifts shop theme with all bug fixes - Filter, Mobile Menu, Advantages on mobile, Map display. All elements editable through WordPress (colors, fonts, custom fonts, images).
Author: Professional
Author URI: https://professional2009.ru
Version: 5.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novogodnie-podarki
Tags: e-commerce, woocommerce, christmas, gifts, custom-colors, custom-fonts, featured-images, theme-options, threaded-comments, translation-ready, responsive-layout
*/

:root {
    --theme-primary: #2f9938;
    --theme-secondary: #2f9939;
    --theme-accent: #eeee22;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Скрыть надписи [sidemenu] и похожие служебные метки из виджетов/плагинов */
.sidemenu,
[class*="sidemenu"],
.widget_product_categories .sidemenu,
.woocommerce-widget-layered-nav .sidemenu,
.wc-block-product-categories-list .sidemenu {
    display: none !important;
}
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, .section-title {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
}

.section-title {
    font-size: var(--font-h2, 42px);
    color: var(--theme-primary);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

/* Глобальное правило — перебивает все .section-title из responsive.css и других файлов */
h1.section-title,
h2.section-title,
h3.section-title,
.section-title {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--theme-primary), var(--theme-accent));
    margin: 15px auto 0;
}

/* ========================================
   ШАПКА - ТОЧНО КАК INDEX_14
   ======================================== */

.site-header.has-banner {
    position: relative;
    z-index: 10;
}

.header-banner-wrap {
    position: relative;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контактные иконки сверху на шапке - ТОЧНО КАК INDEX_14 */
.header-contacts-top {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-item img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.icons-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-contact-item .contact-info {
    display: flex;
    flex-direction: column;
}

.header-contact-item a,
.header-contact-item span {
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    text-decoration: none;
    margin-bottom: 3px;
}

.header-contact-item a:last-child {
    margin-bottom: 0;
}

.header-contact-item a:hover {
    opacity: 0.8;
}

/* КОРЗИНА - сверху справа fixed (кастомизируемая, прозрачный фон) */
.floating-cart {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    bottom: auto !important;
    left: auto !important;
    width: 80px;
    height: 80px;
    background: transparent !important;
    border: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s, opacity 0.2s ease;
    text-decoration: none;
    opacity: 0.95;
}

.floating-cart:hover {
    transform: scale(1.1);
    opacity: 1;
}

.floating-cart .cart-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: var(--theme-primary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}



/* ========================================
   МЕНЮ ПОД ШАПКОЙ - БЕЛОЕ С ЗЕЛЕНЫМ ПОДЧЕРКИВАНИЕМ
   ======================================== */

.header-menu-bar {
    padding: 8px 0;
    position: relative;
    z-index: 100;
    background: white;
    border-bottom: 2px solid var(--theme-primary);
}

.header-menu-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-menu-bar .main-navigation ul {
    display: flex;
    list-style: none;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.header-menu-bar .main-navigation li {
    display: inline-flex;
    align-items: center;
}

.header-menu-bar .main-navigation a {
    font-family: 'Comfortaa', cursive;
    color: #333;
    font-weight: 700;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    position: relative;
}

.header-menu-bar .main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-menu-bar .main-navigation a:hover {
    color: var(--theme-primary);
    background: rgba(47, 153, 56, 0.05);
}

.header-menu-bar .main-navigation a:hover::after {
    width: 80%;
}

.menu-item-home a {
    color: var(--theme-primary) !important;
}

.menu-item-home a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.menu-item-home a:hover svg {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 5px;
}

/* ========================================
   HERO BANNER СО СЛАЙДЕРОМ
   ======================================== */

.hero-banner-slider { position: relative; height: 500px; overflow: hidden; }

/* Мобильный баннер — отдельные размеры через CSS-переменные из Customizer */
@media (max-width: 768px) {
    .hero-banner-slider {
        height: var(--hero-h-m, 320px) !important;
    }
    .hero-banner-slider h1 {
        font-size: var(--hero-title-m, 22px) !important;
    }
    .hero-banner-slider p {
        font-size: var(--hero-subtitle-m, 14px) !important;
    }
    /* Скрыть снежинки на мобильных, если отключено */
    .snowflakes-wrap[data-mobile-show="0"] {
        display: none !important;
    }
    /* Скрыть стрелки слайдера на мобильных, если отключено */
    .hero-banner-slider .hero-slider-nav[data-mobile-show="0"],
    .hero-banner-slider[data-mobile-slider-nav="0"] .hero-slider-nav {
        display: none !important;
    }
    /* Скрыть точки слайдера на мобильных, если отключено */
    .hero-banner-slider[data-mobile-dots="0"] .hero-slider-dots {
        display: none !important;
    }
}

/* Стикер — мобильная позиция */
.hero-badge-mobile {
    display: block;
}
.hero-badge-mobile.hero-badge-hidden {
    display: none !important;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.snowflakes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.snowflake { position: absolute; color: white; font-size: 1.5em; opacity: 0.8; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-50px); } 100% { transform: translateY(550px); } }

/* Hero контент */
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 40px; }
.hero-content.hero-position-y-top { justify-content: flex-start; }
.hero-content.hero-position-y-center { justify-content: center; }
.hero-content.hero-position-y-bottom { justify-content: flex-end; }
.hero-text { text-align: center; color: white; max-width: 800px; margin: 0 auto; }
.hero-text h1 { font-size: var(--font-h1); margin-bottom: 20px; text-shadow: 3px 3px 6px rgba(0,0,0,0.7); }
.hero-text p { font-size: 22px; margin-bottom: 30px; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }

/* ===== Раздельный контент для ПК и моб ===== */
.hero-content--desktop { display: flex; }
.hero-content--mobile { display: none; }

/* ===== Раздельные слайды ===== */
.hero-slide--mobile { display: none; }

/* ===== Круглый стикер на hero — общие стили ===== */
.hero-round-badge {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: block;
    animation: badge-float 3s ease-in-out infinite;
}
.hero-round-badge:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-round-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Позиционирование стикера — десктопные классы (применяются к .hero-badge-{pos}) */
.hero-badge-top-left     { top: 20px;    left: 20px;    right: auto;     bottom: auto; }
.hero-badge-top-right    { top: 20px;    right: 20px;   left: auto;      bottom: auto; }
.hero-badge-bottom-left  { bottom: 20px; left: 20px;    right: auto;     top: auto; }
.hero-badge-bottom-right { bottom: 20px; right: 20px;   left: auto;      top: auto; }
.hero-badge-top-center   { top: 20px;    left: 50%;     right: auto;     bottom: auto; transform: translateX(-50%); }
.hero-badge-bottom-center{ bottom: 20px; left: 50%;     right: auto;     top: auto;    transform: translateX(-50%); }
.hero-badge-middle-left  { top: 50%;     left: 20px;    right: auto;     bottom: auto; transform: translateY(-50%); }
.hero-badge-middle-right { top: 50%;     right: 20px;   left: auto;      bottom: auto; transform: translateY(-50%); }

/* Видимость стикера по типу устройства */
.hero-badge--mobile { display: none; }

/* Hero кнопка */
.hero-button-wrap { margin-top: 20px; display: flex; }
.hero-button-wrap.hero-position-x-left { justify-content: flex-start; }
.hero-button-wrap.hero-position-x-center { justify-content: center; }
.hero-button-wrap.hero-position-x-right { justify-content: flex-end; }
.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--theme-accent);
    color: var(--theme-secondary);
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    font-size: var(--hero-btn-fs, 16px);
    padding: var(--hero-btn-pad, 12px) 26px;
    border-radius: var(--hero-btn-rad, 20px);
}

/* === Размеры кнопки "Выбрать подарок" на баннере ===
   Все размеры — из кастомайзера через CSS-переменные (--hero-btn-fs, --hero-btn-pad, --hero-btn-rad).
   Классы hero-button--xs/small/medium/large/xl задают только относительный масштаб. */

.hero-button.hero-button--xs {
    padding: calc(var(--hero-btn-pad, 12px) * 0.4 + 2px) calc(var(--hero-btn-pad, 12px) * 2px);
    font-size: calc(var(--hero-btn-fs, 16px) * 0.7);
    border-radius: calc(var(--hero-btn-rad, 20px) * 0.6);
    border-width: 1px;
    letter-spacing: 0;
}
.hero-button.hero-button--small {
    padding: calc(var(--hero-btn-pad, 12px) * 0.6 + 2px) calc(var(--hero-btn-pad, 12px) * 2.2px);
    font-size: calc(var(--hero-btn-fs, 16px) * 0.8);
    border-radius: calc(var(--hero-btn-rad, 20px) * 0.8);
    letter-spacing: 0;
}

/* Medium — средняя (по умолчанию). Размеры из кастомайзера, иначе дефолт. */
.hero-button.hero-button--medium {
    padding: var(--hero-btn-pad, 12px) 26px;
    font-size: var(--hero-btn-fs, 16px);
    border-radius: var(--hero-btn-rad, 20px);
}
.hero-button.hero-button--large {
    padding: calc(var(--hero-btn-pad, 12px) * 1.2 + 2px) calc(var(--hero-btn-pad, 12px) * 3px);
    font-size: calc(var(--hero-btn-fs, 16px) * 1.25);
    border-radius: calc(var(--hero-btn-rad, 20px) * 1.2);
    letter-spacing: .5px;
}
.hero-button.hero-button--xl {
    padding: calc(var(--hero-btn-pad, 12px) * 1.6 + 4px) calc(var(--hero-btn-pad, 12px) * 4px);
    font-size: calc(var(--hero-btn-fs, 16px) * 1.6);
    border-radius: calc(var(--hero-btn-rad, 20px) * 1.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

/* ===== МОБИЛЬНЫЕ РАЗМЕРЫ КНОПКИ ===== */
@media (max-width: 768px) {
    /* ===== ПЕРЕКЛЮЧЕНИЕ DESKTOP → MOBILE ===== */
    .hero-content--desktop { display: none !important; }
    .hero-content--mobile { display: flex !important; }
    .hero-badge--desktop { display: none !important; }
    .hero-badge--mobile { display: block !important; }
    .hero-slide--desktop { display: none !important; }
    .hero-slide--mobile { display: block !important; }
    .hero-slider-dots--desktop { display: none; }
    .hero-slider-dots--mobile { display: flex; }

    /* Скрыть кнопку на мобильных, если отключено в Customizer */
    .hero-content--mobile[data-btn-show-mobile="0"] .hero-button-wrap--mobile { display: none !important; }

    /* Базовый мобильный стиль через CSS-переменные из Customizer */
    .hero-button {
        font-size: var(--hero-btn-fs-m, 13px) !important;
        padding: var(--hero-btn-pad-m, 8px) 16px !important;
        border-radius: var(--hero-btn-rad-m, 16px) !important;
    }

    /* Мобильные варианты размеров — относительные от customizer (--hero-btn-*-m) */
    .hero-button.hero-button--mobile-xs {
        padding: calc(var(--hero-btn-pad-m, 8px) * 0.4) calc(var(--hero-btn-pad-m, 8px) * 1.3) !important;
        font-size: calc(var(--hero-btn-fs-m, 13px) * 0.78) !important;
        border-radius: calc(var(--hero-btn-rad-m, 16px) * 0.63) !important;
    }
    .hero-button.hero-button--mobile-small {
        padding: calc(var(--hero-btn-pad-m, 8px) * 0.6) calc(var(--hero-btn-pad-m, 8px) * 1.7) !important;
        font-size: calc(var(--hero-btn-fs-m, 13px) * 0.92) !important;
        border-radius: calc(var(--hero-btn-rad-m, 16px) * 0.75) !important;
    }
    .hero-button.hero-button--mobile-medium {
        padding: calc(var(--hero-btn-pad-m, 8px) * 1) calc(var(--hero-btn-pad-m, 8px) * 2.5) !important;
        font-size: calc(var(--hero-btn-fs-m, 13px) * 1.08) !important;
        border-radius: calc(var(--hero-btn-rad-m, 16px) * 1) !important;
    }
    .hero-button.hero-button--mobile-large {
        padding: calc(var(--hero-btn-pad-m, 8px) * 1.5) calc(var(--hero-btn-pad-m, 8px) * 3.3) !important;
        font-size: calc(var(--hero-btn-fs-m, 13px) * 1.38) !important;
        border-radius: calc(var(--hero-btn-rad-m, 16px) * 1.25) !important;
        letter-spacing: .3px;
    }
    .hero-button.hero-button--mobile-xl {
        padding: calc(var(--hero-btn-pad-m, 8px) * 2) calc(var(--hero-btn-pad-m, 8px) * 4.5) !important;
        font-size: calc(var(--hero-btn-fs-m, 13px) * 1.7) !important;
        border-radius: calc(var(--hero-btn-rad-m, 16px) * 1.5) !important;
        text-transform: uppercase;
        font-weight: 800;
    }
}

/* Размеры для текста внутри (когда используется .hero-button-text без класса размера) */
.hero-button .hero-button-text {
    display: inline-block;
    line-height: 1.2;
}

/* Старый img оставлен на случай обратной совместимости, но в новой версии используется <span class="hero-btn-image"> */
.hero-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

.hero-button img:hover {
    transform: scale(1.05);
}

/* Кнопка с картинкой — стили теперь в inline (style="..." в front-page.php) */
.hero-button--circle .hero-btn-image {
    border-radius: 50% !important;
}

/* Кнопка круглой формы (когда задана форма circle) */
.hero-button--circle,
.hero-button--circle:has(img) {
    border-radius: 50% !important;
    overflow: hidden;
    padding: 0 !important;
    width: var(--hero-btn-circle-size, 200px) !important;
    height: var(--hero-btn-circle-size, 200px) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.hero-button--circle img,
.hero-button--circle .hero-button-text {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
}

/* На мобильных */
@media (max-width: 768px) {
    .hero-button--mobile.hero-button--circle,
    .hero-button--mobile-circle {
        width: var(--hero-btn-circle-size-m, 160px) !important;
        height: var(--hero-btn-circle-size-m, 160px) !important;
    }
}

/* Кнопка овальной формы (pill) */
.hero-button--pill,
.hero-button--pill:has(img) {
    border-radius: 9999px !important;
}

/* Мобильная кнопка с картинкой — ограничиваем высоту */
@media (max-width: 768px) {
    .hero-button-wrap--mobile .hero-button img {
        height: 80px;
    }
}

/* Навигация слайдера */
.hero-slider-nav button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.3); border: none; color: white; font-size: 48px; padding: 10px 20px; cursor: pointer; z-index: 3; transition: all 0.3s; }
.hero-slider-nav button:hover { background: rgba(255,255,255,0.5); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.hero-slider-dots .dot.active { background: white; transform: scale(1.3); }

/* ========================================
   КАТЕГОРИИ ПОДАРКОВ - 2 РЯДА ПО 3 (6 штук)
   ======================================== */

.categories-section { margin-top: 20px; margin-bottom: 60px; }
.categories-with-mascot { display: flex; flex-direction: column; gap: 20px; }
.categories-grid { display: grid; gap: 20px; }
.categories-grid.categories-2col { grid-template-columns: repeat(2, 1fr); }
.categories-grid.categories-3col { grid-template-columns: repeat(3, 1fr); }
.categories-grid.categories-6col { grid-template-columns: repeat(3, 1fr); }
.category-mascot-center { display: flex; justify-content: center; padding: 20px; }
.mascot-image { animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); max-width: 100%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.category-card { background: white; border-radius: 15px; padding: 25px 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s; display: block; }
.category-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--theme-primary); }
.category-card-image { width: 300px !important; height: 300px !important; margin: 0 auto 15px; border-radius: 10px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.category-card-image img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
.category-card h3 { font-size: 16px; font-weight: 600; color: #333; }

@media (max-width: 768px) {
    .category-card-image { width: 240px !important; height: 240px !important; }
}

@media (max-width: 480px) {
    .category-card-image { width: 190px !important; height: 190px !important; }
    .categories-grid.categories-6col { grid-template-columns: repeat(1, 1fr); }
}

/* ========================================
   ФИЛЬТР ТОВАРОВ - 2 РЯДА ПО 3 (6 иконок)
   ======================================== */

.filter-section { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 50px; }
.filter-title { font-size: 32px; color: var(--theme-primary); margin-bottom: 35px; text-align: center; font-weight: 700; }
.filter-3-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.filter-column { background: #f8f9fa; padding: 25px; border-radius: 12px; }
.filter-column-title { font-size: 18px; font-weight: 600; color: var(--theme-primary); margin-bottom: 20px; text-align: center; }

/* Сетка категорий (3 в ряд) */
.filter-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.filter-category-option { cursor: pointer; }
.filter-category-option input { display: none; }
.filter-cat-box { background: white; border: 2px solid #e0e0e0; border-radius: 8px; padding: 10px; text-align: center; transition: all 0.3s; }
.filter-category-option input:checked + .filter-cat-box { border-color: var(--theme-primary); background: #fff8f8; }
.filter-cat-box:hover { border-color: var(--theme-accent); transform: translateY(-2px); }
.filter-cat-icon-small { width: 72px !important; height: 72px !important; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.filter-cat-icon-small img { width: 100%; height: 100%; object-fit: contain; }
.filter-emoji-small { font-size: 28px; line-height: 1; }
.filter-cat-name-small { font-size: 11px; font-weight: 500; color: #333; }

/* Списки вес/цена */
.filter-options-list { display: flex; flex-direction: column; gap: 12px; }
.filter-options-list label { display: flex; align-items: center; padding: 12px; background: white; border: 2px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 14px; }
.filter-options-list label:hover { border-color: var(--theme-accent); background: #fffef8; }
.filter-options-list input { margin-right: 10px; accent-color: var(--theme-primary); }
.filter-options-list input:checked + label,
.filter-options-list label:has(input:checked) { border-color: var(--theme-primary); background: #fff8f8; font-weight: 600; }

.filter-buttons { display: flex; gap: 15px; justify-content: center; }
.filter-apply, .filter-reset { padding: 14px 40px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.filter-apply { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); color: white; }
.filter-apply:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--theme-primary); }
.filter-reset { background: #e9ecef; color: #333; }
.filter-reset:hover { background: #d3d6d9; }

@media (max-width: 1024px) {
    .filter-3-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .filter-section { padding: 25px; }
    .filter-title { font-size: 24px; margin-bottom: 25px; }
    .filter-3-columns { grid-template-columns: 1fr; gap: 15px; }
    .filter-options-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .filter-buttons { flex-direction: column; gap: 10px; }
}

/* ========================================
   ТОВАРЫ - АДАПТИВНЫЕ
   ======================================== */

/* ==========================================
   ПРОСТАЯ СЕТКА ТОВАРОВ — ПЕРЕПИСАНА С НУЛЯ
   ========================================== */

/* Базовая сетка (главная без фильтра) — 3 колонки на ПК */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
    width: 100%;
}

/* Модификатор (каталог / фильтрованная выдача) — 4 колонки */
.products-grid.products-grid--catalog {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Модификатор «быстрый выбор подарка» на главной
   — без активного фильтра: 3 колонки (2 ряда × 3 = 6 товаров)
   — с активным фильтром: 4 колонки (до 6 рядов = до 24 товаров) */
.products-grid.products-grid--featured-idle {
    grid-template-columns: repeat(3, 1fr);
}
.products-grid.products-grid--featured {
    grid-template-columns: repeat(4, 1fr);
}

/* Карточка товара — плоский CLEAN-CARD */
.products-grid .product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f5;
    transition: transform .25s ease, box-shadow .25s ease;
    width: 100%;
    min-width: 0;
}
/* Сообщение "Товары не найдены" внутри сетки — на всю ширину */
.products-grid > .no-products,
.products-grid > .filter-warning,
.products-grid > .filter-loading {
    grid-column: 1 / -1 !important;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    width: 100%;
}
.products-grid > .no-products p {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1a1a2e;
}
.products-grid .product-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}
.products-grid .product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.products-grid .product-image {
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.products-grid .product-card:hover .product-image img {
    transform: scale(1.04);
}
.products-grid .product-info {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

/* Название: до 3 строк, чёткая типографика, подчёркнуто зелёной чертой снизу */
.products-grid .product-title {
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
    padding: 0 0 14px;
    background: none;
    border: 0;
    border-radius: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
    position: relative;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 60px;
    max-height: 84px;
}
.products-grid .product-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--theme-primary, #2f9938);
    border-radius: 2px;
    transition: background .25s ease;
    width: 100%;
}
.products-grid .product-card:hover .product-title::after {
    background: var(--theme-secondary, #1d6b25);
}
.products-grid .product-card:hover .product-title {
    color: var(--theme-primary, #2f9938);
}

/* Вес: компактный, выровнен по левому краю названия (без обводки/фона) */
.products-grid .product-weight {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    align-self: flex-start;
}
.products-grid .product-weight-icon {
    font-size: 13px !important;
    line-height: 1;
    color: #94a3b8 !important;
    flex-shrink: 0;
}
.products-grid .product-weight-value {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

/* Разделитель над ценой */
.products-grid .product-spacer { flex: 1 1 auto; min-height: 6px; }

/* Цена: крупная, без плашки, единый акцентный стиль */
.products-grid .product-price {
    display: inline-flex !important;
    align-items: baseline;
    gap: 2px;
    padding: 4px 0 8px !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin-top: 4px;
    flex-shrink: 0;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    line-height: 1;
}
.products-grid .product-price__value {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--theme-primary, #2f9938) !important;
    line-height: 1;
    letter-spacing: -1px;
}
.products-grid .product-price__currency {
    font-size: 16px !important;
    color: var(--theme-secondary, #1d6b25) !important;
    font-weight: 700 !important;
    margin-left: 2px;
    letter-spacing: 0;
}
.products-grid .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e11d48;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.products-grid .add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 10px 8px;
    margin-top: auto;
    background: #fff !important;
    color: var(--theme-primary, #2f9938);
    border: 1.5px solid var(--theme-primary, #2f9938);
    border-radius: 6px;
    font-family: 'Comfortaa', cursive;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.products-grid .add-to-cart-btn:hover {
    background: var(--theme-primary, #2f9938) !important;
    color: #fff;
}

/* Маленькая кнопка — компактная */
.products-grid.products-grid--catalog .cart-btn--small,
.products-grid .cart-btn--small {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 6px;
    letter-spacing: -.2px;
}

/* Средняя кнопка — стандартная (по умолчанию) */
.products-grid .cart-btn--medium {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* Большая кнопка — крупная */
.products-grid.products-grid--catalog .cart-btn--large,
.products-grid .cart-btn--large {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Адаптив каталога/превью: всегда 1 колонка на мобильных */
@media (max-width: 900px) {
    .products-grid,
    .products-grid.products-grid--catalog,
    .products-grid.products-grid--featured,
    .products-grid.products-grid--featured-idle {
        grid-template-columns: 1fr !important;
        gap: 14px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 480px) {
    .products-grid,
    .products-grid.products-grid--catalog,
    .products-grid.products-grid--featured,
    .products-grid.products-grid--featured-idle {
        gap: 12px;
    }
}

/* Модификатор `.products-grid--catalog` определён выше (в блоке сетки) */

.no-products { text-align: center; padding: 60px; background: #f8f9fa; border-radius: 15px; color: #666; }

/* ========================================
   НАМ ДОВЕРЯЮТ - ТОЧНО КАК INDEX_14
   ======================================== */

@import url('https://db.onlinewebfonts.com/c/bb96cb60b7329b2f0d3303b6acc4219c?family=Sweet+Mavka+Script');

.trust-section {
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(175deg, #f0f7fb 0%, #fff 50%, #fef9f0 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(214,238,248,0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trust-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trust-section__title {
    text-align: center;
    font-family: 'Comfortaa', cursive;
    font-size: 38px;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 auto 10px;
    line-height: 1.3;
}

.trust-section__title span {
    color: var(--theme-primary);
    position: relative;
}

.trust-section__title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-primary);
    opacity: 0.3;
    border-radius: 2px;
}

.trust-section__subtitle {
    text-align: center;
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    color: #6b7280;
    margin: 0 auto 45px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.trust-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 2px solid #eef6fb;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:nth-child(1)::before { background: #d63031; }
.trust-card:nth-child(2)::before { background: #2980b9; }
.trust-card:nth-child(3)::before { background: #e67e22; }
.trust-card:nth-child(4)::before { background: #1d8348; }
.trust-card:nth-child(5)::before { background: #8e44ad; }
.trust-card:nth-child(6)::before { background: #d63031; }

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card__icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    background: #f8f9fa;
    max-width: 100%;
}

.trust-card__icon img {
    width: 170px;
    height: 170px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trust-icon--clock {
    background: radial-gradient(circle at 30% 30%, #fff4cc, #ffd700);
}

.trust-icon--delivery {
    background: radial-gradient(circle at 30% 30%, #e8f4fc, #87ceeb);
}

.trust-icon--quality {
    background: radial-gradient(circle at 30% 30%, #ffecd2, #ffb347);
}

.trust-icon--piggy {
    background: radial-gradient(circle at 30% 30%, #d4efdf, #58d68d);
}

.trust-icon--cert {
    background: radial-gradient(circle at 30% 30%, #ede8fd, #bb8fce);
}

.trust-icon--clients {
    background: radial-gradient(circle at 30% 30%, #fadbd8, #f1948a);
}

.trust-card__title {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.trust-card__text {
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-section__title { font-size: 28px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .trust-card__icon { width: 160px; height: 160px; }
    .trust-card__icon img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
    .trust-section { padding: 35px 20px; margin-top: 40px; }
    .trust-section__title { font-size: 24px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .trust-card { padding: 20px 12px 18px; }
    .trust-card__icon { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 140px; margin: 0 auto 10px; }
    .trust-card__icon img { width: 78%; height: 78%; max-width: 110px; max-height: 110px; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-section { padding: 30px 16px; }
    .trust-card { padding: 16px 12px 14px; display: flex; flex-direction: row; gap: 12px; align-items: center; text-align: left; }
    .trust-card__icon { width: 64px; height: 64px; aspect-ratio: auto; max-width: 64px; margin: 0; flex-shrink: 0; }
    .trust-card__icon img { width: 80%; height: 80%; }
    .trust-card__title { font-size: 13px; margin-bottom: 2px; }
    .trust-card__text { display: block; font-size: 12px; line-height: 1.4; }
}

/* ========================================
   КАРТА + КОНТАКТЫ - ТОЧНО КАК INDEX_14
   ======================================== */

.map-contacts-section {
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    padding: 50px 0 0;
}

.map-contacts__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.map-contacts__info {
    color: #fff;
    padding-bottom: 50px;
}

.map-contacts__title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.map-contacts__title span {
    color: var(--theme-accent);
}

.map-contacts__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 30px;
}

.mc-block {
    margin-bottom: 28px;
}

.mc-block__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px;
}

.mc-block__value {
    font-size: 18px;
    color: #fff;
    margin: 0;
    line-height: 1.6;
}

.mc-block__value a {
    color: var(--theme-accent);
    transition: opacity 0.2s;
}

.mc-block__value a:hover {
    opacity: 0.8;
}

.mc-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.mc-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mc-socials a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mc-socials svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 14px 30px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.mc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 45, 47, 0.4);
}

.map-contacts__map {
    height: 100%;
    min-height: 380px;
    border-radius: 16px 0 0 0;
    overflow: hidden;
    position: relative;
}

.map-contacts__map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: none;
    display: block;
}

@media (max-width: 900px) {
    .map-contacts__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .map-contacts__info {
        padding-bottom: 30px;
        text-align: center;
    }
    .mc-socials {
        justify-content: center;
    }
    .map-contacts__map {
        border-radius: 0;
        min-height: 300px;
    }
    .map-contacts__map iframe {
        min-height: 300px;
    }
}

/* ========================================
   ГИРЛЯНДА
   ======================================== */

.garland-section {
    width: 100%;
    text-align: center;
    background: #2f9938;
    padding: 0;
}

.garland-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   ПОДВАЛ - ТОЧНО КАК INDEX_14
   ======================================== */

.site-footer {
    background: #2f9938;
    color: white;
    padding: 50px 0 20px;
}

.site-footer h3 {
    color: white;
    margin-bottom: 20px;
}

.site-footer a {
    color: white;
}

.site-footer a:hover {
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section li:last-child {
    border-bottom: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* ========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
    .header-contacts-top {
        display: none;
    }
    
    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .floating-cart .cart-icon-img {
        width: 35px;
        height: 35px;
    }
    
    .floating-cart .cart-count {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    

    
    .header-menu-bar .mobile-menu-toggle {
        display: block;
    }
    
    .header-menu-bar .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--theme-primary);
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 60px 20px 20px;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .header-menu-bar .main-navigation.mobile-open {
        right: 0;
    }
    
    .header-menu-bar .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .header-menu-bar .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .header-menu-bar .main-navigation a {
        padding: 15px 10px;
        display: block;
        color: white;
    }
    
    .mobile-menu-contacts {
        display: block !important;
    }
    
    .hero-banner-slider {
        height: var(--hero-h-m, 350px) !important;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-text h1 {
        font-size: 28px !important;
    }
    
    .hero-text p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .floating-cart {
        width: 50px;
        height: 50px;
    }
    
    .floating-cart .cart-icon-img {
        width: 30px;
        height: 30px;
    }
    
    .hero-banner-slider {
        height: 280px !important;
    }
    
    .hero-text h1 {
        font-size: 24px !important;
    }
    
    .hero-text p {
        font-size: 14px !important;
    }
}

/* ========================================
   ЯРЛЫК РАСПРОДАЖИ
   ======================================== */

.sale-badge-wrap {
    position: fixed;
    left: 0;
    top: 200px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* PC версия с картинкой */
.sale-badge-pc {
    display: block;
}

.sale-badge-image-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sale-badge-image-link:hover {
    transform: scale(1.05);
}

.sale-badge-pc img {
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 0 10px 10px 0;
}

/* Мобильная версия (текст) */
.sale-badge-mobile {
    display: none;
}

/* Только текстовая версия (если нет картинки) */
.sale-badge-text-only {
    display: block;
}

.sale-badge-text-link {
    display: block;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding: 15px 8px;
    font-family: 'Comfortaa', cursive;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    border-radius: 0 10px 10px 0;
}

/* Только текстовая версия (если нет картинки) */
.sale-badge-text-only {
    display: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .sale-badge-pc {
        display: none;
    }
    
    .sale-badge-mobile {
        display: block;
    }
    
    .sale-badge-text-only {
        display: block;
    }
    
    .sale-badge-wrap {
        top: 100px;
    }
    
    .sale-badge-text-link {
        min-height: 120px;
        line-height: 1.4;
    }
}

/* ========================================
   ПРЕДУПРЕЖДЕНИЯ И ЗАГРУЗКА ФИЛЬТРА
   ======================================== */

.filter-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    color: #856404;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 15px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-warning strong {
    font-weight: 700;
}

.filter-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.filter-loading p {
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   СТРАНИЦА КАТАЛОГА (archive-product)
   ========================================= */

.archive-products-wrapper { padding: 30px 0 60px; }

.archive-title {
    font-family: 'Comfortaa', cursive;
    font-size: 38px;
    color: var(--theme-primary, #2f9938);
    text-align: center;
    margin: 0 auto 35px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.archive-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--theme-primary, #2f9938);
    margin: 14px auto 0;
    border-radius: 2px;
    opacity: .35;
}

.archive-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Кнопка скачать каталог */
.catalog-download-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 30px;
}
.catalog-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    text-decoration: none;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.catalog-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    opacity: 0.95;
}
.catalog-download-icon {
    font-size: 1.2em;
    line-height: 1;
}

/* Категории на странице каталога */
.archive-categories-section {
    margin: 0 0 30px;
}
.archive-categories-section .section-title {
    font-family: 'Comfortaa', cursive;
    font-size: 26px;
    text-align: center;
    margin: 0 0 20px;
    color: #1a1a2e;
    font-weight: 700;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}
.archive-categories-section .category-card {
    padding: 12px 8px;
}
.archive-categories-section .category-card-image {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto 10px;
    background: #f8f9fa;
    border-radius: 12px;
}
.archive-categories-section .category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.archive-categories-section .category-emoji {
    font-size: 80px;
    line-height: 1;
}
.archive-categories-section .category-card.active {
    outline: 3px solid var(--theme-primary, #2f9938);
    outline-offset: -3px;
}
@media (max-width: 768px) {
    .archive-categories-section .section-title { font-size: 20px; margin-bottom: 14px; word-break: keep-all; overflow-wrap: normal; hyphens: none; }
    .archive-categories-section { margin-bottom: 20px; }
}

@media (max-width: 992px) {
    .archive-categories-section .category-card-image {
        width: 110px !important;
        height: 110px !important;
    }
    .archive-categories-section .category-emoji { font-size: 60px; }
}
@media (max-width: 768px) {
    .archive-categories-section .categories-grid.categories-6col {
        grid-template-columns: repeat(2, 1fr) !important;     /* 2 колонки в мобильной */
        gap: 10px !important;
    }
    .archive-categories-section .category-card {
        padding: 8px 4px !important;
    }
    .archive-categories-section .category-card-image {
        width: 80px !important;
        height: 80px !important;
    }
    .archive-categories-section .category-emoji { font-size: 44px; }
    .archive-categories-section .category-card h3 { font-size: 11px; }
}
@media (max-width: 380px) {
    .archive-categories-section .category-card-image {
        width: 70px !important;
        height: 70px !important;
    }
    .archive-categories-section .category-emoji { font-size: 36px; }
    .archive-categories-section .category-card h3 { font-size: 10px; }
}

/* Фильтр на странице каталога: упаковка + вес + цена + кнопки в одну строку */
.archive-filter-section {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 0 30px;
}
.archive-filter-row {
    display: grid;
    /* По умолчанию (каталог) — 4 колонки: Упаковка | Вес | Цена | Кнопки */
    grid-template-columns: 1fr 1fr 1fr 180px;
    gap: 18px;
    align-items: end;
}
/* В категории (нет Упаковки) — 3 колонки */
.archive-filter-row--two {
    grid-template-columns: 1fr 1fr 180px;
}
.archive-filter-row .archive-filter-col[hidden],
.archive-filter-row--two .archive-filter-col[hidden] {
    display: none;
}
.archive-filter-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}
.archive-filter-col h3.filter-column-title {
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
    flex-shrink: 0;
}
.archive-filter-options {
    display: flex;
    /* В каталоге — чипы в 2 строки; в категории — 1 (уточняется media) */
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    flex-grow: 1;
    padding-bottom: 2px;
    min-height: 90px;
}
.archive-filter-chip {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.archive-filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.archive-filter-chip span {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 999px;
    font-family: 'Comfortaa', cursive;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
}
.archive-filter-chip:hover span {
    border-color: var(--theme-primary, #2f9938);
}
.archive-filter-chip.active span,
.archive-filter-chip input:checked + span {
    background: var(--theme-primary, #2f9938);
    color: #fff;
    border-color: var(--theme-primary, #2f9938);
}

.archive-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 90px;
}
.archive-filter-apply {
    background: var(--theme-primary, #2f9938);
    color: #fff;
    border: 0;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.archive-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 153, 56, 0.3);
}
.archive-filter-reset {
    color: #666;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    padding: 4px;
    font-family: 'Comfortaa', cursive;
}
.archive-filter-reset:hover { color: var(--theme-primary, #2f9938); }

/* Панель сортировки + счётчик товаров — слева под фильтром, вертикально */
.archive-sort-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 0 0 24px;
}
.archive-sort-vertical {
    /* Вертикальная компоновка: счётчик сверху, селект снизу, всё слева */
}
.archive-sort-count {
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.archive-sort-bar .woocommerce-ordering {
    margin: 0;
    width: 100%;
}
.archive-sort-bar .woocommerce-ordering select,
.archive-sort-bar select.orderby {
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
}
.archive-sort-bar .woocommerce-ordering select:focus,
.archive-sort-bar select.orderby:focus {
    outline: none;
    border-color: var(--theme-primary, #2f9938);
}
@media (max-width: 600px) {
    .archive-sort-bar {
        padding: 12px 14px;
    }
    .archive-sort-count { font-size: 13px; }
    .archive-sort-bar .woocommerce-ordering select,
    .archive-sort-bar select.orderby { max-width: 100%; }
}

/* Кнопка-переход к составу */
.sostav-jump-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}
.sostav-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #2f9938;
    border: 2px solid #2f9938;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Comfortaa', cursive;
}
.sostav-jump-btn:hover {
    background: #2f9938;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 153, 56, 0.3);
}
.sostav-jump-icon { font-size: 16px; }
.sostav-jump-arrow { font-size: 16px; animation: sostav-bounce 1.5s infinite; }
@keyframes sostav-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Планшет (≤1100px): 4-колоночный фильтр → 3 колонки + кнопки под ними; 2-колоночный → 2 + кнопки */
@media (max-width: 1100px) {
    .archive-filter-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .archive-filter-row--two {
        grid-template-columns: 1fr 1fr;
    }
    .archive-filter-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
        gap: 14px;
    }
    .archive-filter-apply {
        flex: 0 0 200px;
    }
    .archive-filter-reset {
        flex: 0 0 auto;
    }
}
/* Мобильный (≤700px): всё в одну колонку */
@media (max-width: 700px) {
    .archive-filter-row,
    .archive-filter-row--two {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .archive-filter-options {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .archive-filter-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    .archive-filter-apply {
        flex: 0 0 160px;
    }
}

/* =========================================
   МИНИМАЛЬНЫЙ ЗАКАЗ — ПЛАШКИ
   ========================================= */

.products-grid .product-min-order-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 5px 11px !important;
    background: #fff7ec !important;
    border: 1px solid #f5d28b !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    color: #7a4a00 !important;
    font-weight: 500 !important;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease;
}
.products-grid .product-min-order-badge:hover {
    background: #ffefd5 !important;
    border-color: #e9b65a !important;
}
.products-grid .product-min-order-badge__icon {
    font-size: 13px !important;
    line-height: 1;
    flex-shrink: 0;
}
.products-grid .product-min-order-badge__text {
    font-size: 12px !important;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.products-grid .product-min-order-badge__text strong {
    font-weight: 800 !important;
    color: #5a3700 !important;
}

/* Плашка на single-product рядом со счётчиком */
.product-min-order-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff8e6 0%, #ffe9c0 100%);
    border: 1px solid #f5cf7a;
    border-radius: 10px;
    font-size: 13px;
    color: #6b4500;
    line-height: 1.4;
    box-sizing: border-box;
    max-width: 100%;
}
.product-min-order-notice__icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}
.product-min-order-notice__text {
    font-size: 13px;
    color: #6b4500;
}
.product-min-order-notice__text strong {
    font-weight: 800;
    color: #4a2f00;
}
.product-min-order-notice--variation {
    margin-top: 8px;
}

/* =========================================
   СТРАНИЦА ОДНОГО ТОВАРА (single-product)
   ========================================= */

.product-page-wrapper { padding: 30px 0 60px; }

.product-single-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

/* Галерея */
.product-gallery { position: sticky; top: 20px; }
.product-gallery-main {
    background: linear-gradient(135deg, #f8f9fa, #eef2f5);
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-badge-single {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #c52d2f, #8b1517);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(197, 45, 47, 0.4);
    z-index: 2;
}
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.product-gallery-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.product-gallery-thumb:hover { border-color: var(--theme-primary, #2f9938); }
.product-gallery-thumb.active { border-color: var(--theme-primary, #2f9938); box-shadow: 0 0 0 1px var(--theme-primary, #2f9938); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Кликабельное главное изображение */
.product-gallery-main-link {
    display: block;
    cursor: zoom-in;
    position: relative;
}
.product-gallery-main-link::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.product-gallery-main-link:hover::after { opacity: 1; }

/* Лайтбокс */
.product-gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    animation: lightbox-fade .2s ease;
}
.product-gallery-lightbox[hidden] { display: none; }
@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.product-gallery-lightbox__image {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.product-gallery-lightbox__close,
.product-gallery-lightbox__prev,
.product-gallery-lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    backdrop-filter: blur(4px);
}
.product-gallery-lightbox__close:hover,
.product-gallery-lightbox__prev:hover,
.product-gallery-lightbox__next:hover {
    background: rgba(255, 255, 255, .3);
}
.product-gallery-lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.product-gallery-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.product-gallery-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.product-gallery-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, .5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Comfortaa', cursive;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 768px) {
    .product-gallery-lightbox__close,
    .product-gallery-lightbox__prev,
    .product-gallery-lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .product-gallery-lightbox__close { top: 12px; right: 12px; }
    .product-gallery-lightbox__prev { left: 8px; }
    .product-gallery-lightbox__next { right: 8px; }
}

/* Правая колонка */
.product-single-info { padding-top: 10px; }
.product-single-cats {
    font-size: 13px;
    color: #2f9938;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-single-cats a { color: inherit; text-decoration: none; }
.product-single-cats a:hover { text-decoration: underline; }

.product-single-title {
    font-family: 'Comfortaa', cursive;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.25;
}

.product-single-weight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(47, 153, 56, 0.12), rgba(47, 153, 56, 0.06));
    border: 2px dashed rgba(47, 153, 56, 0.5);
    border-radius: 14px;
    margin-bottom: 22px;
    margin-top: 0;
    line-height: 1;
}
.product-single-weight-icon {
    font-size: 32px;
    line-height: 1;
    color: #2f9938;
    flex-shrink: 0;
}
.product-single-weight-label {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-single-weight-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.product-single-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(47, 153, 56, 0.12), rgba(47, 153, 56, 0.06));
    border: 2px dashed rgba(47, 153, 56, 0.5);
    border-radius: 14px;
    margin-bottom: 22px;
    line-height: 1;
}
.product-single-price .amount,
.product-single-price ins { font-size: 32px; font-weight: 800; color: var(--theme-primary, #2f9938); text-decoration: none; }
.product-single-price del { color: #94a3b8; font-size: 18px; font-weight: 500; }

.product-single-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fafbfc;
    border-left: 3px solid var(--theme-primary, #2f9938);
    border-radius: 0 10px 10px 0;
}

/* Список характеристик под ценой (Вид упаковки, Размер, Состав и т.п.) */
.product-spec-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-spec-list li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.4;
}
.product-spec-list .spec-label {
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 150px;
}
.product-spec-list .spec-value {
    color: #1a1a2e;
    font-weight: 600;
}

.product-quantity form.cart {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.quantity-wrapper { display: flex; flex-direction: column; gap: 6px; }
.quantity-wrapper label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-quantity .quantity { display: inline-flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.product-quantity .quantity input.qty {
    width: 60px;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 4px;
    background: transparent;
    color: #1a1a2e;
    font-family: inherit;
}
.single-add-to-cart-button {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(47, 153, 56, 0.3);
}
.single-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(47, 153, 56, 0.45);
}
.single-add-to-cart-button .cart-icon { font-size: 18px; }

.product-out-of-stock {
    background: #fef3f3;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    margin: 0 0 20px;
}

.product-single-perks {
    list-style: none;
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-single-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
}
.perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(47, 153, 56, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Описание и характеристики */
.product-description-section,
.product-attributes-section,
.related-products-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eef2f5;
}
.product-description-section .section-title,
.product-attributes-section .section-title,
.related-products-section .section-title {
    font-family: 'Comfortaa', cursive;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.product-description { font-size: 15px; line-height: 1.7; color: #475569; }

.product-attributes {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.product-attributes tr { border-bottom: 1px solid #eef2f5; }
.product-attributes tr:last-child { border-bottom: 0; }
.product-attributes th,
.product-attributes td {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
}
.product-attributes th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    width: 40%;
}
.product-attributes td { color: #1a1a2e; font-weight: 500; }

@media (max-width: 900px) {
    .product-single-container { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { position: static; }
    .product-single-title { font-size: 24px; }
    .product-single-price .amount,
    .product-single-price ins { font-size: 26px; }
}

@media (max-width: 480px) {
    .product-page-wrapper { padding: 16px 0 40px; }
    .product-single-container { gap: 16px; margin-bottom: 30px; }
    .product-single-title { font-size: 20px; }
    .product-single-price .amount,
    .product-single-price ins { font-size: 22px; }
    .product-single-price del { font-size: 14px; }
    .product-quantity form.cart { flex-direction: column; }
    .single-add-to-cart-button { width: 100%; min-width: 0; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* =========================================
   ТАБЛИЦА СОСТАВА (shortcode [sostav])
   ========================================= */

.sostav-table {
    margin: 40px 0 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
    overflow: hidden;
}

.sostav-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}
.sostav-table-title {
    font-family: 'Comfortaa', cursive;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.sostav-table-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.sostav-table-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sostav-table-total {
    background: #fff;
    color: var(--theme-primary, #2f9938);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sostav-table-tbl {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sostav-table-tbl thead th {
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sostav-table-tbl thead th:first-child { text-align: center; width: 60px; }
.sostav-table-tbl thead th:nth-child(2) { width: 90px; text-align: center; }
.sostav-table-tbl thead th:last-child  { width: 100px; text-align: center; }

.sostav-table-tbl tbody tr {
    border-bottom: 1px solid #eef2f5;
    transition: background 0.2s ease;
}
.sostav-table-tbl tbody tr:last-child { border-bottom: 0; }
.sostav-table-tbl tbody tr:hover { background: rgba(47, 153, 56, 0.04); }

.sostav-row-light { background: #fafbfc; }
.sostav-row-dark  { background: #ffffff; }

.sostav-table-tbl td {
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a2e;
    vertical-align: middle;
}

.sostav-cell-num {
    text-align: center;
    font-weight: 800;
    color: #2f9938;
    font-size: 15px;
}

.sostav-cell-img {
    text-align: center;
}
.sostav-cell-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eef2f5;
    background: linear-gradient(135deg, #f8f9fa, #eef2f5);
}
.sostav-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa, #eef2f5);
    border: 1px solid #eef2f5;
    font-size: 28px;
}

.sostav-cell-name {
    font-weight: 700;
    color: #1a1a2e;
}

.sostav-cell-prod {
    color: #64748b;
    font-size: 13px;
}

.sostav-cell-qty {
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: #2f9938;
}

/* Подвал таблицы — итого */
.sostav-table-tbl tfoot tr {
    background: linear-gradient(135deg, #f0f9f4, #e6f4ec) !important;
    border-top: 2px solid rgba(47, 153, 56, 0.3);
}
.sostav-table-tbl tfoot tr:hover { background: linear-gradient(135deg, #f0f9f4, #e6f4ec) !important; }
.sostav-total-label {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sostav-total-value {
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: #2f9938;
    padding: 14px;
}

.sostav-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    transition: all 0.2s ease;
    gap: 6px;
}
.sostav-row:hover {
    border-color: rgba(47, 153, 56, 0.4);
    box-shadow: 0 4px 12px rgba(47, 153, 56, 0.1);
    transform: translateY(-2px);
}

.sostav-row-light { background: #fafbfc; }
.sostav-row-dark  { background: #ffffff; }

.sostav-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    align-self: flex-start;
}

.sostav-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #eef2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f5;
}
.sostav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sostav-image-placeholder { font-size: 32px; }

.sostav-name {
    min-width: 0;
    width: 100%;
}
.sostav-name-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sostav-name-producer {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.sostav-qty {
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 10px;
    background: rgba(47, 153, 56, 0.08);
    border: 1px solid rgba(47, 153, 56, 0.2);
    border-radius: 999px;
    margin-top: 2px;
}
.sostav-qty-value {
    font-size: 14px;
    font-weight: 800;
    color: #2f9938;
    line-height: 1;
}
.sostav-qty-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.sostav-missing {
    background: #fef3f3;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: center;
    font-weight: 500;
}

/* Ссылка-номер состава в карточке */
.sostav-anchor-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #2f9938, #1a7a22);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(47, 153, 56, 0.3);
}
.sostav-anchor-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 153, 56, 0.45);
}
.sostav-no-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .sostav-table-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .sostav-table-header { padding: 14px 16px; }
    .sostav-table-title { font-size: 18px; }
    .sostav-table-tbl thead th,
    .sostav-table-tbl td { padding: 8px 6px; font-size: 12px; }
    .sostav-table-tbl thead th { font-size: 11px; }
    .sostav-cell-img img,
    .sostav-image-placeholder { width: 44px; height: 44px; }
    .sostav-image-placeholder { font-size: 20px; }
    .sostav-cell-qty { font-size: 14px; }
    .sostav-cell-num { font-size: 13px; }
}
@media (max-width: 480px) {
    /* Прячем производителя на совсем узких экранах */
    .sostav-table-tbl thead th.sostav-th-prod,
    .sostav-table-tbl td.sostav-cell-prod { display: none; }
}
    .sostav-row { padding: 10px 6px; gap: 5px; }
    .sostav-num { width: 24px; height: 24px; font-size: 11px; }
    .sostav-image { width: 56px; height: 56px; }
    .sostav-image-placeholder { font-size: 26px; }
    .sostav-name-title { font-size: 11px; -webkit-line-clamp: 2; }
    .sostav-name-producer { font-size: 10px; }
    .sostav-qty { padding: 2px 8px; }
    .sostav-qty-value { font-size: 13px; }
    .sostav-qty-label { font-size: 9px; }

/* ==========================================
   УНИФИЦИРОВАННЫЙ ЗАГОЛОВОК КАТАЛОГА
   (архив товаров, категории, теги, магазин)
   ========================================== */
.woocommerce-products-header__title,
.archive-title,
.woocommerce-page-header h1,
.tax-product_cat .archive-title,
.tax-product_tag .archive-title,
.post-type-archive-product .archive-title {
    font-family: 'Comfortaa', cursive !important;
    font-size: 38px !important;
    color: var(--theme-primary, #2f9938) !important;
    text-align: center !important;
    margin: 0 auto 35px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
}
.woocommerce-products-header__title::after,
.archive-title::after,
.woocommerce-page-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--theme-primary, #2f9938);
    margin: 14px auto 0;
    border-radius: 2px;
    opacity: .35;
}
@media (max-width: 768px) {
    .woocommerce-products-header__title,
    .archive-title,
    .woocommerce-page-header h1 {
        font-size: 28px !important;
        margin-bottom: 25px !important;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }
}
@media (max-width: 480px) {
    .woocommerce-products-header__title,
    .archive-title,
    .woocommerce-page-header h1 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }
}
@media (max-width: 480px) {
    .woocommerce-products-header__title,
    .archive-title,
    .woocommerce-page-header h1 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    .woocommerce-products-header__title::after,
    .archive-title::after,
    .woocommerce-page-header h1::after {
        width: 60px;
        margin-top: 10px;
    }
}

/* ==========================================
   КРАСИВАЯ СТРАНИЦА КОНТАКТОВ
   ========================================== */
.page-content { padding: 30px 0 60px; }
.page-text { font-size: 16px; line-height: 1.7; color: #333; }
.page-text p { margin-bottom: 16px; }

.contacts-hero {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 720px;
}
.contacts-hero__subtitle {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 0 0 50px;
}

.contact-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 30px 26px;
    text-align: center;
    position: relative;
    border: 1px solid #e3edf5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--theme-primary, #2f9938);
    opacity: .85;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.contact-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary, #2f9938), var(--theme-secondary, #2f9939));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 153, 56, .25);
}
.contact-card__icon svg { width: 30px; height: 30px; }

.contact-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card__value {
    font-size: 18px;
    color: #1a1a2e;
    line-height: 1.55;
    font-weight: 600;
}
.contact-card__value a {
    display: block;
    color: #1a1a2e;
    text-decoration: none;
    transition: color .2s ease;
    margin-bottom: 4px;
}
.contact-card__value a:last-child { margin-bottom: 0; }
.contact-card__value a:hover { color: var(--theme-primary, #2f9938); }

.contact-card--address .contact-card__icon { background: linear-gradient(135deg, #c52d2f, #8b1517); box-shadow: 0 6px 14px rgba(197,45,47,.25); }
.contact-card--phone .contact-card__icon  { background: linear-gradient(135deg, #2f9938, #1d6b25); box-shadow: 0 6px 14px rgba(47,153,56,.25); }
.contact-card--email .contact-card__icon  { background: linear-gradient(135deg, #2980b9, #1f5d85); box-shadow: 0 6px 14px rgba(41,128,185,.25); }
.contact-card--hours .contact-card__icon  { background: linear-gradient(135deg, #e67e22, #b35e10); box-shadow: 0 6px 14px rgba(230,126,34,.25); }

.contact-card--address::before { background: #c52d2f; }
.contact-card--phone::before  { background: #2f9938; }
.contact-card--email::before  { background: #2980b9; }
.contact-card--hours::before  { background: #e67e22; }

.contacts-section__title {
    font-family: 'Comfortaa', cursive;
    font-size: 28px;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 24px;
    font-weight: 700;
    position: relative;
}
.contacts-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--theme-primary, #2f9938);
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: .35;
}

.contacts-map-wrap { margin: 0 0 50px; }
.contacts-map {
    width: 100%;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e3edf5;
}
.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contacts-extra {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #e3edf5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1024px) {
    .contacts-grid { gap: 16px; }
}
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 35px;
    }
    .contact-card { padding: 22px 18px; }
    .contact-card__icon { width: 54px; height: 54px; margin-bottom: 12px; }
    .contact-card__icon svg { width: 26px; height: 26px; }
    .contact-card__value { font-size: 16px; }
    .contacts-map { height: 320px; border-radius: 14px; }
    .contacts-section__title { font-size: 22px; }
    .contacts-hero__subtitle { font-size: 15px; }
}
@media (max-width: 480px) {
    .contact-card { padding: 18px 14px; border-radius: 14px; }
    .contact-card__icon { width: 48px; height: 48px; }
    .contact-card__icon svg { width: 22px; height: 22px; }
    .contact-card__value { font-size: 15px; }
    .contact-card__value a { font-size: 15px; }
    .contacts-map { height: 260px; }
}

/* ==========================================
   КРАСИВАЯ СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА
   ========================================== */
.order-form-page { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); min-height: 60vh; }
.order-form-wrapper { padding: 40px 0 60px; max-width: 1200px; margin: 0 auto; }

.order-form-header { text-align: center; margin-bottom: 40px; }
.order-form-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 auto 30px;
    max-width: 600px;
    line-height: 1.5;
}

/* Шаги */
.order-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    max-width: 720px;
    flex-wrap: wrap;
}
.order-step {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid #e3edf5;
    border-radius: 12px;
    margin: 0 -1px;
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    transition: all .25s ease;
}
.order-step.active {
    background: linear-gradient(135deg, var(--theme-primary, #2f9938), var(--theme-secondary, #1d6b25));
    border-color: var(--theme-primary, #2f9938);
    color: #fff;
    z-index: 1;
}
.order-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.order-step:not(.active) .order-step__num {
    background: #e3edf5;
    color: #94a3b8;
}

/* Двухколоночный лейаут */
.order-form-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: start;
}
.order-form-column {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e3edf5;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}
.order-form-section__title {
    font-family: 'Comfortaa', cursive;
    font-size: 22px;
    color: #1a1a2e;
    margin: 0 0 22px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

/* Формы */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    font-family: 'Comfortaa', cursive;
}
.form-group .required { color: #e11d48; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e3edf5;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #f8fafc;
    transition: border-color .2s ease, background .2s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--theme-primary, #2f9938);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Чекбоксы */
.form-checkbox-group { margin: 18px 0 0; }
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.form-checkbox input { display: none; }
.form-checkbox__box {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: all .2s ease;
    background: #fff;
}
.form-checkbox input:checked + .form-checkbox__box {
    background: var(--theme-primary, #2f9938);
    border-color: var(--theme-primary, #2f9938);
}
.form-checkbox input:checked + .form-checkbox__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-checkbox a { color: var(--theme-primary, #2f9938); text-decoration: underline; }

/* Переключатель режимов */
.order-mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.order-mode-btn {
    padding: 12px 14px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}
.order-mode-btn:hover { color: var(--theme-primary, #2f9938); }
.order-mode-btn.active {
    background: #fff;
    color: var(--theme-primary, #2f9938);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}
.order-mode-btn__icon { font-size: 18px; }
.order-mode-badge {
    background: var(--theme-primary, #2f9938);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}
.order-mode-btn.active .order-mode-badge { background: #e11d48; }

.order-mode-panel { display: none; }
.order-mode-panel.active { display: block; }

/* Товары из корзины */
.order-cart-items { margin-bottom: 20px; }
.order-cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.order-cart-item:last-child { border-bottom: 0; }
.order-cart-item__image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e3edf5;
}
.order-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.order-cart-item__name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.3;
}
.order-cart-item__sku {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.order-cart-item__qty {
    font-size: 13px;
    color: #64748b;
}
.order-cart-item__price { color: #1a1a2e; font-weight: 600; }
.order-cart-item__subtotal {
    font-weight: 700;
    color: var(--theme-primary, #2f9938);
    font-size: 16px;
    font-family: 'Comfortaa', cursive;
}

.order-cart-summary {
    background: linear-gradient(135deg, #f0f9f1 0%, #e8f5e9 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}
.order-cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}
.order-cart-summary__row:last-child {
    border-top: 1px solid #c8e6c9;
    padding-top: 12px;
    margin-top: 6px;
}
.order-cart-summary__row:last-child strong {
    font-size: 20px;
    color: var(--theme-primary, #2f9938);
    font-family: 'Comfortaa', cursive;
}

/* Пустая корзина */
.order-cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}
.order-cart-empty__icon {
    font-size: 56px;
    margin-bottom: 10px;
    opacity: .4;
}
.order-cart-empty p {
    color: #64748b;
    margin: 0 0 16px;
    font-size: 15px;
}
.order-cart-empty__btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--theme-primary, #2f9938);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease;
}
.order-cart-empty__btn:hover { background: var(--theme-secondary, #1d6b25); }

/* Ручной ввод */
.order-manual-hint {
    background: #fef9e7;
    border-left: 4px solid #f1c40f;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    margin: 0 0 18px;
    line-height: 1.5;
}
.order-manual-items { margin-bottom: 14px; }
.order-manual-item {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e3edf5;
    border-radius: 12px;
    padding: 16px 16px 16px 16px;
    margin-bottom: 12px;
    transition: border-color .2s ease;
}
.order-manual-item:focus-within { border-color: var(--theme-primary, #2f9938); }
.order-manual-item .form-group { margin-bottom: 0; }
.order-manual-item .form-group + .form-group,
.order-manual-item .form-group + .form-row,
.order-manual-item .form-row + .form-group { margin-top: 12px; }
.order-manual-item .form-row { margin-bottom: 0; }
.order-manual-item__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #e11d48;
    border: 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-manual-item__remove:hover { background: #fecaca; }

.order-manual-add {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--theme-primary, #2f9938);
    font-family: 'Comfortaa', cursive;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.order-manual-add:hover {
    border-color: var(--theme-primary, #2f9938);
    background: #f0f9f1;
}
.order-manual-add span { font-size: 18px; line-height: 1; }

/* Подвал */
.order-form-footer {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--theme-primary, #2f9938), var(--theme-secondary, #1d6b25));
    border-radius: 18px;
    padding: 28px 30px;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(47, 153, 56, .2);
}
.order-form-footer__info {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
}
.order-form-footer__info p {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .9);
}
.order-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    background: #fff;
    color: var(--theme-primary, #2f9938);
    border: 0;
    border-radius: 50px;
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.order-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.order-form-submit:disabled { opacity: .7; cursor: not-allowed; }
.order-form-footer .form-privacy {
    margin: 14px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
}

/* Сообщения */
.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Comfortaa', cursive;
    font-size: 15px;
    font-weight: 600;
}
.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Адаптив */
@media (max-width: 1024px) {
    .order-form-layout { gap: 20px; }
    .order-form-column { padding: 24px; }
}
@media (max-width: 900px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .trust-title { font-size: 28px; }
    .trust-section { padding: 35px 20px; margin-top: 40px; }
    .trust-card { padding: 20px 12px 18px; }
    .trust-icon { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 140px; margin: 0 auto 10px; }
    .trust-icon img { width: 78%; height: 78%; max-width: 110px; max-height: 110px; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .trust-section { padding: 30px 16px; }
    .trust-card { padding: 14px 8px 12px; }
    .trust-icon { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 90px; margin: 0 auto 8px; }
    .trust-icon img { width: 70%; height: 70%; max-width: 70px; }
    .trust-card__title { font-size: 13px; }
    .trust-card__text { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 768px) {
    .order-form-wrapper { padding: 24px 0 40px; }
    .order-form-column { padding: 20px; border-radius: 14px; }
    .order-form-section__title { font-size: 19px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .order-steps { gap: 4px; }
    .order-step { padding: 8px 12px; font-size: 12px; min-width: 120px; }
    .order-step__num { width: 24px; height: 24px; font-size: 13px; }
    .order-form-footer { padding: 22px 20px; }
    .order-form-footer__info { gap: 10px; font-size: 13px; }
    .order-form-submit { padding: 14px 36px; font-size: 15px; width: 100%; }
}
@media (max-width: 480px) {
    .order-form-section__title { font-size: 17px; }
    .order-mode-btn { font-size: 12px; padding: 10px 8px; }
    .order-cart-item { grid-template-columns: 60px 1fr; }
    .order-cart-item__subtotal { grid-column: 1 / -1; text-align: right; }
    .order-cart-item__image { width: 60px; height: 60px; }
    .order-cart-item__name { font-size: 14px; }
    .order-step__label { display: none; }
    .order-step { min-width: auto; padding: 8px; }
}

/* Кнопка «Оформить заявку» в WooCommerce корзине */
.order-form-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 12px !important;
    background: var(--theme-primary, #2f9938) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-family: 'Comfortaa', cursive !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    transition: background .2s ease, transform .2s ease !important;
}
.order-form-cart-btn:hover {
    background: var(--theme-secondary, #1d6b25) !important;
    transform: translateY(-2px);
}
