/**
 * 2021 Anvanto
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 *  @author Anvanto <anvantoco@gmail.com>
 *  @copyright  2021 Anvanto
 *  @license    Valid for 1 website (or project) for each purchase of license
 *  International Registered Trademark & Property of Anvanto
 */

/*
*Hide old pop up
 */
/*#blockcart-modal{*/
/*    display: none !important;*/
/*}*/


/*#blockcart-modal{
    display: none !important;
}


#index > div.sb-overlay{
    display: none !important;
}

#index > div.sb-menu-right{
    display: none !important;
}*/

.sb-menu-right p {
    margin: 0;
}

#menu-icon > i {
    color: #797979 !important;
}

#sticky-head > header > div.header-main__top__wrapper > div > div.header-main__search-bar__wrapper > div > div > a > i {
    color: #797979 !important;
}

@media (max-width: 768px) {
    #sticky-head > header > div.header-main__top__wrapper > div > div.header-main__search-bar__wrapper > div > div > a > i {
        color: white !important;
    }

    .sidebar-cart-loyalty #loyalty{
        font-size: 10px;
    }

    .sidebar-cart-loyalty #loyalty .material-icons{
        font-size: 16px;
    }
}


.sb-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    display: none;
}

/* A/B test : sidebar dans le DOM mais cachée par défaut ; le script A/B peut retirer la classe pour l'afficher */
.sb-menu-right.sidebar-hidden-ab,
.sb-overlay.sidebar-hidden-ab {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sb-open {
    overflow: hidden;
}

.sb-open .sb-menu-right {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    overflow-y: auto;
}


.sb-close-btn {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #d7d7d7;
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
}
.sb-close-btn:hover {
    color: #333;
    text-decoration: none;
}

.cart-empty-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
.cart-empty-btn{
    font-size: 14px;
    font-weight: 500;
    color: #777777;
    background: none;
    border: none;
    padding: 4px 0;
}
.cart-empty-btn:hover{
    color: #555555;
    text-decoration: none;
}

#js-cart-sidebar > div > div.no-items{
    margin-top: 10px;
}

#js-cart-sidebar .material-icons{
    color: #e71e62;
}

.cart-preview .cart-title {
    padding: 10px 0;
    text-align: center;
    /* background-color: #f4f4f4; */
}

.cart-preview .cart-title h4 {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 400    ;
    color: #000;
    margin: 0 20px;
}

.text-center{
    text-align: start;
}

.cart-preview .cart-product-line {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 11px 0;
    margin: 0 20px;
    gap: 10px;
    text-align: left;
    border-bottom: 1px solid #f4f4f4;
}

.cart-preview .cart-product-line .product-image {
    width: 10%;
}

.cart-preview .cart-product-line .product-infos {
    width: 40%;
    margin: auto;
}

.cart-preview .cart-product-line .product-remove {
    align-self: flex-start;
    width: 10%;
    text-align: right;
    margin: auto;
}

.cart-preview .product-image .img-fluid {
    max-width: 100%;
    height: auto;
}

.cart-preview .product-infos .product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    line-height: 15px;
}

.cart-preview .product-price {
   margin: auto;
}

.cart-preview .product-remove i {
    font-size: 20px;
}

.cart-preview .product-infos .product-line-info {
    line-height: initial;
    font-size: 12px;
    color: #000;
}

.cart-preview .product-infos .sidebar-line-stock-warning {
    margin-top: 6px;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(231, 30, 98, 0.08);
    font-size: 11px;
    line-height: 1.3;
    color: #c62828;
    font-weight: 500;
    text-align: center;
}

.product-infos .product-line-info .label {
    color: #7d7d7d;
}

.cart-preview .product-infos .product-price {
    display: inline-block;
    margin-top: 15px;
}

.cart-preview .product-infos .product-quantity {
    display: inline-block;
    margin-left: 3px;
    font-size: 12px;
    font-weight: 400;
}

.cart-preview .cart-bottom {
    background-color: #f4f4f4;
}

.cart-preview .cart-bottom .total-line {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
}

.cart-bottom .total-line span {
    width: 50%;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.cart-bottom .total-line .label {
    text-align: left;
}

.cart-bottom .total-line .value {
    text-align: right;
}

.cart-dropdown-wrapper .cart-total{
    min-height: 2em;
}

.cart-bottom .cart-total .label {
    text-transform: uppercase;
}

.cart-bottom .cart-total .value {
    font-size: 20px;
}

.cart-preview .cart-action .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.cart-preview .no-items {
    text-align: center;
}

/* Titre du panier sidebar : titre + badge nombre d'articles */
.sidebar-cart-title {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-cart-title__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 15px !important;
    color: #212529;
    text-align: center;
}

.sidebar-cart-title__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e71e62;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.sidebar-cart-title__count-num {
    font-size: 1em;
    line-height: 1;
}

.sidebar-cart-title__count-label {
    font-weight: 500;
    opacity: 0.95;
}

#js-cart-sidebar .sidebar-cart-title__heading {
    justify-content: flex-start;
}

