/* ===================================================================
   FILTERS DRAWER MOBILE - Modale de filtres pour mobile
   =================================================================== */

/* Overlay */
.filters-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.filters-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.filters-drawer.active {
    transform: translateY(0);
}

/* Header */
.filters-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
    flex-shrink: 0;
}

.filters-drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.filters-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F6F6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-drawer-close:hover {
    background: #E0E0E0;
    color: #111111;
}

/* Body */
.filters-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Filter Groups dans le drawer */
.filters-drawer-body .filter-group {
    margin-bottom: 32px;
}

.filters-drawer-body .filter-group:last-child {
    margin-bottom: 0;
}

.filters-drawer-body .filter-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
}

.filters-drawer-body .filter-group-title svg {
    width: 18px;
    height: 18px;
    stroke: #B8461F;
}

/* Filter Options */
.filters-drawer-body .filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-drawer-body .filter-option:hover {
    background: #F6F6F6;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.filters-drawer-body .filter-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.filters-drawer-body .filter-option input:checked + .filter-checkbox {
    background: #B8461F;
    border-color: #B8461F;
}

.filters-drawer-body .filter-option input:checked + .filter-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.filters-drawer-body .filter-option input {
    display: none;
}

.filters-drawer-body .filter-option-label {
    font-size: 0.9375rem;
    color: #111111;
    flex: 1;
}

.filters-drawer-body .color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
}

/* Size Badges */
.filters-drawer-body .size-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters-drawer-body .size-badge {
    padding: 10px 16px;
    background: #F6F6F6;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-drawer-body .size-badge:hover {
    background: #ffffff;
    border-color: #B8461F;
    color: #B8461F;
}

.filters-drawer-body .size-badge.active {
    background: #B8461F;
    border-color: #B8461F;
    color: #ffffff;
}

/* Responsive */
@media (min-width: 769px) {
    .filters-drawer,
    .filters-drawer-overlay {
        display: none !important;
    }
}
