/* =========================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
:root {
    /* Цветовая палитра */
    --primary: #009C64;       /* Основной зеленый */
    --secondary: #388E3C;     /* Темно-зеленый */
    --accent: #8BC34A;        /* Лайм */
    --dark: #5D4037;          /* Коричневый/Текст заголовков */
    --darker: #3E2723;        /* Очень темный */
    --light: #F1F8E9;         /* Светлый фон */
    --cream: #FFF8E1;         /* Кремовый */
    --text: #212121;          /* Основной текст */
    --text-light: #757575;    /* Второстепенный текст */
    --border: #E0E0E0;
    
    /* Карточки */
    --pc-radius: 10px;
    --pc-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --pc-shadow-md: 0 4px 16px rgba(0,0,0,.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. ХЕДЕР (DESKTOP & MOBILE)
   ========================================= */

/* --- Desktop Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (min-width: 769px) {
  .site-header {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    color: white;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.search-btn:hover { background: var(--secondary); }

.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Header Icons & Contacts */
.header-icons {
    display: flex;
    gap: 20px;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    transition: transform 0.3s;
}

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

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.header-contact-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-numbers {
    display: flex;
    gap: 15px;
}

.phone-btn {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-weight: 500;
}

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

.phone-dropdown-toggle {
    display: none; /* Hidden on desktop by default unless configured */
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.phone-dropdown-toggle:hover {
    background-color: var(--primary);
    color: white;
}

.phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    display: none;
    z-index: 1000;
    min-width: 200px;
    margin-top: 5px;
}

.phone-dropdown a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.phone-dropdown a:last-child { border-bottom: none; }
.phone-dropdown a:hover { color: var(--primary); }

/* Navigation */
.main-nav {
    background: var(--dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a,
.desktop-catalog-toggle {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-menu > li > a:hover,
.desktop-catalog-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Catalog Button & Brands Block */
.desktop-catalog-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px 0 0 6px;
    white-space: nowrap;
    height: 100%;
    min-width: 250px;
    justify-content: center;
    border: 2px solid var(--primary);
}

.desktop-catalog-toggle:hover {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.desktop-brands {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
}

.brands-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary);
    border-left: none;
    padding: 0;
    border-radius: 0 6px 6px 0;
    height: 100%;
    width: 100%;
    justify-content: space-around;
}

.brand-link {
    padding: 11px 15px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    position: relative;
    border: none;
    margin: 0;
}

.brand-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-1px);
}

.brand-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

/* --- Mobile Header --- */
.mobile-header {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    text-decoration: none;
}

.mobile-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.mobile-menu-btn,
.mobile-catalog-btn,
.mobile-search-btn,
.mobile-icon-btn,
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu-btn:hover,
.mobile-catalog-btn:hover,
.mobile-search-btn:hover,
.mobile-icon-btn:hover,
.btn-icon:hover {
    background: var(--cream);
}

.mobile-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* =========================================
   3. КАТАЛОГ (DESKTOP & MOBILE MODALS)
   ========================================= */

/* Desktop Catalog Modal */
.desktop-catalog-overlay {
    display: none;
    position: fixed;
    top: 120px; 
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.desktop-catalog-overlay.blur-active {
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
}

.desktop-catalog-modal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1002;
    border-top: 2px solid var(--primary);
    max-height: 70vh;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-catalog-modal.active { opacity: 1; }

.catalog-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.catalog-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.catalog-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.catalog-level-container { display: flex; }
.catalog-level {
    min-width: 250px;
    border-right: 1px solid #eee;
    padding-right: 20px;
}
.catalog-level:last-child { border-right: none; }
.catalog-item { padding: 10px 0; }

.catalog-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}
.catalog-link:hover { color: var(--primary); }
.has-children > .catalog-link { font-weight: 500; }

/* Mobile Catalog Modal */
.mobile-catalog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-catalog-modal.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.mobile-catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-catalog-modal.active .mobile-catalog-overlay { opacity: 1; }