.product-qty .product-qty-container {
    border-radius: 0;
    overflow: hidden;
    display: flex;
    width: 90px;
    font-weight: 400;
}
.product-qty-input {
    background: transparent;
    color: black;
    width: 30px!important;
    height: 30px!important;
    line-height: 40px;
    text-align: center!important;
    border: 0!important;;
    border-radius: 0;
    box-shadow: none;
    padding: 0!important;;
    font-size: 1rem;
}
.product-qty .quantity-button {
    border: 1px solid #333 !important;
    background-color: transparent;
    font-size: 18px;
    position: static;
    height: 30px !important;
    width: 30px !important;
    display: block !important;
    text-align: center;
    line-height: 27px;
    transform: translateX(0) !important;
    padding: 0;
    cursor: pointer;
    border-radius: 6px
}


.product-qty .input-group-btn-vertical {
  display: none!important;
}

.an_sidebarcart-add {
  margin-top: 5px;
}

#_desktop_cart {
    display: none;
}

.price-qty-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: auto;
}

.btn-primary,
.cart-preview .cart-action .btn-primary {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: hsla(0, 0%, 13%, 1);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.cart-preview .cart-action .btn-primary:hover {
    background-color: hsla(0, 0%, 15%, 1);
}

#js-cart-sidebar > div > ul{
    display: inline;
}
.cart-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.cart-scroll-zone {
    overflow-y: auto;
    flex: 1 1 auto;
}

.cart-footer {
    flex-shrink: 0;
    background-color: #f4f4f4;
    padding: 5px 20px 20px 20px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

#js-cart-sidebar > div > div.cart-footer > div.cart-bottom > hr{
    margin: 5px 0 1rem 0 !important;
}

.cart-action .btn-primary {
    width: 100%;
}

#js-cart-sidebar > div > div.cart-scroll-zone > ul{
    display: contents;
}

.product-total-price{
    font-size: 14px;
    color: #e71e62;
    font-weight: 600;
}
#js-cart-sidebar > div > div.cart-footer > div.cart-action > div > a{
    background: #e71e62;
}


.cart-security-message i[class^="fa"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    display: inline-block;
}

.sb-open {
    overflow: hidden;
}

.modal-open{
    overflow: auto;
}


/* Code promo sidebar */
.cart-promo-code {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}
.cart-promo-code .promo-code-header {
    margin-bottom: 8px;
}
.cart-promo-code .promo-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    display: block;
    cursor: auto;
}

.cart-promo-code .promo-toggle-icon {
    display: none;
}

