/**
 * Современные стили для WooCommerce каталога
 * ИСПРАВЛЕНО: сайдбар слева, фильтры видны
 * VERSION: 1.0.5 - Современный редизайн header и изменение порядка меню
 */

/* ============================================
   КРИТИЧНО: УБИРАЕМ ВСЕ ОГРАНИЧЕНИЯ ШИРИНЫ ДЛЯ СТРАНИЦЫ МАГАЗИНА
   ============================================ */
body.woocommerce-shop #tc-page-wrap,
body.woocommerce-page #tc-page-wrap,
body.woocommerce-shop #tc-page-wrap #main-wrapper,
body.woocommerce-page #tc-page-wrap #main-wrapper,
body.woocommerce-shop #tc-page-wrap #main-wrapper.container,
body.woocommerce-page #tc-page-wrap #main-wrapper.container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-shop #main-wrapper,
body.woocommerce-page #main-wrapper,
body.woocommerce-shop #main-wrapper.container,
body.woocommerce-page #main-wrapper.container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-shop #main-content,
body.woocommerce-page #main-content,
body.woocommerce-shop #main-content.section,
body.woocommerce-page #main-content.section {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-shop #tc-page-wrap #main-wrapper .container .row.column-content-wrapper,
body.woocommerce-page #tc-page-wrap #main-wrapper .container .row.column-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* На больших экранах также убираем все ограничения */
@media (min-width: 1920px) {
    body.woocommerce-shop #tc-page-wrap,
    body.woocommerce-page #tc-page-wrap,
    body.woocommerce-shop #main-wrapper,
    body.woocommerce-page #main-wrapper,
    body.woocommerce-shop #main-content,
    body.woocommerce-page #main-content {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (min-width: 2560px) {
    body.woocommerce-shop #tc-page-wrap,
    body.woocommerce-page #tc-page-wrap,
    body.woocommerce-shop #main-wrapper,
    body.woocommerce-page #main-wrapper,
    body.woocommerce-shop #main-content,
    body.woocommerce-page #main-content {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================
   ИСПРАВЛЕНИЕ СТРУКТУРЫ - УБИРАЕМ КОНФЛИКТЫ
   ============================================ */

/* ============================================
   СОВРЕМЕННЫЙ ДИЗАЙН ПАНЕЛИ ФИЛЬТРОВ
   ============================================ */

/* Улучшенный дизайн сайдбара фильтров */
aside#secondary,
aside#secondary.woocommerce-sidebar,
#secondary.widget-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    z-index: 10 !important;
    margin-top: 0 !important;
}

/* Исправление позиции панели фильтров при применении фильтров */
.woocommerce-shop-wrapper aside#secondary,
.woocommerce-shop-wrapper aside#secondary.woocommerce-sidebar,
.woocommerce-shop-wrapper #secondary.widget-area {
    position: sticky !important;
    /* top будет установлен через JavaScript для выравнивания с ul.products.columns-4 */
    margin-top: 0 !important;
    align-self: flex-start !important;
}

/* Улучшенный дизайн виджетов в сайдбаре */
aside#secondary .widget,
aside#secondary .widget-woof,
.woocommerce-sidebar .widget,
.woocommerce-sidebar .widget-woof {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease !important;
}

aside#secondary .widget-woof,
.woocommerce-sidebar .widget-woof,
.widget.widget-woof,
aside#woof_widget-2 {
    padding-bottom: 20px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

aside#secondary .widget:hover,
aside#secondary .widget-woof:hover,
.woocommerce-sidebar .widget:hover,
.woocommerce-sidebar .widget-woof:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}
   
/* Скрываем пустой левый сайдбар темы на странице магазина */
.woocommerce-shop .span3.left.tc-sidebar,
.woocommerce-page .span3.left.tc-sidebar {
    display: none !important;
}

/* Скрываем левый сайдбар на странице категории "статьи" и странице "О ПВХ" */
.category-статьи .span3.left.tc-sidebar,
.category-статьи .left.tc-sidebar,
.category-статьи .tc-sidebar.left,
.category-статьи #left_sidebar,
.category-статьи .widget-area.left,
.category-статьи aside.left,
.category-статьи .tc-sidebar,
.category-статьи .span3.left,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .span3.left.tc-sidebar,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .left.tc-sidebar,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .tc-sidebar.left,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен #left_sidebar,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .widget-area.left,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен aside.left,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .tc-sidebar,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .span3.left,
.postid-266 .span3.left.tc-sidebar,
.postid-266 .left.tc-sidebar,
.postid-266 .tc-sidebar.left,
.postid-266 #left_sidebar,
.postid-266 .widget-area.left,
.postid-266 aside.left,
.postid-266 .tc-sidebar,
.postid-266 .span3.left,
.page-id-266 .span3.left.tc-sidebar,
.page-id-266 .left.tc-sidebar,
.page-id-266 .tc-sidebar.left,
.page-id-266 #left_sidebar,
.page-id-266 .widget-area.left,
.page-id-266 aside.left,
.page-id-266 .tc-sidebar,
.page-id-266 .span3.left,
body[class*="page-id-266"] .span3.left.tc-sidebar,
body[class*="page-id-266"] .left.tc-sidebar,
body[class*="page-id-266"] .tc-sidebar.left,
body[class*="page-id-266"] #left_sidebar,
body[class*="page-id-266"] .widget-area.left,
body[class*="page-id-266"] aside.left,
body[class*="page-id-266"] .tc-sidebar,
body[class*="page-id-266"] .span3.left,
body[class*="postid-266"] .span3.left.tc-sidebar,
body[class*="postid-266"] .left.tc-sidebar,
body[class*="postid-266"] .tc-sidebar.left,
body[class*="postid-266"] #left_sidebar,
body[class*="postid-266"] .widget-area.left,
body[class*="postid-266"] aside.left,
body[class*="postid-266"] .tc-sidebar,
body[class*="postid-266"] .span3.left,
body[class*="page-id-266"] .span3.left,
body[class*="postid-266"] aside,
body[class*="page-id-266"] aside,
body[class*="postid-266"] .tc-sidebar,
body[class*="page-id-266"] .tc-sidebar,
body[class*="postid-266"] #secondary,
body[class*="page-id-266"] #secondary,
body[class*="postid-266"] .widget-area,
body[class*="page-id-266"] .widget-area,
/* Универсальное правило для страницы 266 - скрываем все левые сайдбары */
body[class*="266"] .article-container aside.left,
body[class*="266"] .article-container .span3.left,
body[class*="266"] .article-container .tc-sidebar.left,
body[class*="266"] #main aside.left,
body[class*="266"] #main .span3.left,
body[class*="266"] .content-area aside.left,
body[class*="266"] .content-area .span3.left,
.category-15 .span3.left.tc-sidebar,
.category-15 .left.tc-sidebar,
.category-15 .tc-sidebar.left,
.category-15 #left_sidebar,
.category-15 .widget-area.left,
.category-15 aside.left,
.category-15 .tc-sidebar,
.category-15 .span3.left,
.postid-269 .span3.left.tc-sidebar,
.postid-269 .left.tc-sidebar,
.postid-269 .tc-sidebar.left,
.postid-269 #left_sidebar,
.postid-269 #left,
.postid-269 .widget-area.left,
.postid-269 aside.left,
.postid-269 .tc-sidebar,
.postid-269 .span3.left,
.page-id-269 .span3.left.tc-sidebar,
.page-id-269 .left.tc-sidebar,
.page-id-269 .tc-sidebar.left,
.page-id-269 #left_sidebar,
.page-id-269 #left,
.page-id-269 .widget-area.left,
.page-id-269 aside.left,
.page-id-269 .tc-sidebar,
.page-id-269 .span3.left,
body[class*="postid-269"] .span3.left.tc-sidebar,
body[class*="postid-269"] .left.tc-sidebar,
body[class*="postid-269"] .tc-sidebar.left,
body[class*="postid-269"] #left_sidebar,
body[class*="postid-269"] #left,
body[class*="postid-269"] .widget-area.left,
body[class*="postid-269"] aside.left,
body[class*="postid-269"] .tc-sidebar,
body[class*="postid-269"] .span3.left,
body[class*="page-id-269"] .span3.left.tc-sidebar,
body[class*="page-id-269"] .left.tc-sidebar,
body[class*="page-id-269"] .tc-sidebar.left,
body[class*="page-id-269"] #left_sidebar,
body[class*="page-id-269"] #left,
body[class*="page-id-269"] .widget-area.left,
body[class*="page-id-269"] aside.left,
body[class*="page-id-269"] .tc-sidebar,
body[class*="page-id-269"] .span3.left,
body[class*="269"] .article-container aside.left,
body[class*="269"] .article-container .span3.left,
body[class*="269"] .article-container .tc-sidebar.left,
body[class*="269"] #main aside.left,
body[class*="269"] #main .span3.left,
body[class*="269"] .content-area aside.left,
body[class*="269"] .content-area .span3.left,
/* Дополнительные правила для страницы 269 */
body.postid-269 .span3.left.tc-sidebar,
body.postid-269 #left,
body.postid-269 .widget-area#left,
body.tc-l-sidebar.postid-269 .span3.left.tc-sidebar,
body.tc-l-sidebar.postid-269 #left {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Убираем отступы контента, если сайдбар скрыт */
.category-статьи .span9,
.category-статьи #content.span9,
.category-статьи .article-container,
.category-статьи .row .span9,
.category-15 .span9,
.category-15 #content.span9,
.category-15 .article-container,
.category-15 .row .span9,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .span9,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен #content.span9,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .article-container,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .row .span9,
.postid-266 .span9,
.postid-266 #content.span9,
.postid-266 .article-container,
.page-id-266 .span9,
.page-id-266 #content.span9,
.page-id-266 .article-container,
body[class*="page-id-266"] .span9,
body[class*="page-id-266"] #content.span9,
body[class*="page-id-266"] .article-container,
body[class*="postid-266"] .span9,
body[class*="postid-266"] #content.span9,
body[class*="postid-266"] .article-container,
.postid-266 .row .span9,
.postid-269 .span9,
.postid-269 #content.span9,
.postid-269 .article-container,
.postid-269 .row .span9,
.page-id-269 .span9,
.page-id-269 #content.span9,
.page-id-269 .article-container,
.page-id-269 .row .span9,
body[class*="postid-269"] .span9,
body[class*="postid-269"] #content.span9,
body[class*="postid-269"] .article-container,
body[class*="postid-269"] .row .span9,
body[class*="page-id-269"] .span9,
body[class*="page-id-269"] #content.span9,
body[class*="page-id-269"] .article-container,
body[class*="page-id-269"] .row .span9 {
    width: 100% !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* Исправляем верхнее меню - не трогаем header и навигацию */
.category-статьи header,
.category-статьи header .row,
.category-статьи header .container,
.category-статьи .navbar,
.category-статьи .nav,
.category-15 header,
.category-15 header .row,
.category-15 header .container,
.category-15 .navbar,
.category-15 .nav,
.postid-266 header,
.postid-266 header .row,
.postid-266 header .container,
.postid-266 .navbar,
.postid-266 .nav,
.page-id-266 header,
.page-id-266 header .row,
.page-id-266 header .container,
.page-id-266 .navbar,
.page-id-266 .nav,
body[class*="page-id-266"] header,
body[class*="page-id-266"] header .row,
body[class*="page-id-266"] header .container,
body[class*="page-id-266"] .navbar,
body[class*="page-id-266"] .nav,
body[class*="postid-266"] header,
body[class*="postid-266"] header .row,
body[class*="postid-266"] header .container,
body[class*="postid-266"] .navbar,
body[class*="postid-266"] .nav,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен header,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен header .row,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен header .container,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .navbar,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .nav {
    width: 100% !important;
    margin-left: 0 !important;
    position: relative !important;
}

/* Убираем отступы только у контента, не у header */
.category-статьи .article-container .row .span9,
.category-15 .article-container .row .span9,
.postid-266 .article-container .row .span9,
.page-slug-о-пвх-простые-правила-по-уходу-и-хранен .article-container .row .span9,
.postid-269 .article-container .row .span9,
.page-id-269 .article-container .row .span9,
body[class*="postid-269"] .article-container .row .span9,
body[class*="page-id-269"] .article-container .row .span9 {
    width: 100% !important;
    margin-left: 0 !important;
}

/* Контент товаров на всю ширину (т.к. сайдбар внутри) */
.woocommerce-shop #content.span9,
.woocommerce-page #content.span9 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* На больших экранах убираем все ограничения */
@media (min-width: 1920px) {
    .woocommerce-shop #content.span9,
    .woocommerce-page #content.span9 {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (min-width: 2560px) {
    .woocommerce-shop #content.span9,
    .woocommerce-page #content.span9 {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Контейнер для сетки товаров */
.woocommerce-products-wrapper,
.woocommerce-shop-wrapper,
.woocommerce .woocommerce-products-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-top: 20px !important;
}

/* Отступ между hero-section и контентом товаров */
.woocommerce-shop .woocommerce-shop-wrapper,
.woocommerce-page .woocommerce-shop-wrapper {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

/* Гарантируем отступ под hero-section даже при активных фильтрах */
.hero-section + #main-content .woocommerce-shop-wrapper {
    margin-top: 20px !important;
}

/* Дополнительный отступ под дисклеймер, чтобы сайдбар не прилипал */
.aquapro-disclaimer + #main-content .woocommerce-shop-wrapper {
    margin-top: 40px !important;
}

.aquapro-disclaimer + #main-content aside#secondary {
    padding-top: 20px !important;
}

/* Дисклеймер под баннером */
.aquapro-disclaimer {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 25%, #5a6268 50%, #4b5563 75%, #6b7280 100%) !important;
    background-size: 200% 200% !important;
    position: relative !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-shadow: 
        -0.5px -0.5px 1px rgba(0, 0, 0, 0.6),
        0.5px -0.5px 1px rgba(0, 0, 0, 0.6),
        -0.5px 0.5px 1px rgba(0, 0, 0, 0.6),
        0.5px 0.5px 1px rgba(0, 0, 0, 0.6),
        0 0 2px rgba(0, 0, 0, 0.5),
        0 1px 1px rgba(0, 0, 0, 0.3) !important;
}

.aquapro-disclaimer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 0, 0, 0.08) 50%, transparent 70%),
        linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.05) 40%, transparent 60%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.aquapro-disclaimer .container {
    padding: 8px 0 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

/* На больших экранах увеличиваем отступ */
@media (min-width: 1920px) {
    .woocommerce-products-wrapper,
    .woocommerce-shop-wrapper,
    .woocommerce .woocommerce-products-wrapper,
    .woocommerce-shop .woocommerce-shop-wrapper,
    .woocommerce-page .woocommerce-shop-wrapper {
        margin-top: 30px !important;
    }
}

@media (min-width: 2560px) {
    .woocommerce-products-wrapper,
    .woocommerce-shop-wrapper,
    .woocommerce .woocommerce-products-wrapper,
    .woocommerce-shop .woocommerce-shop-wrapper,
    .woocommerce-page .woocommerce-shop-wrapper {
        margin-top: 40px !important;
    }
}

/* Убеждаемся, что контейнер продуктов использует всю доступную ширину */
.woocommerce-shop-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
}

