

.fast-oc-filters-module{
    background: white;
    border-radius: 10px;
    margin-top: 15px;
}

body.theme-dark .fast-oc-filters-module {
    background: #1f2937;
    border: 1px solid #374151;
}

#fast_oc_filters_selected{
    border-radius: 10px;
    margin-bottom: 1.0rem !important;
}

.fast-oc-filters-module .fast-oc-filters-search-container {
    margin-bottom: 1.5rem !important;
}

.fast-oc-filters-module .form-group .form-group {
    border: none;
    box-shadow: none;
    padding: 0px;
}

.fast-oc-filters-search-container:after {
    content: '';
}

#button-fast_oc_filters-mobile{
        margin-top: 0px;
    }
    
.fast-oc-filters-module h3 {
    padding-left: 0px;
    margin-top:0px;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.theme-dark .fast-oc-filters-module h3 {
    color: #e5e7eb;
}

/* Стили для form-group внутри фильтров */
.fast-oc-filters-module .form-group {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body.theme-dark .fast-oc-filters-module .form-group {
    background: #374151;
    border-color: #4b5563;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    #button-fast_oc_filters-mobile{
        margin-bottom: 20px;
        display: block;
    }
}

/* Пагинация под дизайн */
    .pagination {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .pagination > li {
        display: inline-block;
        margin: 0;
    }
    .pagination > li > a,
    .pagination > li > span {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        color: #4b5563;
        text-decoration: none;
        background: #fff;
    }
    
    body.theme-dark .pagination > li > a,
    body.theme-dark .pagination > li > span {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    .pagination > li > a:hover {
        border-color: #2563eb;
        color: #2563eb;
    }
    .pagination > li.active > span {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
        font-weight: 700;
    }
    .pagination > li.disabled > span,
    .pagination > li.disabled > a {
        color: #9ca3af;
        cursor: not-allowed;
        background: #f9fafb;
    }
    
    body.theme-dark .pagination > li.disabled > span,
    body.theme-dark .pagination > li.disabled > a {
        background: #374151;
        color: #6b7280;
    }
    
    /* Grid/List view buttons */
    #grid-view.active,
    #list-view.active {
        background: #f3f4f6;
        color: #2563eb;
    }
    body.theme-dark #grid-view.active,
    body.theme-dark #list-view.active {
        background: #374151;
        color: #60a5fa;
    }
    #grid-view:not(.active),
    #list-view:not(.active) {
        background: transparent;
        color: #9ca3af;
    }
    body.theme-dark #grid-view:not(.active),
    body.theme-dark #list-view:not(.active) {
        color: #6b7280;
    }
    #grid-view:hover,
    #list-view:hover {
        background: #f3f4f6;
        color: #2563eb;
    }
    body.theme-dark #grid-view:hover,
    body.theme-dark #list-view:hover {
        background: #374151;
        color: #60a5fa;
    }
    
    /* Product Grid/List Layout */
    .row.grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    @media (min-width: 640px) {
        .row.grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    
    @media (min-width: 1024px) {
        .row.grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    
    .product-grid .product-card-wrapper {
        flex-direction: column !important;
        height: 420px;
    }
    
    .product-list .product-card-wrapper {
        flex-direction: row !important;
        height: auto !important;
        min-height: 200px;
        align-items: flex-start;
    }
    
    /* В режиме list карточки должны быть на всю ширину */
    .product-list {
        grid-column: 1 / -1;
    }
    
    /* В режиме list: изображение слева */
    .product-list .product-card-image {
        flex-shrink: 0;
        width: 250px;
        height: 200px !important;
        margin-right: 1rem;
        margin-bottom: 0 !important;
    }
    
    /* В режиме list: контент справа */
    .product-list .product-card-content {
        flex: 1;
        min-width: 0;
        position: relative;
    }
    
    /* В режиме list: перемещаем кнопки wishlist/compare вниз справа контента */
    .product-list .product-card-wrapper > div.absolute.top-3.right-3 {
        top: auto !important;
        bottom: 1rem;
        right: 1rem;
        left: auto !important;
        flex-direction: row;
        gap: 0.5rem;
        z-index: 30;
    }
    
    .compare-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
    body.theme-dark .compare-table {
        background: #1f2937 !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
    }
    .compare-table thead {
        background: #f9fafb;
    }
    body.theme-dark .compare-table thead {
        background: #374151;
    }
    .compare-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: #111827;
        border-bottom: 2px solid #e5e7eb;
    }
    body.theme-dark .compare-table th {
        color: #e5e7eb;
        border-bottom-color: #4b5563;
    }
    .compare-table th:first-child {
        width: 200px;
        min-width: 200px;
    }
    .compare-table td {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
    }
    body.theme-dark .compare-table td {
        border-bottom-color: #374151;
        color: #d1d5db;
    }
    .compare-table tbody tr:last-child td {
        border-bottom: none;
    }
    .compare-table .product-cell {
        text-align: center;
        vertical-align: middle;
    }
    .compare-table .product-image {
        width: 150px;
        height: 150px;
        object-fit: contain;
        margin: 0 auto 1rem;
        border-radius: 0.5rem;
    }
    .compare-table .product-name {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #111827;
    }
    body.theme-dark .compare-table .product-name {
        color: #e5e7eb;
    }
    .compare-table .product-name a {
        color: #111827;
        text-decoration: none;
    }
    body.theme-dark .compare-table .product-name a {
        color: #e5e7eb;
    }
    .compare-table .product-name a:hover {
        color: #2563eb;
    }
    .compare-table .price-new {
        color: #dc2626;
        font-weight: 700;
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
    .compare-table .price-old {
        color: #9ca3af;
        text-decoration: line-through;
        font-size: 0.875rem;
    }
    .compare-table .rating {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .compare-table .rating i {
        color: #fbbf24;
        font-size: 1rem;
    }
    .compare-table .btn-cart {
        width: 100%;
        padding: 0.5rem 1rem;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 0.5rem;
    }
    .compare-table .btn-cart:hover {
        background: #1d4ed8;
    }
    .compare-table .btn-remove {
        width: 100%;
        padding: 0.5rem 1rem;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        transition: background 0.2s;
    }
    .compare-table .btn-remove:hover {
        background: #dc2626;
    }
    @media (max-width: 768px) {
        .compare-table {
            display: block;
            overflow-x: auto;
        }
        .compare-table th:first-child {
            position: sticky;
            left: 0;
            background: #f9fafb;
            z-index: 10;
        }
        body.theme-dark .compare-table th:first-child {
            background: #374151;
        }
        .compare-table td:first-child {
            position: sticky;
            left: 0;
            background: white;
            z-index: 5;
        }
        body.theme-dark .compare-table td:first-child {
            background: #1f2937;
        }
    }
    
    /* Стили для кнопки "Все" в тегах блога */
    .blog-tags-filter a:not(.active) {
        background-color: white !important;
        color: #374151 !important;
        border-color: #e5e7eb !important;
    }
    body.theme-dark .blog-tags-filter a:not(.active) {
        background-color: #1f2937 !important;
        color: #d1d5db !important;
        border-color: #374151 !important;
    }
    .blog-tags-filter a.active {
        background-color: #2563eb !important;
        color: white !important;
        border-color: #2563eb !important;
    }