/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://example.com
 Description:  Child theme for Hello Elementor
 Author:       Your Name
 Template:     hello-elementor
 Version:      1.0.0
*/

/* ----- Container filtres marbres ----- */
/* =========================================
   THEME CONFIGURATION
   ========================================= */
/* ============================================
   GLOBAL FILTERS CONTAINER
============================================ */


/* ===========================
   BARRE DE RECHERCHE & FILTRES MARBRES
   =========================== */

.marbres-filters-bar {

    margin-left: auto;
    margin-right: auto;
}

.mf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

/* Ligne de recherche */
.mf-search input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-search input[type="text"]:focus {
    border-color: #C89438;
    box-shadow: 0 0 0 2px rgba(200,148,56,0.18);
}

/* Ligne des filtres (couleur / famille / usages / tri) */
.mf-filters {
    justify-content: space-between;
    width: 100%;
}

.mf-field {
    flex: 1 1 22%;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* Selects (Famille / Usages / Tri) */
.mf-field select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-field select:focus {
    border-color: #C89438;
    box-shadow: 0 0 0 2px rgba(200,148,56,0.18);
}

/* Compteur & lien reset */
.mf-count-reset {
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.marbres-count {
    font-size: 13px;
    color: #777;
}

.mf-reset-link {
    font-size: 13px;
    color: #C89438;
    text-decoration: none;
    font-weight: 500;
}

.mf-reset-link:hover {
    text-decoration: underline;
}

/* Bouton Filtrer (si un jour tu le remets) */
.mf-submit {
    justify-content: flex-end;
    width: 100%;
}

.mf-submit button {
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #C89438;
    color: #fff;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.mf-submit button:hover {
    background: #b8822f;
    transform: translateY(-1px);
}



/* ===========================
   RONDS DE COULEURS (TAXONOMIE "COULEURS")
   =========================== */

/* Container des ronds de couleur */
.mf-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Boutons = ronds parfaits : reset complet du style bouton */
button.mf-color-dot {
    all: unset;
    box-sizing: border-box;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 1px rgba(200, 148, 56, 0.6);
    cursor: pointer;
    background-clip: padding-box;
    line-height: 0;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

/* Bouton "toutes les couleurs" = cercle blanc */
button.mf-color-dot.mf-color-dot--all {
    background: #ffffff !important;
}

/* cercle actif (filtre sélectionné) */
button.mf-color-dot.mf-color-dot--active {
    box-shadow: 0 0 0 2px #C89438;
    transform: scale(1.08);
}

/* Survol général des dots */
button.mf-color-dot:hover {
    transform: scale(1.06);
}



/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .marbres-filters-bar {
        padding: 16px 18px;
    }

    .mf-field {
        flex: 1 1 45%;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .mf-row {
        gap: 12px;
    }

    .mf-filters {
        flex-direction: column;
    }

    .mf-field {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .mf-count-reset {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .marbres-filters-bar {
        padding: 14px 14px;
        border-radius: 10px;
    }

    .mf-search input[type="text"] {
        font-size: 13px;
    }

    .mf-field select {
        font-size: 13px;
    }

    .marbres-count,
    .mf-reset-link {
        font-size: 12px;
    }
}
