.cud-color1 {
    color: var(--theme-color) !important;
}

.cud-left {
    text-align: left;
}

.alert-danger,
.alert-error {
    color: #FFF;
    background-color: rgba(231, 76, 60, 0.88);
    border-color: rgba(231, 76, 60, 0.88);
}

.sec-pad {
    padding: 82px 0px 70px 0px;
}

.main-footer .widget-section {
    padding: 150px 0px 104px 0px;
}

.page-title {
    padding: 115px 0px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.menu-link img {
    height: 40px;
    display: block;
}

.menu-label {
    display: inline-block;
    /*vertical-align: middle;*/
}

.main-menu .navigation > li {
    margin: 0px 1px;
}

.main-menu .navigation > li > ul > li > a.menu-link, .main-menu .navigation > li > ul > li > ul > li > a.menu-link, .main-menu .navigation > li > .megamenu li > a.menu-link, .main-menu .navigation > li > a.menu-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.checkout-section .billing-form .form-group input[type="password"] {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    border: 1px solid #e5e5e5;
    font-size: 16px;
    color: #676767;
    padding: 10px 15px;
    transition: all 500ms ease;
}

.quantity-spinner::-webkit-outer-spin-button,
.quantity-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-spinner[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.menu-right-content .cart-box .cart-indicator {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: .3rem;
}

.menu-right-content #header-cart-count.badge {
    font-size: .75rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .menu-right-content .cart-total {
        display: none;
    }
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    background: #e11d48;
    color: #fff;
    box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 576px) {
    .menu-right-content .js-cart-total {
        display: none !important;
    }
}


/* Le conteneur couvre aussi la zone sous l’icône */
.cart-box {
    position: relative;
    padding-bottom: 14px; /* étend la hitbox sous l’icône */
}

/* mini-panier : pas de transform qui crée un faux décalage */
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: min(440px, 96vw);
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-radius: 12px;
    padding: 12px;
    z-index: 9999;
}

.mini-cart[hidden] {
    display: none !important;
}

.mini-cart__content {
    max-height: 320px;
    overflow: auto;
}

.cart-box::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: min(440px, 96vw);
    height: 10px; /* petite zone tampon */
    /* pointer-events: auto;  // inutile avec le padding ci-dessus */
    background: transparent;
}

@media (max-width: 480px) {
    .mini-cart {
        width: 96vw;
    }
}

.mini-cart__footer a {
    display: inline-flex; /* ou flex si tu veux largeur pleine */
    align-items: center; /* centre verticalement */
    justify-content: center; /* centre horizontalement */
    height: 40px; /* même hauteur que bouton produit */
    line-height: normal; /* évite l’écrasement du texte */
    padding: 0 16px; /* espace interne horizontal */
    border-radius: 4px !important; /* ton arrondi actuel */
}

.mini-cart .mini-name {
    font-size: .9rem; /* ou .875rem */
    line-height: 1.2;
    font-weight: 600; /* optionnel */
}

.mini-cart .price-inline {
    white-space: nowrap;
}

.prod-thumb {
    border: none !important;
    width: 100px !important;
    height: auto !important;
}

.cart-section .cart-table tbody tr .prod-column .column-box {
    padding-top: 5px;
    padding-bottom: 5px;
}

.cart-section .cart-table tbody tr td.price {
    padding: 30px 5px 30px 5px;
}

.cart-section .cart-table tbody tr td.qty {
    left: 10px;
}

/* ===========================
   CART TABLE -> CARDS (mobile)
   FIX against cart.css absolute layout
   =========================== */
