/* Catalog Styles */

/* Модалка информации о значении фильтра — те же габариты и стиль, что у .filter-content-panel */
#valueInfoModal {
    z-index: 10003 !important;
}

#valueInfoModal .value-info-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    height: var(--modal-panel-height, 100%) !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12) !important;
    font-family: 'Roboto', sans-serif !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#valueInfoModal .value-info-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

#valueInfoModal .value-info-modal-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

#valueInfoModal .value-info-close-btn {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s, color 0.2s !important;
    line-height: 1 !important;
}

#valueInfoModal .value-info-close-btn:hover {
    background-color: #f3f4f6 !important;
    color: #1e293b !important;
}

#valueInfoModal #valueInfoContent {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#valueInfoModal #valueInfoImageSrc {
    max-height: min(360px, 50vh) !important;
}

@media (min-width: 1024px) {
    #valueInfoModal .value-info-modal-content {
        max-width: 600px !important;
        width: 90% !important;
        border-radius: 8px 8px 0 0 !important;
    }
}

/* Стили для кнопки информации о значении фильтра */
.value-info-btn {
        background: #ccc !important;
    border: none !important;
    color: #3b3b3b !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 0 8px !important;
    margin-left: 8px !important;
    transition: color 0.2s ease !important;
    line-height: 1 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.value-info-btn:hover {
    color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.value-info-btn:active {
    transform: scale(0.95);
}

.catalog-item-img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            border-radius: 8px;
            transition: transform .3s ease;
        }
        .catalog-item-img:hover { transform: scale(1.05); }
        .item-status {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 5px 12px;
            border-radius: 6px;
            color: #fff;
            font-weight: bold;
            font-size: 13px;
            z-index: 10;
        }
        .available { background: #28a745; }
        .out-of-stock { background: #dc3545; }
.catalog-controls {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.search-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    padding: 10px 20px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #10b981;
}

.bottom-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 10000;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    border-radius: 20px 25px 0 0;
}

.bottom-filters.active {
    font-family: 'Roboto', sans-serif;
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    overscroll-behavior: contain;
}

/* Под открытой панелью фильтров страница не скроллится (в т.ч. десктоп) */
html.filters-open,
body.filters-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 0px 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 64px;
    position: relative;
}

.filter-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.filter-reset-all-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-reset-all-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.filter-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #000000;
}

.filter-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.filter-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: rotate(90deg);
}

.filter-close-btn:active {
    background: #e5e7eb;
    transform: rotate(90deg) scale(0.95);
}

.bottom-filters .filter-controls {
    flex: 1;
    min-height: 0;
    padding-top: 4px;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.bottom-filters .filter-controls .custom-select {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Стили фильтров в стиле zolotiyvik.ua */
.filter-options-item {
    background: #fff;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-options-item:hover {
    background: #fff;
}

.filter-options-item.active {
    background: #fff;
    border-bottom-color: #3b82f6;
}

.filter-options-title {
    padding: 14px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    user-select: none;
    background: #fff;
    transition: color 0.2s ease;
}

.filter-options-item.active .filter-options-title {
    background: #fff;
    color: #000000;
}

.filter-options-title:hover {
    background: #fff;
}

.filter-options-item.active .filter-options-title:hover {
    background: #fff;
}

.filter-badge-container {
    display: none;
    position: relative;
    margin-left: 8px;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 2px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid #fff;
}

.filter-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 8px;
}

.filter-clear-btn:hover {
    background: #f3f4f6;
    color: #dc2626;
}

.filter-clear-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.filter-options-title::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #6b7280;
    margin-left: auto;
}

.filter-options-item.active .filter-options-title::after {
    transform: rotate(180deg);
    color: #3b82f6;
}

.filter-options-content-block {
    max-height: 0;
    overflow: hidden;
    overflow-x: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    padding: 0 12px;
    /* Скрываем inline контент, так как он показывается в отдельной панели */
    display: none;
}

.filter-options-item.active .filter-options-content-block {
    /* Не показываем inline, даже если активен */
    display: none;
}

