/* ============================================================ */
/* ШАПКА ПРОДАВЦА */
/* ============================================================ */

.vendor-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.vendor-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* ============================================================ */
/* КНОПКИ: СРАВНИТЬ И КАТЕГОРИИ */
/* ============================================================ */

.catalog-btn-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compare-btn {
    background: #f39c12;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.compare-btn:hover {
    background: #e67e22;
}

.compare-btn.active {
    background: #e74c3c;
}

.categories-btn {
    background: #8e44ad;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.categories-btn:hover {
    background: #732d91;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

/* ============================================================ */
/* МОДАЛЬНОЕ ОКНО КАТЕГОРИЙ (ОСНОВНОЙ КОНТЕЙНЕР) */
/* ============================================================ */

.categories-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.categories-modal-overlay.active {
    display: flex;
}

.categories-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.categories-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    cursor: pointer;
    color: #95a5a6;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
}

.categories-modal-close:hover {
    color: #2c3e50;
}

.categories-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}

.categories-back-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: #3498db;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f0f7ff;
    transition: background 0.2s;
}

.categories-back-link:hover {
    background: #d4e8ff;
    text-decoration: none;
}

/* ============================================================ */
/* АККОРДЕОН КАТЕГОРИЙ */
/* ============================================================ */

.categories-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.categories-tree ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.category-item {
    margin: 2px 0;
}

.category-toggle {
    display: none;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2c3e50;
    transition: background 0.2s;
    user-select: none;
}

.category-label:hover {
    background: #e9ecef;
}

.category-label .toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: #6c757d;
}

.category-toggle:checked + .category-label .toggle-arrow {
    transform: rotate(90deg);
}

.category-children {
    padding-left: 20px;
    margin: 4px 0 4px 10px;
    border-left: 2px solid #e9ecef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.category-toggle:checked + .category-label + .category-children {
    max-height: 2000px;
    padding: 4px 0 4px 10px;
}

.categories-modal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.categories-modal-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateX(4px);
}

.categories-modal-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.categories-modal-empty {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-size: 1rem;
}

/* Скрываем пустые элементы */
.category-item:empty {
    display: none;
}