/* Mobile : champ code promo visible par défaut (plus besoin de cliquer pour l'afficher) */
@media screen and (max-width: 768px) {
    .cart-promo-code .js-sidebar-promo-toggle {
        display: flex;
        gap: 5px;
        cursor: pointer;
        user-select: none;
        padding: 6px 0;
        margin: -6px 0 0;
    }
    .cart-promo-code .sidebar-promo-form {
        display: block;
        margin-top: 10px;
    }
    .cart-promo-code .sidebar-promo-error {
        display: block;
        margin-top: 6px;
    }
    /* Réductions appliquées : visibles seulement quand le bloc est ouvert (.is-open) */
    .cart-promo-code .sidebar-applied-promos-block {
        display: block;
        margin-top: 5px;
    }
}
.cart-promo-code .promo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.cart-promo-code .promo-input {
    flex: 1;
    min-width: 0;
    padding: 17px 10px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    background-color: #fff;
}
.cart-promo-code .promo-submit-btn {
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 8px;
    background-color: #333;
}
.cart-promo-code .sidebar-promo-error {
    font-size: 0.85rem;
    color: #c00;
    margin-top: 4px;
}
.cart-promo-code .sidebar-applied-promos-block {
    margin-top: 5px;
}
/* Titre cliquable : réductions fermées par défaut (pas un bouton, simple bloc cliquable) */
.cart-promo-code .sidebar-applied-promos-title {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 6px 0 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-align: left;
    user-select: none;
}
.cart-promo-code .sidebar-applied-promos-title:hover {
    color: #000;
}
.cart-promo-code .sidebar-applied-promos-title__text {
    flex: 1;
}
.cart-promo-code .sidebar-applied-promos-count {
    font-weight: 500;
    color: #666;
    font-size: 0.8rem;
}
.cart-promo-code .sidebar-applied-promos-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.cart-promo-code .sidebar-applied-promos-block.is-open .sidebar-applied-promos-chevron {
    transform: rotate(180deg);
}
.cart-promo-code .sidebar-applied-promos-block .sidebar-applied-promos {
    display: none;
    margin-top: 8px;
}
.cart-promo-code .sidebar-applied-promos-block.is-open .sidebar-applied-promos {
    display: block;
}
.cart-promo-code .sidebar-applied-promos {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cart-promo-code .sidebar-promo-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}
.cart-promo-code .sidebar-promo-item:last-child {
    margin-bottom: 0;
}
.cart-promo-code .sidebar-promo-details {
    flex: 1;
    min-width: 0;
}
.cart-promo-code .sidebar-promo-item .sidebar-promo-name {
    display: block;
    font-weight: 500;
    color: #333;
}
.cart-promo-code .sidebar-promo-item .sidebar-promo-code {
    font-size: 0.8rem;
    color: #666;
}
.cart-promo-code .sidebar-promo-value {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e71e62;
    white-space: nowrap;
}
.cart-promo-code .sidebar-remove-promo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.cart-promo-code .sidebar-remove-promo .material-icons {
    font-size: 18px;
}
.cart-promo-code .sidebar-remove-promo:hover {
    color: #333;
}
.cart-promo-code .sidebar-remove-promo-text {
    white-space: nowrap;
}

#js-cart-sidebar > div > div.cart-footer > div.cart-promo-code > div.sidebar-applied-promos-block > ul > li > a > svg{
    color: #333;
}

@media (max-width: 380px) {
    .cart-promo-code .sidebar-remove-promo-text {
        display: none;
    }
}

/* Points de fidélité dans la sidebar (comme sur la page panier) */
.sidebar-cart-loyalty.cart-loyalty-block {
    margin: 5px 0;
    padding: 13px 0 5px;
}
.sidebar-cart-loyalty #loyalty {
    margin: 0;
    font-size: 13px;
}
.sidebar-cart-loyalty #loyalty .material-icons {
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== Messages livraison gratuite (sidebar uniquement) ===== */
#js-cart-sidebar .sidebar-cart-free-shipping {
    margin: 0 0 5px 0;
    padding: 0;
}

/* Livraison : en haut de la zone scroll, sticky uniquement sur desktop (sur mobile ça cache trop les articles) */
#js-cart-sidebar .sidebar-cart-free-shipping--sticky {
    margin: 0;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

@media screen and (min-width: 769px) {
    #js-cart-sidebar .sidebar-cart-free-shipping--sticky {
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

@media screen and (max-width: 768px) {
    #js-cart-sidebar .sidebar-cart-free-shipping--sticky {
        padding: 10px 20px 12px;
        margin-bottom: 10px;
    }
}

#js-cart-sidebar .sidebar-free-shipping {
    margin: 0;
}

#js-cart-sidebar .sidebar-free-shipping__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

#js-cart-sidebar .sidebar-free-shipping__icon {
    font-size: 20px;
    color: #e71e62;
    width: 20px;
    height: 20px;
}

#js-cart-sidebar .sidebar-free-shipping__title {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#js-cart-sidebar .sidebar-free-shipping__messages {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#js-cart-sidebar .sidebar-free-shipping__item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

#js-cart-sidebar .sidebar-free-shipping__item .sidebar-free-shipping__icon {
    flex-shrink: 0;
}

#js-cart-sidebar .sidebar-free-shipping__item .sidebar-free-shipping__icon img {
    display: block;
    width: 15px;
    height: 16px;
    object-fit: contain;
}

#js-cart-sidebar .sidebar-free-shipping__text {
    margin: 0;
    font-size: 12px;
    color: #495057;
}

#js-cart-sidebar .sidebar-free-shipping__amount {
    color: #e71e62;
    font-weight: 700;
}

#js-cart-sidebar .sidebar-free-shipping__highlight {
    color: #e71e62;
    font-weight: 600;
}

#js-cart-sidebar .sidebar-free-shipping__text--success .sidebar-free-shipping__highlight {
    color: #e71e62;
}

.cart-payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 5px 0 !important;
}

.cart-payment-text {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
}

/* Toggles masqués sur desktop (loyalty toujours affiché, pas de toggle) */
.sidebar-payment-toggle {
    display: none;
}

