/*
Theme Name: Divi Child Theme
Description: Theme enfant de Divi par Divi Community
Author: Divi Community
Template: Divi
Version: 1.0.0
Text Domain: divi-child
*/

/* Import Google Font Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* Colonne filtre d'origine (gauche) masquée */
.et_pb_with_border.et_pb_column_1_4.et_pb_column.et_pb_column_2_tb_body.et_pb_css_mix_blend_mode_passthrough {
    display: none !important;
}
.woocommerce-notices-wrapper{
	display: none;
}

/* Colonne produit en pleine largeur */
.et_pb_column.et_pb_column_3_4.et_pb_column_3_tb_body.et_pb_css_mix_blend_mode_passthrough.et-last-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* =========================================================
   DRAWER / MODALE FILTRES (droite)
   ========================================================= */

/* Cacher le wrapper du shortcode tant qu'il n'est pas dans le drawer */
.agf-drawer-static {
    display: none;
}

/* Une fois déplacé dans le drawer, on le réaffiche en flex */
.agf-drawer .agf-drawer-static {
    display: flex;
    flex-direction: column;
}

/* Drawer plein écran */
.agf-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
}

/* Quand ouvert : clics + visible */
.agf-drawer[data-ag-open="1"] {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Fond semi-transparent */
.agf-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(181, 134, 49, 0.12);
}

/* Panneau de droite : fixe, pleine hauteur */
.agf-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: #ffffff;
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 220ms ease;
    display: flex;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

/* Panneau visible quand drawer ouvert */
.agf-drawer[data-ag-open="1"] .agf-panel {
    transform: translateX(0);
}

body.agf-no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* =========================================================
   Header / contenu / footer du panneau
   ========================================================= */

.agf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.agf-title {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.agf-close {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.agf-content {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px;
    flex: 1 1 auto;
}

.agf-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
    display: flex;
    gap: 12px;
}

.agf-reset,
.agf-apply {
    flex: 1;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

/* Réinitialiser = bouton blanc avec bordure noire */
.agf-reset.wp-element-button {
    border: 1px solid #000000;
    background: #ffffff;
    background-color: #fff;
    color: #000000;
}

/* Appliquer = bouton doré */
.agf-apply.wp-element-button {
    border: 1px solid #b58631;
    background: #b58631;
    color: #ffffff;
}

.agf-apply.wp-element-button:hover, .agf-reset.wp-element-button:hover{
    background: #242424;
    border-color: #242424;
    color: #ffffff;
}



/* =========================================================
   Barre d'outils avec résultats, filtres et tri
   ========================================================= */

.agf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

/* Quand la toolbar est seule (page "Aucun résultat"), ajouter un margin-top */
.et_pb_shop + .agf-toolbar,
.agf-toolbar:not(:has(.woocommerce-result-count)) {
    margin-top: 30px;
}

/* En mobile : passer en colonne */
@media (max-width: 768px) {
    .agf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .agf-toolbar__center {
        order: 1;
        justify-content: flex-start !important;
    }
    
    .agf-toolbar .woocommerce-result-count {
        order: 0;
    }
    
    .agf-toolbar .woocommerce-ordering {
        order: 2;
    }
}

.agf-toolbar__center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

/* En mobile : passer en colonne avec filtres actifs en dessous */
@media (max-width: 768px) {
    .agf-toolbar__center {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center !important;
    }
}

.agf-toolbar .woocommerce-result-count {
    margin: 0;
    flex-shrink: 0;
}

.agf-toolbar .woocommerce-ordering {
    margin: 0;
    flex-shrink: 0;
}

.agf-toolbar .woocommerce-ordering select.orderby {
    background-color: #ffffff;
    color: #000000 !important;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 8px 32px 8px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"%3E%3Cpath fill="%23000" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.agf-toolbar .woocommerce-ordering select.orderby:focus {
    outline: none;
}

.agf-toolbar .woocommerce-ordering select.orderby option {
    color: #000;
}


/* =========================================================
   Bouton "Filtres" près du titre (p.p1)
   ========================================================= */

.agf-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.agf-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #000000;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    flex-shrink: 0;
    height: 25px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.agf-trigger svg {
    display: none;
}

.agf-trigger:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.agf-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #666666;
}

/* En mobile, permettre le retour à la ligne */
@media (max-width: 768px) {
    .agf-active-filters {
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: flex-start;
    }
}

.agf-active-filters__item {
    display: inline;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    color: #000;
}

.agf-active-filters__item .agf-filter-count {
    display: none;
}

.agf-active-filters__item::before {
    content: '○ ';
    color: #000000;
}

/* =========================================================
   Styles internes du bloc filtres (sections / listes)
   ========================================================= */

/* Sections accordéon */
.agf-section {
    /* border-bottom: 1px solid #e5e5e5; */
}

.agf-section:last-child {
    border-bottom: none;
}

.agf-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
	margin-bottom: 16px;
}

.agf-section__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -24px;
    right: -24px;
    height: 1px;
    background: #e5e5e5;
}

.agf-section__title {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #000000;
}

