/* ══════════════════════════════════════════
   ÉCLAT PRODUCT FILTER — CSS
   ══════════════════════════════════════════ */

.eclat-filter-wrapper {
    width: 100%;
    font-family: 'Jost', sans-serif;
}

/* ── Toolbar ── */
.eclat-toolbar {
    display: flex;
    width: 100%;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

.eclat-toolbar-btn {
    width: 50%;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.eclat-toolbar-btn:first-child {
    border-right: 1px solid #E8E8E8;
}

.eclat-toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

.eclat-toolbar-btn.active {
    background: rgba(0, 0, 0, 0.03);
}

.eclat-toolbar-btn span {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Panneaux ── */
.eclat-filter-panel,
.eclat-sort-panel {
    display: none;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #E8E8E8;
    overflow: hidden;
}

.eclat-filter-panel.open,
.eclat-sort-panel.open {
    display: flex;
}

/* ── Filter Panel ── */
.eclat-filter-panel {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 25px 20px;
    gap: 40px;
}

.eclat-filter-group {
    flex: 1;
    min-width: 180px;
}

.eclat-filter-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A1A1A;
    opacity: 0.4;
    margin-bottom: 12px;
}

.eclat-filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
}

.eclat-filter-options::-webkit-scrollbar {
    width: 3px;
}

.eclat-filter-options::-webkit-scrollbar-thumb {
    background: #E8D5B0;
    border-radius: 3px;
}

.eclat-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.eclat-filter-option:hover .eclat-option-name {
    opacity: 1;
    color: #E8D5B0;
}

.eclat-filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #E8D5B0;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.eclat-option-name {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #1A1A1A;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.eclat-filter-option input:checked ~ .eclat-option-name {
    opacity: 1;
    color: #E8D5B0;
    font-weight: 400;
}

.eclat-option-count {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #1A1A1A;
    opacity: 0.25;
}

/* ── Filter Actions ── */
.eclat-filter-actions {
    width: 100%;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    margin-top: 10px;
}

.eclat-reset-btn {
    background: transparent;
    border: 1px solid #E8E8E8;
    color: #1A1A1A;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.eclat-reset-btn:hover {
    border-color: #1A1A1A;
}

.eclat-apply-btn {
    background: #1A1A1A;
    border: none;
    color: #FAF8F5;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0;
}

.eclat-apply-btn:hover {
    background: #333;
}

/* ── Sort Panel ── */
.eclat-sort-panel {
    flex-direction: row;
    gap: 30px;
    padding: 15px 20px;
}

.eclat-sort-option {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #1A1A1A;
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    padding: 4px 0;
}

.eclat-sort-option:hover,
.eclat-sort-option.active {
    opacity: 1;
    color: #E8D5B0;
}

/* ── Active Chips ── */
.eclat-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.eclat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #1A1A1A;
    cursor: default;
}

.eclat-chip:hover {
    border-color: #E8D5B0;
}

.eclat-chip-remove {
    font-size: 10px;
    opacity: 0.4;
    cursor: pointer;
    line-height: 1;
}

.eclat-chip-remove:hover {
    opacity: 1;
}

.eclat-chip-reset {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #1A1A1A;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.eclat-chip-reset:hover {
    opacity: 1;
    border-color: #1A1A1A;
}

/* ── Products Grid ── */
.eclat-products-grid {
    display: grid;
    gap: 20px 20px;
    width: 100%;
    margin-top: 30px;
    transition: opacity 0.3s ease;
}

.eclat-products-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

.eclat-cols-4 { grid-template-columns: repeat(4, 1fr); }
.eclat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.eclat-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Product Card ── */
.eclat-product-card {
    display: flex;
    flex-direction: column;
}

.eclat-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.eclat-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
}

.eclat-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.eclat-product-card:hover .eclat-product-image img {
    transform: scale(1.05);
}

.eclat-product-info {
    padding: 12px 0 8px;
}

.eclat-product-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 16px;
    color: #1A1A1A;
    margin: 0 0 4px;
    line-height: 1.3;
}

.eclat-product-price {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 15px;
    color: #1A1A1A;
    opacity: 0.7;
}

.eclat-add-to-cart {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid #E8E8E8;
    color: #1A1A1A;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.eclat-add-to-cart:hover {
    background: #1A1A1A;
    color: #FAF8F5;
    border-color: #1A1A1A;
}

/* ── No Results ── */
.eclat-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #1A1A1A;
    opacity: 0.5;
}

/* ── Loader ── */
.eclat-loader {
    text-align: center;
    padding: 30px;
}

.eclat-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #E8E8E8;
    border-top-color: #E8D5B0;
    border-radius: 50%;
    animation: eclat-spin 0.7s linear infinite;
}

@keyframes eclat-spin {
    to { transform: rotate(360deg); }
}

/* ── Pagination ── */
.eclat-pagination {
    margin-top: 40px;
    text-align: center;
}

.eclat-pagination-inner {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.eclat-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E8E8E8;
    background: transparent;
    color: #1A1A1A;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eclat-page-link:hover {
    border-color: #E8D5B0;
    color: #E8D5B0;
}

.eclat-page-link.active {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FAF8F5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .eclat-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .eclat-products-grid { gap: 15px; }
    .eclat-filter-panel { gap: 25px; padding: 20px 15px; }
}

@media (max-width: 767px) {
    .eclat-cols-4,
    .eclat-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .eclat-products-grid { gap: 10px; margin-top: 20px; }
    
    .eclat-filter-panel {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .eclat-filter-group { min-width: 100%; }
    
    .eclat-sort-panel {
        flex-direction: column;
        gap: 0;
    }
    
    .eclat-sort-option {
        padding: 10px 0;
        border-bottom: 1px solid #F0F0F0;
    }
    
    .eclat-sort-option:last-child {
        border-bottom: none;
    }

    .eclat-product-title { font-size: 14px; }
    .eclat-product-price { font-size: 13px; }
    .eclat-product-info { padding: 8px 0 6px; }
    .eclat-add-to-cart { font-size: 10px; padding: 8px 10px; }
    
    .eclat-filter-actions {
        flex-direction: column;
    }
    
    .eclat-reset-btn,
    .eclat-apply-btn {
        width: 100%;
        text-align: center;
    }
}
