/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* =========================================================
   ЦВЕТОВАЯ ПАЛИТРА: все цвета основаны на #937b61
   ========================================================= */
:root {
    /* Базовый цвет */
    --base-color: #937b61;
    
    /* Варианты базового цвета */
    --base-light: #b89a7d;      /* светлее на 20% */
    --base-lighter: #d4b9a0;    /* светлее на 40% */
    --base-dark: #6d5a47;       /* темнее на 20% */
    --base-darker: #4a3d32;     /* темнее на 40% */
    
    /* Для кнопок и акцентов (используем базовый) */
    --price-green: #065a1a;     /* зелёный цвет для цен (на 2 тона темнее базового зелёного #08882a) */
    --accent-color: #937b61;
    --accent-light: #b89a7d;
    --accent-dark: #6d5a47;
    
    /* RGBA варианты для прозрачности */
    --base-rgba-10: rgba(147, 123, 97, 0.1);
    --base-rgba-15: rgba(147, 123, 97, 0.15);
    --base-rgba-20: rgba(147, 123, 97, 0.2);
    --base-rgba-25: rgba(147, 123, 97, 0.25);
    --base-rgba-30: rgba(147, 123, 97, 0.3);
    --base-rgba-40: rgba(147, 123, 97, 0.4);
    --base-rgba-50: rgba(147, 123, 97, 0.5);
    --base-rgba-60: rgba(147, 123, 97, 0.6);
    --base-rgba-80: rgba(147, 123, 97, 0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.header {
    background: #253d30;
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
}

.header-bottom-left {
    width: auto;
    min-width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-text-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.logo-text-bottom h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    margin-top: 0;
    line-height: 1.2;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-text-bottom .logo-line {
    width: 100%;
    max-width: 280px;
    min-width: 200px;
    height: 2px;
    margin: 0 0 6px 0;
}

.logo-text-bottom .logo-subtitle {
    font-size: 0.75rem;
    margin-top: 0;
}

.search-box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Выравниваем по центру как .nav */
    flex: 1;
    max-width: 100%;
    /* Сдвигаем на 30px ближе к номерам телефонов */
    margin-right: -30px;
}


.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
    width: 200px;
    /* Выравниваем в правой колонке grid */
    justify-self: end;
}

.header-phone a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-phone a:hover {
    color: #ffcc80;
}

.nav-bottom ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-bottom a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-bottom a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 5px; /* Отступ сверху до надписи: 5px */
}

.logo-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.logo-image {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo h1 {
    font-size: 22px; /* Фиксированный размер, не зависит от других размеров */
    font-weight: 700;
    margin-bottom: 2px; /* Отступ снизу от надписи до линии: 2px */
    margin-top: 0;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Декоративная линия под названием домена */
.logo-line {
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6d5a47 5%, 
        #937b61 20%, 
        #b89a7d 50%, 
        #937b61 80%, 
        #6d5a47 95%, 
        transparent 100%);
    margin: 0 auto 8px auto; /* Отступ снизу от линии до подписи: 8px (увеличен, чтобы не сливался) */
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(147, 123, 97, 0.4);
    position: relative;
    display: block;
}

.logo-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.logo-line::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
}

.logo span.logo-subtitle {
    font-size: 0.85rem;
    opacity: 1;
    font-family: 'Merriweather', 'Georgia', serif;
    font-weight: 400;
    font-style: normal; /* Убран курсив - нормальный шрифт */
    letter-spacing: 0.05em;
    color: #b89a7d; /* Оранжевый цвет */
    text-shadow: 0 1px 2px rgba(184, 154, 125, 0.4);
    display: block;
    margin-top: 0; /* Отступ уже задан в .logo-line margin-bottom: 8px */
    text-align: center;
    width: 100%;
    animation: headerSubtitleGlow 3s ease-in-out infinite;
}

/* Анимация для подзаголовка на шапке с цветом #937b61 */
@keyframes headerSubtitleGlow {
    0%, 100% {
        color: #b89a7d;
        text-shadow: 0 1px 2px rgba(184, 154, 125, 0.4);
    }
    50% {
        color: #937b61;
        text-shadow: 0 1px 8px rgba(147, 123, 97, 0.8), 0 0 12px rgba(147, 123, 97, 0.6);
    }
}

