#category #products .products.row {
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    gap: 2%;
}

/* Panier */
.elementor-cart--items-indicator-bubble .elementor-cart__toggle .elementor-button-icon[data-counter]:before {
    content: attr(data-counter);
    display: block;
    position: absolute;
    min-width: 1.6em;
    height: 2em;
    line-height: 2em;
    width: 2em;
    top: -1em;
    right: -1.7em;
    border-radius: 100%;
    color: #fff;
    background-color: #d9534f;
    text-align: center;
    font-size: 10px;
}

/*SOUS CATEGORIES PANIER*/
.mn-carousel-subcategories {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 1rem;
    list-style: none;
    margin: 0;
}

.mn-carousel-subcategory-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.mn-carousel-subcategory-link {
    display: inline-block;
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
    border: 1px solid #000;
    text-align: center;
    background: #fff;
    font-weight: 300;
    font-size: 1rem;
    min-width: max-content;
    transition: background 0.2s ease;
}

li.mn-carousel-subcategory-item:hover a.mn-carousel-subcategory-link {
    border: 2px solid black;
}
div#subcategories-custom {
    padding: 0% 4%;
}
/* Scrollbar styling (facultatif mais propre) */
.mn-carousel-subcategories::-webkit-scrollbar {
    height: 6px;
}

.mn-carousel-subcategories::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 3px;
}

.mn-carousel-subcategories::-webkit-scrollbar-track {
    background: transparent;
}
/* Masque la scrollbar pour tous les navigateurs */
.mn-carousel-subcategories {
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* Internet Explorer & Edge */
}

.mn-carousel-subcategories::-webkit-scrollbar {
    display: none;                    /* Chrome, Safari, Opera */
}
.dfd-fullscreen .dfd-layer>.dfd-footer {
    display: none !important;
}

/* ---------------------------------------- MOBILE ---------------------------------------*/
@media(max-width:1300px){
    #category #products .products.row {
        display: block;
    }
}
.has-discount .discount {
    background: black;
}

/* Style général */
.mn-carousel-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
}

div#predict {
    display: none !important;
}

/* Version mobile / tablette */
@media (max-width: 1300px) {
    div#category-description {
        padding: 2% 4%;
    }

    div#subcategories-custom {
        padding: 0% 1%;
    }
    .mn-carousel-subcategories {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem;
    }

    .mn-carousel-subcategory-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .mn-carousel-subcategory-link {
        display: inline-block;
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        border: 1px solid #000;
        text-align: center;
        background: #fff;
        font-weight: 300;
        font-size: 1rem;
        min-width: max-content;
        transition: background 0.2s ease;
    }

    .mn-carousel-subcategories::-webkit-scrollbar {
        height: 6px;
    }

    .mn-carousel-subcategories::-webkit-scrollbar-thumb {
        background-color: #aaa;
        border-radius: 3px;
    }

    .mn-carousel-subcategories::-webkit-scrollbar-track {
        background: transparent;
    }
    /* Masque la scrollbar pour tous les navigateurs */
    .mn-carousel-subcategories {
        scrollbar-width: none;            /* Firefox */
        -ms-overflow-style: none;         /* Internet Explorer & Edge */
    }

    .mn-carousel-subcategories::-webkit-scrollbar {
        display: none;                    /* Chrome, Safari, Opera */
    }


    /* MY ACCOUNT */
    #history .orders .order .label, .page-order-detail #order-history .history-lines .history-line .label {
        display: inline-block;
        padding: .25rem .375rem;
        margin: .25rem 0;
        color: #fff;
        border-radius: 3px;
        width: 100%;
        text-align: center;
        padding: 2%;
    }

    #order-history .history-lines .history-line .date {
        text-align: right;
        font-size: 0.7rem;
    }

    .page-order-detail .order-items .order-item .desc .name {
        font-weight: unset;
    }

    #order-detail .order-items .ref {
        font-size: 0.7rem;
    }

    #history .orders .order a h3, body#checkout #order-summary-content a .step-edit {
        color: #000;
    }

    #identity .form-group.row {
        width: 100%;
    }

    form#customer-form {
        width: 100%;
        overflow-x: hidden;
    }

    #identity .field-radio-buttons-mnails .form-group.row, #identity .field-checkbox-mnails .form-group.row {
        display: block;
        width: 45%;
        float: unset;
    }

    #order-slip .credit-slip {
        border-bottom: 1px solid;
        margin-bottom: 5%;
    }

    /*TABLEAU RESPONSIVE MOBILE*/
    .mobile_scrolling {
        max-height: 60vh;
        overflow-y: scroll;
    }

    table.table {
        border: 0;
        width: 100%;
    }

    table.table thead {
        display: none;
    }

    table.table tbody,
    table.table tr,
    table.table td,
    table.table th {
        display: block;
        width: 100%;
    }

    table.table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 1rem;
        background-color: #fff;
    }

    table.table td,
    table.table th[scope="row"] {
        text-align: left;
        padding: 0.5rem 0;
        position: relative;
    }

    table.table td::before,
    table.table th[scope="row"]::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 0.25rem;
        color: #000;
    }

    table.table th[scope="row"] {
        font-weight: normal;
    }

    #left_account_column .my-account-links {
        display: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: unset;
    color: inherit;
}