.mobile-catalog-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.mobile-catalog-modal.active .mobile-catalog-content { transform: translateX(0); }

.mobile-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.mobile-catalog-header h3 {
    font-weight: 600;
    color: var(--text);
    font-size: 18px;
}

.mobile-catalog-back,
.mobile-catalog-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-catalog-back:hover,
.mobile-catalog-close:hover { background: var(--cream); }

.mobile-catalog-tabs {
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.mobile-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: none;
    color: var(--text-light);
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-tab.active {
    color: var(--primary);
    background: white;
    border-bottom: 2px solid var(--primary);
}

.mobile-catalog-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-tab-content {
    display: none;
    flex: 1;
    overflow: auto;
}

.mobile-tab-content.active {
    display: flex;
    flex-direction: column;
}

#mobileLevelsContainer {
    padding: 10px 0;
    flex: 1;
    margin: 0;
    min-height: 100px;
}

.mobile-level { display: block; padding: 0; }

.mobile-level-title {
    font-weight: 600;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    color: var(--text);
    font-size: 17px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.mobile-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-item:hover { background: var(--cream); }

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    width: 100%;
}

.mobile-link i {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

.mobile-brands-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.mobile-brands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.mobile-brand-item {
    padding: 12px 15px;
    background: var(--light);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-brand-item:hover { background: var(--primary); }
.mobile-brand-item:hover .mobile-link { color: white; }

/* =========================================
   4. КАРТОЧКА ТОВАРА (PRODUCT CARD)
   ========================================= */

.df-products-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-card {
    background: var(--pc-white, #FFFFFF);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--pc-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    contain: layout style;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pc-shadow-md);
    border-color: var(--accent);
}

.product-header { text-align: right; margin-bottom: 6px; min-height: 16px; }
.product-code { font-size: 10px; color: var(--text-light); font-weight: 500; letter-spacing: .3px; }

.header-icons {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 8px;
}

.header-icons .btn-icon,
.header-icons .icon-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    padding: 0; color: var(--dark);
    position: relative;
}

.header-icons .btn-icon:hover,
.header-icons .icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--pc-white, #fff);
}

.promo-badge-product-tpl {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: linear-gradient(135deg,#FF6B6B,#FF4757);
    color: #fff; font-weight: 700; font-size: 10px;
    padding: 3px 9px; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255,71,87,.35);
    text-transform: uppercase; letter-spacing: .5px;
    pointer-events: none;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    aspect-ratio: 1 / 1;
    width: 100%;
    contain: strict;
}

.product-image-container .product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .3s ease, transform .35s ease;
}

.product-image.pc-loaded { opacity: 1; }
.product-image { position: relative; z-index: 1; }
.product-card:hover .product-image-container .product-image { transform: scale(1.04); }

.image-overlay {
    position: absolute; inset: 0;
    background: transparent;
    transition: background .3s;
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}
.product-image-container:hover .image-overlay { background: rgba(0,0,0,.06); }

.quick-view-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(.85);
    opacity: 0;
    background: var(--primary); color: #fff;
    border: none; padding: 10px 18px; border-radius: 20px;
    font-weight: 600; font-size: 13px; cursor: pointer;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 3; white-space: nowrap;
    box-shadow: 0 3px 10px rgba(76,175,80,.4);
}

.product-image-container:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}
.quick-view-btn:hover { background: var(--secondary); }

.product-rating {
    color: #FFC107; font-size: 12px;
    margin: 4px 0 5px; letter-spacing: 1px;
}

.product-title-link {
    text-decoration: none; color: inherit;
    flex-grow: 1; display: flex;
    align-items: flex-start; margin-bottom: 8px;
}

.product-title {
    font-size: 15px; font-weight: 600; line-height: 1.4;
    color: var(--text); margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    min-height: 54px;
    transition: color .2s;
}
.product-title-link:hover .product-title { color: var(--secondary); }

.product-status-section {
    margin-top: auto;
    display: flex; flex-direction: column;
    gap: 6px; min-height: 84px; justify-content: flex-end;
}

