/* ==========================================================================
   L'AMPHORE - FILTRES BOUTIQUE
   ========================================================================== */

.amphore-shop-filters {
    margin-bottom: 2rem;
    font-family: var(--amphore-font-corps, 'Inter', sans-serif);
}

/* Pastilles de filtre rapide */
.amphore-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

.amphore-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid var(--amphore-gris-clair, #E8E4DE);
    background: #FFFFFF;
    color: var(--amphore-anthracite, #2C2C2C);
}

.amphore-pill:hover {
    border-color: var(--amphore-bordeaux, #722F37);
    color: var(--amphore-bordeaux, #722F37);
}

.amphore-pill.active {
    background: var(--amphore-bordeaux, #722F37);
    color: #FFFFFF;
    border-color: var(--amphore-bordeaux, #722F37);
}

.amphore-pill.pill-rouge.active { background: #8B1A2B; border-color: #8B1A2B; }
.amphore-pill.pill-blanc.active { background: #C9A84C; border-color: #C9A84C; }
.amphore-pill.pill-rose.active { background: #D4849A; border-color: #D4849A; }

.amphore-pill-reset {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--amphore-gris, #6B6B6B) !important;
    font-weight: 500;
    text-decoration: underline;
    font-size: 0.75rem;
}
.amphore-pill-reset:hover {
    color: var(--amphore-bordeaux, #722F37) !important;
}

.amphore-filter-toggle {
    margin-left: auto;
    background: var(--amphore-sable, #F0E8DA);
    border-color: var(--amphore-sable, #F0E8DA);
}
.amphore-filter-toggle:hover {
    background: var(--amphore-or, #C9A84C);
    border-color: var(--amphore-or, #C9A84C);
    color: #FFF;
}
.amphore-filter-toggle svg {
    flex-shrink: 0;
}

/* Panneau filtres avancés */
.amphore-advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #FFFFFF;
    border-radius: 12px;
    border: none;
}

.amphore-advanced-filters.open {
    max-height: 600px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--amphore-gris-clair, #E8E4DE);
}

.amphore-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.amphore-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.amphore-filter-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amphore-gris, #6B6B6B);
}

.amphore-filter-group select,
.amphore-filter-group input {
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--amphore-gris-clair, #E8E4DE);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--amphore-anthracite, #2C2C2C);
    background: #FFFFFF;
    transition: border-color 0.2s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.amphore-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B6B'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.amphore-filter-group select:focus,
.amphore-filter-group input:focus {
    border-color: var(--amphore-bordeaux, #722F37);
    outline: none;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

/* Prix inline */
.amphore-price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.amphore-price-inputs input {
    flex: 1;
    min-width: 0;
}
.amphore-price-sep {
    color: var(--amphore-gris-clair, #E8E4DE);
    font-weight: 300;
}

/* Bas du panneau filtres */
.amphore-filter-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--amphore-gris-clair, #E8E4DE);
    flex-wrap: wrap;
}

.amphore-filter-sort {
    min-width: 200px;
}

.amphore-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.amphore-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: var(--amphore-bordeaux, #722F37);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.25s ease;
}
.amphore-filter-btn:hover {
    background: var(--amphore-bordeaux-dark, #4A1E23);
}

.amphore-filter-btn-reset {
    font-size: 0.8rem;
    color: var(--amphore-gris, #6B6B6B);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}
.amphore-filter-btn-reset:hover {
    color: var(--amphore-bordeaux, #722F37);
}

/* Filtres actifs (tags) */
.amphore-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amphore-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--amphore-sable, #F0E8DA);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--amphore-anthracite, #2C2C2C);
}

.amphore-active-filter strong {
    font-weight: 700;
}

.amphore-active-filter a {
    color: var(--amphore-gris, #6B6B6B);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s;
}
.amphore-active-filter a:hover {
    color: var(--amphore-rouge-vin, #8B1A2B);
}

/* Cacher le tri WooCommerce par défaut (on a le nôtre) */
.woocommerce-ordering {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .amphore-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .amphore-filter-toggle {
        margin-left: 0;
    }
    .amphore-filter-bottom {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .amphore-filter-grid {
        grid-template-columns: 1fr;
    }
    .amphore-filter-pills {
        gap: 0.35rem;
    }
    .amphore-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}