/* Flèche pour rouvrir le footer (visible uniquement quand le footer est en mode compact, mobile) */
.sidebar-footer-expand-trigger {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 0 10px;
    margin: 0 0 6px 0;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.2s ease;
}
.sidebar-footer-expand-trigger:hover,
.sidebar-footer-expand-trigger:focus {
    color: #e71e62;
    outline: none;
}
.sidebar-footer-expand-trigger__icon {
    margin-bottom: 1px;
    display: block;
    transform: rotate(180deg);  /* même chevron que loyalty, tourné vers le haut pour "ouvrir" */
}

/* Mobile : footer réduit au scroll (total + Commander uniquement) + transition */
@media screen and (max-width: 768px) {
    #js-cart-sidebar .cart-footer.cart-footer--compact .sidebar-footer-expand-trigger {
        display: flex;
        align-items: center;
    }
    #js-cart-sidebar .cart-footer .cart-promo-code,
    #js-cart-sidebar .cart-footer .sidebar-cart-loyalty {
        max-height: 500px;
        overflow: hidden;
        opacity: 1;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.25s ease, margin 0.25s ease;
    }
    #js-cart-sidebar .cart-footer .cart-bottom .cart-subtotals,
    #js-cart-sidebar .cart-footer .cart-bottom > hr {
        max-height: 120px;
        overflow: hidden;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
    }

    #js-cart-sidebar .cart-footer.cart-footer--compact .sidebar-cart-loyalty,
    #js-cart-sidebar .cart-footer.cart-footer--compact .cart-payment-icons,
    #js-cart-sidebar .cart-footer.cart-footer--compact .cart-payment-text {
        max-height: 0;
        opacity: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    #js-cart-sidebar .cart-footer.cart-footer--compact .cart-bottom .cart-subtotals,
    #js-cart-sidebar .cart-footer.cart-footer--compact .cart-bottom > hr {
        max-height: 120px !important;
        overflow: hidden !important;
        opacity: 1 !important;
    }
    #js-cart-sidebar .cart-footer .cart-bottom {
        transition: margin-bottom 0.25s ease;
    }
    #js-cart-sidebar .cart-footer {
        transition: padding 0.25s ease;
    }
    #js-cart-sidebar .cart-footer.cart-footer--compact {
        padding-top: 5px;
    }

    #js-cart-sidebar > div > div.cart-footer > div.cart-promo-code > div.promo-code-header.js-sidebar-promo-toggle, 
    #js-cart-sidebar > div > div.cart-footer > div.cart-promo-code > div.promo-code-header.js-sidebar-promo-toggle > span, 
    #js-cart-sidebar > div > div.cart-footer > div.cart-payment-icons, 
    #js-cart-sidebar > div > div.cart-footer > div.cart-payment-text, 
    #js-cart-sidebar > div > div.cart-footer > div.cart-bottom > div.cart-subtotals,
    #js-cart-sidebar > div > div.cart-footer.cart-footer--compact > div.cart-action > div.sidebar-cart-loyalty.cart-loyalty-block, 
    #js-cart-sidebar > div > div.cart-footer > div.cart-action > div.sidebar-cart-loyalty.cart-loyalty-block{
        display: none;
    }

    .cart-promo-code .sidebar-promo-form {
        display: block;
        margin-top: 0 !important;
    }

    #js-cart-sidebar > div > div.cart-footer > div.cart-action > div.text-center > a, #js-cart-sidebar > div > div.cart-footer > div.cart-action > div.text-center > span {
        font-size: 14px !important;
        padding: 8px 20px !important;
    }

    #js-cart-sidebar > div > div.cart-footer > div.cart-promo-code {
        border-bottom: none !important;
    }
}


.an_sidebarcart-miniature {
  display: none;
}

.fa-credit-card:before{
  content:"\f09d"
}

.fa-apple-pay:before {
  content: "\f415";
}

.fa-paypal:before {
  content: "\f1ed";
}

.fa-google-pay:before {
  content: "\e079";
}

.fa-cc-amex:before {
  content: "\f1f3";
}

#js-cart-sidebar > div > div.cart-scroll-zone > ul > li > div.product-infos > a:hover{
    color: #333333;
}

.product-qty--gift{
    color: #e71e62;
    font-weight: 600;
    font-size: 14px;
}

.sidebar-stock-warning {
    color: #a94442;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

#js-cart-sidebar > div > div.cart-footer > div.cart-action > div.text-center > span{
    background-color: #d7d7d7 !important;
    color: #111 !important;
    outline: none !important;
    border: none !important;
}

#blockcart-modal{
    display: none !important;
}