.woocommerce-products-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

/* На больших экранах убираем все ограничения ширины */
@media (min-width: 1920px) {
    .woocommerce-shop-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .woocommerce-products-wrapper {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (min-width: 2560px) {
    .woocommerce-shop-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .woocommerce-products-wrapper {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* Родительский контейнер для сетки - КРИТИЧНО убираем ограничения */
.woocommerce-shop .row.column-content-wrapper,
.woocommerce-page .row.column-content-wrapper,
.woocommerce .row.column-content-wrapper,
.woocommerce-shop #tc-page-wrap #main-wrapper .container .row.column-content-wrapper,
.woocommerce-page #tc-page-wrap #main-wrapper .container .row.column-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* На больших экранах убираем все ограничения */
@media (min-width: 1920px) {
    .woocommerce-shop .row.column-content-wrapper,
    .woocommerce-page .row.column-content-wrapper,
    .woocommerce .row.column-content-wrapper,
    .woocommerce-shop #tc-page-wrap #main-wrapper .container .row.column-content-wrapper,
    .woocommerce-page #tc-page-wrap #main-wrapper .container .row.column-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 2560px) {
    .woocommerce-shop .row.column-content-wrapper,
    .woocommerce-page .row.column-content-wrapper,
    .woocommerce .row.column-content-wrapper,
    .woocommerce-shop #tc-page-wrap #main-wrapper .container .row.column-content-wrapper,
    .woocommerce-page #tc-page-wrap #main-wrapper .container .row.column-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* КРИТИЧНО: Убираем все ограничения ширины для страницы магазина */
.woocommerce-shop #main-wrapper,
.woocommerce-page #main-wrapper,
.woocommerce-shop #main-wrapper.container,
.woocommerce-page #main-wrapper.container,
.woocommerce-shop #tc-page-wrap #main-wrapper,
.woocommerce-page #tc-page-wrap #main-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce-shop #main-content,
.woocommerce-page #main-content,
.woocommerce-shop #main-content.section,
.woocommerce-page #main-content.section {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Контейнеры верхнего уровня */
#main-wrapper .container,
.woocommerce-shop-wrapper .container,
.woocommerce-page .container,
.woocommerce-shop #main-wrapper .container,
.woocommerce-page #main-wrapper .container,
.woocommerce-shop #main-content .container,
.woocommerce-page #main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* На больших экранах убираем все ограничения и увеличиваем padding */
@media (min-width: 1920px) {
    .woocommerce-shop #main-wrapper,
    .woocommerce-page #main-wrapper,
    .woocommerce-shop #main-wrapper.container,
    .woocommerce-page #main-wrapper.container,
    .woocommerce-shop #main-content,
    .woocommerce-page #main-content {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #main-wrapper .container,
    .woocommerce-shop-wrapper .container,
    .woocommerce-page .container,
    .woocommerce-shop #main-wrapper .container,
    .woocommerce-page #main-wrapper .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 2560px) {
    .woocommerce-shop #main-wrapper,
    .woocommerce-page #main-wrapper,
    .woocommerce-shop #main-wrapper.container,
    .woocommerce-page #main-wrapper.container,
    .woocommerce-shop #main-content,
    .woocommerce-page #main-content {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #main-wrapper .container,
    .woocommerce-shop-wrapper .container,
    .woocommerce-page .container,
    .woocommerce-shop #main-wrapper .container,
    .woocommerce-page #main-wrapper .container {
        padding-left: 40px !important;
        padding-right: 40px !important;
        max-width: 100% !important;
    }
}

/* ============================================
   ОСНОВНАЯ ОБЕРТКА СТРАНИЦЫ
   ============================================ */
.czr-shop-page-wrapper {
    padding: 20px 0 !important;
    min-height: 60vh !important;
    clear: both !important;
    width: 100% !important;
}

.czr-shop-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* На больших экранах увеличиваем максимальную ширину */
@media (min-width: 1920px) {
    .czr-shop-container {
        max-width: 100% !important;
        padding: 0 30px !important;
    }
}

@media (min-width: 2560px) {
    .czr-shop-container {
        max-width: 100% !important;
        padding: 0 40px !important;
    }
}

.czr-shop-row {
    margin: 0 -15px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    width: calc(100% + 30px) !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
}

/* ============================================
   ЛЕВЫЙ САЙДБАР С ФИЛЬТРАМИ - ВСЕГДА СЛЕВА! (УЖЕ!)
   ============================================ */
.czr-shop-sidebar {
    padding: 0 15px !important;
    margin-bottom: 30px !important;
    flex: 0 0 260px !important;
    max-width: 260px !important;
    order: 1 !important;
}

.czr-sidebar-inner {
    position: sticky !important;
    top: 20px !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Улучшаем общий вид всех виджетов в сайдбаре */
.czr-sidebar-inner > * {
    box-sizing: border-box !important;
}

.czr-sidebar-inner .widget {
    margin-bottom: 12px !important;
}

.czr-sidebar-inner .widget:last-child {
    margin-bottom: 0 !important;
}

.czr-sidebar-inner::-webkit-scrollbar {
    width: 8px !important;
}

.czr-sidebar-inner::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}

.czr-sidebar-inner::-webkit-scrollbar-thumb {
    background: #ff0000 !important;
    border-radius: 10px !important;
}

@media (max-width: 991px) {
    .czr-shop-row {
        flex-wrap: wrap !important;
    }
    
    .czr-shop-sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        order: 1 !important;
    }
    
    .czr-shop-content {
        order: 2 !important;
    }
    
    .czr-sidebar-inner {
        position: static !important;
        max-height: none !important;
    }
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ С ТОВАРАМИ - ВСЕГДА СПРАВА!
   ============================================ */
.czr-shop-content {
    padding: 0 15px !important;
    flex: 1 !important;
    order: 2 !important;
    min-width: 0 !important;
}

/* ============================================
   ИСПРАВЛЕНИЕ ФИЛЬТРОВ WOOF - УБИРАЕМ СКРЫТЫЕ КНОПКИ!
   ============================================ */

/* КРИТИЧНО: убираем max-height для секций с фильтрами */
.woof_section_scrolled,
.woof_block_html_items.woof_section_scrolled {
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
    height: auto !important;
}

.czr-sidebar-inner .woof {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.czr-sidebar-inner .woof_container {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Убираем отступы в зоне перерисовки WOOF - более мягкий подход */
.woof_redraw_zone {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Переопределяем отступы контейнеров WOOF - КОМПАКТНЫЕ */
.woof_container {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}

/* Уменьшаем отступы между секциями фильтров - КОМПАКТНЫЕ */
.czr-sidebar-inner .woof_container {
    margin-bottom: 4px !important;
}

/* Убираем лишние отступы у внутренних контейнеров WOOF */
.czr-sidebar-inner .woof_container_inner,
.woof_container_inner {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Контролируем отступы между контейнерами WOOF - КОМПАКТНЫЕ */
.woof_redraw_zone .woof_container {
    margin-bottom: 4px !important;
}

.woof_redraw_zone .woof_container:last-child {
    margin-bottom: 8px !important;
}

/* Убираем отступы у списков фильтров */
.woof_list,
.woof_list_label {
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем отступы у элементов списка */
.woof_list li,
.woof_list_label li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем отступы у заголовков внутри контейнеров - КОМПАКТНЫЕ */
.woof_container_inner h4,
.woof_container_inner h3,
.woof_container_inner h2,
.woof_container_inner .woof_title,
.woof_container_inner .woof_container_title {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
}

/* Переопределяем стандартные стили WOOF плагина - КОМПАКТНЫЕ */
.czr-sidebar-inner .woof_container {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}

/* Убираем отступы у всех дочерних элементов WOOF контейнеров */
.czr-sidebar-inner div[class*="woof_container"] > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Уменьшаем отступы между контейнерами фильтров - КОМПАКТНЫЕ */
.czr-sidebar-inner .woof_redraw_zone .woof_container {
    margin-bottom: 6px !important;
}

/* Улучшенные заголовки фильтров */
.czr-sidebar-inner .woof_container h4,
.czr-sidebar-inner .woof_container h3,
.czr-sidebar-inner .woof_container h2,
.czr-sidebar-inner .woof_container .woof_title,
.czr-sidebar-inner .woof_container .woof_container_title,
aside#secondary .woof_container h4,
aside#secondary .woof_container h3,
aside#secondary .woof_container h2,
.woof_redraw_zone .woof_container h4,
.woof_redraw_zone .woof_container h3,
.woof_redraw_zone .woof_container h2,
.woof_redraw_zone .woof_container .woof_title,
.woof_redraw_zone .woof_container .woof_container_title {
    margin: 0 0 12px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #EE4D2D !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    position: relative !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

aside#secondary .widget-title,
.woocommerce-sidebar .widget-title,
.widget_product_categories .widget-title {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #EE4D2D !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    position: relative !important;
}

.czr-sidebar-inner .woof_container h4::after,
.czr-sidebar-inner .woof_container h3::after,
.czr-sidebar-inner .woof_container h2::after,
aside#secondary .widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: #EE4D2D !important;
}

/* Уменьшаем отступы заголовков в зоне перерисовки WOOF - КОМПАКТНЫЕ */
.woof_redraw_zone .woof_container h4,
.woof_redraw_zone .woof_container h3,
.woof_redraw_zone .woof_container h2,
.woof_redraw_zone .woof_container .woof_title,
.woof_redraw_zone .woof_container .woof_container_title {
    margin: 0 0 3px 0 !important;
    padding-bottom: 3px !important;
}

.czr-sidebar-inner .woof_list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.czr-sidebar-inner .woof_list li {
    margin-bottom: 2px !important;
}

/* ============================================
   ФИЛЬТРЫ WOOF - ЧЕКБОКСЫ СО СПИСКОМ (как было!)
   ============================================ */

/* Вертикальный список фильтров */
.czr-sidebar-inner .woof_list_label,
.woof_list_label,
aside#secondary .woof_list_label {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.czr-sidebar-inner .woof_list_label li,
.woof_list_label li,
aside#secondary .woof_list_label li {
    display: block !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

/* Элементы фильтра - как чекбоксы */
.czr-sidebar-inner .woof_list_label .woof_label_term,
.woof_list_label .woof_label_term,
aside#secondary .woof_list_label .woof_label_term {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-align: left !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    transition: background 0.2s ease !important;
    user-select: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Чекбокс-квадратик перед текстом */
.czr-sidebar-inner .woof_list_label .woof_label_term::before,
.woof_list_label .woof_label_term::before,
aside#secondary .woof_list_label .woof_label_term::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2px solid #0066cc !important;
    border-radius: 3px !important;
    margin-right: 10px !important;
    background: #fff !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.czr-sidebar-inner .woof_list_label .woof_label_term:hover,
.woof_list_label .woof_label_term:hover,
aside#secondary .woof_list_label .woof_label_term:hover {
    background: #e8f4fc !important;
}

/* ВЫБРАННЫЕ ЧЕКБОКСЫ - галочка */
.czr-sidebar-inner .woof_list_label input[type="checkbox"]:checked + .woof_label_term,
.czr-sidebar-inner .woof_list_label input[type="radio"]:checked + .woof_label_term,
.czr-sidebar-inner .woof_list_label .woof_label_term.checked,
.czr-sidebar-inner .woof_list_label .woof_label_term.selected,
.czr-sidebar-inner .woof_list_label li.checked .woof_label_term,
.czr-sidebar-inner .woof_list_label li.selected .woof_label_term,
.woof_list_label input[type="checkbox"]:checked + .woof_label_term,
.woof_list_label .woof_label_term.checked,
.woof_list_label li.checked .woof_label_term {
    background: #e8f4fc !important;
    color: #0066cc !important;
    font-weight: 500 !important;
}

.czr-sidebar-inner .woof_list_label input[type="checkbox"]:checked + .woof_label_term::before,
.czr-sidebar-inner .woof_list_label .woof_label_term.checked::before,
.czr-sidebar-inner .woof_list_label li.checked .woof_label_term::before,
.woof_list_label input[type="checkbox"]:checked + .woof_label_term::before,
.woof_list_label .woof_label_term.checked::before,
.woof_list_label li.checked .woof_label_term::before {
    background: #0066cc !important;
    border-color: #0066cc !important;
    content: "✓" !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Скрываем стандартные input checkbox */
.czr-sidebar-inner .woof_list_label input[type="checkbox"],
.woof_list_label input[type="checkbox"],
aside#secondary .woof_list_label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

/* Счётчик товаров */
.woof_label_count,
.czr-sidebar-inner .woof_label_count {
    margin-left: auto !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* ============================================
   КАТЕГОРИИ В САЙДБАРЕ - УЛУЧШЕННЫЕ
   ============================================ */
.czr-sidebar-inner .widget_woocommerce_product_categories {
    margin-bottom: 12px !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories h2,
.czr-sidebar-inner .widget_woocommerce_product_categories h3,
.czr-sidebar-inner .widget_woocommerce_product_categories .widget-title {
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    padding-bottom: 5px !important;
    border-bottom: 1px solid #ff0000 !important;
    line-height: 1.2 !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories li {
    margin-bottom: 2px !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 10px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    background: #f8f9fa !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories a:hover {
    background: #fff5f5 !important;
    color: #ff0000 !important;
    border-color: #ff0000 !important;
    transform: translateX(3px) !important;
}

.czr-sidebar-inner .widget_woocommerce_product_categories .count {
    float: none !important;
    color: #666 !important;
    font-size: 12px !important;
    background: #fff !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    margin-left: auto !important;
    border: 1px solid #e0e0e0 !important;
}

/* ============================================
   КНОПКА СБРОСА ФИЛЬТРОВ - КРАСИВАЯ И ЗАМЕТНАЯ (ВСЕГДА ВИДИМАЯ)
   ============================================ */
.czr-sidebar-inner .woof_reset_search_form,
.czr-sidebar-inner button.woof_reset_search_form,
.woof .woof_reset_search_form,
.woof button.woof_reset_search_form,
.czr-sidebar-inner .woof-submit-search-form-container .woof_reset_search_form,
button.button.woof_reset_search_form,
.woof_submit_search_form_container button.button.woof_reset_search_form,
.woof_submit_search_form_container button,
.woof_submit_search_form_container .button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3) !important;
    position: relative !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 38px !important;
}

/* Убеждаемся, что контейнер кнопок всегда виден - КОМПАКТНЫЙ */
.czr-sidebar-inner .woof_submit_search_form_container,
.woof .woof_submit_search_form_container,
div.woof_submit_search_form_container,
aside#secondary .woof_submit_search_form_container,
.woof_redraw_zone .woof_submit_search_form_container,
.widget-woof .woof_submit_search_form_container {
    margin: 16px 0 20px 0 !important;
    padding: 12px 0 20px 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    clear: both !important;
}

/* Переопределяем правило :empty из плагина - контейнер должен быть виден, если в нём есть кнопка */
.czr-sidebar-inner .woof_submit_search_form_container:has(.woof_reset_search_form),
.woof .woof_submit_search_form_container:has(.woof_reset_search_form),
div.woof_submit_search_form_container:has(.woof_reset_search_form),
aside#secondary .woof_submit_search_form_container:has(.woof_reset_search_form),
.woof_redraw_zone .woof_submit_search_form_container:has(.woof_reset_search_form),
.widget-woof .woof_submit_search_form_container:has(.woof_reset_search_form) {
    display: flex !important;
    visibility: visible !important;
}

/* Для браузеров без поддержки :has() используем более специфичный селектор */
.czr-sidebar-inner .woof_submit_search_form_container .woof_reset_search_form,
.woof .woof_submit_search_form_container .woof_reset_search_form,
div.woof_submit_search_form_container .woof_reset_search_form,
aside#secondary .woof_submit_search_form_container .woof_reset_search_form,
.woof_redraw_zone .woof_submit_search_form_container .woof_reset_search_form,
.widget-woof .woof_submit_search_form_container .woof_reset_search_form {
    /* Кнопка уже стилизована выше */
}

/* Принудительно показываем контейнер, если в нём есть кнопка */
.czr-sidebar-inner .woof_submit_search_form_container:not(:empty),
.woof .woof_submit_search_form_container:not(:empty),
div.woof_submit_search_form_container:not(:empty),
aside#secondary .woof_submit_search_form_container:not(:empty),
.woof_redraw_zone .woof_submit_search_form_container:not(:empty),
.widget-woof .woof_submit_search_form_container:not(:empty) {
    display: flex !important;
    visibility: visible !important;
}

/* Переопределяем правило :empty из плагина - контейнер должен быть виден всегда, если в нём есть кнопка */
.czr-sidebar-inner .woof_submit_search_form_container:has(button),
.woof .woof_submit_search_form_container:has(button),
div.woof_submit_search_form_container:has(button),
aside#secondary .woof_submit_search_form_container:has(button),
.woof_redraw_zone .woof_submit_search_form_container:has(button),
.widget-woof .woof_submit_search_form_container:has(button) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Переопределяем правило :empty из плагина - контейнер должен быть виден, если в нём есть кнопка */
.czr-sidebar-inner .woof_submit_search_form_container button,
.woof .woof_submit_search_form_container button,
div.woof_submit_search_form_container button,
aside#secondary .woof_submit_search_form_container button,
.woof_redraw_zone .woof_submit_search_form_container button,
.widget-woof .woof_submit_search_form_container button {
    /* Кнопка уже стилизована выше */
}

/* Принудительно показываем контейнер, если в нём есть кнопка (для старых браузеров без :has()) */
.czr-sidebar-inner .woof_submit_search_form_container:not(:empty),
.woof .woof_submit_search_form_container:not(:empty),
div.woof_submit_search_form_container:not(:empty),
aside#secondary .woof_submit_search_form_container:not(:empty),
.woof_redraw_zone .woof_submit_search_form_container:not(:empty),
.widget-woof .woof_submit_search_form_container:not(:empty) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Переопределяем правило :empty из плагина - контейнер должен быть виден, если в нём есть кнопка */
.czr-sidebar-inner .woof_submit_search_form_container:has(.woof_reset_search_form),
.czr-sidebar-inner .woof_submit_search_form_container:has(button),
.woof .woof_submit_search_form_container:has(.woof_reset_search_form),
.woof .woof_submit_search_form_container:has(button),
div.woof_submit_search_form_container:has(.woof_reset_search_form),
div.woof_submit_search_form_container:has(button),
aside#secondary .woof_submit_search_form_container:has(.woof_reset_search_form),
aside#secondary .woof_submit_search_form_container:has(button),
.woof_redraw_zone .woof_submit_search_form_container:has(.woof_reset_search_form),
.woof_redraw_zone .woof_submit_search_form_container:has(button),
.widget-woof .woof_submit_search_form_container:has(.woof_reset_search_form),
.widget-woof .woof_submit_search_form_container:has(button) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.czr-sidebar-inner .woof_submit_search_form_container::after,
.woof .woof_submit_search_form_container::after,
div.woof_submit_search_form_container::after {
    content: '' !important;
    display: block !important;
    height: 0 !important;
    visibility: hidden !important;
    clear: both !important;
}

.czr-sidebar-inner .woof_reset_search_form:hover,
.czr-sidebar-inner button.woof_reset_search_form:hover,
.woof .woof_reset_search_form:hover,
.woof button.woof_reset_search_form:hover,
button.button.woof_reset_search_form:hover,
.woof_submit_search_form_container button.button.woof_reset_search_form:hover,
.woof_submit_search_form_container button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%) !important;
    border-color: #5a6268 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.czr-sidebar-inner .woof_reset_search_form:active,
.czr-sidebar-inner button.woof_reset_search_form:active,
.woof .woof_reset_search_form:active,
.woof button.woof_reset_search_form:active,
button.button.woof_reset_search_form:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2) !important;
}


/* Кнопка "Фильтр" (если есть) - КОМПАКТНАЯ */
.czr-sidebar-inner .woof_submit_search_form,
.czr-sidebar-inner button.woof_submit_search_form,
.woof .woof_submit_search_form,
.woof button.woof_submit_search_form {
    width: 100% !important;
    padding: 8px 16px !important;
    background: #ff0000 !important;
    color: #fff !important;
    border: 1px solid #ff0000 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 4px 0 0 0 !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(255, 0, 0, 0.2) !important;
}

.czr-sidebar-inner .woof_submit_search_form:hover,
.czr-sidebar-inner button.woof_submit_search_form:hover,
.woof .woof_submit_search_form:hover,
.woof button.woof_submit_search_form:hover {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

/* Виджет "Акция!" - КОМПАКТНЫЙ */
.czr-sidebar-inner .widget_sow-editor {
    margin-bottom: 12px !important;
    padding: 12px !important;
    background: linear-gradient(135deg, #fff8f0 0%, #fff5f5 100%) !important;
    border: 1px solid #ff6600 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(255, 102, 0, 0.1) !important;
}

.czr-sidebar-inner .widget_sow-editor h2,
.czr-sidebar-inner .widget_sow-editor h3,
.czr-sidebar-inner .widget_sow-editor .widget-title {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #ff0000 !important;
    padding-bottom: 5px !important;
    border-bottom: 1px solid #ff0000 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.czr-sidebar-inner .widget_sow-editor p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    text-align: center !important;
}

/* ============================================
   СЛАЙДЕР НОВИНОК - КОМПАКТНЫЙ
   ============================================ */
/* Скрываем карусель "Новинка!" */
.novinki-carousel-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Увеличиваем отступ сверху на больших экранах */
@media (min-width: 1920px) {
    .novinki-carousel-container {
        margin-top: 40px !important;
    }
}

@media (min-width: 2560px) {
    .novinki-carousel-container {
        margin-top: 50px !important;
    }
}

/* Ограничиваем максимальную ширину и высоту карусели на больших экранах */
@media (min-width: 1400px) {
    .novinki-carousel-container {
        max-width: 700px !important;
        max-height: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 1920px) {
    .novinki-carousel-container {
        max-width: 800px !important;
        max-height: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 2560px) {
    .novinki-carousel-container {
        max-width: 900px !important;
        max-height: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.1) !important;
}

.novinki-carousel-container h3 {
    text-align: center !important;
    margin: 0 0 4px 0 !important;
    color: #ff0000 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.novinki-carousel-container p {
    text-align: center !important;
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
}


.novinki-carousel {
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    padding: 0 40px !important;
    height: 200px !important;
    max-height: 200px !important;
}

@media (min-width: 1400px) {
    .novinki-carousel {
        height: 220px !important;
        max-height: 220px !important;
    }
}

@media (min-width: 1920px) {
    .novinki-carousel {
        height: 240px !important;
        max-height: 240px !important;
    }
}

@media (min-width: 2560px) {
    .novinki-carousel {
        height: 260px !important;
        max-height: 260px !important;
    }
}

.novinki-carousel-wrapper {
    overflow: hidden !important;
    border-radius: 10px !important;
}

.novinki-carousel-track {
    display: flex !important;
    transition: transform 0.5s ease-in-out !important;
    will-change: transform !important;
    position: relative !important;
    width: 100% !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    perspective: 1000px !important;
    -webkit-perspective: 1000px !important;
}

.novinki-carousel-slide {
    flex-shrink: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.novinki-carousel-slide > div {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    height: 200px !important;
    max-height: 200px !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* На больших экранах немного увеличиваем размер слайдов */
@media (min-width: 1400px) {
    .novinki-carousel-slide > div {
        height: 220px !important;
        max-height: 220px !important;
        padding: 10px !important;
    }
}

@media (min-width: 1920px) {
    .novinki-carousel-slide > div {
        height: 240px !important;
        max-height: 240px !important;
        padding: 12px !important;
    }
}

@media (min-width: 2560px) {
    .novinki-carousel-slide > div {
        height: 260px !important;
        max-height: 260px !important;
        padding: 14px !important;
    }
}
    background: #fff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.novinki-carousel-slide > div:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.novinki-carousel-slide img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100% !important;
}

/* Улучшаем отображение картинок на разных экранах */
@media (min-width: 1400px) {
    .novinki-carousel-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

@media (min-width: 1920px) {
    .novinki-carousel-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

@media (min-width: 2560px) {
    .novinki-carousel-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

.novinki-carousel-prev,
.novinki-carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #ddd !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    font-size: 24px !important;
    z-index: 100 !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.3s !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.novinki-carousel-prev {
    left: 0 !important;
}

.novinki-carousel-next {
    right: 0 !important;
}

.novinki-carousel-prev:hover,
.novinki-carousel-next:hover {
    background: #ff0000 !important;
    color: #fff !important;
    border-color: #ff0000 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 768px) {
    .novinki-carousel {
        padding: 0 40px !important;
    }
    
    .novinki-carousel-prev,
    .novinki-carousel-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    
    .novinki-carousel-slide {
        min-width: 100% !important;
    }
}

/* ============================================
   БЛОК СОРТИРОВКИ И РЕЗУЛЬТАТОВ
   ============================================ */
.woocommerce-ordering {
    display: block !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-result-count {
    display: block !important;
    font-size: 15px !important;
    color: #666 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Скрываем заголовок "Лодки АкваPRO" */
.woocommerce .woocommerce-products-header {
    display: none !important;
}

.woocommerce-ordering select.orderby {
    padding: 12px 45px 12px 18px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center !important;
    background-size: 22px !important;
    cursor: pointer !important;
    min-width: 240px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.3s !important;
    font-weight: 500 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
    line-height: 1.5 !important;
    height: auto !important;
}

/* Убеждаемся, что выбранное значение видно */
.woocommerce-ordering select.orderby option {
    color: #333 !important;
    background: #fff !important;
    padding: 8px !important;
}

.woocommerce-ordering select.orderby option:checked,
.woocommerce-ordering select.orderby option[selected] {
    color: #333 !important;
    background: #fff !important;
    font-weight: 500 !important;
}

/* Для Firefox */
.woocommerce-ordering select.orderby:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #333;
}

/* Убираем прозрачность текста в селекте */
.woocommerce-ordering select.orderby::-ms-value {
    color: #333 !important;
    background: transparent !important;
}

.woocommerce-ordering select.orderby:hover {
    border-color: #ff0000 !important;
}

.woocommerce-ordering select.orderby:focus {
    outline: none !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    .woocommerce .woocommerce-products-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .woocommerce-ordering {
        width: 100% !important;
    }
    
    .woocommerce-ordering select.orderby {
        width: 100% !important;
    }
}

/* ============================================
   СЕТКА ТОВАРОВ - АДАПТИВНАЯ (автоматически подстраивается)
   ============================================ */
.czr-shop-content .woocommerce ul.products,
.woocommerce-shop .woocommerce ul.products,
.woocommerce-page .woocommerce ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

/* Убираем псевдоэлементы, которые могут создавать пустое место */
.czr-shop-content .woocommerce ul.products::before,
.woocommerce-shop .woocommerce ul.products::before,
.woocommerce-page .woocommerce ul.products::before,
.woocommerce ul.products::before,
.czr-shop-content .woocommerce ul.products::after,
.woocommerce-shop .woocommerce ul.products::after,
.woocommerce-page .woocommerce ul.products::after,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* Скрываем пустые или невидимые элементы товаров */
.czr-shop-content .woocommerce ul.products li.product:empty,
.woocommerce-shop .woocommerce ul.products li.product:empty,
.woocommerce-page .woocommerce ul.products li.product:empty,
.woocommerce ul.products li.product:empty,
.czr-shop-content .woocommerce ul.products li.product[style*="display: none"],
.woocommerce-shop .woocommerce ul.products li.product[style*="display: none"],
.woocommerce-page .woocommerce ul.products li.product[style*="display: none"],
.woocommerce ul.products li.product[style*="display: none"] {
    display: none !important;
}

.czr-shop-content .woocommerce ul.products li.product,
.woocommerce-shop .woocommerce ul.products li.product,
.woocommerce-page .woocommerce ul.products li.product,
.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* Адаптивная сетка - автоматически подстраивается под размер экрана */
/* 2K мониторы и выше (2560px+) */
@media (min-width: 2560px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 30px !important;
    }
}

/* Full HD и выше (1920px+) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 25px !important;
    }
}

/* Большие экраны (1400px+) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 22px !important;
    }
}

/* Средние экраны (1200px+) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 20px !important;
    }
}

/* Планшеты (992px+) */
@media (min-width: 992px) and (max-width: 1199px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 18px !important;
    }
}

/* Малые планшеты (768px+) */
@media (min-width: 768px) and (max-width: 991px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Большие смартфоны (480px+) */
@media (min-width: 480px) and (max-width: 767px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Малые смартфоны (< 480px) */
@media (max-width: 479px) {
    .czr-shop-content .woocommerce ul.products,
    .woocommerce-shop .woocommerce ul.products,
    .woocommerce-page .woocommerce ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* ============================================
   КОНТЕЙНЕР КНОПОК ПРОДУКТА - ИСПРАВЛЕНИЕ ВЫХОДА ЗА КРАЙ
   ============================================ */
.czr-shop-content .woocommerce ul.products li.product .product-actions,
.woocommerce-shop .woocommerce ul.products li.product .product-actions,
.woocommerce-page .woocommerce ul.products li.product .product-actions,
.woocommerce ul.products li.product .product-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Кнопки внутри product-actions */
.czr-shop-content .woocommerce ul.products li.product .product-actions .btn,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn,
.woocommerce ul.products li.product .product-actions .btn,
.czr-shop-content .woocommerce ul.products li.product .product-actions a,
.woocommerce-shop .woocommerce ul.products li.product .product-actions a,
.woocommerce-page .woocommerce ul.products li.product .product-actions a,
.woocommerce ul.products li.product .product-actions a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    line-height: 1.4 !important;
    min-height: 44px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Стили для конкретных кнопок */
.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-ozon,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-ozon,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-ozon,
.woocommerce ul.products li.product .product-actions .btn-ozon {
    background: #005bff !important;
    color: white !important;
}

.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-ozon:hover,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-ozon:hover,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-ozon:hover,
.woocommerce ul.products li.product .product-actions .btn-ozon:hover {
    background: #0044cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3) !important;
    color: white !important;
}

.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-contact,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-contact,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-contact,
.woocommerce ul.products li.product .product-actions .btn-contact {
    background: #003d99 !important;
    color: white !important;
}

.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-contact:hover,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-contact:hover,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-contact:hover,
.woocommerce ul.products li.product .product-actions .btn-contact:hover {
    background: #002d73 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 61, 153, 0.3) !important;
    color: white !important;
}

/* Стили для кнопки Wildberries в карточках товаров */
.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-wildberries,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-wildberries,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-wildberries,
.woocommerce ul.products li.product .product-actions .btn-wildberries {
    background: #a026ff !important;
    color: white !important;
}

.czr-shop-content .woocommerce ul.products li.product .product-actions .btn-wildberries:hover,
.woocommerce-shop .woocommerce ul.products li.product .product-actions .btn-wildberries:hover,
.woocommerce-page .woocommerce ul.products li.product .product-actions .btn-wildberries:hover,
.woocommerce ul.products li.product .product-actions .btn-wildberries:hover {
    background: #8b1dd9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(160, 38, 255, 0.3) !important;
    color: white !important;
}

.czr-shop-content .woocommerce ul.products li.product .product-actions *,
.woocommerce-shop .woocommerce ul.products li.product .product-actions *,
.woocommerce-page .woocommerce ul.products li.product .product-actions *,
.woocommerce ul.products li.product .product-actions * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   КАРТОЧКИ ТОВАРОВ - КРАСИВЫЕ И РАВНОМЕРНЫЕ
   ============================================ */
.czr-shop-content .woocommerce ul.products li.product,
.woocommerce-shop .woocommerce ul.products li.product,
.woocommerce-page .woocommerce ul.products li.product,
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    height: 100% !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* Ограничиваем все элементы внутри карточки */
.czr-shop-content .woocommerce ul.products li.product *,
.woocommerce-shop .woocommerce ul.products li.product *,
.woocommerce-page .woocommerce ul.products li.product *,
.woocommerce ul.products li.product * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.czr-shop-content .woocommerce ul.products li.product:hover,
.woocommerce-shop .woocommerce ul.products li.product:hover,
.woocommerce-page .woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px) !important;
    border-color: #ff8c42 !important;
}

.czr-shop-content .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce-shop .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce-page .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

/* Контейнер для кнопок и селектора - фиксированная позиция */
.czr-shop-content .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    flex-shrink: 0 !important;
}

.czr-shop-content .woocommerce ul.products li.product .price,
.woocommerce-shop .woocommerce ul.products li.product .price,
.woocommerce-page .woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price {
    flex-shrink: 0 !important;
}

/* Фиксируем позицию кнопок и селектора - они всегда внизу карточки */
/* Кнопка "В КОРЗИНУ" - первая */
.czr-shop-content .woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-shop .woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page .woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .add_to_cart_button {
    flex-shrink: 0 !important;
    order: 1 !important;
}

/* Селектор количества - второй (по середине) */
.czr-shop-content .woocommerce ul.products li.product .czr-quantity-selector,
.woocommerce-shop .woocommerce ul.products li.product .czr-quantity-selector,
.woocommerce-page .woocommerce ul.products li.product .czr-quantity-selector,
.woocommerce ul.products li.product .czr-quantity-selector {
    flex-shrink: 0 !important;
    order: 2 !important;
}

/* Кнопка "Просмотр корзины" - третья (внизу) */
.czr-shop-content .woocommerce ul.products li.product .wc-forward,
.czr-shop-content .woocommerce ul.products li.product a.wc-forward,
.czr-shop-content .woocommerce ul.products li.product .button.wc-forward,
.woocommerce-shop .woocommerce ul.products li.product .wc-forward,
.woocommerce-shop .woocommerce ul.products li.product a.wc-forward,
.woocommerce-shop .woocommerce ul.products li.product .button.wc-forward,
.woocommerce-page .woocommerce ul.products li.product .wc-forward,
.woocommerce-page .woocommerce ul.products li.product a.wc-forward,
.woocommerce-page .woocommerce ul.products li.product .button.wc-forward,
.woocommerce ul.products li.product .wc-forward,
.woocommerce ul.products li.product a.wc-forward,
.woocommerce ul.products li.product .button.wc-forward {
    flex-shrink: 0 !important;
    order: 3 !important;
}

/* БОЛЬШАЯ КАРТИНКА ТОВАРА - ПОЛНОЕ ОТОБРАЖЕНИЕ */
.czr-shop-content .woocommerce ul.products li.product img,
.woocommerce-shop .woocommerce ul.products li.product img,
.woocommerce-page .woocommerce ul.products li.product img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f5f5f5 !important;
    transition: transform 0.3s !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Контейнер для картинки - обеспечивает полное отображение */
.czr-shop-content .woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-shop .woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 280px !important;
    background: #f5f5f5 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* Обертка для изображения - полное отображение */
.czr-shop-content .woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce-shop .woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.czr-shop-content .woocommerce ul.products li.product img,
.woocommerce-shop .woocommerce ul.products li.product img,
.woocommerce-page .woocommerce ul.products li.product img,
.woocommerce ul.products li.product img {
    min-height: 250px !important;
    max-height: 400px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    display: block !important;
}

.czr-shop-content .woocommerce ul.products li.product:hover img,
.woocommerce-shop .woocommerce ul.products li.product:hover img,
.woocommerce-page .woocommerce ul.products li.product:hover img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.03) !important;
}

/* МЕНЬШИЙ ТЕКСТ - НАЗВАНИЕ */
.czr-shop-content .woocommerce ul.products li.product .woocommerce-loop-product__title,
.czr-shop-content .woocommerce ul.products li.product h2,
.woocommerce-shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-shop .woocommerce ul.products li.product h2,
.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page .woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2 a {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 12px 15px 6px !important;
    color: #333 !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex-grow: 0 !important;
    text-align: center !important;
}

/* МЕНЬШИЙ ТЕКСТ - ЦЕНА (ВЫРОВНЕНА ПО ЦЕНТРУ) */
.czr-shop-content .woocommerce ul.products li.product .price,
.woocommerce-shop .woocommerce ul.products li.product .price,
.woocommerce-page .woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #EE4D2D !important;
    margin: 0 15px 12px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
    flex-grow: 0 !important;
    text-align: center !important;
}

.czr-shop-content .woocommerce ul.products li.product .price del,
.woocommerce-shop .woocommerce ul.products li.product .price del,
.woocommerce-page .woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del {
    font-size: 16px !important;
    color: #999 !important;
    margin-right: 8px !important;
    font-weight: normal !important;
    display: inline-block !important;
}

.czr-shop-content .woocommerce ul.products li.product .price .amount,
.woocommerce-shop .woocommerce ul.products li.product .price .amount,
.woocommerce-page .woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price .amount {
    display: inline-block !important;
    color: #EE4D2D !important;
}

.czr-shop-content .woocommerce ul.products li.product .price bdi,
.woocommerce-shop .woocommerce ul.products li.product .price bdi,
.woocommerce-page .woocommerce ul.products li.product .price bdi,
.woocommerce ul.products li.product .price bdi {
    color: #EE4D2D !important;
}

.czr-shop-content .woocommerce ul.products li.product .price ins,
.woocommerce-shop .woocommerce ul.products li.product .price ins,
.woocommerce-page .woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

/* КНОПКА В КОРЗИНУ - КОМПАКТНАЯ (ПОДОГНАНА ПОД ТЕКСТ) */
.czr-shop-content .woocommerce ul.products li.product .button,
.czr-shop-content .woocommerce ul.products li.product .add_to_cart_button,
.czr-shop-content .woocommerce ul.products li.product a.button,
.woocommerce-shop .woocommerce ul.products li.product .button,
.woocommerce-shop .woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-shop .woocommerce ul.products li.product a.button,
.woocommerce-page .woocommerce ul.products li.product .button,
.woocommerce-page .woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page .woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button {
    background: #ff0000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    margin: 0 15px 8px 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
    margin-top: auto !important;
    margin-bottom: 8px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    text-align: center !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
}

/* КНОПКА "ПРОСМОТР КОРЗИНЫ" В КАРТОЧКЕ ТОВАРА - ПОЛНОЦЕННАЯ КНОПКА */
.czr-shop-content .woocommerce ul.products li.product .wc-forward,
.czr-shop-content .woocommerce ul.products li.product a.wc-forward,
.czr-shop-content .woocommerce ul.products li.product .button.wc-forward,
.woocommerce-shop .woocommerce ul.products li.product .wc-forward,
.woocommerce-shop .woocommerce ul.products li.product a.wc-forward,
.woocommerce-shop .woocommerce ul.products li.product .button.wc-forward,
.woocommerce-page .woocommerce ul.products li.product .wc-forward,
.woocommerce-page .woocommerce ul.products li.product a.wc-forward,
.woocommerce-page .woocommerce ul.products li.product .button.wc-forward,
.woocommerce ul.products li.product .wc-forward,
.woocommerce ul.products li.product a.wc-forward,
.woocommerce ul.products li.product .button.wc-forward,
.woocommerce ul.products li.product a.button.wc-forward {
    display: inline-block !important;
    padding: 8px 12px !important;
    background: #28a745 !important;
    color: #fff !important;
    border: 2px solid #28a745 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 15px 8px 15px !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2) !important;
    white-space: normal !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    height: auto !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.czr-shop-content .woocommerce ul.products li.product .wc-forward:hover,
.czr-shop-content .woocommerce ul.products li.product a.wc-forward:hover,
.czr-shop-content .woocommerce ul.products li.product .button.wc-forward:hover,
.woocommerce-shop .woocommerce ul.products li.product .wc-forward:hover,
.woocommerce-shop .woocommerce ul.products li.product a.wc-forward:hover,
.woocommerce-shop .woocommerce ul.products li.product .button.wc-forward:hover,
.woocommerce-page .woocommerce ul.products li.product .wc-forward:hover,
.woocommerce-page .woocommerce ul.products li.product a.wc-forward:hover,
.woocommerce-page .woocommerce ul.products li.product .button.wc-forward:hover,
.woocommerce ul.products li.product .wc-forward:hover,
.woocommerce ul.products li.product a.wc-forward:hover,
.woocommerce ul.products li.product .button.wc-forward:hover,
.woocommerce ul.products li.product a.button.wc-forward:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    text-decoration: none !important;
}

.czr-shop-content .woocommerce ul.products li.product .wc-forward:active,
.czr-shop-content .woocommerce ul.products li.product a.wc-forward:active,
.czr-shop-content .woocommerce ul.products li.product .button.wc-forward:active,
.woocommerce-shop .woocommerce ul.products li.product .wc-forward:active,
.woocommerce-shop .woocommerce ul.products li.product a.wc-forward:active,
.woocommerce-shop .woocommerce ul.products li.product .button.wc-forward:active,
.woocommerce-page .woocommerce ul.products li.product .wc-forward:active,
.woocommerce-page .woocommerce ul.products li.product a.wc-forward:active,
.woocommerce-page .woocommerce ul.products li.product .button.wc-forward:active,
.woocommerce ul.products li.product .wc-forward:active,
.woocommerce ul.products li.product a.wc-forward:active,
.woocommerce ul.products li.product .button.wc-forward:active,
.woocommerce ul.products li.product a.button.wc-forward:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2) !important;
}

.czr-shop-content .woocommerce ul.products li.product .button:hover,
.czr-shop-content .woocommerce ul.products li.product .add_to_cart_button:hover,
.czr-shop-content .woocommerce ul.products li.product a.button:hover,
.woocommerce-shop .woocommerce ul.products li.product .button:hover,
.woocommerce-shop .woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce-shop .woocommerce ul.products li.product a.button:hover,
.woocommerce-page .woocommerce ul.products li.product .button:hover,
.woocommerce-page .woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce-page .woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: #cc0000 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    color: #fff !important;
}

/* Бейдж "Распродажа" */
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #ff0000 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    z-index: 5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ============================================
   СЕЛЕКТОР КОЛИЧЕСТВА ДЛЯ КНОПКИ "В КОРЗИНУ"
   ============================================ */
.czr-quantity-selector {
    margin: 0 15px 8px 15px !important;
    padding: 0 !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
}

.czr-quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.czr-qty-minus,
.czr-qty-plus {
    width: 32px !important;
    height: 32px !important;
    background: #f8f9fa !important;
    border: none !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    user-select: none !important;
}

.czr-qty-minus:hover,
.czr-qty-plus:hover {
    background: #ff0000 !important;
    color: #fff !important;
}

.czr-qty-minus:active,
.czr-qty-plus:active {
    transform: scale(0.95) !important;
}

.czr-qty-input {
    flex: 1 !important;
    height: 32px !important;
    border: none !important;
    border-left: 2px solid #e0e0e0 !important;
    border-right: 2px solid #e0e0e0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.czr-qty-input::-webkit-outer-spin-button,
.czr-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.czr-add-to-cart-btn,
.czr-cancel-btn {
    width: 100% !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.czr-add-to-cart-btn {
    background: #ff0000 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2) !important;
}

.czr-add-to-cart-btn:hover {
    background: #cc0000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

.czr-add-to-cart-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.czr-cancel-btn {
    background: #6c757d !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2) !important;
    margin-bottom: 0 !important;
}

.czr-cancel-btn:hover {
    background: #5a6268 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
/* ============================================
   МОДЕРНИЗИРОВАННАЯ ПАГИНАЦИЯ WOOCOMMERCE
   ============================================ */
.woocommerce-pagination {
    margin: 50px auto 40px !important;
    text-align: center !important;
    padding: 20px 0 !important;
    border: none !important;
    outline: none !important;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
    border: none !important;
    outline: none !important;
    overflow: visible !important;
}

.woocommerce-pagination .page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    outline: none !important;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 2px solid #ff8c42 !important;
    outline: none !important;
    border-radius: 8px !important;
    color: #ff8c42 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 44px !important;
    text-align: center !important;
    background: transparent !important;
    position: relative !important;
    box-shadow: none !important;
}

.woocommerce-pagination .page-numbers a:hover {
    background: #ff8c42 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
    border: 2px solid #ff8c42 !important;
    outline: none !important;
}

.woocommerce-pagination .page-numbers .current {
    background: #ff8c42 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    border: 2px solid #ff8c42 !important;
    outline: none !important;
}

.woocommerce-pagination .page-numbers .current:hover {
    background: #e67e22 !important;
    transform: none !important;
    box-shadow: none !important;
    border: 2px solid #e67e22 !important;
    outline: none !important;
}

/* Стрелки навигации */
.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    min-width: 50px !important;
    height: 44px !important;
    padding: 0 !important;
    color: #ff8c42 !important;
    border: 2px solid #ff8c42 !important;
    outline: none !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.woocommerce-pagination .page-numbers .prev:hover,
.woocommerce-pagination .page-numbers .next:hover {
    background: #ff8c42 !important;
    color: #fff !important;
    box-shadow: none !important;
    border: 2px solid #ff8c42 !important;
    outline: none !important;
}

/* Точки (многоточие) */
.woocommerce-pagination .page-numbers .dots {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #999 !important;
    cursor: default !important;
    min-width: auto !important;
    padding: 0 8px !important;
}

.woocommerce-pagination .page-numbers .dots:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #999 !important;
}

/* Убираем все рамки у всех элементов пагинации (кроме самих кнопок) */
nav.woocommerce-pagination,
nav.woocommerce-pagination *,
.woocommerce-pagination,
.woocommerce-pagination *,
.woocommerce-pagination ul,
.woocommerce-pagination ul *,
.woocommerce-pagination .page-numbers,
.woocommerce-pagination .page-numbers li {
    border: none !important;
    outline: none !important;
}

/* Убираем рамки между элементами */
.woocommerce-pagination .page-numbers li + li,
.woocommerce-pagination .page-numbers li + li * {
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Убираем рамки у самого ul */
ul.page-numbers {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Обводка для всех кнопок пагинации (применяется после правила убирающего рамки) */
.woocommerce-pagination .page-numbers a:not(.dots),
.woocommerce-pagination .page-numbers span:not(.dots):not(.current) {
    border: 2px solid #ff8c42 !important;
}

.woocommerce-pagination .page-numbers .current {
    border: 2px solid #ff8c42 !important;
}

.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next {
    border: 2px solid #ff8c42 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .woocommerce-pagination .page-numbers {
        gap: 8px !important;
    }
    
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 40px !important;
    }
    
    .woocommerce-pagination .page-numbers .prev,
    .woocommerce-pagination .page-numbers .next {
        min-width: 44px !important;
        height: 40px !important;
        font-size: 24px !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-pagination .page-numbers {
        gap: 6px !important;
    }
    
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 36px !important;
    }
    
    .woocommerce-pagination .page-numbers .prev,
    .woocommerce-pagination .page-numbers .next {
        min-width: 40px !important;
        height: 36px !important;
        font-size: 20px !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
}

/* ============================================
   ЗАГОЛОВОК СТРАНИЦЫ
   ============================================ */
.woocommerce-products-header__title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
}

/* ============================================
   УБИРАЕМ ДУБЛИКАТЫ
   ============================================ */
.czr-shop-content .widget:not(.novinki-carousel-container),
.czr-shop-content .woof:not(.czr-shop-sidebar .woof),
.czr-shop-content .widget_sow-editor:not(.czr-shop-sidebar .widget_sow-editor) {
    display: none !important;
}

/* ============================================
   ОБЩИЕ УЛУЧШЕНИЯ
   ============================================ */
.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 20px !important;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* ============================================
   КНОПКА "ПРОСМОТР КОРЗИНЫ" - ПОЛНОЦЕННАЯ КНОПКА
   ============================================ */
.woocommerce .woocommerce-message .wc-forward,
.woocommerce .woocommerce-message a.wc-forward,
.woocommerce .woocommerce-message .button.wc-forward,
.woocommerce .woocommerce-message a.button.wc-forward {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #ff0000 !important;
    color: #fff !important;
    border: 2px solid #ff0000 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    margin-left: auto !important;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
}

.woocommerce .woocommerce-message .wc-forward:hover,
.woocommerce .woocommerce-message a.wc-forward:hover,
.woocommerce .woocommerce-message .button.wc-forward:hover,
.woocommerce .woocommerce-message a.button.wc-forward:hover {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

.woocommerce .woocommerce-message .wc-forward:active,
.woocommerce .woocommerce-message a.wc-forward:active,
.woocommerce .woocommerce-message .button.wc-forward:active,
.woocommerce .woocommerce-message a.button.wc-forward:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2) !important;
}

/* Улучшаем текст сообщения */
.woocommerce .woocommerce-message {
    background: #d4edda !important;
    border-left: 4px solid #28a745 !important;
    color: #155724 !important;
    padding: 16px 20px !important;
}

.woocommerce .woocommerce-message::before {
    color: #28a745 !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .woocommerce .woocommerce-message {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .woocommerce .woocommerce-message .wc-forward,
    .woocommerce .woocommerce-message a.wc-forward,
    .woocommerce .woocommerce-message .button.wc-forward,
    .woocommerce .woocommerce-message a.button.wc-forward {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 8px !important;
    }
}

/* ============================================
   ПОЛНОСТЬЮ НОВЫЙ ДИЗАЙН HEADER С НУЛЯ
   ============================================ */

/* Полностью переделанный header - в стиле footer */
/* Применяем ко всем страницам */
body .tc-header,
.tc-header {
    background: #1a1a2e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 70px !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* Убираем ограничения ширины для родительских контейнеров header */
#tc-page-wrap,
body #tc-page-wrap,
body #tc-page-wrap > header,
.tc-page-wrap,
body .tc-page-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Убираем ограничения для всех контейнеров выше header */
body,
html,
#page,
#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* КРИТИЧНО: Переопределяем стили из других файлов, которые ограничивают ширину header */
/* Используем максимальную специфичность */
html body header.tc-header,
html body #tc-page-wrap header.tc-header,
html body header.tc-header.clearfix,
html body #tc-page-wrap header.tc-header.clearfix,
body > #tc-page-wrap > header.tc-header,
#tc-page-wrap > header.tc-header,
header.tc-header.clearfix.row-fluid {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Контейнеры header - на всю ширину */
.tc-header .container,
.tc-header .row-fluid,
.tc-header > .container,
.tc-header > .row-fluid,
body .tc-header .container,
body .tc-header .row-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 30px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Навигация - полностью новый дизайн - применяем ко всем страницам */
body .navbar-wrapper,
.navbar-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body .navbar,
.navbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 70px !important;
}

body .navbar-inner,
.navbar-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
}

body .navbar-inner .row-fluid,
.navbar-inner .row-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    gap: 20px !important;
    min-height: 70px !important;
}

/* Логотип - рядом с меню, перед кнопкой "Каталог лодок" с приличным отступом слева */
.tc-header .brand,
.tc-header .brand.pull-left,
body .tc-header .brand {
    margin-right: 20px !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 50px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
}

.tc-header .brand img,
.tc-header .site-logo img,
.tc-header .brand a img {
    margin-right: 0 !important;
    padding-right: 0 !important;
    max-width: 288px !important;
    max-height: 108px !important;
    width: auto !important;
    height: auto !important;
}

/* Меню - рядом с логотипом */
body .nav-collapse,
body .nav-collapse .tc-hover-menu-wrapper,
body .nav-collapse .menu-меню-верхнее-container,
.nav-collapse,
.nav-collapse .tc-hover-menu-wrapper,
.nav-collapse .menu-меню-верхнее-container {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    order: 2 !important;
    margin-left: 0 !important;
}

/* Кнопки социальных сетей - справа (сетка 2x2) */
.tc-header .header-social-buttons,
.navbar-inner .header-social-buttons,
.navbar-inner .row-fluid .header-social-buttons,
.header-social-button {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
    transform: none !important;
    order: 3 !important;
    max-width: 200px !important;
}

.tc-header .header-social-buttons .social-link,
.navbar-inner .header-social-buttons .social-link,
.navbar-inner .row-fluid .header-social-buttons .social-link {
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

/* Меню - современный стиль - применяем ко всем страницам */
body .nav-collapse,
body .nav-collapse .tc-hover-menu-wrapper,
body .nav-collapse .menu-меню-верхнее-container,
.nav-collapse,
.nav-collapse .tc-hover-menu-wrapper,
.nav-collapse .menu-меню-верхнее-container {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

body #menu-меню-верхнее-3,
body .menu-меню-верхнее-container > ul,
body .nav-collapse ul,
body .nav-collapse .menu-меню-верхнее-container ul,
#menu-меню-верхнее-3,
.menu-меню-верхнее-container > ul,
.nav-collapse ul,
.nav-collapse .menu-меню-верхнее-container ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

/* Пункты меню - применяем ко всем страницам */
body #menu-меню-верхнее-3 > li.menu-item,
body .menu-меню-верхнее-container > ul > li.menu-item,
body .nav-collapse ul > li.menu-item,
#menu-меню-верхнее-3 > li.menu-item,
.menu-меню-верхнее-container > ul > li.menu-item,
.nav-collapse ul > li.menu-item {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    /* Отключаем transition на order, чтобы не было дерганья */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    transition-property: background-color, border-color, transform, box-shadow !important;
}

/* Ссылки меню - все кнопки с одинаковым размером шрифта (17px) и жирностью */
/* Неактивные кнопки - такой же размер и жирность как у активных */
body #menu-меню-верхнее-3 > li.menu-item > a,
body .menu-меню-верхнее-container > ul > li.menu-item > a,
body .nav-collapse ul > li.menu-item > a,
#menu-меню-верхнее-3 > li.menu-item > a,
.menu-меню-верхнее-container > ul > li.menu-item > a,
.nav-collapse ul > li.menu-item > a {
    display: block !important;
    padding: 12px 20px !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Hover эффект для неактивных кнопок - такой же как у активной, фон не полностью белый */
body #menu-меню-верхнее-3 > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover,
body .menu-меню-верхнее-container > ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover,
body .nav-collapse ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover,
#menu-меню-верхнее-3 > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover,
.menu-меню-верхнее-container > ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover,
.nav-collapse ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Hover эффект для активных кнопок - такой же стиль */
body #menu-меню-верхнее-3 > li.menu-item.current-menu-item > a:hover,
body #menu-меню-верхнее-3 > li.menu-item.current_page_item > a:hover,
body .menu-меню-верхнее-container > ul > li.menu-item.current-menu-item > a:hover,
body .menu-меню-верхнее-container > ul > li.menu-item.current_page_item > a:hover,
body .nav-collapse ul > li.menu-item.current-menu-item > a:hover,
body .nav-collapse ul > li.menu-item.current_page_item > a:hover,
#menu-меню-верхнее-3 > li.menu-item.current-menu-item > a:hover,
#menu-меню-верхнее-3 > li.menu-item.current_page_item > a:hover,
.menu-меню-верхнее-container > ul > li.menu-item.current-menu-item > a:hover,
.menu-меню-верхнее-container > ul > li.menu-item.current_page_item > a:hover,
.nav-collapse ul > li.menu-item.current-menu-item > a:hover,
.nav-collapse ul > li.menu-item.current_page_item > a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Активная ссылка - выделение только рамкой, размер шрифта и жирность такие же */
/* Увеличена рамка для лучшей видимости */
body #menu-меню-верхнее-3 > li.menu-item.current-menu-item > a,
body #menu-меню-верхнее-3 > li.menu-item.current_page_item > a,
body .menu-меню-верхнее-container > ul > li.menu-item.current-menu-item > a,
body .menu-меню-верхнее-container > ul > li.menu-item.current_page_item > a,
body .nav-collapse ul > li.menu-item.current-menu-item > a,
body .nav-collapse ul > li.menu-item.current_page_item > a,
#menu-меню-верхнее-3 > li.menu-item.current-menu-item > a,
#menu-меню-верхнее-3 > li.menu-item.current_page_item > a,
.menu-меню-верхнее-container > ul > li.menu-item.current-menu-item > a,
.menu-меню-верхнее-container > ul > li.menu-item.current_page_item > a,
.nav-collapse ul > li.menu-item.current-menu-item > a,
.nav-collapse ul > li.menu-item.current_page_item > a {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 3px solid rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Убеждаемся, что неактивные кнопки имеют такой же размер и жирность */
/* Переопределяем любые другие стили для неактивных кнопок */
body #menu-меню-верхнее-3 > li.menu-item:not(.current-menu-item):not(.current_page_item) > a,
body .menu-меню-верхнее-container > ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a,
body .nav-collapse ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a,
#menu-меню-верхнее-3 > li.menu-item:not(.current-menu-item):not(.current_page_item) > a,
.menu-меню-верхнее-container > ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a,
.nav-collapse ul > li.menu-item:not(.current-menu-item):not(.current_page_item) > a {
    font-weight: 500 !important;
    font-size: 17px !important;
    color: white !important;
}

/* Убираем специальные стили для menu-item-356 - теперь все кнопки одинаковые */

/* Убираем специальные стили для "Каталог лодок" - теперь все кнопки одинаковые */

/* Убраны специальные стили для "Каталог лодок" - используются общие стили выше */

/* Стили для элементов выпадающего меню - такие же как у основных кнопок */
body #menu-меню-верхнее-3 .dropdown-menu > li.menu-item > a,
body .menu-меню-верхнее-container .dropdown-menu > li.menu-item > a,
body .nav-collapse .dropdown-menu > li.menu-item > a,
#menu-меню-верхнее-3 .dropdown-menu > li.menu-item > a,
.menu-меню-верхнее-container .dropdown-menu > li.menu-item > a,
.nav-collapse .dropdown-menu > li.menu-item > a,
body ul.dropdown-menu > li.menu-item > a,
ul.dropdown-menu > li.menu-item > a {
    display: block !important;
    padding: 12px 20px !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    white-space: normal !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    margin: 4px 0 !important;
}

/* Hover эффект для элементов выпадающего меню */
body #menu-меню-верхнее-3 .dropdown-menu > li.menu-item > a:hover,
body .menu-меню-верхнее-container .dropdown-menu > li.menu-item > a:hover,
body .nav-collapse .dropdown-menu > li.menu-item > a:hover,
#menu-меню-верхнее-3 .dropdown-menu > li.menu-item > a:hover,
.menu-меню-верхнее-container .dropdown-menu > li.menu-item > a:hover,
.nav-collapse .dropdown-menu > li.menu-item > a:hover,
body ul.dropdown-menu > li.menu-item > a:hover,
ul.dropdown-menu > li.menu-item > a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Стили для самого dropdown-menu контейнера */
body #menu-меню-верхнее-3 .dropdown-menu,
body .menu-меню-верхнее-container .dropdown-menu,
body .nav-collapse .dropdown-menu,
#menu-меню-верхнее-3 .dropdown-menu,
.menu-меню-верхнее-container .dropdown-menu,
.nav-collapse .dropdown-menu,
ul.dropdown-menu {
    background: rgba(26, 26, 46, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    margin-top: 8px !important;
}



/* Кнопки социальных сетей - в стиле footer */
.tc-header .header-social-buttons,
.navbar-inner .header-social-buttons,
.navbar-inner .row-fluid .header-social-buttons,
.header-social-button {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
    margin-left: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: flex-end !important;
    transform: translateY(-26px) !important;
    max-width: 200px !important;
}

.tc-header .header-social-buttons,
.navbar-inner .header-social-buttons,
.navbar-inner .row-fluid .header-social-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: flex-end !important;
    align-items: flex-end !important;
    transform: translateY(-26px) !important;
    max-width: 200px !important;
}

.tc-header .header-social-buttons .social-link,
.navbar-inner .header-social-buttons .social-link,
.navbar-inner .row-fluid .header-social-buttons .social-link,
.header-social-button .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    color: white !important;
    border: none !important;
    flex: 1 1 calc(50% - 0.25rem) !important;
    min-width: calc(50% - 0.25rem) !important;
    max-width: calc(50% - 0.25rem) !important;
    box-sizing: border-box !important;
}

.tc-header .header-social-buttons .social-link:hover,
.header-social-button .social-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.9 !important;
}

.tc-header .header-social-buttons .social-link.ozon,
.header-social-button .social-link.ozon {
    background: #005bff !important;
}

.tc-header .header-social-buttons .social-link.ozon:hover,
.header-social-button .social-link.ozon:hover {
    background: #0044cc !important;
}

.tc-header .header-social-buttons .social-link.vk,
.header-social-button .social-link.vk {
    background: #0077ff !important;
}

.tc-header .header-social-buttons .social-link.vk:hover,
.header-social-button .social-link.vk:hover {
    background: #0055cc !important;
}

.tc-header .header-social-buttons .social-link.wildberries,
.header-social-button .social-link.wildberries {
    background: #a026ff !important;
}

.tc-header .header-social-buttons .social-link.wildberries:hover,
.header-social-button .social-link.wildberries:hover {
    background: #8b1dd9 !important;
}

.tc-header .header-social-buttons .social-link.telegram,
.header-social-button .social-link.telegram {
    background: #0088cc !important;
}

.tc-header .header-social-buttons .social-link.telegram:hover,
.header-social-button .social-link.telegram:hover {
    background: #0077b5 !important;
}

/* Адаптивность */
@media (max-width: 992px) {
    .navbar-inner .row-fluid {
        flex-wrap: wrap !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }
    
    .tc-header .header-social-buttons,
    .header-social-button {
        margin-left: 0 !important;
        order: 3 !important;
    }
}

@media (max-width: 768px) {
    .tc-header {
        min-height: auto !important;
    }
    
    .navbar,
    .navbar-inner {
        min-height: auto !important;
    }
    
    .navbar-inner {
        padding: 12px 0 !important;
    }
    
    .navbar-inner .row-fluid {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
        min-height: auto !important;
    }
    
    #menu-меню-верхнее-3,
    .menu-меню-верхнее-container,
    .nav-collapse ul {
        flex-direction: column !important;
        gap: 2px !important;
        width: 100% !important;
    }
    
    #menu-меню-верхнее-3 > li.menu-item > a,
    .menu-меню-верхнее-container > ul > li.menu-item > a,
    .nav-collapse ul > li.menu-item > a {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 15px !important;
    }
    
    .tc-header .header-social-buttons,
    .header-social-button {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }
    
    .tc-header .header-social-buttons .social-link,
    .header-social-button .social-link {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
    }
}

/* ============================================
   ПОЛНОСТЬЮ НОВЫЙ СОВРЕМЕННЫЙ РЕДИЗАЙН СТРАНИЦЫ ТОВАРА
   ============================================ */

/* Контейнер страницы товара - центрирование для 2K */
body.single-product #main-content,
body.single-product #content,
body.single-product .woocommerce {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 50px 40px !important;
    background: #ffffff !important;
}

/* Центрируем контент на больших экранах */
@media (min-width: 1920px) {
    body.single-product #main-content,
    body.single-product #content,
    body.single-product .woocommerce {
        max-width: 1600px !important;
        padding: 60px 80px !important;
    }
}

/* Основной контейнер товара */
body.single-product div.product,
body.single-product #content div.product,
.woocommerce div.product {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 80px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Верхняя часть: изображения + информация - улучшенный layout для 2K */
body.single-product div.product .product-top-wrapper,
.woocommerce div.product .product-top-wrapper {
    display: grid !important;
    grid-template-columns: 550px 1fr !important;
    gap: 50px !important;
    margin-bottom: 40px !important;
    order: 1 !important;
    padding: 50px !important;
    background: #f8f9fa !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Галерея и summary внутри обертки */
body.single-product div.product .product-top-wrapper div.images,
body.single-product div.product .product-top-wrapper div.summary,
.woocommerce div.product .product-top-wrapper div.images,
.woocommerce div.product .product-top-wrapper div.summary {
    order: unset !important;
}

/* Галерея изображений товара - современный дизайн, ограниченная высота */
body.single-product div.product div.images,
.woocommerce div.product div.images {
    width: 100% !important;
    max-width: 500px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    align-self: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ограничиваем высоту галереи до высоты блока описания */
body.single-product div.product div.images .woocommerce-product-gallery,
.woocommerce div.product div.images .woocommerce-product-gallery {
    max-height: 500px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Основное изображение в галерее */
body.single-product div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    max-height: 450px !important;
    overflow: hidden !important;
}

body.single-product div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    margin-bottom: 0 !important;
}

body.single-product div.product div.images img,
.woocommerce div.product div.images img {
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    background: white !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease !important;
}

body.single-product div.product div.images img:hover,
.woocommerce div.product div.images img:hover {
    transform: scale(1.02) !important;
}

/* Миниатюры - современный дизайн */
body.single-product div.product div.thumbnails,
.woocommerce div.product div.thumbnails {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

body.single-product div.product div.thumbnails a,
.woocommerce div.product div.thumbnails a {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: white !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

body.single-product div.product div.thumbnails a img,
.woocommerce div.product div.thumbnails a img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    background: white !important;
}

body.single-product div.product div.thumbnails a:hover img,
body.single-product div.product div.thumbnails a.active img,
.woocommerce div.product div.thumbnails a:hover img,
.woocommerce div.product div.thumbnails a.active img {
    border-color: #dc2626 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
}

/* Блок с информацией о товаре (summary) - улучшенная структура */
body.single-product div.product div.summary,
.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 800px !important;
}

/* Заголовок товара - современный стиль */
body.single-product div.product div.summary h1.product_title,
body.single-product div.product div.summary .product_title,
.woocommerce div.product div.summary h1.product_title,
.woocommerce div.product div.summary .product_title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

/* Цена товара - современный стиль */
body.single-product div.product div.summary .price,
.woocommerce div.product div.summary .price {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0 0 30px 0 !important;
    padding: 20px 0 !important;
    border-bottom: 2px solid #e9ecef !important;
}

body.single-product div.product div.summary .price del,
.woocommerce div.product div.summary .price del {
    font-size: 24px !important;
    color: #999 !important;
    margin-right: 15px !important;
    text-decoration: line-through !important;
}

body.single-product div.product div.summary .price .amount,
.woocommerce div.product div.summary .price .amount {
    color: #000000 !important;
}

body.single-product div.product div.summary .price bdi,
.woocommerce div.product div.summary .price bdi {
    color: #000000 !important;
}

/* Описание товара - улучшенная структура */
body.single-product div.product div.summary .woocommerce-product-details__short-description,
body.single-product div.product div.summary .product-short-description,
.woocommerce div.product div.summary .woocommerce-product-details__short-description,
.woocommerce div.product div.summary .product-short-description {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    margin: 25px 0 35px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Переопределяем для Ozon-стиля */
body.single-product .ozon-product-info .woocommerce-product-details__short-description,
body.single-product .ozon-product-info .short-description,
.woocommerce .ozon-product-info .woocommerce-product-details__short-description,
.woocommerce .ozon-product-info .short-description {
    font-size: 18px !important;
    line-height: 1.8 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Заголовок "Технические характеристики" */
body.single-product div.product div.summary .woocommerce-product-details__short-description h3,
body.single-product div.product div.summary .woocommerce-product-details__short-description h4,
body.single-product div.product div.summary .woocommerce-product-details__short-description strong:first-child,
.woocommerce div.product div.summary .woocommerce-product-details__short-description h3,
.woocommerce div.product div.summary .woocommerce-product-details__short-description h4,
.woocommerce div.product div.summary .woocommerce-product-details__short-description strong:first-child {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #dc2626 !important;
    display: block !important;
}

/* Компактная таблица характеристик в описании - улучшенная структура */
body.single-product div.product div.summary .woocommerce-product-details__short-description table,
body.single-product div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes,
.woocommerce div.product div.summary .woocommerce-product-details__short-description table,
.woocommerce div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes {
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 35px 0 !important;
}

/* Детали (additional_information) внутри summary - центрирование относительно всего product-top-wrapper */
body.single-product div.product .product-top-wrapper .product-details-inline,
body.single-product div.product .product-top-wrapper #tab-additional_information,
body.single-product div.product div.summary .product-details-inline,
body.single-product div.product div.summary #tab-additional_information,
.woocommerce div.product .product-top-wrapper .product-details-inline,
.woocommerce div.product .product-top-wrapper #tab-additional_information,
.woocommerce div.product div.summary .product-details-inline,
.woocommerce div.product div.summary #tab-additional_information {
    grid-column: 1 / -1 !important;
    margin: 20px auto 15px auto !important;
    padding: 30px !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    width: 100% !important;
    max-width: 700px !important;
}

body.single-product div.product div.summary .product-details-inline h2,
body.single-product div.product div.summary #tab-additional_information h2,
.woocommerce div.product div.summary .product-details-inline h2,
.woocommerce div.product div.summary #tab-additional_information h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 25px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #dc2626 !important;
}

/* Форма добавления в корзину - СКРЫВАЕМ */
body.single-product div.product div.summary form.cart,
.woocommerce div.product div.summary form.cart {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Кнопка добавления в корзину - СКРЫВАЕМ */
body.single-product div.product div.summary .single_add_to_cart_button,
body.single-product div.product div.summary button.single_add_to_cart_button,
body.single-product div.product div.summary .quantity,
body.single-product div.product div.summary input.qty,
.woocommerce div.product div.summary .single_add_to_cart_button,
.woocommerce div.product div.summary button.single_add_to_cart_button,
.woocommerce div.product div.summary .quantity,
.woocommerce div.product div.summary input.qty {
    display: none !important;
    visibility: hidden !important;
}

/* Кнопки "КУПИТЬ В ОЗОН" и "СВЯЗАТЬСЯ С НАМИ" - центрирование относительно всего product-top-wrapper */
body.single-product div.product .product-top-wrapper .product-actions,
body.single-product div.product div.summary .product-actions,
body.single-product div.product .ozon-product-info .product-actions,
.woocommerce div.product .product-top-wrapper .product-actions,
.woocommerce div.product div.summary .product-actions,
.woocommerce div.product .ozon-product-info .product-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin: 15px auto 0 auto !important;
    width: 100% !important;
    max-width: 700px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn,
body.single-product div.product .product-top-wrapper .product-actions a,
body.single-product div.product div.summary .product-actions .btn,
body.single-product div.product div.summary .product-actions a,
body.single-product div.product .ozon-product-info .product-actions .btn,
body.single-product div.product .ozon-product-info .product-actions a,
.woocommerce div.product .product-top-wrapper .product-actions .btn,
.woocommerce div.product .product-top-wrapper .product-actions a,
.woocommerce div.product div.summary .product-actions .btn,
.woocommerce div.product div.summary .product-actions a,
.woocommerce div.product .ozon-product-info .product-actions .btn,
.woocommerce div.product .ozon-product-info .product-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    line-height: 1.3 !important;
    width: auto !important;
    min-width: 165px !important;
    flex: 1 1 auto !important;
    padding: 11px 22px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    line-height: 1.3 !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn-ozon,
body.single-product div.product .product-top-wrapper .product-actions a.btn-ozon,
body.single-product div.product div.summary .product-actions .btn-ozon,
body.single-product div.product div.summary .product-actions a.btn-ozon,
.woocommerce div.product .product-top-wrapper .product-actions .btn-ozon,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-ozon,
.woocommerce div.product div.summary .product-actions .btn-ozon,
.woocommerce div.product div.summary .product-actions a.btn-ozon {
    background: #005bff !important;
    color: white !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn-ozon:hover,
body.single-product div.product .product-top-wrapper .product-actions a.btn-ozon:hover,
body.single-product div.product div.summary .product-actions .btn-ozon:hover,
body.single-product div.product div.summary .product-actions a.btn-ozon:hover,
.woocommerce div.product .product-top-wrapper .product-actions .btn-ozon:hover,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-ozon:hover,
.woocommerce div.product div.summary .product-actions .btn-ozon:hover,
.woocommerce div.product div.summary .product-actions a.btn-ozon:hover {
    background: #0044cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3) !important;
    color: white !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn-contact,
body.single-product div.product .product-top-wrapper .product-actions a.btn-contact,
body.single-product div.product div.summary .product-actions .btn-contact,
body.single-product div.product div.summary .product-actions a.btn-contact,
.woocommerce div.product .product-top-wrapper .product-actions .btn-contact,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-contact,
.woocommerce div.product div.summary .product-actions .btn-contact,
.woocommerce div.product div.summary .product-actions a.btn-contact {
    background: #003d99 !important;
    color: white !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn-contact:hover,
body.single-product div.product .product-top-wrapper .product-actions a.btn-contact:hover,
body.single-product div.product div.summary .product-actions .btn-contact:hover,
body.single-product div.product div.summary .product-actions a.btn-contact:hover,
.woocommerce div.product .product-top-wrapper .product-actions .btn-contact:hover,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-contact:hover,
.woocommerce div.product div.summary .product-actions .btn-contact:hover,
.woocommerce div.product div.summary .product-actions a.btn-contact:hover {
    background: #002d73 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 61, 153, 0.3) !important;
    color: white !important;
}

/* Стили для кнопки Wildberries на странице товара */
body.single-product div.product .product-top-wrapper .product-actions .btn-wildberries,
body.single-product div.product .product-top-wrapper .product-actions a.btn-wildberries,
body.single-product div.product div.summary .product-actions .btn-wildberries,
body.single-product div.product div.summary .product-actions a.btn-wildberries,
.woocommerce div.product .product-top-wrapper .product-actions .btn-wildberries,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-wildberries,
.woocommerce div.product div.summary .product-actions .btn-wildberries,
.woocommerce div.product div.summary .product-actions a.btn-wildberries {
    background: #a026ff !important;
    color: white !important;
}

body.single-product div.product .product-top-wrapper .product-actions .btn-wildberries:hover,
body.single-product div.product .product-top-wrapper .product-actions a.btn-wildberries:hover,
body.single-product div.product div.summary .product-actions .btn-wildberries:hover,
body.single-product div.product div.summary .product-actions a.btn-wildberries:hover,
.woocommerce div.product .product-top-wrapper .product-actions .btn-wildberries:hover,
.woocommerce div.product .product-top-wrapper .product-actions a.btn-wildberries:hover,
.woocommerce div.product div.summary .product-actions .btn-wildberries:hover,
.woocommerce div.product div.summary .product-actions a.btn-wildberries:hover {
    background: #8b1dd9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(160, 38, 255, 0.3) !important;
    color: white !important;
}

/* Мета информация товара - центрирование относительно всего product-top-wrapper */
body.single-product div.product .product-top-wrapper .product_meta,
body.single-product div.product div.summary .product_meta,
.woocommerce div.product .product-top-wrapper .product_meta,
.woocommerce div.product div.summary .product_meta {
    grid-column: 1 / -1 !important;
    margin: 15px auto 0 auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #e9ecef !important;
    font-size: 14px !important;
    color: #6c757d !important;
    width: 100% !important;
    max-width: 700px !important;
    text-align: center !important;
}

body.single-product div.product div.summary .product_meta span,
.woocommerce div.product div.summary .product_meta span {
    display: block !important;
    margin-bottom: 10px !important;
}

body.single-product div.product div.summary .product_meta a,
.woocommerce div.product div.summary .product_meta a {
    color: #2563eb !important;
    text-decoration: none !important;
}

body.single-product div.product div.summary .product_meta a:hover,
.woocommerce div.product div.summary .product_meta a:hover {
    text-decoration: underline !important;
}

/* Вкладки товара - скрываем старые, но показываем Ozon-стиль */
body.single-product .woocommerce-tabs:not(.ozon-tabs-wrapper):not(.wc-tabs-wrapper),
.woocommerce .woocommerce-tabs:not(.ozon-tabs-wrapper):not(.wc-tabs-wrapper) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 3 !important;
}

/* Ozon-стиль вкладок показываем */
body.single-product .ozon-tabs-wrapper,
body.single-product .woocommerce-tabs.ozon-tabs-wrapper,
body.single-product .woocommerce-tabs.wc-tabs-wrapper,
.woocommerce .ozon-tabs-wrapper,
.woocommerce .woocommerce-tabs.ozon-tabs-wrapper,
.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    order: 3 !important;
}

/* Скрываем вкладку отзывов */
body.single-product .woocommerce-tabs ul.tabs li.reviews_tab,
body.single-product .woocommerce-tabs #tab-reviews,
.woocommerce .woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce .woocommerce-tabs #tab-reviews {
    display: none !important;
    visibility: hidden !important;
}

/* Похожие товары - внизу, центрированные */
body.single-product .related.products,
body.single-product .upsells.products,
.woocommerce .related.products,
.woocommerce .upsells.products {
    order: 4 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    clear: both !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 40px !important;
}

body.single-product .woocommerce-tabs ul.tabs,
.woocommerce .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #e9ecef !important;
}

body.single-product .woocommerce-tabs ul.tabs li,
.woocommerce .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li a,
.woocommerce .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 18px 30px !important;
    color: #6c757d !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    margin-bottom: -2px !important;
    position: relative !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce .woocommerce-tabs ul.tabs li.active a,
.woocommerce .woocommerce-tabs ul.tabs li a:hover {
    color: #dc2626 !important;
    border-bottom-color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.05) !important;
}

body.single-product .woocommerce-tabs .panel,
.woocommerce .woocommerce-tabs .panel {
    padding: 40px !important;
    background: white !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    margin-top: 20px !important;
}

/* Современные технические характеристики - улучшенный компактный вариант с лучшей типографикой */
body.single-product .woocommerce-product-attributes,
body.single-product table.shop_attributes,
body.single-product div.product div.summary .woocommerce-product-attributes,
body.single-product div.product div.summary table.shop_attributes,
body.single-product div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes,
body.single-product div.product div.summary .woocommerce-product-details__short-description table.shop_attributes,
.woocommerce .woocommerce-product-attributes,
.woocommerce table.shop_attributes,
.woocommerce div.product div.summary .woocommerce-product-attributes,
.woocommerce div.product div.summary table.shop_attributes,
.woocommerce div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes,
.woocommerce div.product div.summary .woocommerce-product-details__short-description table.shop_attributes {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e9ecef !important;
}

body.single-product .woocommerce-product-attributes tr,
body.single-product table.shop_attributes tr,
.woocommerce .woocommerce-product-attributes tr,
.woocommerce table.shop_attributes tr {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.2s ease !important;
}

body.single-product .woocommerce-product-attributes tr:hover,
body.single-product table.shop_attributes tr:hover,
.woocommerce .woocommerce-product-attributes tr:hover,
.woocommerce table.shop_attributes tr:hover {
    background: #f8f9fa !important;
}

body.single-product .woocommerce-product-attributes tr:last-child,
body.single-product table.shop_attributes tr:last-child,
.woocommerce .woocommerce-product-attributes tr:last-child,
.woocommerce table.shop_attributes tr:last-child {
    border-bottom: none !important;
}

body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes-item__label,
body.single-product table.shop_attributes th,
body.single-product div.product div.summary .woocommerce-product-attributes th,
body.single-product div.product div.summary table.shop_attributes th,
body.single-product div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes th,
body.single-product div.product div.summary .woocommerce-product-details__short-description table.shop_attributes th,
.woocommerce .woocommerce-product-attributes th,
.woocommerce .woocommerce-product-attributes-item__label,
.woocommerce table.shop_attributes th,
.woocommerce div.product div.summary .woocommerce-product-attributes th,
.woocommerce div.product div.summary table.shop_attributes th,
.woocommerce div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes th,
.woocommerce div.product div.summary .woocommerce-product-details__short-description table.shop_attributes th {
    width: 40% !important;
    min-width: 180px !important;
    padding: 14px 20px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    vertical-align: middle !important;
    background: #f8f9fa !important;
    border-right: 1px solid #e9ecef !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.2px !important;
}

body.single-product .woocommerce-product-attributes td,
body.single-product .woocommerce-product-attributes-item__value,
body.single-product table.shop_attributes td,
body.single-product div.product div.summary .woocommerce-product-attributes td,
body.single-product div.product div.summary table.shop_attributes td,
body.single-product div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes td,
body.single-product div.product div.summary .woocommerce-product-details__short-description table.shop_attributes td,
.woocommerce .woocommerce-product-attributes td,
.woocommerce .woocommerce-product-attributes-item__value,
.woocommerce table.shop_attributes td,
.woocommerce div.product div.summary .woocommerce-product-attributes td,
.woocommerce div.product div.summary table.shop_attributes td,
.woocommerce div.product div.summary .woocommerce-product-details__short-description .woocommerce-product-attributes td,
.woocommerce div.product div.summary .woocommerce-product-details__short-description table.shop_attributes td {
    width: 60% !important;
    min-width: 250px !important;
    padding: 14px 20px !important;
    text-align: left !important;
    color: #1a1a2e !important;
    vertical-align: middle !important;
    background: white !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.1px !important;
}

/* Адаптивность для страницы товара */
@media (max-width: 1200px) {
    body.single-product div.product .product-top-wrapper,
    .woocommerce div.product .product-top-wrapper {
        grid-template-columns: 450px 1fr !important;
        gap: 50px !important;
    }
}

@media (max-width: 992px) {
    body.single-product #main-content,
    body.single-product #content {
        padding: 30px 20px !important;
    }
    
    body.single-product div.product .product-top-wrapper,
    .woocommerce div.product .product-top-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 30px !important;
    }
    
    body.single-product div.product div.images,
    .woocommerce div.product div.images {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    body.single-product div.product div.images img,
    .woocommerce div.product div.images img {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.single-product #main-content,
    body.single-product #content {
        padding: 20px 15px !important;
    }
    
    body.single-product div.product .product-top-wrapper,
    .woocommerce div.product .product-top-wrapper {
        padding: 20px !important;
        border-radius: 12px !important;
    }
    
    body.single-product div.product div.summary h1.product_title,
    .woocommerce div.product div.summary h1.product_title {
        font-size: 28px !important;
    }
    
    body.single-product div.product div.summary .price,
    .woocommerce div.product div.summary .price {
        font-size: 28px !important;
    }
    
    body.single-product div.product div.summary .product-actions,
    .woocommerce div.product div.summary .product-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    body.single-product div.product div.summary .product-actions .btn,
    body.single-product div.product div.summary .product-actions a,
    .woocommerce div.product div.summary .product-actions .btn,
    .woocommerce div.product div.summary .product-actions a {
        width: 100% !important;
        min-width: auto !important;
        padding: 16px 25px !important;
        font-size: 16px !important;
    }
    
    body.single-product .woocommerce-tabs ul.tabs,
    .woocommerce .woocommerce-tabs ul.tabs {
        flex-direction: column !important;
        gap: 0 !important;
        border-bottom: none !important;
    }
    
    body.single-product .woocommerce-tabs ul.tabs li a,
    .woocommerce .woocommerce-tabs ul.tabs li a {
        border-bottom: none !important;
        border-left: 4px solid transparent !important;
        margin-bottom: 0 !important;
        padding: 15px 20px !important;
    }
    
    body.single-product .woocommerce-tabs ul.tabs li.active a,
    body.single-product .woocommerce-tabs ul.tabs li a:hover,
    .woocommerce .woocommerce-tabs ul.tabs li.active a,
    .woocommerce .woocommerce-tabs ul.tabs li a:hover {
        border-left-color: #dc2626 !important;
        border-bottom-color: transparent !important;
    }
    
    body.single-product .woocommerce-tabs .panel,
    .woocommerce .woocommerce-tabs .panel {
        padding: 25px !important;
    }
    
    body.single-product .woocommerce-product-attributes th,
    body.single-product table.shop_attributes th,
    .woocommerce .woocommerce-product-attributes th,
    .woocommerce table.shop_attributes th {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    body.single-product .woocommerce-product-attributes td,
    body.single-product table.shop_attributes td,
    .woocommerce .woocommerce-product-attributes td,
    .woocommerce table.shop_attributes td {
        width: 100% !important;
        display: block !important;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДЛЯ ПАНЕЛИ ФИЛЬТРОВ
   ============================================ */

/* Улучшенная кнопка "СБРОС ФИЛЬТРОВ" */
aside#secondary .woof_reset_btn,
.woocommerce-sidebar .woof_reset_btn,
.czr-sidebar-inner .woof_reset_btn,
.woof_reset_btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3) !important;
    width: 100% !important;
    margin-top: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

aside#secondary .woof_reset_btn:hover,
.woocommerce-sidebar .woof_reset_btn:hover,
.czr-sidebar-inner .woof_reset_btn:hover,
.woof_reset_btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

/* Улучшенные отступы между секциями фильтров */
.czr-sidebar-inner .woof_redraw_zone .woof_container {
    margin-bottom: 20px !important;
}

.czr-sidebar-inner .woof_list_label {
    gap: 6px !important;
    margin-top: 8px !important;
}

/* Улучшенные счетчики товаров в категориях */
aside#secondary .product-categories .count,
.woocommerce-sidebar .product-categories .count {
    background: #EE4D2D !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 6px !important;
}

/* Улучшенные ссылки категорий */
aside#secondary .product-categories li a,
.woocommerce-sidebar .product-categories li a {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: 1.5px solid #e0e0e0 !important;
    min-width: auto !important;
    width: auto !important;
    max-width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
}

aside#secondary .product-categories li a:hover,
.woocommerce-sidebar .product-categories li a:hover {
    border-color: #ff8c42 !important;
    background: #ff8c42 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25) !important;
}

/* ============================================
   СТИЛИ СТРАНИЦЫ ТОВАРА В СТИЛЕ OZON
   ============================================ */

/* Секции Описание и Характеристики */
.ozon-product-description,
.ozon-product-characteristics {
    margin-bottom: 40px !important;
    padding: 30px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .ozon-product-characteristics,
.woocommerce .ozon-product-characteristics {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Заголовок секции характеристик с кнопкой */
.ozon-characteristics-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .ozon-characteristics-header,
.woocommerce .ozon-characteristics-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ozon-section-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Кнопка "Добавить к сравнению" */
.ozon-compare-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.ozon-compare-button:hover {
    background: #f8f9fa !important;
    border-color: #003d99 !important;
    color: #003d99 !important;
}

.ozon-compare-button svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

/* Описание товара */
.ozon-description-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.ozon-description-content p {
    margin-bottom: 16px !important;
}

.ozon-description-content p:last-child {
    margin-bottom: 0 !important;
}

/* Характеристики - таблица в стиле Ozon */
/* Таблица характеристик - видимая как на Ozon */
.ozon-characteristics-table {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .ozon-characteristics-table,
.woocommerce .ozon-characteristics-table {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .ozon-characteristics-table,
.woocommerce .ozon-characteristics-table {
    display: block !important;
    width: 100% !important;
}

.ozon-characteristics-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .ozon-characteristics-columns,
.woocommerce .ozon-characteristics-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ozon-characteristics-column {
    padding: 0 20px 0 0 !important;
}

.ozon-characteristics-column-right {
    padding: 0 0 0 20px !important;
    border-left: 1px solid #e0e0e0 !important;
}

.ozon-characteristic-row {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.ozon-characteristic-row:last-child {
    border-bottom: none !important;
}

.ozon-characteristic-label {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
}

.ozon-characteristic-value {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 400 !important;
}

/* Дисклеймер внизу характеристик */
.ozon-characteristics-disclaimer {
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e0e0e0 !important;
    font-size: 12px !important;
    color: #999 !important;
    line-height: 1.5 !important;
    font-style: italic !important;
}

/* Вкладки в стиле Ozon */
.ozon-tabs-wrapper {
    margin-top: 40px !important;
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 0 !important;
}

.ozon-tabs {
    display: flex !important;
    gap: 0 !important;
    border-bottom: 2px solid #e0e0e0 !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    list-style: none !important;
}

.ozon-tab-item {
    margin: 0 !important;
    padding: 0 !important;
}

.ozon-tab-link {
    display: block !important;
    padding: 16px 24px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    margin-bottom: -2px !important;
}

.ozon-tab-item.active .ozon-tab-link,
.ozon-tab-link:hover {
    color: #003d99 !important;
    border-bottom-color: #003d99 !important;
    font-weight: 500 !important;
}

.ozon-tab-panel {
    padding: 0 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .ozon-characteristics-columns {
        grid-template-columns: 1fr !important;
    }
    
    .ozon-characteristics-column {
        padding: 0 !important;
    }
    
    .ozon-characteristics-column-right {
        padding: 0 !important;
        border-left: none !important;
        border-top: 1px solid #e0e0e0 !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    
    .ozon-section-title {
        font-size: 20px !important;
    }
    
    .ozon-description-content {
        font-size: 14px !important;
    }
    
    .ozon-characteristic-label,
    .ozon-characteristic-value {
        font-size: 14px !important;
    }
    
    .ozon-tabs {
        flex-wrap: wrap !important;
    }
    
    .ozon-tab-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   ПОЛНАЯ ПЕРЕДЕЛКА СТРАНИЦЫ ТОВАРА В СТИЛЕ OZON
   ============================================ */

/* Основной контейнер страницы товара */
.ozon-product-page {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background: #ffffff !important;
}

/* Верхняя часть: Изображения + Информация */
.ozon-product-top {
    display: grid !important;
    grid-template-columns: 500px 1fr !important;
    gap: 50px !important;
    margin-bottom: 60px !important;
    padding: 40px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
}

/* Галерея изображений */
.ozon-product-images {
    width: 100% !important;
    max-width: 500px !important;
}

.ozon-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.ozon-gallery-main {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.ozon-main-image-wrapper {
    width: 100% !important;
    padding: 20px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Плашка не должна растягиваться из-за flex */
.ozon-main-image-wrapper > .onsale,
.ozon-main-image-wrapper > .ozon-sale-badge,
.ozon-main-image-wrapper > span.onsale,
.ozon-main-image-wrapper > span.ozon-sale-badge {
    align-self: flex-start !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: auto !important;
    max-width: fit-content !important;
    min-width: auto !important;
}

.ozon-main-image {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.ozon-gallery-thumbnails {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* product_meta под миниатюрами */
.ozon-product-gallery .product_meta {
    text-align: left !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    padding: 10px 0 !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.ozon-product-gallery .product_meta span {
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    vertical-align: top !important;
}

.ozon-product-gallery .product_meta span.sku_wrapper {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 8px 0 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.ozon-thumbnail-wrapper {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #e0e0e0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.ozon-thumbnail-wrapper:hover,
.ozon-thumbnail-wrapper.active {
    border-color: #ff8c42 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2) !important;
}

.ozon-thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
}

/* Кнопки навигации галереи */
.ozon-gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #ff8c42 !important;
    color: #ff8c42 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    font-size: 32px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ozon-gallery-nav:hover {
    background: #ff8c42 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3) !important;
}

.ozon-gallery-prev {
    left: 20px !important;
}

.ozon-gallery-next {
    right: 20px !important;
}

.ozon-gallery-main {
    position: relative !important;
    overflow: visible !important;
}

/* Убеждаемся, что кнопки видны */
.ozon-product-gallery .ozon-gallery-main {
    position: relative !important;
    overflow: visible !important;
}

.ozon-main-image-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

/* Плашка "Распродажа!" на странице товара - в правом верхнем углу изображения */
.ozon-product-gallery .onsale,
.ozon-product-gallery .ozon-sale-badge,
.ozon-main-image-wrapper .onsale,
.ozon-main-image-wrapper .ozon-sale-badge,
body.single-product .ozon-main-image-wrapper .onsale,
body.single-product .ozon-main-image-wrapper .ozon-sale-badge,
body.single-product .ozon-product-gallery .ozon-main-image-wrapper .onsale,
body.single-product .ozon-product-gallery .ozon-main-image-wrapper .ozon-sale-badge,
body.single-product .ozon-main-image-wrapper > .onsale,
body.single-product .ozon-main-image-wrapper > .ozon-sale-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #ff0000 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    z-index: 100 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    width: auto !important;
    min-width: auto !important;
    max-width: fit-content !important;
    height: auto !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-sizing: content-box !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    align-self: flex-start !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    left: auto !important;
    bottom: auto !important;
}

/* Убираем плашку из других мест на странице товара */
body.single-product .ozon-product-images .onsale:not(.ozon-sale-badge):not(.ozon-main-image-wrapper .onsale),
body.single-product .ozon-product-image .onsale:not(.ozon-sale-badge):not(.ozon-main-image-wrapper .onsale),
body.single-product .ozon-product-gallery .onsale:not(.ozon-sale-badge):not(.ozon-main-image-wrapper .onsale),
body.single-product .ozon-product-images > .onsale,
body.single-product .ozon-product-image > .onsale {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопки навигации галереи */
.ozon-gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #ff8c42 !important;
    color: #ff8c42 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    font-size: 32px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
}

.ozon-gallery-nav:hover {
    background: #ff8c42 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3) !important;
}

.ozon-gallery-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.ozon-gallery-prev {
    left: 20px !important;
}

.ozon-gallery-next {
    right: 20px !important;
}

/* Скрываем кнопки на мобильных, если нужно */
@media (max-width: 768px) {
    .ozon-gallery-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
    }
    
    .ozon-gallery-prev {
        left: 10px !important;
    }
    
    .ozon-gallery-next {
        right: 10px !important;
    }
}

/* Блок информации о товаре */
.ozon-product-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    align-self: flex-start !important;
}

.ozon-product-info h1.product_title {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.ozon-product-info .price {
    font-size: 36px !important;
    font-weight: bold !important;
    color: #EE4D2D !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Краткое описание товара */
/* Краткое описание товара - увеличенный размер, БЕЗ ОГРАНИЧЕНИЙ, КОМПАКТНОЕ */
.ozon-product-info .woocommerce-product-details__short-description,
.ozon-product-info .short-description,
body.single-product .ozon-product-info .woocommerce-product-details__short-description,
body.single-product .ozon-product-info .short-description,
.woocommerce .ozon-product-info .woocommerce-product-details__short-description,
.woocommerce .ozon-product-info .short-description,
body.single-product div.product div.summary .woocommerce-product-details__short-description,
body.single-product div.product div.summary .product-short-description,
.woocommerce div.product div.summary .woocommerce-product-details__short-description,
.woocommerce div.product div.summary .product-short-description {
    font-size: 18px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    text-align: left !important;
    margin: 0 0 20px 0 !important;
    max-height: none !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-overflow: clip !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ozon-product-info .woocommerce-product-details__short-description p,
.ozon-product-info .short-description p,
body.single-product .ozon-product-info .woocommerce-product-details__short-description p,
body.single-product .ozon-product-info .short-description p,
.woocommerce .ozon-product-info .woocommerce-product-details__short-description p,
.woocommerce .ozon-product-info .short-description p,
body.single-product div.product div.summary .woocommerce-product-details__short-description p,
body.single-product div.product div.summary .product-short-description p,
.woocommerce div.product div.summary .woocommerce-product-details__short-description p,
.woocommerce div.product div.summary .product-short-description p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    color: #333 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.ozon-product-info .woocommerce-product-details__short-description p:last-child,
.ozon-product-info .short-description p:last-child,
body.single-product .ozon-product-info .woocommerce-product-details__short-description p:last-child,
.woocommerce .ozon-product-info .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0 !important;
}

/* Переопределяем все возможные ограничения высоты */
.ozon-product-info .woocommerce-product-details__short-description *,
.ozon-product-info .short-description *,
body.single-product div.product div.summary .woocommerce-product-details__short-description *,
.woocommerce div.product div.summary .woocommerce-product-details__short-description * {
    max-height: none !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.ozon-product-info .price ins {
    text-decoration: none !important;
    display: inline-block !important;
    order: -1 !important;
}

.ozon-product-info .price ins .amount,
.ozon-product-info .price ins bdi {
    color: #EE4D2D !important;
    display: inline-block !important;
    font-size: 36px !important;
    font-weight: bold !important;
}

.ozon-product-info .price del {
    font-size: 24px !important;
    color: #999 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-weight: normal !important;
    display: inline-block !important;
    order: 1 !important;
    text-decoration: line-through !important;
}

.ozon-product-info .price del *,
.ozon-product-info .price del span,
.ozon-product-info .price del .amount,
.ozon-product-info .price del bdi,
.ozon-product-info .price del .woocommerce-Price-amount {
    color: #999 !important;
    display: inline-block !important;
    font-size: 24px !important;
    text-decoration: line-through !important;
}

.ozon-product-info p.price del,
body.single-product .ozon-product-info p.price del,
body.single-product .ozon-product-info .price del {
    text-decoration: line-through !important;
}

.ozon-product-info p.price del *,
body.single-product .ozon-product-info p.price del *,
body.single-product .ozon-product-info .price del *,
.ozon-product-info p.price del span,
.ozon-product-info p.price del bdi,
.ozon-product-info p.price del .amount,
.ozon-product-info p.price del .woocommerce-Price-amount {
    text-decoration: line-through !important;
}

.ozon-product-info .price .amount,
.ozon-product-info .price bdi {
    color: #EE4D2D !important;
    display: inline-block !important;
}

/* Секция вкладок */
.ozon-product-tabs-section {
    margin-top: 40px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .ozon-product-top {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px !important;
    }
    
    .ozon-product-images {
        max-width: 100% !important;
    }
    
    .ozon-main-image {
        max-height: 400px !important;
    }
}

@media (max-width: 768px) {
    .ozon-product-page {
        padding: 20px 10px !important;
    }
    
    .ozon-product-top {
        padding: 20px !important;
        gap: 20px !important;
    }
    
    .ozon-product-info h1.product_title {
        font-size: 24px !important;
    }
    
    .ozon-product-info .price {
        font-size: 28px !important;
    }
    
    .ozon-product-info .price ins .amount,
    .ozon-product-info .price ins bdi {
        font-size: 28px !important;
    }
    
    .ozon-product-info .price del {
        font-size: 20px !important;
    }
    
    .ozon-product-info .price del .amount,
    .ozon-product-info .price del bdi {
        font-size: 20px !important;
    }
    
    .ozon-gallery-thumbnails {
        gap: 8px !important;
    }
    
    .ozon-thumbnail-wrapper {
        width: 70px !important;
        height: 70px !important;
    }
}

/* =====================================================
   ФИЛЬТРЫ WOOF - ПРАВИЛЬНАЯ СТИЛИЗАЦИЯ
   Добавлено: 2026-01-12
   ===================================================== */

/* Показываем все фильтры WOOF */
.woof_redraw_zone > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Контейнеры фильтров - современный вид */
.woof_container {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Заголовки фильтров */
.woof_container h4,
.woof_block_html_title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 2px solid #3b82f6 !important;
    text-align: left !important;
}

/* Чекбоксы как теги */
.woof_list_checkbox {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-height: none !important;
    overflow: visible !important;
}

.woof_checkbox_label {
    display: inline-flex !important;
    padding: 6px 12px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

.woof_checkbox_label:hover {
    background: #e5e7eb !important;
}

.woof_checkbox_term:checked + .woof_checkbox_label {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* Скрываем лишние фильтры */
.woof_container_pa_weight_g,
.woof_container_pa_equipment,
.woof_container_pa_material,
.woof_container_pa_density,
.woof_container_pa_country,
.woof_container_pa_bottom_type,
.woof_container_pa_keel_type,
.woof_container_by_instock {
    display: none !important;
}

/* Пассажировместимость - сетка 2x2 */
.woof_container_pa_passengers .woof_list_checkbox {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    justify-items: center !important;
}

/* Убираем внешнюю рамку виджета WOOF */
aside#woof_widget-2,
.widget.WOOF_Widget,
.widget-woof {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Скрываем заголовок "Фильтры товаров" */
.widget-woof > h3.widget-title {
    display: none !important;
}

/* Убираем тень при наведении для кастомного блока фильтров */
.widget.widget_aquapro_attribute_filter,
.widget.widget_aquapro_attribute_filter:hover,
aside#secondary .widget.widget_aquapro_attribute_filter:hover {
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* =====================================================
   УБИРАЕМ ОГРАНИЧЕНИЕ ВЫСОТЫ САЙДБАРА
   ===================================================== */

/* Вся цепочка родителей - без ограничений */
#tc-page-wrap,
#main-content,
#main-wrapper,
.container,
.row.column-content-wrapper,
#content,
.woocommerce-shop-wrapper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Сайдбар - абсолютно без ограничений */
aside#secondary,
aside#secondary.woocommerce-sidebar,
aside#secondary.widget-area,
.woocommerce-sidebar,
#secondary {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    align-self: flex-start !important;

/* ПЕРЕОПРЕДЕЛЕНИЕ ДЛЯ СТРАНИЦЫ ТОВАРА НА МОБИЛЬНЫХ - КНОПКИ ПО 45% */
@media (max-width: 768px) {
    /* Переопределяем правила для страницы товара */
    body.single-product .woocommerce div.product .ozon-product-info .product-actions a.btn-ozon,
    body.single-product .woocommerce div.product .ozon-product-info .product-actions a.btn-wildberries,
    body.single-product .woocommerce div.product .ozon-product-info .product-actions a.btn.btn-ozon,
    body.single-product .woocommerce div.product .ozon-product-info .product-actions a.btn.btn-wildberries,
    body.single-product div.product .ozon-product-info .product-actions a.btn-ozon,
    body.single-product div.product .ozon-product-info .product-actions a.btn-wildberries,
    body.single-product div.product .ozon-product-info .product-actions a.btn.btn-ozon,
    body.single-product div.product .ozon-product-info .product-actions a.btn.btn-wildberries {
        width: calc(25% - 4px) !important;
        max-width: calc(25% - 4px) !important;
        min-width: 0 !important;
        flex: 0 0 calc(25% - 4px) !important;
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
        flex-basis: calc(25% - 4px) !important;
        padding: 10px 6px !important;
        font-size: 11px !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body.single-product .woocommerce div.product .ozon-product-info .product-actions,
    body.single-product div.product .ozon-product-info .product-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ИСПРАВЛЕНИЕ ТАБЛИЦЫ ХАРАКТЕРИСТИК НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    /* Контейнер таблицы - убираем лишние отступы */
    body.single-product .ozon-product-characteristics,
    .woocommerce .ozon-product-characteristics {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 0 !important;
        margin: 0 !important;
    }
    
    /* Таблица характеристик */
    body.single-product .ozon-characteristics-table,
    .woocommerce .ozon-characteristics-table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Колонки - исправляем выравнивание */
    body.single-product .ozon-characteristics-columns,
    .woocommerce .ozon-characteristics-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Левая колонка */
    body.single-product .ozon-characteristics-column-left,
    .woocommerce .ozon-characteristics-column-left,
    body.single-product .ozon-characteristics-column:first-child,
    .woocommerce .ozon-characteristics-column:first-child {
        padding: 0 10px 0 0 !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
    }
    
    /* Правая колонка */
    body.single-product .ozon-characteristics-column-right,
    .woocommerce .ozon-characteristics-column-right,
    body.single-product .ozon-characteristics-column:last-child,
    .woocommerce .ozon-characteristics-column:last-child {
        padding: 0 0 0 10px !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        border-left: 1px solid #e0e0e0 !important;
    }
    
    /* Строки характеристик - выравнивание по высоте */
    body.single-product .ozon-characteristic-row,
    .woocommerce .ozon-characteristic-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Метка характеристики */
    body.single-product .ozon-characteristic-label,
    .woocommerce .ozon-characteristic-label {
        font-size: 13px !important;
        color: #666 !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Значение характеристики */
    body.single-product .ozon-characteristic-value,
    .woocommerce .ozon-characteristic-value {
        font-size: 14px !important;
        color: #333 !important;
        font-weight: 400 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* ИСПРАВЛЕНИЕ ВЫРАВНИВАНИЯ СТРОК В ТАБЛИЦЕ ХАРАКТЕРИСТИК НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    /* Используем grid для синхронизации строк */
    body.single-product .ozon-characteristics-columns,
    .woocommerce .ozon-characteristics-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: min-content !important;
        align-items: start !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Левая колонка - выравнивание по верху */
    body.single-product .ozon-characteristics-column-left,
    .woocommerce .ozon-characteristics-column-left,
    body.single-product .ozon-characteristics-column:first-child,
    .woocommerce .ozon-characteristics-column:first-child {
        padding: 0 10px 0 0 !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Правая колонка - выравнивание по верху */
    body.single-product .ozon-characteristics-column-right,
    .woocommerce .ozon-characteristics-column-right,
    body.single-product .ozon-characteristics-column:last-child,
    .woocommerce .ozon-characteristics-column:last-child {
        padding: 0 0 0 10px !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        border-left: 1px solid #e0e0e0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Строки характеристик - одинаковая высота и выравнивание */
    body.single-product .ozon-characteristic-row,
    .woocommerce .ozon-characteristic-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        min-height: 74px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    /* Синхронизация высоты строк - используем одинаковую высоту для всех строк */
    body.single-product .ozon-characteristics-column-left .ozon-characteristic-row,
    .woocommerce .ozon-characteristics-column-left .ozon-characteristic-row,
    body.single-product .ozon-characteristics-column:first-child .ozon-characteristic-row,
    .woocommerce .ozon-characteristics-column:first-child .ozon-characteristic-row {
        min-height: 74px !important;
        height: auto !important;
    }
    
    body.single-product .ozon-characteristics-column-right .ozon-characteristic-row,
    .woocommerce .ozon-characteristics-column-right .ozon-characteristic-row,
    body.single-product .ozon-characteristics-column:last-child .ozon-characteristic-row,
    .woocommerce .ozon-characteristics-column:last-child .ozon-characteristic-row {
        min-height: 74px !important;
        height: auto !important;
    }
    
    /* Метка характеристики */
    body.single-product .ozon-characteristic-label,
    .woocommerce .ozon-characteristic-label {
        font-size: 13px !important;
        color: #666 !important;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
    }
    
    /* Значение характеристики */
    body.single-product .ozon-characteristic-value,
    .woocommerce .ozon-characteristic-value {
        font-size: 14px !important;
        color: #333 !important;
        font-weight: 400 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
    }
}