/* ============================================================ */
/* СТИЛИ ТОВАРОВ, ФИЛЬТРОВ, МОДАЛЬНЫХ ОКОН (ОСТАЛЬНЫЕ) */
/* ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image .no-image {
    font-size: 3rem;
    color: #ccc;
    background: #f5f5f5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e74c3c;
    margin: 6px 0 10px 0;
}

.variants-label {
    font-size: 0.8rem;
    color: #3498db;
    margin: 5px 0;
    font-weight: 500;
}

.price-range {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 400;
}

.variants-list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.8rem;
    gap: 8px;
}

.variant-item .variant-vendor {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.variant-item .variant-price {
    font-weight: 600;
    color: #e74c3c;
    white-space: nowrap;
}

.variant-item .variant-buy-btn {
    background: #27ae60;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.variant-item .variant-buy-btn:hover {
    background: #219a52;
    color: white;
    text-decoration: none;
}

.vendor-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 3px 0;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: #219a52;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.compare-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compare-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.compare-checkbox label {
    cursor: pointer;
    margin: 0;
    font-size: 0.75rem;
}

/* ============================================================ */
/* МОДАЛЬНЫЕ ОКНА (ТОВАР, ЗУМ, СРАВНЕНИЕ) */
/* ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 950px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    cursor: pointer;
    color: #95a5a6;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.modal-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-image:hover {
    background: #e9ecef;
}

.modal-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    opacity: 0.7;
    pointer-events: none;
}

.modal-image:hover .zoom-hint {
    opacity: 1;
}

.modal-right h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 4px 0 8px 0;
}

.modal-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0;
    max-height: 250px;
    overflow-y: auto;
}

.modal-field {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.modal-field:last-child {
    border-bottom: none;
}

.modal-field-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding-top: 2px;
}

.modal-field-value {
    color: #2c3e50;
    word-break: break-word;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.modal-buy-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #27ae60;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.modal-buy-btn:hover {
    background: #219a52;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.modal-back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #6c757d;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.modal-back-btn:hover {
    background: #5a6268;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.similar-products {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.similar-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f39c12;
    display: inline-block;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.similar-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.similar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.similar-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
}

.similar-item .similar-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.similar-item .similar-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: #e74c3c;
    margin: 5px 0;
}

.similar-item .similar-item-vendor {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin: 3px 0;
}

.similar-item .similar-item-cheaper {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.75rem;
}

.similar-item .similar-item-expensive {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.75rem;
}

.similar-item .similar-buy-btn {
    display: block;
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

.similar-item .similar-buy-btn:hover {
    background: #219a52;
    color: white;
    text-decoration: none;
}

.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    cursor: zoom-out;
}

.zoom-overlay.active {
    display: flex;
}

.zoom-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 20001;
    transition: transform 0.3s ease;
}

.zoom-close:hover {
    transform: rotate(90deg);
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.compare-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.compare-overlay.active {
    display: flex;
}

.compare-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.compare-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #95a5a6;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.compare-close:hover {
    color: #2c3e50;
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.compare-vendor-header {
    padding: 10px 0;
    border-bottom: 2px solid #3498db;
    margin-bottom: 10px;
}

.compare-vendor-header h3 {
    margin: 0;
    color: #2c3e50;
}

.compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.compare-item-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.compare-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.compare-item-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.compare-item-card .compare-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 8px 0;
    min-height: 40px;
}

.compare-item-card .compare-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #e74c3c;
    margin: 8px 0;
}

.compare-item-card .compare-vendor {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 5px 0;
}

.compare-item-card .compare-model {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 3px 0;
}

.compare-item-card .compare-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.compare-item-card .compare-remove:hover {
    background: #e74c3c;
    color: white;
}

.compare-item-card.compare-best-price {
    border-color: #27ae60 !important;
    background: #f0fff4 !important;
}

.compare-item-card.compare-best-price::after {
    content: "🏆 Лучшая цена";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #27ae60;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.compare-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.compare-clear {
    background: #e74c3c;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.compare-clear:hover {
    background: #c0392b;
}

.compare-buy-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 8px;
    font-weight: 500;
}

.compare-buy-btn:hover {
    background: #219a52;
    color: white;
    text-decoration: none;
}

.tags_bar {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tags_bar .btn {
    font-size: 0.65rem;
    padding: 1px 8px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #495057;
    border: none;
}

.tags_bar .btn:hover {
    background: #3498db;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .vendor-header {
        padding: 20px;
    }
    
    .vendor-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .catalog-btn-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compare-btn,
    .categories-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .categories-modal-content {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-image {
        min-height: 200px;
    }
    
    .modal-image img {
        max-height: 250px;
    }
    
    .modal-field-label {
        min-width: 80px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-buy-btn,
    .modal-back-btn {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .compare-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .compare-content {
        padding: 20px;
    }
    
    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .similar-item img {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-right h2 {
        font-size: 1.1rem;
    }
    
    .modal-price {
        font-size: 1.3rem;
    }
    
    .modal-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px 0;
    }
    
    .modal-field-label {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .zoom-close {
        top: 10px;
        right: 20px;
        font-size: 2rem;
    }
    
    .compare-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* СТИЛИ ФИЛЬТРОВ */
/* ============================================================ */

.catalog-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.search-group {
    flex: 2;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
}

.price-group {
    flex: 1.5;
    min-width: 180px;
}

.price-input {
    width: 70px;
    padding: 8px 10px;
}

.price-group span {
    color: #6c757d;
}

.sort-group {
    flex: 1;
    min-width: 150px;
}

.sort-select {
    padding: 8px 30px 8px 12px;
    appearance: auto;
    cursor: pointer;
    background: #ffffff;
}

.actions-group {
    gap: 8px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-btn {
    background: #3498db;
    color: white;
}

.apply-btn:hover {
    background: #2980b9;
}

.reset-btn {
    background: #e9ecef;
    color: #495057;
}

.reset-btn:hover {
    background: #dee2e6;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .price-input {
        width: 60px;
    }
    .actions-group {
        flex-direction: row;
    }
    .actions-group .filter-btn {
        flex: 1;
        text-align: center;
    }
}