.logo span:not(.logo-subtitle):not(.domain-name) {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Стили для выделения названия домена ThePrimeWood.ru */
.domain-name {
    background: linear-gradient(135deg, #6d5a47 0%, #937b61 25%, #b89a7d 50%, #937b61 75%, #6d5a47 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 4px rgba(147, 123, 97, 0.3);
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    font-size: 22px !important; /* Фиксированный размер, переопределяет другие правила */
    opacity: 1 !important; /* Полная непрозрачность */
    transform: scaleX(1.05);
    transform-origin: center;
    animation: headerTextGlow 3s ease-in-out infinite;
}

/* Анимация для текста на шапке с цветом #937b61 */
@keyframes headerTextGlow {
    0%, 100% {
        background: linear-gradient(135deg, #6d5a47 0%, #937b61 25%, #b89a7d 50%, #937b61 75%, #6d5a47 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 5px rgba(147, 123, 97, 0.3));
    }
    50% {
        background: linear-gradient(135deg, #937b61 0%, #a68b6f 25%, #b89a7d 50%, #a68b6f 75%, #937b61 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 15px rgba(147, 123, 97, 0.8));
    }
}

/* В тексте (описания/статьи) — фирменный тёмно‑зелёный, без оранжевого градиента и без блеска */
.about-text .domain-name,
.about .domain-name {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #6d5a47 !important; /* тёмный вариант базового цвета */
    text-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    letter-spacing: 0.02em !important;
    font-style: normal !important;
}

.about-text .domain-name::before,
.about .domain-name::before {
    content: none !important; /* отключаем "зеркальный блеск" внутри букв в тексте */
}

/* Эффект тонкого зеркального блеска - только внутри букв */
.domain-name::before {
    content: 'ThePrimeWood.ru';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mirrorShineText 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}

/* Анимация зеркального блеска - проходит справа налево внутри текста */
@keyframes mirrorShineText {
    0% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Альтернативный вариант для браузеров без поддержки gradient text */
@supports not (-webkit-background-clip: text) {
    .domain-name {
        color: #937b61;
        text-shadow: 0 2px 8px rgba(210, 105, 30, 0.5),
                     0 0 20px rgba(210, 105, 30, 0.3);
    }
}

/* Эффект при наведении - ускоряет блеск */
.domain-name:hover::before {
    animation: mirrorShineText 1.5s ease-in-out infinite;
}

/* Специальные стили для hero секции */
.hero-title .domain-name {
    font-size: inherit;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FF8C00 50%, #FFA500 75%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(255, 165, 0, 0.5);
    animation: domainGlowHero 4s ease-in-out infinite;
}

@keyframes domainGlowHero {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* =========================================================
   HERO SLIDER (главная страница)
   ========================================================= */
.hero-slider {
    width: 100%;
}

.page-home .hero-intro-right-home .hero-slider {
    max-width: 100%;
}

/* Центруем навигацию слайдера в интро-блоке на главной */
.page-home .hero-intro-right-home .hero-slider-controls {
    justify-content: center;
}

.hero-slides {
    position: relative;
    /* Важно: высота должна покрывать заголовок + подзаголовок + кнопку,
       чтобы навигация не "залезала" на кнопку */
    min-height: 160px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 450ms ease, transform 450ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

/* Кнопка внутри слайда — добавляем отступ снизу, чтобы не конфликтовать с навигацией */
.hero-slide .btn-hero {
    margin-top: 4px;
    margin-bottom: 0;
}

.hero-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.hero-slider-btn:hover {
    background: rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
    cursor: pointer;
}

.hero-slider-dot.is-active {
    background: rgba(255,255,255,0.85);
}

@media (max-width: 991px) {
    .hero-slider { max-width: 100%; }

    /* Главная: слайды не absolute — иначе текст и кнопка наезжают на точки и нижнюю строку */
    .page-home .hero-slides {
        position: relative;
        min-height: 0;
    }
    .page-home .hero-slide {
        position: relative;
        inset: auto;
        transform: none;
        transition: opacity 0.35s ease;
    }
    .page-home .hero-slide:not(.is-active) {
        display: none;
    }
    .page-home .hero-slide.is-active {
        display: block;
    }
    .page-home .hero-slider-controls {
        margin-top: 14px;
        margin-bottom: 4px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .page-home .hero-bottom-inside {
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .page-home .hero-intro-title {
        font-size: 1.35rem;
        line-height: 1.25;
        word-wrap: break-word;
    }
    .page-home .hero-intro-text {
        font-size: 0.92rem;
        line-height: 1.45;
    }
    .page-home .hero-slide .btn-hero {
        margin-top: 12px;
        margin-bottom: 4px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    cursor: pointer;
}

.nav a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.nav a.active {
    color: rgba(255,255,255,1);
    font-weight: 600;
}

/* Современное креативное подменю категорий */
.nav li {
    position: relative;
}

.nav .submenu {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    background: #253d30;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 1px rgba(0,0,0,0.1);
    width: 1320px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    transition-delay: 0s;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: start;
    align-content: start;
}

.nav .submenu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: var(--arrow-position, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid #937b61;
    filter: drop-shadow(0 -4px 8px rgba(147, 123, 97, 0.8));
    z-index: 1002;
}

.nav .submenu::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav li:hover .submenu,
.nav .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s;
}

/* Открытие mega-меню по клику (для тач/и стабильной работы на всех страницах) */
.nav li.submenu-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s;
}

.nav .submenu li {
    display: block;
    margin: 0;
}

.nav .submenu-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
}

.nav .submenu-link {
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.nav .submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #937b61;
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.nav .submenu-link:hover::before {
    width: 100%;
}

.nav .submenu-link:hover {
    color: white;
    transform: translateX(10px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Стили для родительских и дочерних категорий в подменю */
.nav .submenu-parent {
    margin-bottom: 8px;
}

.nav .submenu-parent-link {
    font-weight: 600;
    background: rgba(147, 123, 97, 0.15);
    border: 1px solid rgba(147, 123, 97, 0.3);
}

.nav .submenu-parent-link:hover {
    background: rgba(147, 123, 97, 0.25);
}

.nav .submenu-child {
    margin-left: 20px;
    margin-bottom: 4px;
}

.nav .submenu-child-link {
    font-weight: 400;
    font-size: 0.95em;
    padding: 10px 15px;
}

/* Колонки подменю и элемент "Еще" */
.nav .submenu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav .submenu-column {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.nav .submenu-more-link {
    font-weight: 600;
    color: #b3ffcb;
}

.nav .submenu-more-link:hover {
    color: #fff;
}

.nav .submenu-link i {
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    min-width: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    flex-shrink: 0;
}

.nav .submenu-link:hover i {
    color: white;
    transform: scale(1.2);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.nav .submenu-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav .submenu-title {
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav .submenu-link:hover .submenu-title {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Анимация появления элементов подменю */
.nav .submenu-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInSubmenu 0.3s ease forwards;
}

.nav .submenu-item:nth-child(1) { animation-delay: 0.1s; }
.nav .submenu-item:nth-child(2) { animation-delay: 0.15s; }
.nav .submenu-item:nth-child(3) { animation-delay: 0.2s; }
.nav .submenu-item:nth-child(4) { animation-delay: 0.25s; }
.nav .submenu-item:nth-child(5) { animation-delay: 0.3s; }
.nav .submenu-item:nth-child(6) { animation-delay: 0.35s; }
.nav .submenu-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInSubmenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Эффект свечения для активного пункта меню */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.5rem;
    width: 345px;
    position: relative;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 15px rgba(147, 123, 97, 0.5);
}

.search-box input {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* Кнопка калькулятора */
.calculator-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #937b61 0%, #6d5a47 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(147, 123, 97, 0.3);
}

.calculator-btn:hover {
    background: linear-gradient(135deg, #6d5a47 0%, #937b61 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 123, 97, 0.4);
    color: white;
    text-decoration: none;
}

.calculator-btn.active {
    background: linear-gradient(135deg, #6d5a47 0%, #4a3d32 100%);
    box-shadow: 0 2px 10px rgba(147, 123, 97, 0.5);
}

.calculator-btn i {
    font-size: 1rem;
}

/* Кнопка "Акции" */
.promotions-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.promotions-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

.promotions-btn i {
    font-size: 1rem;
}

/* Выпадающий список подсказок поиска */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #253d30;
    border-radius: 15px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    border: 1px solid rgba(147, 123, 97, 0.3);
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(147, 123, 97, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(147, 123, 97, 0.2);
}

.search-suggestion-item i {
    color: #937b61;
    font-size: 1rem;
    width: 20px;
}

.search-suggestion-item .suggestion-text {
    flex: 1;
    color: white;
}

.search-suggestion-item .suggestion-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.search-suggestion-item .suggestion-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.search-suggestion-item .suggestion-price {
    color: #937b61;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-suggestion-category {
    padding: 10px 20px;
    background: rgba(147, 123, 97, 0.3);
    color: #937b61;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestion-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.search-popular {
    padding: 10px 20px;
    border-top: 1px solid rgba(147, 123, 97, 0.3);
    background: rgba(0,0,0,0.2);
}

.search-popular-title {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-popular-tag {
    padding: 4px 10px;
    background: rgba(147, 123, 97, 0.2);
    border: 1px solid rgba(147, 123, 97, 0.4);
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-popular-tag:hover {
    background: rgba(147, 123, 97, 0.4);
    border-color: #937b61;
    transform: scale(1.05);
}

/* Модальное окно предпросмотра товара при hover в поиске */
.search-product-preview {
    position: absolute;
    top: 3px;
    left: calc(100% + 15px);
    width: 450px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 6px);
    background: #253d30;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    z-index: 2001;
    display: none;
    border: 2px solid rgba(147, 123, 97, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideInPreview 0.3s ease;
}

@keyframes slideInPreview {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.search-product-preview.active {
    display: block;
}

.search-product-preview-content {
    padding: 20px;
}

.search-product-preview-main-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.search-product-preview-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.search-product-preview-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #8B6F47 0%, #654321 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.search-product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-product-preview-image .product-emoji {
    font-size: 5rem;
}

.search-product-preview-info-section {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border-left: 4px solid #937b61;
}

.search-product-preview-info-item {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.search-product-preview-info-item:last-child {
    margin-bottom: 0;
}

.search-product-preview-info-item strong {
    color: white;
    font-weight: 600;
    margin-right: 5px;
}

.search-product-preview-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.search-product-preview-field {
    padding: 10px 12px;
    background: rgba(147, 123, 97, 0.15);
    border: 2px solid rgba(147, 123, 97, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-product-preview-field .field-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-product-preview-field .field-value {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.search-product-preview-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--price-green);
    margin-bottom: 15px;
    text-align: center;
    padding: 12px;
    background: rgba(6, 90, 26, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(6, 90, 26, 0.4);
}

.search-product-preview-actions {
    display: flex;
    gap: 10px;
}

.search-product-preview-actions .btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-product-preview-actions .btn-primary {
    background: #937b61;
    color: white;
    box-shadow: 0 4px 15px rgba(147, 123, 97, 0.3);
}

.search-product-preview-actions .btn-primary:hover {
    background: #b89a7d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 123, 97, 0.5);
}

.search-product-preview-actions .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    min-width: 50px;
}

.search-product-preview-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Адаптивность для модального окна */
@media (max-width: 1024px) {
    .search-product-preview {
        width: 450px;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 768px) {
    .search-product-preview {
        width: calc(100vw - 40px);
        max-width: 400px;
        left: auto !important;
        right: 0 !important;
        top: 100% !important;
        margin-top: 10px;
    }
    
    .search-product-preview-fields {
        grid-template-columns: 1fr;
    }
    
    .search-product-preview-main-title {
        font-size: 1.2rem;
    }
    
    .search-product-preview-price {
        font-size: 1.6rem;
    }
}

.compare-prices, .favorites, .cart {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.compare-prices:hover, .favorites:hover, .cart:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.compare-prices i, .favorites i, .cart i {
    color: white;
}

.compare-count, .favorites-count, .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-count {
    background: #ff4757;
}

.favorites-count {
    background: #ff6b7a;
}

.compare-count {
    background: #2ed573;
}

.user-menu {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu.logged-in {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
}

.user-menu .user-name {
    font-size: 0.78rem;
    line-height: 1.05;
    max-width: 140px;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-left: 0;
    word-break: break-word;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 50%, #1a4d2e 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 140px;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 20px
        );
    opacity: 0.3;
    z-index: 0;
}

/* Фото на всю длину/высоту блока hero (по стрелкам), текст поверх */
.hero-full-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.hero-full-bg .hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-full-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 77, 46, 0.75) 0%, rgba(26, 77, 46, 0.3) 45%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Главная: hero на всю ширину, одна колонка под зелёный блок */
.page-home .hero .container {
    max-width: 100%;
    padding: 0 40px;
}

.page-home .hero-content {
    grid-template-columns: 1fr;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    color: white;
}

/* Только раздел «Краски и масла»: без описания, заголовок выше и чуть меньше, минимальный отступ до линии */
.page-painting .hero-title {
    margin-top: -30px;
    font-size: 3.2rem;
}
.page-painting .hero-bottom {
    margin-top: 8px;
    padding-top: 8px;
}

/* Крепежи: интро-заголовок и текст справа в hero */
.page-fasteners .hero-right,
.page-dry-planed .hero-right,
.page-spruce-pine .hero-right,
.page-sauna .hero-right,
.page-plywood .hero-right,
.page-pine .hero-right {
    justify-content: center;
    align-items: center;
}
.page-fasteners .hero-intro-right,
.page-dry-planed .hero-intro-right,
.page-spruce-pine .hero-intro-right,
.page-sauna .hero-intro-right,
.page-plywood .hero-intro-right,
.page-pine .hero-intro-right {
    max-width: 450px;
    padding: 24px 28px;
    background: rgba(26, 77, 46, 0.55);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.page-home .hero-content {
    gap: 40px;
}

.page-home .hero-intro-right-home {
    max-width: none;
    width: 100%;
    padding: 20px 40px;
    min-height: auto;
    background: rgba(26, 77, 46, 0.55);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    margin-top: 40px;
    margin-bottom: 0;
}

.page-home .hero-left {
    align-items: stretch;
}
.page-fasteners .hero-badge,
.page-dry-planed .hero-badge,
.page-spruce-pine .hero-badge,
.page-sauna .hero-badge,
.page-plywood .hero-badge,
.page-larch .hero-badge,
.page-pine .hero-badge,
.page-home .hero-badge {
    background: rgba(26, 77, 46, 0.55);
    color: #fff;
    font-weight: 700;
}
.page-fasteners .hero-featured,
.page-dry-planed .hero-featured,
.page-spruce-pine .hero-featured,
.page-sauna .hero-featured,
.page-plywood .hero-featured,
.page-larch .hero-featured,
.page-pine .hero-featured,
.page-home .hero-featured {
    background: rgba(26, 77, 46, 0.55);
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
}
.page-fasteners .hero-intro-title,
.page-dry-planed .hero-intro-title,
.page-spruce-pine .hero-intro-title,
.page-sauna .hero-intro-title,
.page-plywood .hero-intro-title,
.page-pine .hero-intro-title,
.page-home .hero-intro-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.page-fasteners .hero-intro-text,
.page-dry-planed .hero-intro-text,
.page-spruce-pine .hero-intro-text,
.page-sauna .hero-intro-text,
.page-plywood .hero-intro-text,
.page-pine .hero-intro-text,
.page-home .hero-intro-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.5;
}
.page-fasteners .hero-intro-right .btn-hero,
.page-dry-planed .hero-intro-right .btn-hero,
.page-spruce-pine .hero-intro-right .btn-hero,
.page-sauna .hero-intro-right .btn-hero,
.page-plywood .hero-intro-right .btn-hero,
.page-pine .hero-intro-right .btn-hero {
    margin-top: 16px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
}

.btn-hero {
    align-self: flex-start;
    background: #253d30;
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-hero:hover {
    background: #4a3d32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Контейнер для слайдов — широкий формат 16:9.
   Рекомендуемый размер фото для слайдов: 640 × 360 px (или 1280 × 720 px для Retina). */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Слайд заполняет всю область справа от текста, без пустых полос */
.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    z-index: 2;
    position: relative;
}

.hero-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 123, 97, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Главная: более компактный hero и минимальный зазор до нижних бейджей */
.page-home .hero {
    /* Убираем вертикальное центрирование (оно создаёт "пустоту" снизу) */
    display: block;
    min-height: 560px;
    padding: 32px 0 16px;
}

.page-home .hero-content {
    gap: 16px;
}

.page-home .hero-bottom {
    border-top: none;
    padding-top: 4px;
    margin-top: 4px;
}

/* Бейджи, встроенные внутрь блока слайдера на главной */
.page-home .hero-bottom-inside {
    max-width: none;
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.hero-badge {
    background: rgba(147, 123, 97, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(147, 123, 97, 0.5);
}

.hero-featured {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Categories Grid Section */
.categories-grid-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.categories-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-grid:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B6F47 0%, #654321 100%);
    color: white;
    font-size: 4rem;
}

.category-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #253d30;
}

.category-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    flex: 1;
}

.category-card-list li {
    margin-bottom: 8px;
}

.category-card-list li:last-child {
    margin-bottom: 0;
}

.category-card-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.category-card-list a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #937b61;
    font-weight: bold;
}

.category-card-list a:hover {
    color: #937b61;
    padding-left: 25px;
}

.category-card-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #937b61;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(147, 123, 97, 0.3);
}

.category-card-link:hover {
    background: #b89a7d;
    transform: scale(1.1) rotate(-45deg);
    box-shadow: 0 4px 12px rgba(147, 123, 97, 0.4);
}

.category-card-link i {
    font-size: 1rem;
}

/* Promotions Section */
.promotions-section {
    padding: 60px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #253d30;
    margin: 0;
}

.section-link {
    color: #937b61;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-link:hover {
    color: #b89a7d;
    gap: 12px;
}

.section-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.section-link:hover::after {
    transform: translateX(5px);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promotion-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.promotion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.promotion-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promotion-card:hover .promotion-image img {
    transform: scale(1.05);
}

.promotion-image .product-emoji {
    font-size: 4rem;
}

.promotion-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.promotion-rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.promotion-rating-value {
    color: #333;
    font-weight: 600;
    margin-left: 5px;
}

.promotion-rating-count {
    color: #666;
    margin-left: 5px;
}

.promotion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-stock {
    display: inline-block;
    background: rgba(147, 123, 97, 0.1);
    color: #937b61;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.promotion-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.promotion-price-from {
    color: #666;
    font-size: 0.9rem;
}

.promotion-price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--price-green);
}

.promotion-price-unit {
    color: #666;
    font-size: 0.9rem;
}

.promotion-price-old {
    color: #999;
    font-size: 1.2rem;
    text-decoration: line-through;
    margin-left: auto;
}

.promotion-discount {
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.promotion-button {
    width: 100%;
    padding: 12px 20px;
    background: #937b61;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.promotion-button:hover {
    background: #b89a7d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 123, 97, 0.3);
}

.loading-promotions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Product of the Day Section */
.product-day-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef6f0 100%);
}

.product-day-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-day-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.product-day-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4757;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-day-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-day-image .product-emoji {
    font-size: 8rem;
}

.product-day-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-day-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.product-day-rating-stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.product-day-rating-value {
    color: #333;
    font-weight: 600;
    margin-left: 5px;
}

.product-day-rating-count {
    color: #666;
    margin-left: 5px;
}

.product-day-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.product-day-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-day-stock {
    display: inline-block;
    background: rgba(147, 123, 97, 0.1);
    color: #937b61;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    align-self: flex-start;
}

.product-day-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}

.product-day-price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--price-green);
}

.product-day-price-unit {
    color: #666;
    font-size: 1.1rem;
}

.product-day-button {
    padding: 18px 40px;
    background: #937b61;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(147, 123, 97, 0.3);
}

.product-day-button:hover {
    background: #b89a7d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 123, 97, 0.4);
}

.loading-product-day {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.2rem;
}

/* Bestsellers Section */
.bestsellers-section {
    padding: 60px 0;
    background: white;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.loading-bestsellers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* New Products Section */
.new-products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.new-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.loading-new-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #937b61;
    color: white;
}

.btn-primary:hover {
    background: #b89a7d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 123, 97, 0.4);
}

/* Categories */
.categories {
    padding: 80px 0;
    background: white;
}

.categories h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card i {
    font-size: 3rem;
    color: #6d5a47;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-card p {
    color: #666;
}

/* Products */
/* Category Page Header */
.category-page-header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 50%, #1a4d2e 100%);
    color: white;
    padding: 80px 0 40px;
    margin-top: 140px;
    position: relative;
    overflow: hidden;
}

.category-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.category-header-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.category-header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.category-header-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .category-page-header {
        padding: 60px 0 30px;
        margin-top: 120px;
    }
    
    .category-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .category-header-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .category-header-text h1 {
        font-size: 1.8rem;
    }
    
    .category-header-text p {
        font-size: 1rem;
    }
    
    .category-description {
        padding: 50px 0;
    }
    
    .category-description-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .category-description-title::after {
        width: 60px;
        height: 3px;
    }
    
    .category-description-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .category-description-text p {
        margin-bottom: 1.5rem;
        text-indent: 0;
    }
    
    .category-description-text p:first-child {
        font-size: 1.1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .category-description-text p:not(:first-child)::first-letter {
        font-size: 1.8rem;
        margin-right: 6px;
        margin-top: 3px;
    }
}

.products {
    padding: 20px 0;
    background: #f8f9fa;
}

.products h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 100px;
    z-index: 999;
    background: rgba(248, 249, 250, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(147, 123, 97, 0.2);
}

.filters select {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.filters select:focus {
    border-color: #6d5a47;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: rgba(139, 111, 71, 0.2);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #8B6F47 0%, #654321 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-emoji {
    font-size: 3rem;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 1; /* Всегда видимы */
    transition: all 0.3s ease;
    z-index: 10;
}

.product-action-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.product-action-btn:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.favorite-btn i {
    color: #ff6b7a;
    font-size: 1rem;
}

.compare-btn i {
    color: #2ed573;
    font-size: 1rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--price-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #937b61 0%, #b89a7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 123, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #b89a7d 0%, #937b61 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 123, 97, 0.4);
}

.add-to-cart:hover::before {
    left: 100%;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.partners-title {
    font-size: 2rem;
    font-weight: 700;
    color: #253d30;
    margin: 0;
}

.partners-nav {
    display: flex;
    gap: 10px;
}

.partners-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #937b61;
    background: #937b61;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
}

.partners-nav-btn:hover {
    background: #6d5a47;
    border-color: #6d5a47;
    color: white;
}

.partners-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.partners-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.partners-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.partner-item {
    flex: 0 0 calc(20% - 24px);
    min-width: 200px;
}

.partner-logo {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.partner-logo:hover {
    border-color: #937b61;
    box-shadow: 0 4px 15px rgba(147, 123, 97, 0.2);
    transform: translateY(-5px);
}

.partner-logo-placeholder {
    width: 80px;
    height: 80px;
    border: 2px solid #937b61;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(147, 123, 97, 0.05);
}

.partner-initial {
    font-size: 2rem;
    font-weight: 700;
    color: #937b61;
}

.partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.partner-name small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .partner-item {
        flex: 0 0 calc(25% - 22.5px);
    }
}

@media (max-width: 992px) {
    .partner-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-title {
        font-size: 1.5rem;
    }
    
    .partner-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 150px;
    }
    
    .partner-logo {
        padding: 20px 15px;
        height: 160px;
    }
    
    .partner-logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .partner-initial {
        font-size: 1.5rem;
    }
    
    .partner-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .partner-item {
        flex: 0 0 calc(100% - 0px);
    }
}

/* Recent Reviews (Home) */
.home-reviews-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.home-reviews-header .section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-reviews-header .section-link::after {
    content: '›';
    font-size: 18px;
    line-height: 1;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.home-reviews-loading,
.home-reviews-empty {
    grid-column: 1 / -1;
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 61, 48, 0.08);
    color: #666;
}

.home-review-card {
    position: relative;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 61, 48, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 18px 18px 16px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    overflow: hidden;
}

.home-review-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 180px at 30% 0%, rgba(8, 136, 42, 0.10), transparent 60%);
    pointer-events: none;
}

.home-review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 136, 42, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

.home-review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.home-review-name {
    font-weight: 700;
    color: #253d30;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.home-review-date {
    color: #7a7a7a;
    font-size: 0.9rem;
    white-space: nowrap;
}

.home-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.home-review-stars {
    color: #f0b429;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.home-review-rating-num {
    color: #253d30;
    font-weight: 600;
    font-size: 0.95rem;
}

.home-review-text {
    margin-top: 12px;
    color: #3f3f3f;
    line-height: 1.65;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
}

.home-review-admin {
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(37, 61, 48, 0.04);
    border: 1px solid rgba(37, 61, 48, 0.07);
    position: relative;
    z-index: 1;
}

.home-review-admin-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #253d30;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.home-review-admin-text {
    color: #4b4b4b;
    line-height: 1.55;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .home-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-reviews-section {
        padding: 46px 0;
    }
    .home-reviews-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .home-review-card {
        min-width: 78%;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .home-review-card {
        min-width: 88%;
    }
}

/* About */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: block;
    width: 100%;
}

.about-text {
    width: 100%;
    max-width: 100%;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: #6d5a47;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6d5a47;
}

.contact-form button {
    margin-top: 1rem;
}

/* Delivery */
.delivery {
    padding: 80px 0;
    background: white;
}

.delivery h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.delivery-content {
    max-width: 900px;
    margin: 0 auto;
}

.delivery-info h4 {
    color: #6d5a47;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.delivery-info h4:first-child {
    margin-top: 0;
}

.delivery-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.delivery-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #666;
    line-height: 1.8;
}

.delivery-info ul li {
    margin-bottom: 0.8rem;
}

.delivery-info strong {
    color: #6d5a47;
}

/* Payment */
.payment {
    padding: 80px 0;
    background: #f8f9fa;
}

.payment h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.payment-content {
    max-width: 900px;
    margin: 0 auto;
}

.payment-info h4 {
    color: #6d5a47;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.payment-info h4:first-child {
    margin-top: 0;
}

.payment-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.payment-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #666;
    line-height: 1.8;
}

.payment-info ul li {
    margin-bottom: 0.8rem;
}

.payment-info strong {
    color: #6d5a47;
}

/* Warranty */
.warranty {
    padding: 80px 0;
    background: white;
}

.warranty h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.warranty-content {
    max-width: 900px;
    margin: 0 auto;
}

.warranty-info h4 {
    color: #6d5a47;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.warranty-info h4:first-child {
    margin-top: 0;
}

.warranty-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.warranty-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #666;
    line-height: 1.8;
}

.warranty-info ul li {
    margin-bottom: 0.8rem;
}

.warranty-info strong {
    color: #6d5a47;
}

/* Category Description Section */
.category-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.category-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(147, 123, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 20, 8, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.category-description-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-description-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #253d30;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1.5rem;
}

.category-description-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #937b61, transparent);
    border-radius: 2px;
}

.category-description-text {
    color: #444;
    line-height: 1.9;
    font-size: 1.1rem;
}

.category-description-text p {
    margin-bottom: 1.8rem;
    text-align: justify;
    text-indent: 0;
    position: relative;
}

.category-description-text p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: #253d30;
    text-indent: 0;
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(147, 123, 97, 0.05) 0%, rgba(45, 20, 8, 0.05) 100%);
    border-left: 4px solid #937b61;
    border-radius: 8px;
}

.category-description-text p:first-child::before {
    content: '🪵';
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5rem;
}

.category-description-text p:not(:first-child)::first-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #937b61;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #253d30 0%, #937b61 100%);
    color: white;
    padding: 30px 0 15px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(147, 123, 97, 0.1) 10px,
        rgba(147, 123, 97, 0.1) 20px
    );
    animation: footerPattern 20s linear infinite;
}

@keyframes footerPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #937b61;
    text-shadow: 0 0 10px rgba(147, 123, 97, 0.5);
}

