/**
 * WC Hero Filter Styles
 */

/* Hero Section */
.wch-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}


.wch-filters-section{
    position: relative;
    z-index: 9;
}

.wch-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wch-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.wch-hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wch-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Filters Section */
.wch-filters-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #dee2e6;
}

.wch-filters-container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    justify-content: center;
}

.wch-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.wch-filter-group label {
    font-weight: normal;
    margin-bottom: 3px;
    color: #333;
    font-size: 14px;
    position: relative;
    top: 2px;
    margin-top: 2px;
}

.wch-filter-select,
.wch-filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.wch-filter-select:focus,
.wch-filter-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Custom Multi-Select Styles */
.wch-custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.wch-custom-select .wch-select-button {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wch-custom-select .wch-select-button:hover {
    border-color: #007cba;
}

.wch-custom-select .wch-select-button:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.wch-custom-select .wch-select-button::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.wch-custom-select.wch-open .wch-select-button::after {
    transform: translateY(-50%) rotate(180deg);
}

.wch-custom-select .wch-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wch-custom-select.wch-open .wch-select-dropdown {
    display: block;
}

.wch-custom-select .wch-select-option {
    padding: 3px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wch-custom-select .wch-select-option:hover {
    background-color: #f8f9fa;
}

.wch-custom-select .wch-select-option.wch-selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.wch-custom-select .wch-select-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.wch-custom-select .wch-select-text {
    color: #666;
}

.wch-custom-select .wch-select-text.wch-has-selection {
    color: #333;
    font-style: normal;
}

/* Global selected tags container */
.wch-selected-filters {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    display: none; /* Hidden by default */
    position: relative;
}

.wch-selected-filters.wch-has-selections {
    display: block;
}

.wch-selected-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.wch-clear-all-filters {
    color: #222;
    border: none;
    padding: 6px 0;
    border-radius: 0;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: auto;
    position: absolute;
    right: 18px;
    bottom: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    font-weight: 500;
}

.wch-clear-all-filters:hover {
   color: #c82333;
    border-color: #c82333;
    cursor: pointer;
}

/* Selected tags display */
.wch-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wch-selected-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bbdefb;
    transition: all 0.2s ease;
}

.wch-selected-tag:hover {
    background: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wch-selected-tag .wch-remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #1976d2;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(25, 118, 210, 0.1);
}

.wch-selected-tag .wch-remove-tag:hover {
    opacity: 1;
    background: rgba(25, 118, 210, 0.2);
}

.wch-price-filter .wch-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wch-price-filter .wch-filter-input {
    width: 80px;
}

.wch-price-separator {
    color: #666;
    font-weight: bold;
}

.wch-checkbox-filters {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.wch-checkbox-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}



/* Loading */
.wch-loading {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
}

.wch-loading p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Products Section */
.wch-products-section {
    padding: 40px 0;
}

.wch-products-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Cards */
.wch-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wch-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wch-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.wch-sale-badge,
.wch-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.wch-sale-badge {
    background: #e74c3c;
}

.wch-featured-badge {
    background: #f39c12;
    top: 35px;
}

.wch-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wch-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.wch-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wch-product-title a:hover {
    color: #007cba;
}

.wch-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.wch-stars {
    display: flex;
    gap: 2px;
}

.wch-star {
    color: #ddd;
    font-size: 14px;
}

.wch-star.filled {
    color: #ffc107;
}

.wch-rating-count {
    font-size: 12px;
    color: #666;
}

.wch-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.wch-product-price del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.wch-product-actions {
    margin-top: auto;
}

.wch-view-product {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
    width: 100%;
}

.wch-view-product:hover {
    background: #005a87;
    color: white;
}

/* Products Count */
.wch-products-count {
    text-align: center;
    margin-top: 70px;
    padding: 0 20px;
}

.wch-products-count p {
    margin: 0;
    color: #666;
    font-size: 14px;
    background: #fff;
    border-radius: 100px;
    display: inline-block;
    padding: 10px 25px;
}

/* No Products */
.wch-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wch-no-products p {
    margin: 0;
    font-size: 16px;
}

/* WCH Products Slider Customization */
.wch-products-slider .slick-arrow {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    opacity: 0.9;
    font-size: 0; /* Hide default text */
    text-indent: -9999px; /* Hide default text */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wch-products-slider .slick-arrow:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    opacity: 1;
}

.wch-products-slider .slick-arrow:before {
    font-size: 24px;
    color: #ffffff; /* Default icon color, can be overridden */
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    display: block;
}

.wch-products-slider .slick-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.wch-products-slider .slick-arrow:active {
    transform: scale(0.95);
}

/* WCH Custom Arrow Icons */
.wch-products-slider .slick-prev:before {
    content: '‹';
}

.wch-products-slider .slick-next:before {
    content: '›';
}

.wch-products-slider .slick-prev {
    left: -30px;
}

.wch-products-slider .slick-next {
    right: -30px;
}

/* WCH Products Slider Dots */
.wch-products-slider .slick-dots {
    bottom: -60px;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wch-products-slider .slick-dots li {
    width: 16px;
    height: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wch-products-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #007cba; /* Default color, can be overridden */
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.wch-products-slider .slick-dots li button:before {
    display: none !important;
    content: none !important;
}

.wch-products-slider .slick-dots li button:after {
    display: none !important;
    content: none !important;
}

.wch-products-slider .slick-dots li button:hover {
    border-color: #005a87; /* Default hover color, can be overridden */
    transform: scale(1.2);
    opacity: 1;
}

.wch-products-slider .slick-dots li.slick-active button {
    background: #007cba; /* Default active color, can be overridden */
    border-color: #007cba; /* Default active color, can be overridden */
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.4);
}

.wch-products-slider .slick-dots li button:focus {
    outline: 2px solid rgba(0, 124, 186, 0.5);
    outline-offset: 2px;
}

/* Override all Slick default text and positioning */
.wch-products-slider .slick-arrow {
    color: transparent !important;
    background-color: transparent;
}

.wch-products-slider .slick-arrow::after {
    display: none !important;
}

.wch-products-slider .slick-prev,
.wch-products-slider .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: #007cba; /* Default color, can be overridden */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.wch-products-slider .slick-prev:hover,
.wch-products-slider .slick-next:hover {
    background: #005a87; /* Default hover color, can be overridden */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    opacity: 1;
}

.wch-products-slider .slick-prev:active,
.wch-products-slider .slick-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide all default Slick text content */
.wch-products-slider .slick-arrow span {
    display: none !important;
}

.wch-products-slider .slick-dots li button span {
    display: none !important;
}

.wch-products-slider .slick-dots li {
    font-size: 0 !important;
    line-height: 0 !important;
}

.wch-products-slider .slick-dots li * {
    font-size: 0 !important;
    text-indent: -9999px !important;
}

/* WCH Category Navigation Dots (Hero Slider) */
.wch-category-nav {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.wch-category-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); /* Default color, can be overridden */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.wch-category-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.wch-category-dot.active {
    background: white;
    transform: scale(1.4);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.wch-category-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #007cba; /* Default active color, can be overridden */
    border-radius: 50%;
    animation: wch-pulse 2s infinite;
}

@keyframes wch-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Debug Info */
.wch-debug-info {
    font-family: monospace;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wch-hero-title {
        font-size: 2rem;
    }
    
    .wch-hero-subtitle {
        font-size: 1rem;
    }
    
    .wch-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wch-filter-group {
        min-width: auto;
    }
    
    .wch-checkbox-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wch-filter-actions {
        justify-content: center;
    }
    
    /* WCH Mobile Slider Arrows */
    .wch-products-slider .slick-arrow {
        width: 45px;
        height: 45px;
        opacity: 0.8;
    }
    
    .wch-products-slider .slick-prev {
        left: 15px;
    }
    
    .wch-products-slider .slick-next {
        right: 15px;
    }
    
    /* WCH Mobile Category Navigation */
    .wch-category-nav {
        bottom: 20px;
        padding: 8px 16px;
        gap: 10px;
    }
    
    .wch-category-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .wch-hero-section {
        min-height: 300px;
    }
    
    .wch-hero-title {
        font-size: 1.5rem;
    }
    
    .wch-filters-section {
        padding: 20px 0;
    }
    
    .wch-products-section {
        padding: 20px 0;
    }
    
    .wch-product-card {
        margin: 0 5px;
    }
}

/* Dynamic Category Content in Hero */
.wch-hero-categories {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.wch-category-slider {
    position: relative;
}

.wch-category-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.wch-category-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 400px;
}

.wch-category-content {
    padding: 20px;
}

.wch-category-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 400;
}

.wch-category-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.wch-category-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.wch-category-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wch-category-button:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.wch-category-button .button-decor {
    margin-left: 10px;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.wch-category-button .button-decor::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.wch-category-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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



/* Responsive Design */
@media (max-width: 768px) {
    .wch-category-slide.active {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .wch-category-title {
        font-size: 2rem;
    }
    
    .wch-category-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .wch-category-title {
        font-size: 1.5rem;
    }
    
    .wch-category-description {
        font-size: 1rem;
    }
    
    .wch-category-image img {
        height: 200px;
    }
}

/* WCH Products Grid Layout (when carousel is disabled) */
.wch-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 25%); /* явные 25% */
    gap: 30px;
    padding: 20px 0;
}

.wch-products-grid .wch-product-card {
    width: 100%;
    max-width: none;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wch-products-grid .wch-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* No products found styles */
.wch-products-grid.wch-has-no-products {
    grid-template-columns: 1fr; /* Single column for no products message */
    text-align: center;
    padding: 60px 20px;
}

.wch-no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
    padding: 40px 20px;
}

.wch-no-products p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wch-no-products::before {
    content: '🔍';
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* No products in slider */
.wch-products-slider .wch-no-products {
    margin: 20px auto;
    max-width: 400px;
}

/* Filters Skeleton Loader */
.wch-filters-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.wch-filters-skeleton.wch-hidden {
    opacity: 0;
    pointer-events: none;
}

.wch-filter-skeleton {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.wch-filter-skeleton-label {
    width: 80px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wch-filter-skeleton-select {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.wch-filter-skeleton-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ccc;
    animation: wch-skeleton-loading 1.5s infinite;
}

@keyframes wch-skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes wch-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Filters container positioning */
.wch-filters-container {
    position: relative;
    min-height: 36px;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .wch-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .wch-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px 0;
    }
    
    .wch-products-grid.wch-has-no-products {
        padding: 40px 15px;
    }
    
    .wch-no-products {
        min-height: 150px;
        padding: 30px 15px;
    }
    
    .wch-no-products::before {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .wch-no-products p {
        font-size: 1.1rem;
    }
    
    /* Filters skeleton responsive */
    .wch-filters-skeleton {
        gap: 15px;
        padding: 15px;
    }
    
    .wch-filter-skeleton {
        min-width: 180px;
        max-width: 250px;
    }
    
    .wch-filter-skeleton-select {
        height: 42px;
    }
}

@media (max-width: 480px) {
    .wch-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 0;
    }
    
    .wch-products-grid.wch-has-no-products {
        padding: 30px 10px;
    }
    
    .wch-no-products {
        min-height: 120px;
        padding: 25px 10px;
        border-radius: 8px;
    }
    
    .wch-no-products::before {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .wch-no-products p {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .wch-products-grid .wch-product-card {
        max-width: 100%;
    }
    
    /* Filters skeleton mobile */
    .wch-filters-skeleton {
        gap: 12px;
        padding: 12px;
        flex-direction: column;
    }
    
    .wch-filter-skeleton {
        min-width: 100%;
        max-width: 100%;
    }
    
    .wch-filter-skeleton-select {
        height: 40px;
    }
    
    .wch-filter-skeleton-label {
        width: 60px;
        height: 14px;
    }
}

/* Hero Section Styles - Match Category Layout */
.wch-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.wch-hero-default {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 400px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Use same styles as category content and image */
.wch-hero-section .wch-category-content {
    padding: 20px;
}

.wch-hero-section .wch-category-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 400;
    display: block;
}

.wch-hero-section .wch-category-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.wch-hero-section .wch-category-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.wch-hero-section .wch-category-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wch-hero-section .wch-category-button:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.wch-hero-section .wch-category-button .button-decor {
    margin-left: 10px;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.wch-hero-section .wch-category-button .button-decor::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Button Icon Styles */
.wch-hero-section .wch-category-button .wch-button-icon-before {
    margin-right: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.wch-hero-section .wch-category-button .wch-button-icon-after {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.wch-hero-section .wch-category-button:hover .wch-button-icon-before {
    transform: translateX(-2px);
}

.wch-hero-section .wch-category-button:hover .wch-button-icon-after {
    transform: translateX(2px);
}

/* Category slide button icons */
.wch-category-button .wch-button-icon-before {
    margin-right: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.wch-category-button .wch-button-icon-after {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.wch-category-button:hover .wch-button-icon-before {
    transform: translateX(-2px);
}

.wch-category-button:hover .wch-button-icon-after {
    transform: translateX(2px);
}

.wch-hero-section .wch-category-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
}

.wch-hero-section .wch-category-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wch-hero-section .wch-category-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .wch-hero-default {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 0 15px;
    }
    
    .wch-hero-section .wch-category-title {
        font-size: 2rem;
    }
    
    .wch-hero-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .wch-hero-section .wch-category-title {
        font-size: 1.8rem;
    }
    
    .wch-hero-section .wch-category-description {
        font-size: 1rem;
    }
    
    .wch-hero-section .wch-category-image img {
        height: 300px;
    }
}

/* Smooth Scroll for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed headers */
[id^="filters-"] {
    scroll-margin-top: 20px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Labels Control */
/* Default: hide only direct child labels (main filter labels) when switcher is off */
.wch-filter-group > label {
    display: none;
}

/* Show main filter labels when switcher is on - this will be overridden by Elementor when switcher is 'yes' */
.wch-show-labels .wch-filter-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Skeleton Loader Styles */
.wch-skeleton-loader {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    padding: 20px 0;
    width: 100%;
}

/* Override grid styles when skeleton loader is inside grid container */
.wch-products-grid .wch-skeleton-loader {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    width: 100%;
    grid-column: 1 / -1; /* занимает всю ширину grid контейнера */
}

.wch-skeleton-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: calc(25% - 22.5px); /* 25% минус gap для 4 колонок */
    height: 400px;
    position: relative;
    flex-shrink: 0;
}

.wch-skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
}

.wch-skeleton-content {
    padding: 20px;
}

.wch-skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
}

.wch-skeleton-price {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wch-skeleton-dimensions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wch-skeleton-dimension {
    height: 14px;
    width: 50px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.wch-skeleton-button {
    height: 40px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wch-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes wch-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive skeleton loader */
@media (max-width: 768px) {
    .wch-skeleton-loader {
        gap: 25px;
        padding: 15px 0;
    }
    
    .wch-skeleton-card {
        width: calc(33.333% - 16.67px); /* 3 колонки на планшете */
        height: 380px;
    }
    
    .wch-skeleton-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wch-skeleton-loader {
        gap: 20px;
        padding: 10px 0;
        justify-content: center;
    }
    
    .wch-skeleton-card {
        width: calc(50% - 10px); /* 2 колонки на мобильном */
        height: 360px;
    }
    
    .wch-skeleton-content {
        padding: 12px;
    }
}
