.wc-nrf-filter {
    margin-bottom: 20px;
}

/* Label над полями */
.wc-nrf-label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

/* Поля ввода */
.wc-nrf-filter input[type="number"] {
    width: 44%; /* ✅ как вы просили */
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
}

.wc-nrf-filter input[type="number"]:focus {
    border-color: #ff6b00; /* оранжевый */
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

/* Разделитель между полями */
.wc-nrf-separator {
    display: inline-block;
    width: 8%;
    text-align: center;
    color: #999;
    font-weight: bold;
    vertical-align: middle;
}

/* Слайдер (если используется) */
.wc-nrf-slider {
    margin-top: 12px;
    height: 6px;
    border-radius: 3px;
}
.wc-nrf-clear-filters {
    margin-top: 12px;
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #ff6b00;
    border: 1px solid #ff6b00;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.wc-nrf-clear-filters:hover {
    background: #ff6b00;
    color: #fff;
}
.ui-state-highlight {
    height: 40px;
    background: #f7f7f7;
    border: 2px dashed #ccc;
}
.ui-slider {margin: 12px 12px 12px 0px!improtant;}
.wc-nrf-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}
.wc-nrf-price-range {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-weight: bold;
}
/* Numeric Attributes heading margin */
#wc-nrf-group-section h3 {
    margin-left: 16px;
}

.wc-nrf-checkbox {
    display: block;
    margin: 4px 0;
}

.wc-nrf-swatch-horizontal,
.wc-nrf-swatch-vertical {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wc-nrf-swatch-vertical {
    flex-direction: column;
}

.wc-nrf-swatch-item {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}

.wc-nrf-swatch-item.active {
    background: #007cba;
    color: white;
}

.wc-nrf-global-select {
    width: 100%;
    margin-top: 6px;
}

.wc-nrf-checkbox { display: block; margin: 4px 0; }
.wc-nrf-swatch-horizontal,
.wc-nrf-swatch-vertical {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.wc-nrf-swatch-vertical { flex-direction: column; }
.wc-nrf-swatch-item {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}
.wc-nrf-swatch-item.active {
    background: #007cba;
    color: white;
}
.wc-nrf-global-select { width: 100%; margin-top: 6px; }


/* CSS для скрытия лишних элементов */
.wc-nrf-ajax-loading {
    opacity: 0.7;
    pointer-events: none;
}

.woocommerce .products {
    transition: opacity 0.3s ease;
}






/* Гарантируем правильные размеры карточек */
.products .product {
    width: 100% !important;
    float: none !important;
    margin: 0 0 2rem 0 !important;
}

@media (min-width: 768px) {
    .products.columns-4 .product {
        width: calc(25% - 1rem) !important;
        float: left !important;
        margin: 0 1rem 2rem 0 !important;
    }
    
    .products.columns-3 .product {
        width: calc(33.333% - 1rem) !important;
    }
    
    .products.columns-2 .product {
        width: calc(50% - 1rem) !important;
    }
}

/* Сохраняем стили изображений */
.products .product img {
    width: 100%;
    height: auto;
    display: block;
}

.products .product .woocommerce-loop-product__title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

/* Стили для пагинации */
.woocommerce-pagination {
    clear: both;
    margin: 2rem 0;
    text-align: center;
}
.wc-nrf-loader {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ff6b00 !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}