.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 24px;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
}

.btn-apply-filters {
    flex: 2;
    padding: 14px;
    background: #B87B5C;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-apply-filters:hover {
    background: #a3694b;
}

.btn-reset-filters {
    flex: 1;
    padding: 14px;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    background: #eaeaea;
    color: #1a1a1a;
    border-color: #ccc;
}


.catalog-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.catalog-controls img{
    height: 25px;
    width: 25px;
    transition: all 0.1s;
}

.filter-open-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #B87B5C;
  	min-width: 180px;
    color: #B87B5C;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .filter-open-btn:hover {
        background: #B87B5C;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(184, 123, 92, 0.2);
    }

    .filter-open-btn:hover img{
        filter: brightness(0) invert(1);
    }


.style-card {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(184, 123, 92, 0.06);
    color: #B87B5C;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.style-card.active, .style-card:hover {
    background-color: #B87B5C;
    color: #fff;
}

.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.filter-drawer {
    position: absolute;
    top: 0;
    left: -400px;
    width: 450px;
    height: 100%;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-drawer-overlay.active .filter-drawer {
    left: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 100px;
}

.drawer-section {
    margin-bottom: 28px;
}

.drawer-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
}

.drawer-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-label input {
    display: none;
}

.chip-label span {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s ease,
                color 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.chip-label:hover span {
    transform: translateY(-2px);
}

.chip-label input[name="filter-style"] + span {
    background-color: rgba(184, 123, 92, 0.05);
    color: #94634a;
    border: 1px solid rgba(184, 123, 92, 0.2);
}

.chip-label:hover input[name="filter-style"] + span{
    background-color: #d1a087;
    color: #ffffff;
    border-color: #d1a087;
    box-shadow: 0 4px 12px rgba(184, 123, 92, 0.25);
}
.chip-label input[name="filter-style"]:checked + span {
    background-color: #B87B5C;
    color: #ffffff;
    border-color: #B87B5C;
    box-shadow: 0 4px 12px rgba(184, 123, 92, 0.25);
}


.chip-label input[name="filter-tag"] + span {
    background-color: rgba(132, 165, 157, 0.05);
    color: #4a615b;
    border: 1px solid rgba(132, 165, 157, 0.25);
}

.chip-label:hover input[name="filter-tag"] + span{
    background-color: #87b4aa;
    color: #ffffff;
    border-color: #83afa5;
    box-shadow: 0 4px 12px rgba(132, 165, 157, 0.25);
}
.chip-label input[name="filter-tag"]:checked + span {
    background-color: #5C7A73;
    color: #ffffff;
    border-color: #5C7A73;
    box-shadow: 0 4px 12px rgba(132, 165, 157, 0.25);
}


.chip-label input[name="filter-material"] + span {
    background-color: rgba(74, 101, 114, 0.05);
    color: #344852;
    border: 1px solid rgba(74, 101, 114, 0.18);
}

.chip-label:hover input[name="filter-material"] + span{
    background-color: #76a0b6;
    color: #ffffff;
    border-color: #6a90a3;
    box-shadow: 0 4px 12px rgba(74, 101, 114, 0.25);
}
.chip-label input[name="filter-material"]:checked + span {
    background-color: #4A6572;
    color: #ffffff;
    border-color: #4A6572;
    box-shadow: 0 4px 12px rgba(74, 101, 114, 0.25);
}

.chip-label input:checked + span {
    background: rgba(184, 123, 92, 0.1);
    border-color: #B87B5C;
    color: #B87B5C;
    font-weight: 500;
}

.price-input-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-range input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.price-input-range input:focus {
    border-color: #B87B5C;
}

.price-split {
    color: #888;
}

.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 24px;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}


.btn-apply-filters {
    width: 100%;
    padding: 14px;
    background: #B87B5C;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-apply-filters:hover {
        background: #a3694b;
    }

.style-cards-element {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.style-card {
    padding: 6px 14px;
    background-color: rgba(184, 123, 92, 0.08);
    color: #B87B5C;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-card:hover, .style-card.active {
    background-color: #B87B5C;
    color: #fff;
    box-shadow: 0 4px 10px rgba(184, 123, 92, 0.3);
}

@media (max-width: 800px) {
    .filter-drawer {
        max-width: 70%;
    }
}