@media (max-width: 576px){

    /* Stop le scroll horizontal du thème */
    .cart-section .cart-table{
        min-width: 350px !important; /* remplace le 1170px */
        width: 100% !important;
    }
    .cart-section .table-outer{
        overflow: visible !important;
    }

    /* Le tableau devient un flux vertical */
    table.cart-table,
    table.cart-table thead,
    table.cart-table tbody,
    table.cart-table tr,
    table.cart-table th,
    table.cart-table td{
        display: block !important;
        width: 100% !important;
    }
    table.cart-table thead{
        display: none !important;
    }

    /* Carte produit */
    table.cart-table tbody tr{
        position: relative !important;
        margin: 0 0 14px 0 !important;
        padding: 14px !important;
        border: 1px solid #e6e6e6 !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    /* Colonne produit */
    .cart-section .cart-table tbody tr td.prod-column{
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    /* >>> LE POINT CLÉ : on annule le layout "desktop" du thème <<< */
    .cart-section .cart-table tbody tr .prod-column .column-box{
        padding: 0 !important;      /* annule le 250px à gauche */
        min-height: 0 !important;
        position: relative !important;
        display: block !important;
    }

    /* annule les absolute/left/top du thème */
    .cart-section .cart-table tbody tr .prod-column .column-box .prod-thumb{
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 96px !important;
        height: auto !important;
        margin: 0 auto !important;
        border: 0 !important;       /* optionnel : enlève le cadre du thème */
        background: transparent !important;
    }
    .cart-section .cart-table tbody tr .prod-column .column-box .prod-thumb img{
        width: 96px !important;
        height: 96px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 10px !important;
    }

    /* IMPORTANT : ton HTML utilise .prod-title, pas .title */
    .cart-section .cart-table tbody tr .prod-column .column-box .prod-title{
        display: block !important;
        margin-top: 10px !important;
        text-align: center !important;
    }
    .cart-section .cart-table tbody tr .prod-column .column-box .prod-title h5{
        display: block !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    /* Bouton remove : on le remet en haut à droite, et on annule l'absolute du bouton */
    .cart-section .cart-table tbody tr .prod-column .column-box .remove-btn{
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        z-index: 10 !important;
    }
    .cart-section .cart-table tbody tr .prod-column .column-box .remove-btn button{
        position: static !important;        /* annule le left/top 50% du thème */
        transform: none !important;
    }

    /* Prix / Quantité / Sous-total */
    table.cart-table td.price,
    table.cart-table td.qty,
    table.cart-table td.sub-total{
        padding: 8px 0 !important;
        border-top: 1px dashed #e6e6e6 !important;
        margin-top: 8px !important;
    }

    table.cart-table td.price::before{
        content: "Prix";
        font-weight: 600;
        margin-right: 8px;
    }

    table.cart-table td.qty{
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        left: 0 !important; /* annule le left:40px du thème */
    }
    table.cart-table td.qty::before{
        content: "Quantité";
        font-weight: 600;
    }

    table.cart-table td.sub-total::before{
        content: "Sous-total";
        font-weight: 600;
        margin-right: 8px;
    }

    /* Champ quantité */
    table.cart-table td.qty form{
        margin: 0 10px 0 0 !important;
        width: auto !important;
    }
    .cart-section .cart-table tbody tr td.qty .item-quantity{
        float: none !important;       /* annule le float:left du thème */
        max-width: none !important;
        width: auto !important;
        height: auto !important;
    }
    table.cart-table .quantity-spinner{
        width: 90px !important;
    }

    /* Anti débordements */
    .cart-section,
    table.cart-table{
        overflow-x: hidden !important;
    }
}

/* ZONE INTERMÉDIAIRE : 1400 → 1677px (valeurs fluides pour éviter les "micro trous") */
@media (min-width: 1400px) and (max-width: 1677px) {

    /* réduire logo (ok) */
    .main-header .logo-box img {
        max-height: 38px;
    }

    /* header compact */
    .main-header .header-lower .outer-box {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* menu : espacements + font-size FLUIDES */
    .main-menu .navigation > li {
        margin-right: clamp(10px, 1vw, 18px);
    }

    .main-menu .navigation > li > a {
        font-size: clamp(12px, 0.85vw, 14px);
    }

    /* zone droite : éviter tout wrap */
    .main-header .menu-right-content {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: clamp(10px, 1vw, 16px);
    }

    /* bouton devis : padding + font-size FLUIDES */
    .main-header .btn-box .theme-btn {
        padding: clamp(8px, 0.7vw, 10px) clamp(12px, 1.1vw, 16px);
        font-size: clamp(12px, 0.85vw, 14px);
    }

    /* panier */
    .main-header .cart-box {
        margin-left: 0;
    }
}


/* Bandeau bleu compact entre 1485 et 1530 */
@media (min-width: 1485px) and (max-width: 1530px) {

    .header-top .top-left li:nth-child(2), /* adresse */
    .header-top .top-left li:nth-child(3) { /* éventuellement email */
        display: none;
    }

    .header-top .top-right {
        padding-right: 10px;
    }

    .header-top li {
        margin-right: 10px;
        font-size: 13px;
    }
}

/* Micro-zone problématique autour de 1546px */
@media (min-width: 1528px) and (max-width: 1565px) {

    /* encore un peu moins d'espace entre items du menu */
    .main-menu .navigation > li {
        margin-right: 14px !important;
    }

    /* réduire légèrement le CTA */
    .main-header .btn-box .theme-btn {
        padding: 9px 14px !important;
        font-size: 13px !important;
    }

    /* réduire un peu l'espace du bloc "Mon compte" si présent */
    .main-header .menu-right-content {
        column-gap: 12px;
    }
}

/* Toujours mobile < 1400px */
@media (max-width: 1399px) {
    .main-header .main-menu {
        display: none !important;
    }
    .main-header .mobile-nav-toggler {
        display: block !important;
    }
}

/* Bandeau bleu : bloquer le wrap UNIQUEMENT à droite (téléphone + réseaux) */
.header-top .top-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;     /* interdit le retour à la ligne */
    white-space: nowrap;   /* interdit le wrap du texte (téléphone) */
    gap: 14px;             /* espace propre entre éléments */
}

/* Si les icônes sont dans une liste, on les garde sur une ligne aussi */
.header-top .top-right ul,
.header-top .top-right li {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* optionnel : éviter que le numéro se coupe */
.header-top .top-right a,
.header-top .top-right .phone,
.header-top .top-right .info {
    white-space: nowrap;
}

/* Ne jamais masquer "Mon compte" (certaines règles thème le font à certaines largeurs) */
.main-header .menu-right-content .support-box {
    display: flex !important;
}

/* Par défaut (grand écran) : texte visible */
.main-header .account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* "Mon compte" en icône tout le temps */
.main-header .menu-right-content .support-box {
    display: flex !important; /* évite qu'une règle du thème le masque */
}

.main-header .account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    line-height: 1;
}

.main-header .account-link i {
    font-size: 16px;
}

.main-header .menu-right-content .cart-box {
    margin-top: 12px;
}

#account-icon i {
    left:13px;
    top: 10px;
}

.mobile-menu .nav-logo {
    background-color: white;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.shop-block-one .inner-box .image-box {
    border: none;
}

/* Cadre fixe pour les vignettes produit */
.product-thumb{
    width: 100%;
    aspect-ratio: 1 / 1;      /* carré (idéal pour une grille) */
    display: flex;
    align-items: center;      /* centrage vertical */
    justify-content: center;  /* centrage horizontal */
    background: #fff;         /* optionnel */
    overflow: hidden;
    margin: 0;                /* évite des surprises selon le thème */
}

/* Image qui s'adapte sans être rognée */
.product-thumb img{
    width: 100%;
    height: 100%;
    object-fit: contain;      /* garde le ratio, pas de crop */
    object-position: center;  /* centrage */
    display: block;
}

.search-inner form {
    max-width: 500px;
}