.agf-section__toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
}

.agf-section__toggle svg {
    width: 12px;
    height: 12px;
}

.agf-section.is-collapsed .agf-section__toggle {
    transform: rotate(-90deg);
}

.agf-section__body {
    padding: 0 12px 16px 12px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 300ms ease, opacity 300ms ease;
}

.agf-section.is-collapsed .agf-section__body {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

/* Listes génériques */
.agf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agf-list__item {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

/* Couleur / matière en grille 2 colonnes */
.agf-list--colors,
.agf-list--materials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Stock / catégories en grille 2 colonnes */
.agf-list--categories,
.agf-list--stock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   Inputs génériques
   ========================================================= */

.agf-input--checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Checkbox visuel personnalisé pour catégories et disponibilité */
.agf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.agf-checkbox::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    border: 1.5px solid #d0d0d0;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.15s ease;
}

.agf-checkbox::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 49%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.agf-checkbox:has(.agf-input--checkbox:checked)::before {
    border-color: #000000;
}

.agf-checkbox:has(.agf-input--checkbox:checked)::after {
    opacity: 1;
}

.agf-checkbox__label, .agf-color-filter__label, .agf-material-filter__label {
    font-size: 13px;
    color: #000000;
}

.agf-filter-count {
    color: #000000;
    font-size: 11px;
    margin-left: 4px;
}

/* =========================================================
   COULEURS – pastilles
   ========================================================= */

.agf-list__item--color {
    margin: 0;
}

.agf-color-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.agf-color-filter__swatch {
    height: 19px;
    width: 19px;
    display: block;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
    transition: all 0.15s ease;
    background-clip: content-box;
    padding: 3px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agf-color-filter__swatch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 7px;
    border-right: 1.5px solid #000000;
    border-bottom: 1.5px solid #000000;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
    display: none;
}

.agf-input--color:checked + .agf-color-filter__swatch {
    border: 2px solid #000000;
    padding: 2px;
}

.agf-color-filter__label {
    font-size: 13px;
}

/* =========================================================
   MATIÈRES – pastille image + label
   ========================================================= */

.agf-list__item--material {
    margin: 0;
}

.agf-material-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.agf-material-filter__swatch {
    height: 19px;
    width: 19px;
    display: block;
    border-radius: 999px;
    border: 1px solid #b0b0b0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.15s ease;
}

.agf-material-filter__swatch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 3px;
    height: 7px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.agf-material-filter__swatch--placeholder {
    background-color: #fff;
}

.agf-input--material:checked + .agf-material-filter__swatch::after {
    opacity: 1;
}

.agf-material-filter__label {
    font-size: 12px;
}

/* =========================================================
   Prix slider
   ========================================================= */

.agf-price-slider {
    padding: 8px 0;
}

.agf-price-slider__values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

.agf-price-slider__track {
    position: relative;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
}

.agf-price-slider__range {
    position: absolute;
    height: 100%;
    background: #b58631;
    border-radius: 3px;
    pointer-events: none;
}

.agf-price-slider__input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: -2px;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.agf-price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.agf-price-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.agf-price-slider__input--max {
    pointer-events: none;
}

.agf-price-slider__input--max::-webkit-slider-thumb {
    pointer-events: auto;
}

.agf-price-slider__input--max::-moz-range-thumb {
    pointer-events: auto;
}

/* =========================================================
   Stock etc.
   ========================================================= */

.agf-price {
    display: flex;
    gap: 8px;
}

.agf-price__field {
    flex: 1 1 0;
}

.agf-price__field label {
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
}

.agf-price__field .agf-input--number {
    width: 100%;
    box-sizing: border-box;
}

/* Checkbox texte simple pour stock / catégories */
.agf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.agf-checkbox__label {
    font-size: 13px;
}

/* Liste tailles sur 2 colonnes */
.agf-list--sizes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}



/*  custom */

.et-db #et-boc .et-l .et_pb_wc_add_to_cart_0 label{
    display: none;
}

.et-db #et-boc .et-l .et_pb_wc_add_to_cart_0 form.cart .variations td.value span:after {
    display: none;
}

.cfvsw-swatches-option:not(.cfvsw-label-option, .cfvsw-image-option) .cfvsw-swatch-inner {
  border-radius: 15px;
}


.et-db #et-boc .et-l .et_pb_wc_add_to_cart form.cart .variations td.value span::after {
  display: none;
}

#main-content > div > div > div.et_pb_with_border.et_pb_section.et_pb_section_3_tb_body.et_pb_with_background.et_section_regular > div.et_pb_row.et_pb_row_4_tb_body > div > div.agf-toolbar > div > button{
    color: #000;
}

body > div.agf-drawer > div.agf-drawer-static.agf-panel > div.agf-header > button{
    color: #000;
}

.wc-block-cart-items__header-image span {
    margin-left: 18px;
}
.agf-toolbar .agf-trigger, .agf-toolbar .agf-trigger span{
    color: #000;
}

tr.woocommerce-product-attributes-item.woocommerce-product-attributes-item--weight {
    display: none;
}