/* ===== TOP BAR С БЕЛЫМ ФОНОМ И ТЕМНО-СЕРЫМ ТЕКСТОМ ===== */

.top_bar,
.top-bar,
.top-bar-address,
.header-top,
.site-topbar,
.top-header,
.gb_top_bar,
.header-top-bar,
.site-top-bar,
.top_bar.py-3,
.py-3.text-center {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Контейнер и строки внутри top_bar */
.top_bar .container-fluid,
.top_bar .row,
.top_bar .col-lg-4,
.top_bar .col-lg-2,
.top_bar .col-lg-4,
.top_bar .col-md-12,
.top_bar .col-md-4,
.top_bar .col-md-3,
.top_bar .col-md-5,
.top_bar .col-sm-12,
.top_bar .col-sm-4,
.top_bar .col-sm-3,
.top_bar .col-sm-5,
.top_bar .col-6 {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Текст в top-bar */
.top_bar *,
.top-bar *,
.top-bar-address *,
.header-top *,
.site-topbar *,
.top-header *,
.gb_top_bar * {
    color: #333333 !important;
}

/* Ссылки в top-bar */
.top_bar a,
.top-bar a,
.top-bar-address a,
.header-top a,
.site-topbar a,
.top-header a,
.gb_top_bar a {
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.top_bar a:hover,
.top-bar a:hover,
.top-bar-address a:hover,
.header-top a:hover,
.site-topbar a:hover,
.top-header a:hover,
.gb_top_bar a:hover {
    color: #ff9700 !important;
}

/* Адрес в top-bar */
.top-bar,
.top-bar-address,
.header-address,
.site-address,
.address-wrapper,
.gb_top_bar .address {
    float: left !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    color: #333333 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.top-bar-address p,
.header-address p,
.site-address p,
.address-wrapper p,
.gb_top_bar .address p {
    margin: 0 !important;
    padding: 0 !important;
    color: #333333 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Иконки в адресе */
.top-bar-address i,
.header-address i,
.site-address i,
.address-wrapper i,
.gb_top_bar .address i {
    color: #ff9700 !important;
    margin-right: 8px !important;
    width: 16px !important;
    text-align: center !important;
}

/* Контактные данные справа */
.top-bar-contacts {
    float: right !important;
    text-align: right !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.top-bar-contacts a {
    margin-left: 20px !important;
    font-size: 14px !important;
}

.top-bar-contacts i {
    margin-right: 5px !important;
    color: #ff9700 !important;
}

/* Разделители между элементами */
.top-bar .divider {
    color: #cccccc !important;
    margin: 0 10px !important;
}

/* ===== ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ BACKGROUND ===== */

/* Переопределяем все возможные background свойства для футера */
.site-footer,
footer,
#colophon,
.footer-widgets,
.footer-area,
.footer-main,
.bg-dark.footer {
    background: #007b7a !important;
    background-color: #007b7a !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: top left !important;
    background-repeat: repeat !important;
    background-attachment: scroll !important;
}

/* Переопределяем градиенты если они есть */
.site-footer:before,
.site-footer:after,
footer:before,
footer:after,
#colophon:before,
#colophon:after {
    background: none !important;
    display: none !important;
}

/* Переопределяем inline стили */
[style*="background"] .site-footer,
[style*="background"] footer,
[style*="background"] #colophon {
    background: #007b7a !important;
    background-color: #007b7a !important;
}

/* Принудительно для всех дочерних элементов футера */
.site-footer *,
footer *,
#colophon *,
.footer-widgets *,
.footer-area * {
    background-color: transparent !important;
}

/* Особенно для виджетов */
.site-footer .widget,
footer .widget,
#colophon .widget,
.footer-widgets .widget,
.footer-area .widget {
    background: transparent !important;
    background-color: transparent !important;
}

/* Для нижней части футера */
.site-info,
.footer-bottom,
.footer-copyright {
    background: #006664 !important;
    background-color: #006664 !important;
    background-image: none !important;
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЕ CSS ПЕРЕМЕННЫХ ТЕМЫ ===== */
:root {
    --theme-footer-color: #007b7a !important;
    --theme-primary-color: #007b7a !important;
    --slider-bg-color: #007b7a !important;
    --theme-heading-color: #007b7a !important;
    --theme-text-color: #444444 !important;
}

/* Переопределяем CSS переменные футера */
.site-footer,
footer,
#colophon {
    --theme-footer-color: #007b7a !important;
    --footer-bg-color: #007b7a !important;
    --bg-footer: #007b7a !important;
    background-color: var(--theme-footer-color) !important;
    background: var(--theme-footer-color) !important;
    color: #ffffff !important;
}

/* ===== ОСНОВНОЙ ЦВЕТ #007b7a ДЛЯ ШАПКИ ===== */

/* Шапка сайта */
.site-header,
header#masthead,
.navbar,
.sticky-header {
    background: #007b7a !important;
    background-color: #007b7a !important;
    background-image: none !important;
}

/* Основная навигация */
.gb_nav_menu,
.main-navigation,
.primary-navigation,
.navbar-nav,
.navbar-expand-md {
    background: #007b7a !important;
    background-color: #007b7a !important;
}

/* Контейнеры внутри шапки */
.site-header .container,
.site-header .container-fluid,
.header-main,
.header-wrapper {
    background: #007b7a !important;
    background-color: #007b7a !important;
}

/* Пункты меню */
.gb_nav_menu ul li a,
.navbar-nav .nav-link,
.main-navigation a,
.primary-navigation a,
.menu-item a,
.nav-menu li a,
.site-navigation a {
    color: #ffffff !important;
    background-color: transparent !important;
}

.gb_nav_menu ul li a:hover,
.navbar-nav .nav-link:hover,
.main-navigation a:hover,
.primary-navigation a:hover,
.menu-item a:hover,
.nav-menu li a:hover,
.site-navigation a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Активный пункт меню */
.gb_nav_menu ul li.current-menu-item a,
.gb_nav_menu ul li.current_page_item a,
.navbar-nav .nav-item.active .nav-link,
.menu-item.current-menu-item a,
.current_page_item a {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ===== АНИМАЦИЯ ПРИ НАВЕДЕНИИ ===== */

.gb_nav_menu ul li a,
.monza-main-menu .menu-item a {
    transition: all 0.3s ease !important;
    position: relative !important;
}

.gb_nav_menu ul li a:hover,
.monza-main-menu .menu-item a:hover {
    color: #ff9700 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Эффект подчеркивания при наведении */
.gb_nav_menu ul li a:hover:after,
.monza-main-menu .menu-item a:hover:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #ff9700;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Выпадающее меню */
.gb_nav_menu ul ul,
.dropdown-menu,
.navbar-nav .dropdown-menu,
.sub-menu,
.children {
    background: #007b7a !important;
    background-color: #007b7a !important;
    border: none !important;
}

.gb_nav_menu ul ul li a,
.dropdown-item,
.sub-menu li a,
.children li a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #007b7a !important;
    background-color: #007b7a !important;
}

.gb_nav_menu ul ul li a:hover,
.dropdown-item:hover,
.sub-menu li a:hover,
.children li a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* ===== ОСНОВНОЙ ЦВЕТ #007b7a ДЛЯ ФУТЕРА ===== */

/* Весь футер */
.site-footer,
footer#colophon,
.footer-widgets,
.footer-area,
.footer-main,
.bg-dark.footer {
    background: #007b7a !important;
    background-color: #007b7a !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Контейнеры в футере */
.site-footer .container,
.site-footer .container-fluid,
.footer-widgets .container,
.footer-inner {
    background: #007b7a !important;
    background-color: #007b7a !important;
}

/* Виджеты в футере */
.site-footer .widget,
.footer-widgets .widget,
.footer-widget-area .widget {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Заголовки в футере */
.site-footer .widget-title,
.footer-widgets .widget-title,
.footer-widget-area .widget-title {
    color: #ffffff !important;
    border-bottom: 2px solid #ff9700 !important;
}

/* Весь текст в футере */
.site-footer,
.site-footer *:not(a):not(.btn):not(button),
.footer-widgets,
.footer-widgets *:not(a):not(.btn):not(button) {
    color: #ffffff !important;
}

/* Ссылки в футере */
.site-footer a,
.footer-widgets a,
.footer-widget-area a {
    color: #ffffff !important;
    opacity: 0.9;
}

.site-footer a:hover,
.footer-widgets a:hover,
.footer-widget-area a:hover {
    color: #ff9700 !important;
    opacity: 1;
}

/* Нижняя часть футера */
.site-info,
.footer-bottom,
.footer-copyright {
    background: #006664 !important;
    background-color: #006664 !important;
    border-top: 3px solid #ff9700 !important;
    color: #ffffff !important;
}

.site-info *,
.footer-bottom *,
.footer-copyright * {
    color: #ffffff !important;
}

/* ===== ОРАНЖЕВЫЕ АКЦЕНТЫ ===== */

.btn-primary,
.button,
input[type="submit"],
.woocommerce button.button.alt,
.woocommerce a.button.alt,
a.header-cart,
.onsale,
.woocommerce-Price-amount,
.price,
.product-price {
    background-color: #ff9700 !important;
    border-color: #ff9700 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
a.header-cart:hover {
    background-color: #e08600 !important;
    border-color: #e08600 !important;
    color: #ffffff !important;
}

a {
    color: #ff9700 !important;
}

a:hover {
    color: #e08600 !important;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ===== */

.site-header .custom-logo-link img,
header#masthead .custom-logo-link img {
    filter: brightness(0) invert(1) !important;
}

.site-header .search-form input[type="search"],
.site-header .product-search input[type="search"],
header#masthead .search-form input[type="search"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.site-header .search-form input[type="search"]::placeholder,
.site-header .product-search input[type="search"]::placeholder,
header#masthead .search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-header .search-form button,
.site-header .product-search button,
header#masthead .search-form button {
    background-color: #ff9700 !important;
    color: #ffffff !important;
    border: none !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #ff9700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 151, 0, 0.25) !important;
}

.products li:hover,
.card:hover {
    border-color: #ff9700 !important;
    box-shadow: 0 0.5rem 1rem rgba(255, 151, 0, 0.15) !important;
}

.carousel-indicators .active {
    background-color: #ff9700 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #ff9700 !important;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: #ff9700 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #ff9700 !important;
}

/* ===== ПЕРЕМЕЩЕНИЕ МЕНЮ В ОТДЕЛЬНУЮ СТРОКУ ===== */

/* Скрываем текущее меню внутри .menu_header */
.menu_header .gb_nav_menu,
.menu_header #top_gb_menu,
.menu_header .gb_navigation {
    display: none !important;
}

/* Создаем контейнер для вынесенного меню */
.monza-main-menu {
    display: block !important;
    width: 100% !important;
    background: #007b7a !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}

.monza-main-menu .container-fluid {
    padding: 0 15px !important;
}

.monza-main-menu .gb_nav_menu {
    display: block !important;
    width: 100% !important;
}

.monza-main-menu .gb_navigation {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.monza-main-menu #menu-menu-1 {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.monza-main-menu .menu-item {
    margin: 0 15px !important;
    position: relative !important;
}

.monza-main-menu .menu-item a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
}

.monza-main-menu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ff9700 !important;
}

/* Активный пункт меню */
.monza-main-menu .menu-item.current-menu-item a,
.monza-main-menu .menu-item.current_page_item a {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Мобильное меню - скрываем в десктопе */
@media (min-width: 992px) {
    .toggle-menu,
    .gb_toggle,
    #gb_responsive {
        display: none !important;
    }
}

/* Мобильная версия */
@media (max-width: 991px) {
    .monza-main-menu {
        display: none !important;
    }
    
    /* Показываем оригинальное мобильное меню */
    .menu_header .gb_nav_menu,
    .menu_header .gb_navigation {
        display: block !important;
    }
    
    .toggle-menu,
    .gb_toggle {
        display: block !important;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 991px) {
    .side_gb_nav,
    .navbar-collapse,
    .mobile-menu,
    .off-canvas-menu {
        background: #007b7a !important;
        background-color: #007b7a !important;
    }
    
    .gb_nav_menu ul li a,
    .mobile-menu li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .menu-toggle,
    .navbar-toggler,
    .mobile-menu-toggle {
        color: #ffffff !important;
        border-color: #ffffff !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

@media (max-width: 768px) {
    .site-header,
    header#masthead {
        padding: 10px 0 !important;
    }
    
    .custom-logo-link img {
        max-height: 50px;
    }
    
    a.header-cart {
        padding: 10px 20px !important;
        font-size: 14px;
    }
    
    /* Адаптивность top-bar */
    .top-bar-address,
    .top-bar-contacts {
        float: none !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }
    
    .top-bar-contacts a {
        margin: 0 10px !important;
    }
    
    .gb_top_bar .address,
    .top-bar-address {
        text-align: center !important;
        float: none !important;
        width: 100% !important;
    }
    
    /* Адаптивность для top_bar */
    .top_bar .col-lg-4,
    .top_bar .col-lg-2,
    .top_bar .col-md-12,
    .top_bar .col-md-4,
    .top_bar .col-md-3,
    .top_bar .col-md-5,
    .top_bar .col-sm-12,
    .top_bar .col-sm-4,
    .top_bar .col-sm-3,
    .top_bar .col-sm-5,
    .top_bar .col-6 {
        text-align: center !important;
        margin-bottom: 5px !important;
    }
}

/* ===== СТИЛИ ДЛЯ ПОДКАТЕГОРИЙ НА ГЛАВНОЙ ===== */

.homepage-subcategories {
    padding: 60px 0 !important;
    background: #f8f9fa !important;
}

.subcategory-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    height: 100% !important;
    border: none !important;
}

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

.subcategory-image {
    height: 200px !important;
    overflow: hidden !important;
}

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

.subcategory-card:hover .subcategory-image img {
    transform: scale(1.05) !important;
}

.subcategory-content {
    padding: 20px !important;
}

.subcategory-title {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #007b7a !important;
}

.subcategory-title a {
    color: #007b7a !important;
    text-decoration: none !important;
}

.subcategory-title a:hover {
    color: #ff9700 !important;
}

.subcategory-description {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .homepage-subcategories {
        padding: 30px 0 !important;
    }
    
    .subcategory-card {
        margin-bottom: 20px !important;
    }
    
    .subcategory-image {
        height: 150px !important;
    }
}

/* ===== ИСПРАВЛЕНИЕ ВЫПАДАЮЩЕГО МЕНЮ ДЛЯ MONZA MAIN MENU ===== */

.monza-main-menu .gb_navigation {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.monza-main-menu .gb_navigation > li {
    position: relative !important;
    margin: 0 15px !important;
}

.monza-main-menu .gb_navigation > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
}

.monza-main-menu .gb_navigation > li > a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ff9700 !important;
}

/* Выпадающее меню для Monza */
.monza-main-menu .gb_navigation ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #007b7a !important;
    min-width: 250px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border-radius: 0 0 8px 8px !important;
}

.monza-main-menu .gb_navigation li:hover > ul.sub-menu {
    display: block !important;
}

.monza-main-menu .gb_navigation ul.sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.monza-main-menu .gb_navigation ul.sub-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease !important;
}

.monza-main-menu .gb_navigation ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ff9700 !important;
    padding-left: 25px !important;
}

/* Стрелка для Monza меню */
.monza-main-menu .gb_navigation li.menu-item-has-children > a::after {
    content: "▾" !important;
    font-size: 12px !important;
    margin-left: 8px !important;
    display: inline-block !important;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */

@media (max-width: 991px) {
    /* Скрываем горизонтальное меню на мобильных */
    .gb_navigation,
    .monza-main-menu .gb_navigation {
        display: none !important;
    }
    
    /* Показываем мобильное меню */
    .toggle-menu,
    .gb_toggle {
        display: block !important;
    }
}

/* Десктоп версия */
@media (min-width: 992px) {
    .toggle-menu,
    .gb_toggle {
        display: none !important;
    }
    
    .gb_navigation,
    .monza-main-menu .gb_navigation {
        display: flex !important;
    }
}

/* ===== ГАРАНТИЯ ОТОБРАЖЕНИЯ ЛОГОТИПА И КОПИРАЙТА ===== */

/* Гарантируем отображение логотипа */
.site-branding,
.custom-logo-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-logo {
    max-height: 60px !important;
    width: auto !important;
    display: block !important;
}

/* Копирайт в футере */
.site-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 15px 0 !important;
    text-align: center !important;
    background: #006664 !important;
}

.site-info p {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Адрес в top-bar - белый фон и темный текст */
.top-bar-address {
    background: #ffffff !important;
    padding: 5px 15px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    display: inline-block !important;
}

.top-bar-address p {
    color: #333333 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.top-bar-address i {
    color: #007b7a !important;
    margin-right: 8px !important;
}
/* ===== СТИЛИ ДЛЯ СТРАНИЦ КАТЕГОРИЙ WOOCOMMERCE ===== */

/* По умолчанию скрываем товары на страницах с категориями */
.shop-page-with-categories .woocommerce ul.products,
.category-with-subcategories .woocommerce ul.products {
    display: none !important;
}

/* Показываем товары только в категориях без подкатегорий */
.category-without-subcategories .woocommerce ul.products {
    display: grid !important;
}

/* Скрываем сортировку и счетчик на страницах с категориями */
.shop-page-with-categories .woocommerce-ordering,
.shop-page-with-categories .woocommerce-result-count,
.category-with-subcategories .woocommerce-ordering,
.category-with-subcategories .woocommerce-result-count {
    display: none !important;
}

/* Показываем сортировку и счетчик в категориях без подкатегорий */
.category-without-subcategories .woocommerce-ordering,
.category-without-subcategories .woocommerce-result-count {
    display: block !important;
}

/* Стили для категорий на главной странице магазина */
.shop-homepage-categories {
    padding: 60px 0;
    background: #f8f9fa;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #007b7a;
}

.category-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

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

.category-image.no-image {
    background: linear-gradient(135deg, #007b7a, #009a98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image.no-image .image-placeholder {
    color: white;
    text-align: center;
}

.category-image.no-image .image-placeholder i {
    font-size: 48px;
}

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

.category-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #007b7a;
    min-height: 46px;
    display: flex;
    align-items: flex-start;
}

.category-title a {
    color: #007b7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-title a:hover {
    color: #ff9700;
}

.category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.category-count {
    margin-top: auto;
}

.category-count .count {
    background: #f8f9fa;
    color: #007b7a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Стили для подкатегорий на страницах категорий */
.category-subcategories-section {
    padding: 40px 0;
    background: #f8f9fa;
    margin: 30px 0;
}

.subcategories-title {
    font-size: 28px;
    font-weight: 700;
    color: #007b7a;
    margin-bottom: 30px !important;
    text-align: center;
}

.category-subcategory-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.category-subcategory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #007b7a;
}

.category-subcategory-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.category-subcategory-card:hover .category-subcategory-image img {
    transform: scale(1.1);
}

.category-subcategory-image.no-image {
    background: linear-gradient(135deg, #007b7a, #009a98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-subcategory-image.no-image .image-placeholder {
    color: white;
    text-align: center;
}

.category-subcategory-image.no-image .image-placeholder i {
    font-size: 48px;
}

.category-subcategory-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-subcategory-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #007b7a;
    min-height: 46px;
    display: flex;
    align-items: flex-start;
}

.category-subcategory-title a {
    color: #007b7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-subcategory-title a:hover {
    color: #ff9700;
}

.category-subcategory-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.category-subcategory-count {
    margin-top: auto;
}

.category-subcategory-count .count {
    background: #f8f9fa;
    color: #007b7a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .shop-homepage-categories {
        padding: 30px 0;
    }
    
    .category-subcategories-section {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .subcategories-title {
        font-size: 24px;
        margin-bottom: 20px !important;
    }
    
    .category-image,
    .category-subcategory-image {
        height: 150px;
    }
}
/* ===== 4-КОЛОНОЧНАЯ СЕТКА ДЛЯ ВСЕХ СТРАНИЦ WOOCOMMERCE ===== */

/* Основная сетка товаров - 4 колонки */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Категории и подкатегории - также 4 колонки */
.shop-homepage-categories .row,
.category-subcategories-section .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.shop-homepage-categories .col-xl-3,
.shop-homepage-categories .col-lg-3,
.shop-homepage-categories .col-md-6,
.shop-homepage-categories .col-sm-6,
.category-subcategories-section .col-xl-3,
.category-subcategories-section .col-lg-4,
.category-subcategories-section .col-md-6,
.category-subcategories-section .col-sm-6 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* АДАПТИВНОСТЬ */

/* Планшеты (3 колонки) */
@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    
    .shop-homepage-categories .row,
    .category-subcategories-section .row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* Мобильные (ландшафт) - 2 колонки */
@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .shop-homepage-categories .row,
    .category-subcategories-section .row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Мобильные (портрет) - 1 колонка */
@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .shop-homepage-categories .row,
    .category-subcategories-section .row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Большие экраны - 4 колонки */
@media (min-width: 1200px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px !important;
    }
    
    .shop-homepage-categories .row,
    .category-subcategories-section .row {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px !important;
    }
}

/* Очень большие экраны - 4 колонки */
@media (min-width: 1400px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
    
    .shop-homepage-categories .row,
    .category-subcategories-section .row {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
}

/* Улучшаем внешний вид карточек товаров */
.woocommerce ul.products li.product {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    border: 1px solid #e9ecef !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    border-color: #007b7a !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.05) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 15px 15px 5px 15px !important;
    color: #333 !important;
    line-height: 1.3 !important;
    min-height: 42px !important;
}

.woocommerce ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #007b7a !important;
    margin: 5px 15px !important;
}

.woocommerce ul.products li.product .star-rating {
    margin: 5px 15px !important;
}

.woocommerce ul.products li.product .button {
    background: #ff9700 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 15px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    margin: 15px !important;
    width: calc(100% - 30px) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #e08600 !important;
    transform: translateY(-2px) !important;
}