.filter-options-content-block .items,
.filter-content-body .items {
    list-style: none !important;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-content-body .items {
    max-height: none;
}

/* Поиск в фильтрах */
.filter-search {
    margin-bottom: 12px;
    position: relative;
}

.filter-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.filter-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-search::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

/* Скрытие элементов при поиске */
.filter-options-content-block .items .item.hidden {
    display: none;
}

.filter-options-content-block .items .item {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.filter-options-content-block .items .item:last-child {
    border-bottom: none;
}

.filter-options-content-block .items .item:hover {
    background: #f9fafb;
}

.filter-options-content-block .items .item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    transition: color 0.2s ease;
}

.filter-options-content-block .items .item label:hover {
    color: #000000;
}

.filter-options-content-block .items .item input[type="checkbox"] {
    display: none;
}

.fake-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.filter-options-content-block .items .item label:hover .fake-checkbox {
    border-color: #6a6a6a;
    background: #eff6ff;
}

.fake-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.filter-options-content-block .items .item input[type="checkbox"]:checked + .fake-checkbox {
    background-color: #38a169;
    border-color: #6a6a6a;
}

.filter-options-content-block .items .item input[type="checkbox"]:checked + .fake-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.filter-buttons .button {
    flex: 1;
    padding: 15px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.filter-buttons .button.apply {
    background-color: #dc2626;
    color: white;
}

.filter-buttons .button.apply:hover:not(:disabled) {
    background-color: #b91c1c;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.filter-buttons .button.apply:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.filter-buttons .button-light {
    flex: 1;
    padding: 15px 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-buttons .button-light:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-buttons .button-light:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.price-range {
    margin-bottom: 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.price-inputs input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
}

.price-inputs input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-inputs input:hover {
    border-color: #9ca3af;
}

.price-inputs span {
    color: #6b7280;
    font-weight: 500;
    font-size: 16px;
}

.price-inputs .currency {
    color: #6b7280;
    font-weight: 600;
    font-size: 16px;
}

.filter-apply-footer {
    padding: 20px;
    border-top: 2px solid #e5e7eb;
    background-color: #fff;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.filter-apply-btn {
    flex: 1;
    padding: 14px 24px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-apply-btn:hover:not(:disabled) {
    background-color: #b91c1c;
}

.filter-apply-btn:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.filter-reset-btn {
    padding: 14px 24px;
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

#catalogResults {
    transition: opacity 0.3s ease;
}

#catalogResults.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

.catalog-item-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.catalog-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.item-image img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.item-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.item-status.available {
    background: #10b981;
}

.item-status.out-of-stock {
    background: #ef4444;
}

.item-info {
    padding: 16px;
    flex: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    cursor: pointer;
    line-height: 1.3;
}

.item-title:hover {
    color: #3b82f6;
}

.item-article {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.item-metal, .item-weight {
    font-size: 13px;
    color: #64748b;
}

.item-price {
    margin-bottom: 16px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.price-highlight {
    color: #2b6cb0;
    font-weight: bold;
}

.item-details-btn-wrapper {
    margin-top: auto;
}

.item-details-btn {
    width: 100%;
    margin: 0;
    padding: 12px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.item-details-btn:hover {
    background: #10b880;
}

.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

/* Item Modal Styles */
#itemModal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    align-items: flex-start;
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

#itemModal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}

.item-modal-content {
    max-width: 100%;
    width: 100%;
    height: var(--modal-panel-height, 100%);
    max-height: 100%;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0;
    padding: 5px 10px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    box-sizing: border-box;
}

#itemModal.active .item-modal-content {
    transform: translateY(0);
}

.item-modal-content .modal-close {
    position: absolute;
    top: 2px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #2d3748;
    width: auto;
    height: auto;
    display: block;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.item-modal-content .modal-close:hover {
    color: #ff4444;
}

.item-modal-content .modal-title {
    flex-shrink: 0;
    margin: 10px 0 10px 0;
    padding: 0;
}

.item-details-container {
    display: flex;
    gap: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
    margin: 0;
    padding: 0;
}

.item-details-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.item-image-section {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
	margin-bottom: 10px;
    overflow: hidden;
}

.item-image-wrapper .carousel-indicators {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin-bottom: 0;
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.set-default-image-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.85);
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
    color: #a0aec0;
}

.set-default-image-btn:hover {
    background: #fff;
    border-color: #48bb78;
    color: #48bb78;
    transform: scale(1.1);
}

.set-default-image-btn.is-default {
    background: #48bb78;
    border-color: #38a169;
    color: #fff;
    box-shadow: 0 2px 8px rgba(72,187,120,0.4);
}

.set-default-image-btn.is-default:hover {
    background: #38a169;
}

.set-default-image-btn svg {
    width: 18px;
    height: 18px;
}

.edit-characteristics-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    color: #4a5568;
}

.edit-characteristics-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #2d3748;
    transform: scale(1.05);
}

.edit-characteristics-btn:active {
    transform: scale(0.95);
}

.edit-characteristics-btn svg {
    width: 20px;
    height: 20px;
}

.item-info-section {
    flex: 1;
    overflow-y: visible;
    min-width: 0;
}

.item-main-image {
    width: 100%;
    height: 500px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    display: block;
}

.item-main-media {
    position: relative;
    width: 100%;
    touch-action: pan-y;
    will-change: transform, opacity;
}

.item-main-media.media-out-left {
    animation: mediaOutLeft 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.item-main-media.media-out-right {
    animation: mediaOutRight 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.item-main-media.media-in-left {
    animation: mediaInLeft 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.item-main-media.media-in-right {
    animation: mediaInRight 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mediaOutLeft {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    to { transform: translate3d(-22%, 0, 0) scale(0.97); opacity: 0; }
}

@keyframes mediaOutRight {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    to { transform: translate3d(22%, 0, 0) scale(0.97); opacity: 0; }
}

@keyframes mediaInLeft {
    from { transform: translate3d(-22%, 0, 0) scale(0.97); opacity: 0; }
    to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes mediaInRight {
    from { transform: translate3d(22%, 0, 0) scale(0.97); opacity: 0; }
    to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .item-main-media.media-out-left,
    .item-main-media.media-out-right,
    .item-main-media.media-in-left,
    .item-main-media.media-in-right {
        animation: none;
    }
}

.item-main-video {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    background: #0f172a;
    display: block;
}

.item-image-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.thumbnail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.thumbnail-img:hover, .thumbnail-img.active {
    border-color: #3b82f6;
}

.item-basic-info, .item-characteristics {
    margin-bottom: 24px;
}

.item-basic-info h3, .item-characteristics h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #ddd;
	border-radius: 5px;
}

.info-item:has(#itemArticle) {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.info-item:has(#itemArticle):hover {
    background-color: #c0c0c0;
}
    border-radius: 6px;
}

.info-label {
    font-weight: 500;
    color: #374151;
}

.info-value {
    color: #64748b;
    font-weight: 600;
}

.characteristics-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.characteristic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.characteristic-item.compact {
    justify-content: flex-start;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.4;
}

.char-label {
    font-weight: 500;
    color: #374151;
}

.char-value {
    color: #1e293b;
    font-weight: 600;
}

.no-characteristics {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 16px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .catalog-item-card {
        min-width: 0;
    }
    
    .item-image {
        height: auto;
        min-height: 120px;
        max-height: none;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .item-image img {
        object-fit: contain;
        height: auto;
        max-height: min(52vw, 260px);
        width: 100%;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-article {
        font-size: 12px;
    }
    
    .item-details-btn {
        width: calc(100% - 32px);
        margin: 0 16px 16px 16px;
        padding: 10px;
        font-size: 14px;
    }
    
    .item-details-container {
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    
    .item-image-section {
        flex: 0 0 auto;
    }
    
    .item-info-section {
        flex: 1;
        overflow-y: visible;
        min-width: 0;
    }
    
    .search-controls, .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    
    .bottom-filters .filter-controls {
        flex-direction: column;
    }
    
    .bottom-filters .filter-controls .custom-select {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    
    .characteristic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .item-main-image {
        max-height: 450px;
    }
    
    .item-image {
        min-height: 100px;
    }

    .item-image img {
        max-height: min(48vw, 240px);
    }
    
    .item-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .item-article {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .item-details-btn {
        width: calc(100% - 24px);
        margin: 0 12px 12px 12px;
        padding: 8px;
        font-size: 12px;
    }
    
    .item-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-controls {
        gap: 12px;
    }
    
    .filter-toggle-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Десктоп стили */
@media (min-width: 1024px) {
    .custom-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .catalog-item-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .catalog-item-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .item-image {
        height: 280px;
    }
    
    .item-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .item-article {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .item-details-btn {
        width: calc(100% - 32px);
        margin: 0 16px 16px 16px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .catalog-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .search-controls {
        flex: 1;
        max-width: 500px;
    }
    
    .filter-toggle-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 180px;
    }
    
    /* Фильтры на десктопе - боковая панель справа */
    .bottom-filters {
        position: fixed;
        top: 0;
        right: 0;
        width: 400px;
        max-width: 90vw;
        height: 100vh;
        transform: translateX(100%);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 10000;
        left: auto;
        bottom: auto;
        border-radius: 0;
    }
    
    .bottom-filters.active {
        transform: translateX(0);
        overscroll-behavior: contain;
    }
    
    /* Затемнение фона на десктопе при открытии фильтров */
    body.filters-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .filter-header {
        padding: 20px 24px;
        min-height: 80px;
    }
    
    .filter-title {
        font-size: 24px;
    }
    
    .bottom-filters .filter-controls {
        padding: 20px 24px;
    }
    
    .filter-options-item {
        margin-bottom: 12px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .filter-options-title {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .filter-options-content-block .items {
        max-height: 400px;
    }
    
    .filter-options-content-block .items .item {
        padding: 12px 20px;
    }
    
    .filter-apply-footer {
        padding: 24px;
    }
    
    .filter-apply-btn,
    .filter-reset-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    /* Модальное окно на десктопе */
    #itemModal {
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        align-items: flex-start;
        justify-content: center;
        transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
    }
    
    #itemModal.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease-out, visibility 0s linear 0s;
    }
    
    .item-modal-content {
        max-width: 1400px;
        width: 100%;
        height: var(--modal-panel-height, 100%);
        max-height: 100%;
        margin: 0 auto;
        padding: 40px;
        border-radius: 8px 8px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #itemModal.active .item-modal-content {
        transform: translateY(0);
    }
    
    .item-modal-content .modal-close {
        top: 20px;
        right: 20px;
    }
    
    .item-details-container {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 40px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .item-main-image {
        height: 600px;
        max-height: 600px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1440px) {
    .custom-content {
        max-width: 1460px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
    }
    
    .bottom-filters {
        width: 450px;
    }
    
    .item-modal-content {
        max-width: 1460px;
        width: 100%;
        height: var(--modal-panel-height, 100%);
        max-height: 100%;
        margin: 0 auto;
        padding: 5px;
        border-radius: 8px 8px 0 0;
    }
    
    .item-modal-content .modal-close {
        top: 25px;
        right: 25px;
    }
    
    .item-details-container {
        grid-template-columns: 500px 1fr;
        gap: 20px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
		margin: 0 10px 0 10px;
    }
    
    .item-main-image {
        height: 700px;
        max-height: 700px;
    }
}

/* Панель контента фильтра, выезжающая снизу */
.filter-content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-content-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-content-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 25px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 200px);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.filter-content-panel.active {
    transform: translateY(0);
}

.filter-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.filter-content-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.filter-content-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.filter-content-close-btn:hover {
    background-color: #f3f4f6;
    color: #1e293b;
}

.filter-content-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

.filter-content-body .items {
    max-height: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Стили для чекбоксов в панели контента фильтра */
.filter-content-body .items .item {
    padding: 5px 12px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.filter-content-body .items .item:last-child {
    border-bottom: none;
}

.filter-content-body .items .item:hover {
    background: #f9fafb;
}

.filter-content-body .items .item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    transition: color 0.2s ease;
}

.filter-content-body .items .item input[type="checkbox"] {
    display: none;
}

.filter-content-body .items .item input[type="checkbox"]:checked + .fake-checkbox {
    background-color: #38a169;
    border-color: #6a6a6a;
}

.filter-content-body .items .item input[type="checkbox"]:checked + .fake-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

.filter-content-body .filter-buttons {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 0;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 1024px) {
    .filter-content-panel {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 20px 20px 0 0;
    }
    
    .filter-content-panel.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation for new items */
.catalog-item-card.new {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Автодополнение для поля complect */
.article-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    padding: 4px 0;
}

.article-suggestions::-webkit-scrollbar {
    width: 8px;
}

.article-suggestions::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.article-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.article-suggestions::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.suggestion-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.suggestion-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
    transform: translateX(2px);
}

.suggestion-item.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
    border-left: 3px solid #2563eb;
    padding-left: 13px;
}

.suggestion-checkbox {
    margin-right: 10px;
    transform: translateY(1px) scale(1.1);
    accent-color: #2563eb;
    pointer-events: none;
}

.suggestion-checkbox:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-group {
    position: relative;
}

/* Loading states */
.catalog-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#itemArticle{
font-size: 13px;
cursor: pointer;
transition: color 0.2s ease, text-decoration 0.2s ease;
}

#itemArticle:hover {
color: #10b981;
text-decoration: underline;
}

/* Карусель комплектов */
.complect-carousel {
    margin: 20px 0;
    padding: 15px 0;
}

.complect-carousel h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

/* Карусель комплектов - чистый CSS с touch-скроллом */
.complect-carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Трек для скролла */
.complect-carousel-track {
    position: relative;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Плавный momentum скролл на iOS */
    scroll-behavior: smooth;
    scroll-snap-type: none; /* Для бесшовного автоскролла + drag без рывков */
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
    -ms-overflow-style: none; /* Скрываем скроллбар в IE/Edge */
    /* touch-action убран - нативный скролл браузера сам определит направление */
    padding: 10px 0;
    margin: 0 -10px; /* Компенсируем padding для градиентов */
    padding-left: 10px;
    padding-right: 10px;
    cursor: grab;
}

.complect-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Во время drag убираем snap, иначе ощущаются "ступеньки"/рывки */
.complect-carousel-track.is-dragging {
    scroll-snap-type: none;
}

.complect-carousel-track.is-dragging .complect-item-card {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

.complect-carousel-track.is-auto-scrolling {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.complect-carousel-track.is-auto-scrolling .complect-item-card {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

/* Скрываем скроллбар в WebKit браузерах */
.complect-carousel-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Контейнер элементов */
.complect-carousel-items {
    display: flex;
    flex-wrap: nowrap; /* Не переносим элементы на новую строку */
    gap: 15px;
    align-items: stretch;
    padding: 0;
    margin: 0;
    min-width: max-content;
    width: max-content;
}

.complect-item-card {
    flex: 0 0 160px; /* Фиксированная ширина, не сжимается */
    min-width: 160px; /* Минимальная ширина для touch-friendly */
    height: 200px;
    background: #dddddd;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dddddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    user-select: none; /* Запрещаем выделение текста при свайпе */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* touch-action убран - позволяем браузеру самому определять направление скролла */
}

.complect-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.complect-item-card:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.complect-item-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.complect-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.complect-item-image img:hover {
    transform: scale(1.05);
}

.complect-item-status {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    z-index: 10;
}

.complect-item-status.available {
    background: #28a745;
}

.complect-item-status.out-of-stock {
    background: #dc3545;
}

.complect-item-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.complect-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    cursor: pointer;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.complect-item-title:hover {
    color: #3b82f6;
}

/* Кнопки навигации удалены - используется чистый CSS скролл */

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .complect-carousel-track {
        padding: 8px 0;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .complect-carousel-items {
        gap: 12px; /* Меньший отступ между элементами */
    }
    
    .complect-item-card {
        flex: 0 0 140px; /* Немного меньше на мобильных */
        min-width: 140px;
        height: 180px;
    }
    
    .complect-item-image {
        height: 110px; /* Меньшая высота изображения */
    }
    
    .complect-item-title {
        font-size: 12px;
    }
    
    .complect-item-info {
        padding: 8px;
    }
}

/* Адаптивность для десктопа */
@media (min-width: 769px) {
    .complect-carousel-container {
        max-width: 100%;
    }
    
    /* Не используем flex-центрирование трека, чтобы не ломать native overflow-x */
    .complect-carousel-track {
        display: block;
    }
    
    .complect-item-card {
        flex: 0 0 170px;
        min-width: 170px;
    }
}
.custom-text{
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 10px;
    background: #ddd;
}

/* Пагинация каталога: без flex, горизонтальная прокрутка без видимого скроллбара */
.pagination-wrapper {
    max-width: 100%;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.pagination-wrapper::-webkit-scrollbar {
    display: none;
}

.pagination-wrapper .pagination-separator {
    display: inline-block;
    vertical-align: middle;
    width: 100px;
    max-width: 15%;
    height: 1px;
    background-color: #dbdbdb;
    margin: 0 5px;
}

.pagination-pages {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.pagination-pages > * {
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 4px;
}

.pagination-pages > *:first-child {
    margin-left: 0;
}

/* Final guard: каталог фильтров всегда прокручивается вниз в открытой панели */
.bottom-filters.active {
    overflow: hidden !important;
}

.bottom-filters.active #catalogFilters {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px !important;
}

.bottom-filters.active #catalogFilters .filter-options-item {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}