/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ПОДБОРА ОСУШИТЕЛЕЙ
   ============================================ */

.filter-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #1e5799;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
}
.filter-toggle-btn:hover { background: #0d3c6e; }
.filter-toggle-btn .arrow { display: inline-block; transition: transform 0.3s; }
.filter-toggle-btn.active .arrow { transform: rotate(180deg); }

@media (max-width: 1024px) {
    .filter-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none !important; position: static; max-height: none; }
    .filter-panel.open { display: block !important; }
    .filter-toggle-btn { display: block; }
    .results-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.filter-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filter-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eef2f6;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
    transition: box-shadow 0.3s ease;
    align-self: start;
}
.filter-panel.is-sticky { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.filter-panel::-webkit-scrollbar { width: 4px; }
.filter-panel::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.filter-panel::-webkit-scrollbar-thumb { background: #1e5799; border-radius: 4px; }

.filter-panel h2 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-panel h2 .reset-btn {
    font-size: 13px;
    color: #1e5799;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.filter-panel h2 .reset-btn:hover { background: #f0f4ff; color: #0d3c6e; }

/* ===== ВЕРХНИЕ ФИЛЬТРЫ (РАДИОКНОПКИ) ===== */
.filter-top {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.filter-top .filter-top-label { font-weight: 600; font-size: 13px; color: #333; margin-right: 4px; }
.filter-top label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
    padding: 3px 12px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.filter-top label:hover { background: #e8edf5; border-color: #d0dceb; }
.filter-top label.active { background: #e0ebf7; border-color: #1e5799; }
.filter-top input[type="radio"] {
    width: 15px; height: 15px;
    accent-color: #1e5799;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.filter-group { margin-bottom: 18px; }
.filter-group-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}
.filter-group-label .hint { font-weight: 400; color: #999; font-size: 12px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; }
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    padding: 3px 10px;
    background: #f6f8fa;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}
.checkbox-group label:hover { background: #e8edf5; border-color: #d0dceb; }
.checkbox-group input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #1e5799;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-group label.active { background: #e0ebf7; border-color: #1e5799; }

.range-container { padding: 3px 0; }
.range-container .range-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}
.range-container .range-header span { font-weight: 500; color: #1a1a2e; }
.range-sliders { display: flex; gap: 12px; align-items: center; }
.range-sliders input[type="range"] {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #dce3f0;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
    margin: 0;
}
.range-sliders input[type="range"]::-webkit-slider-track { height: 5px; background: #dce3f0; border-radius: 3px; }
.range-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1e5799;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(30, 87, 153, 0.3);
}
.range-sliders input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #1e5799;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(30, 87, 153, 0.3);
}
.range-sliders .range-separator { color: #999; font-size: 12px; flex-shrink: 0; }
.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ===== РЕЗУЛЬТАТЫ ===== */
.results-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eef2f6;
    min-height: 400px;
    align-self: start;
    scroll-margin-top: 20px;
}
.results-panel.highlight { animation: highlightFade 0.6s ease; }
@keyframes highlightFade {
    0% { box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.3), 0 2px 8px rgba(0,0,0,0.08); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
}

/* ===== СОРТИРОВКА ===== */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
}
.sort-controls .sort-label { font-size: 13px; font-weight: 600; color: #333; }
.sort-controls select {
    padding: 6px 12px;
    border: 1px solid #dce3f0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.sort-controls select:focus { border-color: #1e5799; }
.sort-controls .sort-order-btn {
    background: none;
    border: 1px solid #dce3f0;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sort-controls .sort-order-btn:hover { background: #e8edf5; border-color: #1e5799; }

/* ★★★ КАРТОЧКИ ★★★ */
.results-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.result-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.result-item .cat-title-wrap { margin-bottom: 0.5rem; flex-shrink: 0; }
.result-item .cat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.3;
}
.result-item .cat-title .brand-highlight {
    display: block;
    color: #1e5799;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 2px;
}

.result-item .thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.25rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.result-item .thumb img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #ffffff;
}
.result-item:hover .thumb img { transform: scale(1.02); }

.result-item .specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 6px;
    font-size: 11px;
    color: #555;
    margin: 0.25rem 0;
}
.result-item .specs span {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f1f4f9;
    padding: 1px 6px;
    border-radius: 12px;
}
.result-item .specs .badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}
.badge-sale { background: #ffebee; color: #c62828; }
.badge-stock { background: #dcfce7; color: #166534; }
.badge-outstock { background: #fee2e2; color: #991b1b; }
.badge-eta { background: #fef9c3; color: #854d0e; }

/* ★★★ БЛОК ЦЕНЫ НАД КНОПКАМИ ★★★ */
.result-item .price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0 4px 0;
    margin-top: auto;
    min-height: 28px;
}
.result-item .price-row .price-new {
    font-size: 18px;
    font-weight: 700;
    color: #1e5799;
    white-space: nowrap;
}

/* Кривое зачёркивание старой цены */
.ptc-old-price {
    position: relative;
    display: inline-block;
    color: #999;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.1;
}
.ptc-old-price::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: 52%;
    height: 1px;
    background: #e53935;
    border-radius: 2px;
    transform: rotate(-4deg);
    transform-origin: center;
    pointer-events: none;
    box-shadow: 0 0 0 0.5px rgba(229, 57, 53, 0.25);
}

/* ★★★ НИЖНЯЯ СТРОКА: "ПОДРОБНЕЕ" СЛЕВА, КОРЗИНА СПРАВА ★★★ */
.result-item .bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 38px;
}

/* ★★★ ЕСЛИ ТОВАР НЕ В НАЛИЧИИ — "ПОДРОБНЕЕ" ПО ЦЕНТРУ ★★★ */
.result-item .bottom-row.single {
    justify-content: center;
}

/* ★★★ КОНТЕЙНЕР КОРЗИНЫ ★★★ */
.result-item .bottom-row .product-card-container {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    order: 1;
    max-width: 160px;
}

/* ★★★ КНОПКА "В КОРЗИНУ" — КАК В basket.js ★★★ */
.result-item .bottom-row .add-to-cart {
    background: #ffffff !important;
    color: #1f2d7c !important;
    border: 2px solid #1f2d7c !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    white-space: nowrap !important;
    min-width: 38px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    order: 1;
}
.result-item .bottom-row .add-to-cart .cart-icon {
    font-size: 15px !important;
    line-height: 1 !important;
}
.result-item .bottom-row .add-to-cart .cart-text {
    font-size: 13px !important;
    line-height: 1 !important;
}
.result-item .bottom-row .add-to-cart:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
    transform: scale(0.97) !important;
}

/* ★★★ КОНТРОЛ КОЛИЧЕСТВА — КАК В basket.js ★★★ */
.result-item .bottom-row .qty-control-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    border-radius: 40px !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    order: 1;
}
.result-item .bottom-row .qty-btn {
    background: #ffffff !important;
    border: 1px solid #d1d9e6 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.result-item .bottom-row .qty-btn:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
}
.result-item .bottom-row .qty-input {
    width: 34px !important;
    min-width: 28px !important;
    max-width: 42px !important;
    height: 22px !important;
    text-align: center !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 2px !important;
    outline: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    -moz-appearance: textfield !important;
}
.result-item .bottom-row .qty-input::-webkit-inner-spin-button,
.result-item .bottom-row .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.result-item .bottom-row .qty-input:focus {
    border-color: #1f2d7c !important;
    box-shadow: 0 0 0 2px rgba(31, 45, 124, 0.2) !important;
}

/* ★★★ КНОПКА "ПОДРОБНЕЕ" — СЛЕВА ★★★ */
.result-item .bottom-row .btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    background: #1e5799;
    color: white;
    order: 0;
    flex: 0 0 auto;
    height: 32px !important;
    min-width: 90px !important;
    white-space: nowrap !important;
}
.result-item .bottom-row .btn-detail:hover {
    background: #0d3c6e;
    transform: translateY(-2px);
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.image-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 10000 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
}
.image-modal.active { display: flex !important; opacity: 1 !important; }
.image-modal-content {
    max-width: 90vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
    animation: zoomIn 0.4s ease !important;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.image-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 30px !important;
    color: white !important;
    font-size: 40px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    z-index: 10001 !important;
    background: none !important;
    border: none !important;
}
.image-modal-close:hover { color: #1e5799 !important; }
.image-modal-label {
    position: absolute !important;
    top: 35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
    color: #2772bf !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    max-width: 80% !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    pointer-events: none !important;
    animation: fadeInDown 0.5s ease !important;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.image-modal-bottom-label {
    position: absolute !important;
    bottom: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
    color: #ff0a0a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 6px 15px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    max-width: 80% !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    pointer-events: none !important;
}
.image-modal-footer {
    position: absolute !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 10001 !important;
}
.image-modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0px 16px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 42px !important;
    height: 42px !important;
    white-space: nowrap !important;
    min-width: 160px !important;
    background: #1e5799 !important;
    color: #ffffff !important;
    border: none !important;
}
.image-modal-btn:hover {
    background: #0d3c6e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(30, 87, 153, 0.5) !important;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.no-results .icon { font-size: 48px; margin-bottom: 16px; color: #dce3f0; }
.no-results h3 { color: #666; margin-bottom: 8px; }

/* ★★★ ВСПЛЫВАЮЩАЯ КНОПКА ★★★ */
.floating-show-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 12px 30px;
    background: #1e5799;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 87, 153, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease;
}
.floating-show-btn:hover {
    background: #0d3c6e;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 30px rgba(30, 87, 153, 0.5);
}
.floating-show-btn.hidden { display: none !important; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .filter-layout { grid-template-columns: 280px 1fr; gap: 20px; }
}

@media (max-width: 1024px) {
    .filter-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none !important; position: static; max-height: none; }
    .filter-panel.open { display: block !important; }
    .filter-toggle-btn { display: block; }
    .results-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .floating-show-btn { display: block; }
}

@media (max-width: 768px) {
    .filter-page { padding: 12px; }
    .results-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .result-item .thumb { height: 160px; }
    .result-item .thumb img { max-height: 140px; }
    .result-item .cat-title { font-size: 0.8rem; }
    .result-item .specs { font-size: 10px; gap: 2px 4px; }
    .result-item .specs span { padding: 1px 5px; }

    .result-item .price-row .price-new { font-size: 16px; }
    .ptc-old-price { font-size: 12px; }

    .result-item .bottom-row { gap: 4px; min-height: 34px; }
    .result-item .bottom-row .btn-detail {
        font-size: 11px !important;
        padding: 4px 10px !important;
        height: 30px !important;
        min-width: 75px !important;
    }
    .result-item .bottom-row .add-to-cart {
        font-size: 12px !important;
        height: 30px !important;
        min-width: 34px !important;
        padding: 3px 10px !important;
    }
    .result-item .bottom-row .add-to-cart .cart-icon { font-size: 13px !important; }
    .result-item .bottom-row .add-to-cart .cart-text { font-size: 12px !important; }
    .result-item .bottom-row .qty-control-wrapper { height: 30px !important; padding: 2px 6px !important; }
    .result-item .bottom-row .qty-btn { width: 20px !important; height: 20px !important; font-size: 11px !important; }
    .result-item .bottom-row .qty-input {
        width: 30px !important;
        min-width: 24px !important;
        max-width: 36px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
    .result-item .bottom-row .product-card-container { max-width: 140px; }

    .checkbox-group label { font-size: 12px; padding: 2px 8px; }
    .range-sliders { flex-direction: column; gap: 4px; }
    .range-sliders .range-separator { display: none; }
    .filter-top { padding: 10px 12px; gap: 10px; }
    .filter-top label { font-size: 12px; padding: 2px 8px; }
    .sort-controls { padding: 8px 12px; gap: 8px; }
    .sort-controls .sort-label { font-size: 12px; }
    .sort-controls select { font-size: 12px; padding: 4px 8px; }

    .image-modal-close { top: 10px !important; right: 20px !important; font-size: 35px !important; }
    .image-modal-label {
        top: 70px !important;
        font-size: 14px !important;
        padding: 6px 15px !important;
        max-width: 90% !important;
    }
    .image-modal-bottom-label {
        bottom: 80px !important;
        font-size: 13px !important;
        padding: 4px 12px !important;
        max-width: 85% !important;
    }
    .image-modal-footer { bottom: 30px !important; right: 20px !important; }
    .image-modal-btn {
        line-height: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
        min-width: 140px !important;
        padding: 0px 12px !important;
    }
    .results-panel.highlight { animation: none !important; }
}

@media (max-width: 480px) {
    .filter-page { padding: 8px; }
    .filter-panel h2 { font-size: 16px; }
    .results-list { grid-template-columns: 1fr; gap: 10px; }
    .result-item .thumb { height: 200px; }
    .result-item .thumb img { max-height: 180px; }
    .result-item .cat-title { font-size: 0.75rem; }
    .result-item .specs { font-size: 10px; gap: 2px 4px; }
    .result-item .specs span { padding: 1px 4px; }

    .result-item .price-row .price-new { font-size: 16px; }
    .ptc-old-price { font-size: 11px; }
    .result-item .price-row { gap: 6px; padding: 4px 0 2px 0; }

    .result-item .bottom-row {
        gap: 6px;
        min-height: 36px;
        flex-wrap: nowrap;
    }
    .result-item .bottom-row .btn-detail {
        font-size: 12px !important;
        padding: 4px 12px !important;
        height: 32px !important;
        min-width: 90px !important;
    }
    .result-item .bottom-row .add-to-cart {
        font-size: 13px !important;
        height: 32px !important;
        min-width: 38px !important;
        padding: 4px 12px !important;
    }
    .result-item .bottom-row .add-to-cart .cart-icon { font-size: 15px !important; }
    .result-item .bottom-row .add-to-cart .cart-text { font-size: 13px !important; }
    .result-item .bottom-row .qty-control-wrapper { height: 32px !important; padding: 4px 8px !important; }
    .result-item .bottom-row .qty-btn { width: 22px !important; height: 22px !important; font-size: 12px !important; }
    .result-item .bottom-row .qty-input {
        width: 34px !important;
        min-width: 28px !important;
        max-width: 42px !important;
        height: 22px !important;
        font-size: 12px !important;
    }
    .result-item .bottom-row .product-card-container { max-width: 160px; }

    .filter-top { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-top label { justify-content: center; }
    .sort-controls { flex-direction: column; align-items: stretch; gap: 6px; }
    .sort-controls .sort-order-btn { justify-content: center; }
    .floating-show-btn {
        bottom: 20px;
        padding: 10px 24px;
        font-size: 14px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
    .image-modal-label {
        top: 60px !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
        max-width: 92% !important;
    }
    .image-modal-bottom-label {
        bottom: 65px !important;
        font-size: 11px !important;
        padding: 3px 10px !important;
        max-width: 90% !important;
    }
    .image-modal-footer { bottom: 20px !important; right: 15px !important; }
    .image-modal-btn {
        line-height: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
        min-width: 120px !important;
        padding: 0px 10px !important;
    }
}

@media (max-width: 380px) {
    .result-item .bottom-row .btn-detail {
        font-size: 11px !important;
        padding: 3px 10px !important;
        height: 30px !important;
        min-width: 80px !important;
    }
    .result-item .bottom-row .add-to-cart {
        font-size: 12px !important;
        height: 30px !important;
        min-width: 34px !important;
        padding: 3px 10px !important;
    }
    .result-item .bottom-row .add-to-cart .cart-icon { font-size: 13px !important; }
    .result-item .bottom-row .add-to-cart .cart-text { font-size: 11px !important; }
    .result-item .bottom-row .qty-control-wrapper { height: 30px !important; padding: 3px 6px !important; }
    .result-item .bottom-row .qty-btn { width: 20px !important; height: 20px !important; font-size: 11px !important; }
    .result-item .bottom-row .qty-input {
        width: 28px !important;
        min-width: 22px !important;
        max-width: 34px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
    .result-item .bottom-row .product-card-container { max-width: 140px; }
}

/* Стиль для размеров в формате Д×Ш×В */
.result-item .specs span.size-spec {
    background: #e8f0fe;
    border: 1px solid #d0dceb;
    font-weight: 500;
    color: #1a1a2e;
}