/* ========== СТИЛИ ФИЛЬТРА ========== */
.dp-filters-wrapper {
    background: #f8f9fa !important;
    padding: 25px !important;
    margin-bottom: 40px !important;
    border-radius: 12px !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.dp-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.dp-filters-title {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.dp-filters-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px 12px;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.dp-filters-toggle:hover {
    color: #efb93b !important;
    background: rgba(239, 185, 59, 0.1);
}

.dp-filters-body {
    padding: 5px 0;
}

.dp-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Группа фильтра */
.dp-filter-group {
    display: flex;
    flex-direction: column;
}

/* ЗАГОЛОВКИ ПОЛЕЙ - увеличиваем шрифт и добавляем эффект при наведении */
.dp-filter-label {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 16px !important; /* Увеличили с 14px */
    font-weight: 700 !important; /* Сделали жирнее */
    color: #333 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Эффект при наведении на название поля */
.dp-filter-label:hover {
    color: #efb93b !important;
    transform: translateX(5px) !important;
}

/* Стили для SELECT */
.dp-filter-select {
    width: 100% !important;
    padding: 12px 15px !important; /* Увеличили внутренние отступы */
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* Исправляем обрезание текста */
    line-height: 1.4 !important;
    min-height: 48px !important; /* Фиксированная минимальная высота */
    height: auto !important;
    
    /* Убираем стандартную стрелку и добавляем кастомную */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    padding-right: 45px !important;
}

/* Эффект при наведении на select */
.dp-filter-select:hover {
    border-color: #efb93b !important;
    box-shadow: 0 0 0 3px rgba(239, 185, 59, 0.1) !important;
}

/* Эффект при фокусе */
.dp-filter-select:focus {
    outline: none !important;
    border-color: #efb93b !important;
    box-shadow: 0 0 0 4px rgba(239, 185, 59, 0.15) !important;
}

/* Стили для выбранного значения */
.dp-filter-select option {
    padding: 12px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Стили для опции "Все" */
.dp-filter-select option:first-child {
    font-weight: 600 !important;
    color: #666 !important;
}

/* КНОПКИ */
.dp-filters-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.dp-filter-submit,
.dp-filter-reset {
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex: 1 !important;
}

.dp-filter-submit {
    background: #0066CC !important;  /* Яркий синий */
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 59, 111, 0.3) !important;
}

.dp-filter-submit:hover {
    background: #0052A3 !important;  /* Немного темнее при наведении */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 59, 111, 0.4) !important;
}

.dp-filter-reset {
    background: #4a4a4a !important;  /* Более тёмный серый */
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(74, 74, 74, 0.3) !important;
}

.dp-filter-reset:hover {
    background: #333333 !important;  /* Ещё темнее при наведении */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.4) !important;
}

.button.dp-filter-submit,
.button.dp-filter-reset {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .dp-filters-wrapper {
        padding: 20px !important;
    }
    
    .dp-filters-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .dp-filters-actions {
        flex-direction: column !important;
    }
    
    .dp-filter-submit,
    .dp-filter-reset {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    
    .dp-filter-label {
        font-size: 15px !important;
    }
    
    .dp-filter-select {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        
        /* Скрываем тело фильтра на мобильных устройствах по умолчанию */
    .dp-filters-body {
    display: none;
        }
    }
}

/* ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
@media (max-width: 480px) {
    .dp-filters-wrapper {
        padding: 15px !important;
        margin-bottom: 30px !important;
    }
    
    .dp-filters-title {
        font-size: 18px !important;
    }
    
    .dp-filter-label {
        font-size: 14px !important;
    }
    
    .dp-filter-select {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-height: 42px !important;
    }
}

/* Сообщение "Товары не найдены" */
.woocommerce-info,
.dp-no-products {
    text-align: center !important;
    padding: 60px 40px !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
}

.dp-no-products h4 {
    font-size: 24px !important;
    color: #495057 !important;
    margin-bottom: 15px !important;
}

.dp-no-products p {
    font-size: 16px !important;
    color: #6c757d !important;
    margin-bottom: 25px !important;
}

.dp-filter-reset-large {
    padding: 14px 32px !important;
    background: #007bff !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.dp-filter-reset-large:hover {
    background: #0056b3 !important;
    transform: translateY(-2px) !important;
}


/* ===== СТИЛИ ДЛЯ РАДИО-КНОПОК (СОРТИРОВКА ПО ЦЕНЕ) ===== */
.dp-filter-radio {
    margin-bottom: 20px;
}

.dp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 0;
}

.dp-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
    padding: 5px 0;
}

.dp-radio-label:hover {
    color: #efb93b;
}

.dp-radio-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #efb93b;
}

.dp-radio-text {
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dp-radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .dp-radio-label {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* Исправление переворота select - добавляем в конец файла */
.dp-filter-select {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background-image: none !important;
    padding-right: 10px !important;
}


/* Индикатор загрузки при перезагрузке страницы */
.dp-loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.dp-loading-spinner .dp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: dp-spin 1s linear infinite;
    margin-bottom: 15px;
}

.dp-loading-spinner p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

@keyframes dp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products.dp-loading {
    opacity: 0.5;
}

/* ===== СООБЩЕНИЕ "ТОВАРЫ НЕ НАЙДЕНЫ" ===== */
.dp-no-products-found {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dp-no-products-found h4 {
    font-size: 28px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.dp-no-products-found p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.dp-reset-button {
    display: inline-block;
    padding: 14px 36px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.dp-reset-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.4);
    color: white;
}