.out-of-stock-label {
    color: #E53935; font-size: 12px; font-weight: 600;
    text-align: center; margin: 0; padding: 4px 0;
}

.shoppost-price {
    width: 100%; display: flex;
    align-items: center; justify-content: center;
}

.price-wrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px; width: 100%;
}

.price-current {
    color: var(--text); font-size: 22px;
    font-weight: 700; display: block;
    text-align: center; line-height: 1.2;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light); font-size: 13px; text-align: center;
}
.price-sale { color: #E53935; }

.buy-btn {
    width: 100%; padding: 9px 0;
    background: var(--primary); color: #fff;
    border: none; border-radius: 7px;
    font-weight: 700; font-size: 13px;
    cursor: pointer; line-height: 1;
    transition: background .2s, transform .15s;
}
.buy-btn:hover { background: var(--secondary); transform: translateY(-1px); }

.notify-btn {
    width: 100%; padding: 9px 0;
    background: #fff; color: #E65100;
    border: 1px solid #FFCC80; border-radius: 7px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    line-height: 1.2; text-align: center;
    transition: background .2s, border-color .2s;
}
.notify-btn:hover { background: #f5f5f5; border-color: #FFA726; }
.ms2_form { margin: 0; padding: 0; width: 100%; }

/* Specific Button Styles (Compare/Fav) */
.btn-icon.compare, .btn-icon.favorites {
    background: #fff;
    color: #4CAF50;
}
.btn-icon.compare svg, .btn-icon.favorites svg {
    color: #4CAF50;
    stroke: currentColor;
}
.btn-icon.compare.in-compare, .btn-icon.favorites.in-favorites {
    background: #4CAF50 !important;
    color: #fff !important;
}
.btn-icon.compare.in-compare svg, .btn-icon.favorites.in-favorites svg {
    color: #fff !important;
}
.btn-icon.compare.in-compare:hover { background: #43a047 !important; }
.btn-icon.favorites.in-favorites:hover { background: #43a047 !important; }

.favorites-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #ff6f00; color: white;
    border-radius: 50%; width: 18px; height: 18px;
    font-size: 11px; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* =========================================
   5. ГЛАВНАЯ СТРАНИЦА (HERO, FEATURES, ETC)
   ========================================= */

.hero {
    text-align: center;
    padding: 150px 20px;
    background-image: url('https://images.unsplash.com/photo-1473496169904-658604080985?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(139, 195, 74, 0.7);
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-decoration: none;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.stats {
    background: var(--cream);
    padding: 60px 0;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.stat-item { padding: 20px; }
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-text { font-size: 1.2rem; color: var(--text-light); }

.features {
    padding: 80px 0;
    background: white;
}
.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    position: relative;
    color: var(--dark);
}
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 15px auto;
    border-radius: 2px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-card {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}
.feature-card p { color: var(--text-light); }

.speed {
    padding: 150px 0;
    text-align: center;
    color: white;
    background-image: url('https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.speed::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.speed-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.speed h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.speed p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.speed-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.speed-item {
    background: rgba(76, 175, 80, 0.2);
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid var(--primary);
}

.testimonials {
    padding: 80px 0;
    background: var(--cream);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}
.author-info h4 { color: var(--primary); }
.author-info p { color: var(--text-light); font-size: 0.9rem; }

.cta-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--light), var(--cream));
}
.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}
.cta-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--darker);
    padding: 50px 0 20px;
    color: #f0f0f0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-icon {
    width: 40px; height: 40px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* =========================================
   6. МОДАЛЬНЫЕ ОКНА И МЕНЮ (CROCO)
   ========================================= */

.croco-menu-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99998;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.croco-menu-modal.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.croco-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
    .croco-modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.croco-menu-modal-content {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}
.croco-menu-modal.active .croco-menu-modal-content {
    transform: translateX(0);
}

.croco-close-modal {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 24px; color: var(--text-light);
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.croco-close-modal:hover {
    background: var(--cream);
    color: var(--text);
}

.croco-modal-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.croco-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.croco-language-switcher a {
    text-decoration: none;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}
.croco-language-switcher a.active,
.croco-language-switcher a:hover {
    background: var(--cream);
    color: var(--text);
}
.croco-user-actions a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}
.croco-modal-menu {
    list-style: none;
    padding: 0; margin: 0;
    background: white;
}
.croco-modal-menu li { border-bottom: 1px solid #f5f5f5; }
.croco-modal-menu a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    transition: background 0.2s;
}
.croco-modal-menu a:hover { background: var(--cream); }

.croco-modal-contact {
    padding: 20px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}
.croco-modal-contact p { margin: 8px 0; }
.croco-modal-phones a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
}
.croco-modal-phones a:hover { color: var(--primary); }
.croco-modal-phones i { color: var(--primary); }

/* Universal Stock Modal */
.universal-stock-modal {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    display: none !important;
}
.universal-stock-modal-content {
    position: relative !important;
    width: 500px !important;
    max-width: 90vw !important;
    margin: 100px auto !important;
    padding: 20px !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.universal-stock-close {
    position: absolute !important;
    top: 10px !important; right: 15px !important;
    cursor: pointer !important;
    font-size: 24px !important;
    color: #666 !important;
    transition: color 0.3s !important;
}
.universal-stock-close:hover { color: #333 !important; }
.universal-stock-title {
    margin: 0 0 15px 0 !important;
    color: #333 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
}
.universal-stock-product-info {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin: 15px 0 !important;
    border-left: 4px solid #007bff !important;
}
.universal-stock-product-name {
    display: block !important;
    font-size: 16px !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
    color: #333 !important;
}
.universal-stock-product-status {
    font-size: 14px !important;
    color: #666 !important;
}
.universal-stock-description {
    margin: 0 0 15px 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #333 !important;
}
.universal-stock-email-input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}
.universal-stock-confirm-btn {
    padding: 14px 20px !important;
    background: #008000 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: background 0.3s !important;
}
.universal-stock-confirm-btn:hover { background: #006600 !important; }

/* jGrowl Notifications */
.jGrowl {
    position: fixed !important;
    top: 20px !important; right: 20px !important;
    z-index: 99999 !important;
    width: 300px;
    pointer-events: none;
}
.jGrowl-notification {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    animation: fadeInUp 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards !important;
    opacity: 0;
    transform: translateY(-10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    color: #fff !important;
    line-height: 1.4 !important;
    min-height: auto !important;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.jGrowl-message {
    margin: 0 28px 0 0 !important;
    padding: 0 !important;
    flex: 1;
    word-break: break-word;
}
.jGrowl-close {
    position: absolute !important;
    top: 50% !important; right: 12px !important;
    transform: translateY(-50%) !important;
    width: 20px !important; height: 20px !important;
    font-size: 18px !important; font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important; line-height: 20px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important; opacity: 0.8 !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important; justify-content: center !important;
}
.jGrowl-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.ms2-message-success { background: #2ecc71 !important; }
.ms2-message-error { background: #e74c3c !important; }
.ms2-message-warning { background: #f39c12 !important; }
.jGrowl-closing { animation: fadeOut 0.4s forwards !important; }
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

/* =========================================
   7. SEO, TABLES, BRANDS & MISC
   ========================================= */

/* Benefits Block */
.crocodila-benefits {
    background: #ffffff; 
    padding: 20px;
    border: 2px solid #2c5e1a; 
    border-radius: 12px;
    margin: 25px 0;
    font-family: Arial, sans-serif;
}
.crocodila-benefits h2 {
    color: #000000; 
    margin-bottom: 25px;
    font-size: 26px;
    text-align: center;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.benefit-item {
    background: #f1f1f1; 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.benefit-item strong {
    display: block;
    color: #2c5e1a; 
    font-size: 19px;
    margin-bottom: 10px;
    border-bottom: 2px solid #2c5e1a;
    padding-bottom: 5px;
}
.benefit-text {
    color: #1a1a1a; 
    font-size: 16px;
    line-height: 1.5;
}
.cta-block {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}
.cta-block h2 { 
    color: #ffffff !important;
    margin-top: 0;
    font-size: 28px;
}
.cta-block p { 
    font-size: 19px; 
    line-height: 1.8;
    color: #ffffff !important;
    margin: 10px 0;
}
.highlight-city {
    color: #ffcc00 !important;
    font-weight: bold;
    font-size: 21px;
}
.wish {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 22px;
    color: #ffcc00 !important;
    border-top: 1px dashed #555;
    padding-top: 15px;
}

/* Brands SEO Wrapper */
.brands-seo-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.brand-label-seo {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-left: 3px solid #2c5e1a;
    padding-left: 10px;
}
.brands-seo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brand-link-seo {
    display: inline-block;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #555 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.brand-link-seo:hover {
    background: #2c5e1a;
    border-color: #2c5e1a;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 94, 26, 0.2);
}

/* Category Grid in Text */
.cat-grid-seo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}
.cat-card-seo {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #eee;
    transition: 0.3s;
}
.cat-card-seo:hover {
    background: #fff;
    border-color: #2c5e1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cat-card-seo svg {
    width: 35px;
    height: 35px;
    fill: #2c5e1a;
    margin-right: 12px;
    flex-shrink: 0;
}
.cat-card-seo span {
    color: #333;
    font-weight: bold;
    font-size: 15px;
}

/* ShopPost Table */
.shoppost-table-new, .shoppost-table {
    width: 100%;
    margin: 20px 0;
    font-family: sans-serif;
    color: #333;
    border-collapse: collapse;
}
.shoppost-table {
    background: #FFF8E1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.shoppost-table th {
    background: #4CAF50 !important;
    color: white !important;
    padding: 15px 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border-bottom: 2px solid #388E3C !important;
}
.shoppost-table td {
    padding: 12px !important;
    border-bottom: 1px solid #F1F8E9 !important;
    color: #212121 !important;
    background: white !important;
}
.shoppost-table tr:nth-child(even) td { background: #F1F8E9 !important; }
.shoppost-table tr:hover td { background: #FFF8E1 !important; }

.table-grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    background: #f8f9fa;
    font-weight: bold;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}
.table-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    padding: 12px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

/* Modification Item */
.modification-item {
    display:flex;align-items:center;padding:6px 10px;
    border:1px solid #ddd;border-radius:6px;cursor:pointer;
    font-size:12px;transition:all .2s;background:#fff;
}
.modification-item:hover:not(.active) { background:#f5f5f5;border-color:#4CAF50; }
.modification-item.active { border-color:#4CAF50;background:#f0f7f0;color:#388E3C;font-weight:600; }
.modification-item img { width:40px;height:40px;object-fit:cover;border-radius:4px;margin-right:8px; }

/* Viewed Products Carousel */
.viewed-section {
  padding: 40px 0;
  background: #f8fff8;
}
.viewed-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}
.viewed-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}
.viewed-carousel::-webkit-scrollbar { display: none; }
.viewed-slide {
  width: 250px;
  flex: 0 0 auto;
  height: 480px;
  box-sizing: border-box;
}
.viewed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #4CAF50;
  color: #4CAF50;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.viewed-nav.prev { left: 0; }
.viewed-nav.next { right: 0; }
.viewed-nav:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}
.viewed-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #ccc;
  border-color: #ccc;
  color: #666;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* New Products Section */
.new-products { margin: 40px 0; }
.new-products__header { margin-bottom: 20px; }
.new-products__title { font-size: 28px; font-weight: 600; color: var(--dark); margin: 0; }
.new-products__filters { padding-left: 20px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.new-products__filter-link { font-weight: 600; color: var(--secondary); text-decoration: none; position: relative; padding: 6px 0; }
.new-products__filter-link:hover, .new-products__filter-link.active { color: var(--primary); text-decoration: underline; }
.new-products__grid--grid { display: grid; gap: 20px; }
.new-products__pagination { position: relative; bottom: -20px; display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.new-products__nav-btn { width: 36px; height: 36px; border: 2px solid var(--primary); background: transparent; color: var(--primary); border-radius: 50%; cursor: pointer; }
.new-products__nav-btn:hover { background: var(--primary); color: white; }

/* Parallax Contact Page */
body.page-contacts-parallax::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1505850557988-b858c0aec076?ixlib=rb-4.1.0&auto=format&fit=crop&q=80&w=1172');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

/* =========================================
   8. MEDIA QUERIES (ADAPTIVE)
   ========================================= */

/* Tablet & Mobile General */
@media (max-width: 992px) {
    .nav-menu > li:not(:first-child) { display: none; }
    .menu-toggle { display: block; }
    .catalog-brands-container,
    .desktop-catalog-toggle,
    .desktop-brands { display: none; }
    .catalog-toggle { display: block; }
    .brands-container { flex-wrap: nowrap; overflow-x: visible; }
    
    /* Mobile Buttons for Filters/Sort */
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: stretch;
    }
    .product-sorter-btn, .df-filters-open-btn {
        flex: 1;
        min-width: auto;
        padding: 8px;
        justify-content: center;
        height: 52px;
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        box-sizing: border-box;
    }
    .sort-text-container { display: none; }
    .product-sorter-dropdown { display: none !important; }
}

@media (min-width: 993px) {
    .mobile-catalog-modal { display: none !important; }
    .catalog-toggle { display: none; }
}

/* Mobile Specific */
@media (max-width: 768px) {
    .site-header { display: none; }
    .mobile-header { display: block; }
    
    .phone-numbers { display: none; }
    .phone-dropdown-toggle { display: flex; }
    .search-container { display: none; }
    .mobile-search-btn { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .speed h2, .cta-section h2 { font-size: 2.2rem; }
    .speed p, .cta-section p { font-size: 1.1rem; }
    
    .catalog-level-container { flex-direction: column; }
    .catalog-level { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; padding-right: 0; }
    
    /* Product Card Mobile */
    .df-products-wrapper { gap: 8px !important; }
    .product-card {
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        flex: 0 0 calc(50% - 4px) !important;
        padding: 8px 7px 7px !important;
    }
    .product-title { font-size: 12px !important; min-height: 46px !important; -webkit-line-clamp: 3 !important; }
    .price-current { font-size: 18px !important; }
    .price-old { font-size: 11px !important; }
    .buy-btn, .notify-btn { padding: 7px 0 !important; font-size: 12px !important; }
    .header-icons .btn-icon, .header-icons .icon-btn { width: 26px !important; height: 26px !important; }
    .header-icons svg { width: 12px !important; height: 12px !important; }
    .product-rating { font-size: 10px !important; }
    .product-code { font-size: 9px !important; }
    .quick-view-btn { font-size: 10px !important; padding: 8px 12px !important; }
    .promo-badge-product-tpl { font-size: 9px; padding: 2px 7px; top: 6px; left: 6px; }
    
    /* Table Mobile */
    .table-grid-header { display: none; }
    .table-grid-row {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .table-grid-row div {
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
    }
    .table-grid-row div::before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
        margin-right: 10px;
        min-width: 100px;
    }
    
    /* Modal Mobile */
    .modal-body { flex-direction:column !important; padding:15px !important; overflow-y:auto !important; }
    .modal-content { margin:10px auto !important; max-height:95vh !important; width:95% !important; }
    .modal-left-column { width:100% !important;flex:none !important;border-right:none;border-bottom:1px solid #eee;padding-right:0;padding-bottom:10px;max-height:200px !important; }
    #modal-model-series { flex-direction:column !important;overflow-y:auto !important;overflow-x:hidden !important; }
    .modal-center-column, .modal-right-column { width:100% !important;flex:none !important; }
    .modal-close { width:44px !important;height:44px !important;font-size:30px !important;top:10px !important;right:10px !important; }
    #quick-view-image { height:auto !important; }
    
    .viewed-carousel-wrapper { padding: 0 40px; }
    .viewed-nav { width: 40px; height: 40px; font-size: 16px; }
    .viewed-slide { width: 220px; height: 450px; }
    
    .universal-stock-modal-content {
        width: 95vw !important;
        margin: 50px auto !important;
        padding: 20px 15px !important;
        max-width: 400px !important;
    }
}

@media (max-width: 480px) {
    .product-sorter-btn, .df-filters-open-btn { height: 48px; padding: 6px; font-size: 12px; }
    .viewed-carousel-wrapper { padding: 0 30px; }
    .viewed-nav { width: 35px; height: 35px; font-size: 14px; }
    .viewed-slide { width: 200px; height: 420px; }
    .viewed-title { font-size: 1.5rem; }
    .mobile-catalog-content { max-width: 100%; }
    .croco-menu-modal-content { max-width: 100%; }
}

/* Desktop Specific Grid */
@media (min-width: 1025px) {
    .product-card {
        width: calc((100% - 60px) / 4);
        min-width: 220px;
        max-width: 280px;
        text-align: center;
    }
    .product-image-container img { padding: 10%; }
    .header-icons { justify-content: center; gap: 8px; }
    .header-icons .btn-icon, .header-icons .icon-btn { width: 32px; height: 32px; }
    .price-current { font-size: 24px; }
    
    .new-products__grid--grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .new-products__grid--grid { grid-template-columns: repeat(3, 1fr); }
}

/* Search Modal Adaptive */
@media (max-width: 767px) {
    .sp-search { --sp-search-top: 2vh; }
    .sp-search__modal {
        top: var(--sp-search-top) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 96vw !important;
        max-height: 90vh !important;
    }
    .sp-search__body { padding: 1rem; max-height: 65vh; }
    .sp-search__header { padding: 1rem; flex-direction: row !important; align-items: center !important; gap: 8px !important; }
    .sp-search__input { flex: 1; height: 36px !important; font-size: 15px !important; padding: 0 12px !important; border: 1px solid #ddd !important; border-radius: 6px !important; background: #ffffff !important; color: #212121 !important; }
    .sp-search__controls { display: flex; gap: 6px; align-items: center; }
    .sp-search__clear-btn { height: 36px; padding: 0 10px; font-size: 12px; line-height: 1; border: 1px solid #ddd; border-radius: 6px; background: #ffffff; color: #0d6efd; white-space: nowrap; display: none; }
    .sp-search__clear-btn.show { display: block; }
    .sp-search__close-btn { width: 36px; height: 36px; padding: 0; font-size: 18px; font-weight: bold; color: #666; background: #ffffff; border: 1px solid #ddd; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
    
    .sp-search__product-grid { grid-template-columns: 1fr; gap: 12px; }
    .sp-search__product-card { padding: 15px; gap: 12px; }
    .sp-search__product-image { width: 70px; height: 70px; }
    .sp-search__mobile-only { display: block !important; }
    .sp-search__desktop-only { display: none !important; }
}


/* =========================================
   ИСПРАВЛЕНИЕ ОВЕРЛЕЕВ НА МОБИЛЬНЫХ
   ========================================= */

@media (max-width: 992px) {
    /* 1. Оверлей мобильного каталога */
    .mobile-catalog-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important; /* Темный фон */
        backdrop-filter: blur(4px) !important; /* Размытие */
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99998 !important; /* Под контентом модалки (99999) */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Когда каталог активен */
    .mobile-catalog-modal.active .mobile-catalog-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* 2. Оверлей меню (Croco) */
    .croco-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99997 !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .croco-menu-modal.active .croco-modal-overlay {
        opacity: 1 !important;
    }

    /* 3. Оверлей поиска (если используется отдельный класс) */
    .sp-search-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 1040 !important;
    }
    
    /* Блокировка прокрутки body при открытых окнах */
    body.modal-open,
    body.menu-open,
    body.catalog-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
}