/* Логотип в футере - идентичен шапке */
.footer-section .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 5px;
    margin-bottom: 1rem;
}

.footer-section .logo h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    margin-top: 0;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-section .logo-line {
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6d5a47 5%, 
        #937b61 20%, 
        #b89a7d 50%, 
        #937b61 80%, 
        #6d5a47 95%, 
        transparent 100%);
    margin: 0 auto 8px auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.4);
    position: relative;
    display: block;
}

.footer-section .logo-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-section .logo-line::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
}

.footer-section .logo .logo-subtitle {
    font-size: 0.85rem;
    opacity: 1;
    font-family: 'Merriweather', 'Georgia', serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
    color: #b89a7d;
    text-shadow: 0 1px 2px rgba(184, 154, 125, 0.4);
    display: block;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #937b61;
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 2px solid #937b61;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: #937b61;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(147, 123, 97, 0.5);
    border-color: #b89a7d;
}

.social-links a i {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.social-links a:hover i {
    transform: rotate(360deg);
}

.footer-contacts {
    margin-top: 1rem;
}

.footer-contacts p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contacts p a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.footer-contacts p a:hover {
    color: #ffcc80;
}

.footer-phone-main {
    align-items: center;
}

.footer-phone-second {
    padding-left: 30px;
    margin-top: -0.3rem;
}

.footer-contacts i {
    color: #937b61;
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(147, 123, 97, 0.3);
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.footer-bottom-desktop {
    margin: 0;
}

.footer-bottom-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom-logo-img {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-bottom-mobile-rights {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Анимация для domain-name в футере с тёмно-зелёным цветом - нежная */
.footer-bottom .domain-name {
    color: #253d30;
    background: none;
    -webkit-text-fill-color: #253d30;
    text-shadow: 0 1px 2px rgba(37, 61, 48, 0.3);
    animation: footerDomainNameGlow 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes footerDomainNameGlow {
    0%, 100% {
        color: #253d30;
        -webkit-text-fill-color: #253d30;
        text-shadow: 0 1px 2px rgba(37, 61, 48, 0.3);
        opacity: 0.9;
    }
    50% {
        color: #2a4f38;
        -webkit-text-fill-color: #2a4f38;
        text-shadow: 0 1px 3px rgba(42, 79, 56, 0.4);
        opacity: 1;
    }
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.cart-modal.active {
    display: flex;
    animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.close-cart-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-cart-btn:hover {
    color: var(--price-green);
    background: rgba(255, 71, 87, 0.1);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.clear-cart {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.clear-cart:hover {
    color: var(--price-green);
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b6494;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #000000;
}

.cart-item-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--price-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-unit-price {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.cart-cost {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
    background: #f8f9fa;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cost-item.total {
    font-size: 1.2rem;
    font-weight: 600;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.cart-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-order {
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: #555;
    transform: translateY(-2px);
}

.btn-quick-order {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-order:hover {
    background: #e9ecef;
}

.btn-shopping-cart {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-shopping-cart:hover {
    background: #f8f9fa;
}

.cart-note {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-image-wrapper {
        max-width: 480px;
        /* 16:9 сохраняется за счёт aspect-ratio */
    }
    
    .categories-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .category-card-image {
        height: 180px;
    }
    
    .product-day-card {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-day-image {
        min-height: 350px;
    }
    
    .product-day-title {
        font-size: 1.8rem;
    }
    
    .bestsellers-grid,
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .nav .submenu {
        left: 0;
        transform: translateX(0) translateY(-20px) scale(0.95);
        width: calc(100vw - 40px);
        max-width: 400px;
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .nav li:hover .submenu {
        transform: translateX(0) translateY(0) scale(1);
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-bottom-left {
        display: none;
    }
    
    .search-box-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .promotions-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .promotions-btn span {
        display: inline;
    }
    
    .calculator-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .calculator-btn span {
        display: none;
    }
    
    .calculator-btn i {
        font-size: 1.1rem;
    }
    
    .promotions-btn i {
        font-size: 1.1rem;
    }
    
    .header-phone {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-right {
        order: -1;
    }
    
    .page-fasteners .hero-left-empty,
    .page-dry-planed .hero-left-empty,
    .page-spruce-pine .hero-left-empty,
    .page-sauna .hero-left-empty,
    .page-plywood .hero-left-empty,
    .page-pine .hero-left-empty {
        display: none;
    }
    .page-fasteners .hero-right,
    .page-dry-planed .hero-right,
    .page-spruce-pine .hero-right,
    .page-sauna .hero-right,
    .page-plywood .hero-right {
        order: 0;
        justify-content: center;
    }
    .page-fasteners .hero-intro-right,
    .page-dry-planed .hero-intro-right,
    .page-spruce-pine .hero-intro-right,
    .page-sauna .hero-intro-right,
    .page-plywood .hero-intro-right {
        transform: none;
    }
    
    .hero-image-wrapper {
        max-width: 340px;
        margin: 0 auto;
        /* 16:9 за счёт aspect-ratio */
    }
    
    .hero-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .categories-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-card-image {
        height: 180px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-day-card {
        grid-template-columns: 1fr;
    }
    
    .product-day-image {
        min-height: 300px;
        order: -1;
    }
    
    .product-day-content {
        padding: 30px 20px;
    }
    
    .product-day-title {
        font-size: 1.5rem;
    }
    
    .product-day-price-value {
        font-size: 2rem;
    }
    
    .bestsellers-grid,
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-modal {
        width: 100%;
        right: -100%;
    }
    
    .compare-modal,
    .favorites-modal {
        width: 100%;
        left: -100%;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 0 20px;
        margin-top: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
        /* 16:9 за счёт aspect-ratio */
    }
    
    .hero-bottom {
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .hero-badge,
    .hero-featured {
        font-size: 0.85rem;
    }
    
    .categories-grid-section {
        padding: 40px 0;
    }
    
    .categories-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-card-image {
        height: 150px;
    }
    
    .category-card-content {
        padding: 15px;
    }
    
    .category-card-title {
        font-size: 1.1rem;
    }
    
    .promotions-section {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .promotion-image {
        height: 180px;
    }
    
    .promotion-price-value {
        font-size: 1.5rem;
    }
    
    .product-day-section {
        padding: 40px 0;
    }
    
    .product-day-image {
        min-height: 250px;
    }
    
    .product-day-content {
        padding: 25px 15px;
    }
    
    .product-day-title {
        font-size: 1.3rem;
    }
    
    .product-day-description {
        font-size: 1rem;
    }
    
    .product-day-price-value {
        font-size: 1.8rem;
    }
    
    .product-day-button {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    .bestsellers-section,
    .new-products-section {
        padding: 40px 0;
    }
    
    .bestsellers-grid,
    .new-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для элементов корзины */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-info p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-quantity-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.cart-quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Стили для выпадающего меню в корзине */
.cart-item-menu {
    position: relative;
}

.cart-menu-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.cart-menu-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.cart-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cart-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    color: #333;
}

.cart-menu-item:hover {
    background: #f8f9fa;
}

.cart-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.cart-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.cart-menu-item i {
    width: 16px;
    text-align: center;
}

.cart-menu-item:first-child {
    color: #333;
}

.cart-menu-item:nth-child(2) {
    color: #ff6b7a;
}

.cart-menu-item:nth-child(3) {
    color: #2ed573;
}

/* Siberian pine spotlight */
.pine-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef6f0 100%);
}

.pine-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.pine-eyebrow {
    color: #937b61;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.pine-header h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #253d30;
}

.pine-lead {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.pine-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pine-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pine-badge {
    display: inline-flex;
    align-self: flex-start;
    background: #937b61;
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pine-card h4 {
    font-size: 1.2rem;
    color: #253d30;
}

.pine-card p {
    color: #555;
}

.pine-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pine-card li {
    position: relative;
    padding-left: 20px;
    color: #444;
}

.pine-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #937b61;
}

.pine-link {
    color: #937b61;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.pine-link:hover {
    text-decoration: underline;
}

.pine-badge-larch {
    background: #a35b1f;
}

@media (max-width: 1024px) {
    .pine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pine-section {
        padding: 60px 0;
    }
    
    .pine-grid {
        grid-template-columns: 1fr;
    }
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.cart-modal {
    display: none;
}

/* Compare Modal */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.compare-modal.active {
    display: flex;
    animation: slideInCompare 0.3s ease;
    z-index: 2001; /* Повышенный z-index для активного состояния */
}

@keyframes slideInCompare {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.compare-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compare-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2ed573, #26d0ce);
    color: white;
}

.compare-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-compare {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.compare-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.modal-product-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e8ecef;
}

.compare-item-info {
    flex: 1;
    min-width: 0;
}

.compare-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.compare-item-info p {
    margin: 0;
    color: #2ed573;
    font-weight: 600;
    font-size: 1.1rem;
}

.compare-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-add-cart-btn {
    background: #2ed573;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.compare-add-cart-btn:hover {
    background: #26d0ce;
    transform: scale(1.1);
}

.compare-add-favorites-btn {
    background: #ff6b7a;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.compare-add-favorites-btn:hover {
    background: #ff8a80;
    transform: scale(1.1);
}

.compare-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.compare-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.compare-footer {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Favorites Modal */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.favorites-modal.active {
    display: flex;
    animation: slideInFavorites 0.3s ease;
    z-index: 2001; /* Повышенный z-index для активного состояния */
}

@keyframes slideInFavorites {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.favorites-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.favorites-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff6b7a, #ff8a80);
    color: white;
}

.favorites-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-favorites {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.favorites-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.favorites-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.favorites-item-info {
    flex: 1;
    min-width: 0;
}

.favorites-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.favorites-item-info p {
    margin: 0;
    color: #ff6b7a;
    font-weight: 600;
    font-size: 1.1rem;
}

.favorites-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorites-add-cart-btn {
    background: #ff6b7a;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.favorites-add-cart-btn:hover {
    background: #ff8a80;
    transform: scale(1.1);
}

.favorites-add-compare-btn {
    background: #2ed573;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.favorites-add-compare-btn:hover {
    background: #26d0ce;
    transform: scale(1.1);
}

.favorites-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.favorites-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.favorites-footer {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

.empty-compare, .empty-favorites {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.no-products, .loading-categories {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

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

/* =========================================================
   Мобильная шапка (≤991px): гамбургер → панель разделов; .nav скрыто
   ========================================================= */

.mobile-header-contacts {
    display: none;
}

@media (max-width: 991px) {
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Шапка на всю ширину экрана (без «урезанной» зелёной полосы) */
    .header .container {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    /* Шапка и нижняя панель поверх контента; модалки выше шапки */
    .header {
        z-index: 1500;
    }

    .cart-modal,
    .compare-modal,
    .favorites-modal {
        z-index: 2600 !important;
    }

    .cart-modal.active,
    .compare-modal.active,
    .favorites-modal.active {
        z-index: 2610 !important;
    }

    html.mobile-search-open,
    body.mobile-search-open {
        overflow: hidden;
        touch-action: none;
    }

    /* Иконки в шапке дублируются в нижней панели — уводим за экран, клик из JS остаётся рабочим */
    .header .container {
        position: relative;
    }

    .header-actions {
        position: absolute;
        left: -9999px;
        top: 0;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        opacity: 0.03;
        pointer-events: auto;
        z-index: 0;
    }

    .header-actions .compare-prices,
    .header-actions .favorites,
    .header-actions .cart,
    .header-actions .user-menu {
        min-width: 48px;
        min-height: 48px;
    }

    /* Вторая полоса шапки: название + телефоны (без поиска / акций / калькулятора) */
    .header .search-box-wrapper {
        display: none !important;
    }

    .header-bottom {
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding-top: 0.4rem;
        margin-top: 0.4rem;
    }

    .header-bottom-left {
        flex: 1;
        min-width: 0;
    }

    .header-bottom .logo-text-bottom h1 {
        font-size: 0.95rem;
    }

    .header-bottom .logo-subtitle {
        font-size: 0.68rem;
    }

    .header-phone {
        width: auto;
        flex-shrink: 0;
        text-align: right;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .header-content .mobile-header-contacts {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 0.35rem;
    }

    .mobile-header-contacts-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #fff !important;
        font-size: 1.05rem;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease;
    }

    .mobile-header-contacts-icon:active {
        background: rgba(255, 255, 255, 0.26);
    }

    button.mobile-header-contacts-icon {
        border: none;
        padding: 0;
        margin: 0;
        font: inherit;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    html.mobile-nav-open,
    body.mobile-nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .header-content {
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.65rem;
    }

    .header-content .logo {
        flex: 1;
        min-width: 0;
        padding-top: 0;
        align-items: flex-start;
        text-align: left;
    }

    .header-content .logo .logo-image,
    .header-content .logo .logo-image-wrapper img {
        max-width: 88px;
    }

    .header-content .logo h1 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .header-content .logo .logo-line {
        min-width: 0;
        max-width: 200px;
        margin-bottom: 4px;
    }

    .header-content .logo .logo-subtitle {
        font-size: 0.68rem;
        line-height: 1.2;
    }

    .header .nav {
        display: none !important;
    }

    .header-home-link,
    .header-logo-home-link {
        display: inline-block;
        text-decoration: none !important;
        color: inherit;
        max-width: 100%;
        cursor: pointer;
    }

    .header-home-link .domain-name {
        cursor: pointer;
    }

    /* Убираем «плавающий» select сортировки у верхней кромки (было position:sticky; top:100px) */
    .filters {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .hero {
        margin-top: 104px;
    }

    .category-page-header {
        margin-top: 104px;
    }

    .search-box-wrapper {
        margin-right: 0;
    }

    /* Нижняя навигация — 6 пунктов, без горизонтального скролла */
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    /* Футер: сетка из 4 колонок на узком экране ломается; ссылки дублируют нижнее меню и гамбургер */
    .footer .footer-content {
        display: none !important;
    }

    .footer {
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .footer-bottom {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .footer-bottom-desktop {
        display: none !important;
    }

    .footer-bottom-mobile {
        display: flex !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        z-index: 1400;
        justify-content: space-between;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        overflow: hidden;
        min-height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding: 4px 2px env(safe-area-inset-bottom, 8px);
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .mbn-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        min-width: 0;
        padding: 2px 0;
        border: none;
        background: none;
        color: #3d3d3d;
        font-size: 0.5rem;
        font-weight: 600;
        line-height: 1.1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mbn-label {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        font-size: 0.56rem;
        letter-spacing: -0.02em;
    }

    .mbn-item:active {
        opacity: 0.85;
    }

    .mbn-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 36px;
        height: 26px;
        margin: 0 auto;
        font-size: 0.95rem;
        color: #253d30;
    }

    .mbn-badge {
        position: absolute;
        top: -2px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #c62828;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    /* Панель поиска (полноэкранный лист) */
    .mobile-search-panel {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 4200;
        pointer-events: none;
    }

    body.mobile-search-open .mobile-search-panel {
        display: block;
        pointer-events: auto;
    }

    .mobile-search-panel-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .mobile-search-panel-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 88vh;
        display: flex;
        flex-direction: column;
        background: #f8f9fa;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .mobile-search-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #253d30;
        color: #fff;
    }

    .mobile-search-panel-title {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .mobile-search-panel-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .mobile-search-slot {
        padding: 12px 12px 20px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-search-slot .search-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px;
        background: rgba(37, 61, 48, 0.12);
    }

    .mobile-search-slot .search-suggestions {
        position: relative !important;
        z-index: 10;
        max-height: 50vh;
        overflow-y: auto;
    }

    .mobile-search-slot .search-product-preview {
        display: none !important;
    }

    /* Панель разделов (гамбургер): только ссылки на инфостраницы */
    .mobile-nav-panel {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 4250;
        pointer-events: none;
    }

    body.mobile-nav-open .mobile-nav-panel {
        display: block;
        pointer-events: auto;
    }

    .mobile-nav-panel-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .mobile-nav-panel-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        background: #f8f9fa;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .mobile-nav-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #253d30;
        color: #fff;
        flex-shrink: 0;
    }

    .mobile-nav-panel-title {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .mobile-nav-panel-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .mobile-nav-panel-links {
        display: flex;
        flex-direction: column;
        padding: 8px 0 20px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-panel-links a {
        display: block;
        padding: 16px 20px;
        font-size: 1.05rem;
        font-weight: 500;
        color: #253d30;
        text-decoration: none;
        border-bottom: 1px solid rgba(37, 61, 48, 0.1);
        transition: background 0.15s ease;
    }

    .mobile-nav-panel-links a:active {
        background: rgba(37, 61, 48, 0.08);
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav,
    .mobile-search-panel,
    .mobile-nav-panel {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
