.filters-section {
    padding: 18px 0;
    margin-bottom: 28px;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Grid for controls */
.filter-groups {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr auto; /* search, category, price, sort, buttons */
    gap: 12px;
    align-items: end;
}

/* Each control */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* prevent overflow */
}

.filter-label {
    font-weight: 600;
    color: #2b2b2b;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
}

/* Inputs */
.filter-input {
    padding: 10px 12px;
    border: 0.5px solid #79797990;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #ffffff00;
    color: #222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.filter-input::placeholder {
    color: #3e3e3e;
}

.filter-input:focus {
    border-color: #d5b785;
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 205, 161, 0.25);
}

/* Select arrow */
.filter-select {
    cursor: pointer;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239c8356' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Price inputs (min-max) */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.price-separator {
    color: #6b6b6b;
    user-select: none;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.02s ease;
}

.apply-btn:hover {
    background: #1f1f1f;
}

.apply-btn:active {
    transform: translateY(1px);
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #b02a37;
    border: 1px solid #f1d9b5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.clear-btn:hover {
    background: #fff7ea;
    color: #92212c;
    border-color: #e7cda1;
}

/* Active filters area (optional) */
.active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
    font-size: 0.9rem;
}

.active-filters span {
    color: #666;
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.clear-filters:hover {
    color: #bd2130;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .filter-groups {
        grid-template-columns: 1fr 1fr;
    }
    .button-group {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .price-inputs {
        grid-template-columns: 1fr auto 1fr;
    }
}

@media (max-width: 640px) {
    .filters-section {
        padding: 14px 0;
    }
    .filter-groups {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .button-group {
        justify-content: stretch;
    }
    .apply-btn, .clear-btn {
        flex: 1;
        justify-content: center;
    }
}