/* --- Conteneur Principal --- */
/* On force le conteneur du modal à ignorer les marges de Bootstrap */
#cartModal .modal-dialog.cart-top-left {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    max-width: 320px !important; /* On fixe la largeur ici */
    height: 100vh !important;
}

/* On s'assure que le contenu du modal prend toute la hauteur */
#cartModal .modal-content.cart-panel {
    height: 100vh !important;
    border-radius: 0 !important; /* Optionnel : pour un look bord à bord */
}

.cart-panel {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Section des articles --- */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.qty-box button {
    width: 25px;
    height: 25px;
    border: none;
    background: #eee;
}

.qty-value {
    font-size: 11px !important;
}

/* --- Pied de page du panier --- */
.cart-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.cart-footer span, 
.total strong {
    font-size: 14px;
}

.cart-btn-wrapper {
    margin-top: auto; 
    padding-top: 15px;
}




    /* Menu principal */
    .mega-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
        background: #f4a2d4;
    }

    .mega-menu > li > a {
        color: white;
        display: block;
        text-decoration: none;
    }

    /* Mega menu content */
    .mega-menu-class {
        position: relative;
    }

    .mega-menu-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 800px;
        background: #f5f5f5;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 100;
        display: none;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .mega-menu-class:hover .mega-menu-content {
        display: grid;
    }

    .mega-menu-column .category-title {
        font-weight: bold;
        display: block;
        margin-bottom: 10px;
        color: #333;
        text-decoration: none;
    }

    .subcategory-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .subcategory-list li a {
        display: block;
        padding: 3px 0;
        color: #555;
        text-decoration: none;
    }

    .subcategory-list li a:hover {
        color: #000;
    }

    .product-slider {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap;
    }

    .product-slider .product-item {
        margin: 0 10px;
    }

    .product-item .pi-pic img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }

    @media (max-width: 768px) {
        .product-item .pi-pic img {
            height: 150px;
        }
    }

    .single-hero-items .container{
          margin-top: -120px;
    }

    
    .single-latest-blog img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .single-hero-items {
        background-color: #fff7e6;
    }

    .single-benefit {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .sb-icon img {
      width: 100px;
      height: auto;
    }

    .sb-text h6 {
      margin: 0;
      font-weight: bold;
    }

    .sb-text p {
      margin: 0;
      font-size: 14px;
      color: #555;
    }

    .product-item {
        position: relative;
    }

    .quick-overlay, .quick-view-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0);
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        cursor: pointer;
        transition: 0.3s;
        z-index: 5;
    }

    .product-item:hover .quick-overlay, 
    .product-item:hover .quick-view-overlay {
        opacity: 1;
    }

    .custom-banner-section { 
        padding-top: 0; 
        padding-bottom: 0; 
    }

    .custom-banner-section .col-md-4,
    .custom-banner-section .col-md-8 {
        padding: 12px;
    }

    .custom-banner-section a {
        position: relative;
        display: block;
    }

    .custom-banner-section .custom-banner-img {
        width: 100%;
        height: 300px !important;
        display: block;
        border-radius: 10px;
        margin-left: 0px;
        gap: 20px;
    }

    .custom-banner-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        border: 4px solid rgba(255, 255, 255, 0.5);
        border-radius: 10px;
        padding: 10px;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.3s ease;
        margin: 10px;
    }

    .custom-banner-section a:hover .overlay {
        opacity: 1;
    }

    @media (max-width: 768px) {
        .custom-banner-section .col-md-4,
        .custom-banner-section .col-md-8 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 15px;
        }
        .custom-banner-section .overlay {
            border-width: 3px;
            padding: 5px;
            border-radius: 8px;
        }
    }

    
    /* ==========================================================================
       STYLE CSS CONFIGURATION PREMIUM MODAL APERÇU
       ========================================================================== */
    .modal-dialog.custom-modal-layout { max-width: 950px !important; margin: 30px auto; }
    .custom-modal-layout .modal-content { border-radius: 20px !important; padding: 25px; border: none !important; height: auto !important; display: block !important; }
    .custom-modal-layout .close { position: absolute; top: 15px; right: 20px; font-size: 28px; z-index: 10; cursor: pointer; border: none; background: transparent; }

    .modal-split-container { display: flex; gap: 30px; align-items: center; }
    .modal-split-left { width: 45%; position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; background: #fff; }
    .modal-split-left img { max-width: 100%; height: auto; max-height: 380px; object-fit: contain; }
    .modal-split-left .modal-badge-discount { position: absolute; top: 0; left: 0; background: #e9548a; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; z-index: 2; }
    
    .modal-split-right { width: 55%; display: flex; flex-direction: column; }
    .modal-header-block { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 12px; gap: 15px; width: 100%; }
    .modal-header-block h3 { font-family: 'Montserrat'; font-size: 24px; font-weight: 700; color: #e9548a; margin: 0; text-align: left; line-height: 1.3; flex: 1; }
    .modal-header-block .brand-logo-inline { max-height: 50px; max-width: 120px; object-fit: contain; flex-shrink: 0; display: none; }

    .modal-split-right .product-reference { font-size: 13px; color: #888; margin-bottom: 8px; text-align: left; }
    .modal-split-right .product-description { font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 15px; text-align: left; max-height: 100px; overflow-y: auto; }

    .modal-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
    .modal-price-row .price-active { font-size: 24px; font-weight: 700; color: #229d4a; }
    .modal-price-row .price-canceled { font-size: 15px; color: #bbb; text-decoration: line-through; }
    .modal-price-row .price-percent-tag { background: #ffe3ec; color: #e9548a; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }

    .modal-interactive-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
    .modal-interactive-row .qty-container { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; height: 45px; overflow: hidden; background: #fff; }
    .modal-interactive-row .qty-btn { background: #f8f9fa; border: none; width: 35px; height: 100%; font-size: 12px; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .modal-interactive-row .qty-btn:hover { background: #e9ecef; color: #000; }
    .modal-interactive-row .qty-picker { width: 45px; height: 100%; text-align: center; border: none; font-weight: bold; font-size: 15px; background: transparent; padding: 0; margin: 0; }
    .modal-interactive-row .qty-picker:focus { outline: none; }

    .modal-interactive-row .btn-add-main {width:100%; border:none; border-radius:40px; padding:12px; color:#fff;  font-size:12px; background:linear-gradient(90deg, #d8467c, #f15f95); cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
    
    .modal-social-order { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; justify-content: flex-start; }
    .modal-social-order span { font-weight: bold; font-size: 15px; color: #333; }
    .modal-social-order .chat-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 20px; text-decoration: none; transition: transform 0.2s; }
    .modal-social-order .chat-icon-btn:hover { transform: scale(1.1); }
    .modal-social-order .chat-icon-btn.whatsapp { background: #25D366; }
    .modal-social-order .chat-icon-btn.messenger { background: #0084FF; }

    .modal-split-right .modal-promo-banner { width: 100%; display: flex; margin-top: 5px; }
    .modal-split-right .modal-promo-banner img { width: 100% !important; height: auto !important; object-fit: cover; border-radius: 12px; }

    @media(max-width:992px) { 
        .modal-split-container { flex-direction: column; }
        .modal-split-left, .modal-split-right { width: 100%; }
    }

  /* Wrapper du carousel */
.brand-carousel-wrapper {
    padding-right: 65px;
	padding-left: 65px;
	padding-top: 20px;
	padding-bottom: 20px;
}

/* Carte de marque (le conteneur blanc) */
.brand-item {
    background: #fff;
    border: 1px solid #f4f4f4;
    border-radius: 15px;
    height: 140px;
    display: flex !important; /* Important pour OwlCarousel */
    align-items: center;
    justify-content: center;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Image à l'intérieur */
.brand-item img {
    max-width: 90% !important;
    max-height: 100px !important;
    object-fit: contain;
}

/* Ajustement des flèches Owl Carousel */
#banner-container .owl-nav {
    display: block !important;
}

#banner-container .owl-prev,
#banner-container .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: #f8e5ec !important;
    color: #d8467c !important;
    line-height: 50px !important;
    font-size: 20px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#banner-container .owl-prev { left: -25px; }
#banner-container .owl-next { right: -25px; }

.owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        display: block !important;
        width: 55px;
        height: 55px;
        background:#f8e5ec !important;
        color:#d8467c !important;
        border-radius:50%;
        font-size: 16px;
        line-height: 55px;
        text-align: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        z-index: 1000;
        cursor: pointer;
        box-shadow:0 0 0 15px #fff;
    }

    .owl-nav button.owl-prev { left: -20px; }
    .owl-nav button.owl-next { right: -20px; }

    .owl-nav button.owl-prev:hover,
    .owl-nav button.owl-next:hover {
        background:#f1d7e2 !important;
    }

    
/* Container du modal */
.modal-body {
    max-height: 80vh; /* Limite la hauteur à 60% de la fenêtre */
    overflow-y: auto; /* Active le scroll uniquement ici */
    padding: 15px;
    scrollbar-width: thin; /* Style pour Firefox */
}

/* Optionnel : Personnalisation de la barre de défilement (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: #f4a2d4; 
    border-radius: 10px;
}

