:root{
    --color-cat-foret-hss: #FFC403;
    --color-cat-taraudage-hss: #AD461D;
    --color-cat-fraise-limes-rotatives-carbures: #4A8C88;
    --color-cat-scies-cloches-hss: #A1C5D5;
    --color-cat-fraises-hss: #ED6B07;
    --color-cat-foret-carbures: #242424;
    --color-cat-fraise-carbures-monobloc: #21615E;
    --color-cat-fraise-coffrets: #303891;
    --color-cat-neutral: #FFFFFF;
}

.woocommerce-ordering{
    width: fit-content;
}

.woocommerce-ordering select {
    border: rgba(0, 0, 0, 0.1) 1px solid;
    color: #E60013 !important;
    background: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.et-db #et-boc .et-l #tdc-boutique, .tdc-boutique{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    .woocommerce.columns-4 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .woocommerce-notices-wrapper{
        width: 100%;
    }
    .woocommerce-result-count{
        font-size: 16px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        color: #ADADAD;
    }

    select.orderby {
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: none;
        color: #E60013 !important;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
    }
    form.woocommerce-ordering {
        width: fit-content;
    }


    .product{
        border-radius: 20px;
        border: 1px solid #ADADAD;
        padding: 10px;
        display: flex;
        flex-direction: column;
        width: 22.80%;
        margin: 0 2.2% 2.992em 0;
        font-family: 'Montserrat', sans-serif;
        transition: all 0.3s ease;

        img,.et_overlay{
            border-radius: 15px;
            border: none;
        }

        img{
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            background: #fff;
            box-shadow: rgb(0 0 0 / 0%) 0px 4px 16px !important;
            transition: all 0.3s ease;
        }

        .et_overlay{
            display: block;
            height: 30px;
            width: 30px;
            border-radius: 50px;
            position: absolute;
            right: 20px;
            top: 20px;
            padding: 5px;
            left: auto;
            background: white;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            img{
                background: #fff;
            }
        }
        .et_overlay::before{
            content: none;
        }
        .tdc-product-sku{
            color: #000;
            font-weight: 500;
        }

        .woocommerce-loop-product__title{
            font-weight: 700;
            color: #000;
            transition: all 0.3s ease;
        }

    }

    .product:hover {
        .et_shop_image > img{
            box-shadow: rgb(0 0 0 / 10%) 0px 4px 16px !important;
        }
        .et_overlay {
            opacity: 1;
            visibility: visible;
        }
        .woocommerce-loop-product__title{
            color: #E60013;
        }
        .tdc-product-excerpt{
            color: #000;
        }
        .tdc-btn-voir-produit{
            background: #000;
        }

    }

    /* Extrait produit */
    .tdc-product-excerpt {
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        margin: 8px 0 12px;
        padding: 0 5px;
    }

    .tdc-btn-voir-produit{
        margin-top: auto;
        color: white;
        background: #E60013 ;
        width: 100%;
        text-align: center;
        border-radius: 50px;
        padding: 0.3em 1em 0.3em 1em;
        border: none ;
        font-size: 16px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        transition: all 0.5s ease;
    }
    .tdc-btn-voir-produit:after {
        content: none;
    }


}


/* Breadcrumb */
.tdc-breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #9D9D9D;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.tdc-breadcrumb a {
    color: #9D9D9D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tdc-breadcrumb a:hover {
    color: #E60013;
}

.tdc-breadcrumb span {
    color: #9D9D9D;
}

.tdc-breadcrumb-sep {
    color: #9D9D9D;
}

/* Pagination */
.tdc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.tdc-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 50px;
    border: 1px solid #ADADAD;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tdc-page-btn:hover {
    background: #E60013;
    border-color: #E60013;
    color: #fff;
}

.tdc-page-edge {
    font-size: 18px;
    color: #ADADAD;
    border-color: transparent;
    background: transparent;
}

.tdc-page-edge:hover {
    background: #E60013;
    border-color: #E60013;
    color: #fff;
}

.tdc-page-current {
    background: #E60013;
    border-color: #E60013;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/*product-category-to-content*/

a.product-category-to-content, a.product-category-to-catalogue {
    padding: 8px 16px;
    border-radius: 90px;
    font-size: 16px;
    margin: auto;
    display: block;
    width: fit-content;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* Couleurs (fond + texte contrasté RGAA) gérées dynamiquement
       depuis l'admin via includes/category-color.php */
}

.title-cat-page {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

h1.product-category {
    font-size: 42px;
    font-family: 'Montserrat', sans-serif;
    width: fit-content;
    padding: 10px 10% 10px 17%;
    border-radius: 0 50px 50px 0;
    /* Couleurs (fond + texte contrasté RGAA) gérées dynamiquement
       depuis l'admin via includes/category-color.php */
}

