html, body {
    height: 100%;
    overflow-x: hidden;
}

#app {
    position: relative;
    overflow: visible !important;
}

.main {
    position: relative;
    z-index: 1;
}

body {
    background-color: #fff;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.rounded-32 {
    border-radius: 32px !important;
}

.carousel-item img {
    border-radius: 20px;
}

.header-wrapper {
    background-color: #14062B;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    font-family: 'Poppins', sans-serif;
    /*transition: border-radius 0.3s ease;*/
}

.header-top {
    background-color: #14062B;
    font-size: 0.9rem;
    color: #e1e3f1;
}

.top-h-border-bottom {
    border-bottom: 1px solid #68586F;
}

.navbar {
    height: 80px;
    z-index: 1050;
}

.navbar .nav-link, .navbar .nav-link:hover, .navbar .nav-link:focus {
    color: #e1e3f1;
    font-weight: 500;
}

.navbar .btn-link {
    color: #e1e3f1;
    text-decoration: none;
}

.navbar .dropdown-toggle:after {
    display: none;
}

.nav-item.mega-parent {
    position: relative;
}

.nav-item.mega-parent > .nav-link {
    position: relative;
    z-index: 2;
}

/* ✅ Zone de transition sous le lien uniquement */
.nav-item.mega-parent > .nav-link::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    pointer-events: auto;
    z-index: 10;
}

/* ✅ Menu caché avec transition */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin: auto;
    transform: translateX(-50%) translateY(0px) !important; /* centré horizontalement */
    /*background-color: #e1e3f1;*/
    background-color: #fff;
    /*border-top: 1px solid #68586F;*/
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: auto;
    max-width: 90vw; /* sécurité sur petits écrans */
    padding: 1rem 2rem; /* espacement interne */
}

.nav-item.mega-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ✅ Supprimer le radius bas du header uniquement quand menu actif */
.nav-item.mega-parent:hover ~ .header-wrapper {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


.nav-item.mega-parent ~ .header-wrapper {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.navbar-collapse.collapse.show, .navbar-collapse.collapsing {
    background-color: #FFF; /* même couleur que navbar */
    z-index: 1000; /* au-dessus du contenu */
    padding: 1rem 1rem;
    border-radius: 30px;
    position: absolute;
    top: 100%;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.navbar-collapse.collapse.show .nav-item .nav-link, .navbar-collapse.collapse.show .nav-item, .navbar-collapse.collapsing .nav-item .nav-link {
    color: #14062B;
}

.navbar-collapse.collapsing {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.main-menu-item {
    text-align: center;
}

.main-menu-item a {
    color: #14062B !important;
    text-decoration: none !important;
}

/* L’icône doit pouvoir être transformée */
.transition-icon {
    display: inline-block;
    transition: transform .18s ease;
}

.nav-item.mega-parent:hover .nav-link .transition-icon {
    transform: scaleY(-1) !important;
}

.logo {
    height: 60px;
}

.icon-btn {
    color: #e1e3f1;
    margin-left: 20px;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: #e1e3f1;
    color: #4B445D;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-thumbnail {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.price {
    font-family: sans-serif;
    color: #0E0520;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
}

.price .amount {
    font-size: 5em;
    line-height: 1;
}

.price .currency {
    font-size: 16px;
    margin-left: 4px;
    line-height: 2.4;
}


.btn-gradient {
    background: linear-gradient(90deg, #548fcc, #cc2579, #e6b733);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-gradient-border {
    display: inline-block;
    padding: 2px; /* épaisseur de la bordure */
    border-radius: 50px;
    background: linear-gradient(90deg, #548fcc, #cc2579, #e6b733);
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-gradient-border:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-inner {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: transparent;
    background: #FFF;
    text-align: center;
    border: none;
    display: inline-block;
    cursor: pointer;
    transition: inherit;
}

.btn-inner .text-gradient {
    background: linear-gradient(90deg, #cc2579, #b42986, #9f3d8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.custom-arrow {
    background-color: #e1e3f1;
    color: #170731 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.7em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 60%;
    transform: translateY(-25%);
    z-index: 10;
    cursor: pointer;
}

.swiper-button-prev.custom-arrow {
    left: 20px;
}

.swiper-button-next.custom-arrow {
    right: 20px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
}

.related-swiper {
    position: relative;
}

.related-swiper .custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #eef0fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #140a2e;
    border: none;
    cursor: pointer;
}

.related-swiper .related-prev {
    left: 8px;
}

.related-swiper .related-next {
    right: 8px;
}

.related-swiper .custom-arrow.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

.swiper-button-next-main-slider,
.swiper-button-prev-main-slider {
    position: absolute; /* 🔹 nécessaire */
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next-main-slider::after,
.swiper-button-prev-main-slider::after {
    content: none;
}

.swiper-button-prev-main-slider {
    left: 10px;
}

.swiper-button-next-main-slider {
    right: 10px;
}

.swiper-button-prev-main-slider i,
.swiper-button-next-main-slider i {
    font-size: 16px;
}

.footer-custom {
    background-color: #14062B;
    color: #e1e3f1;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 60px 0 20px;
}

.footer-custom a {
    color: #e1e3f1;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
}

.footer-custom a:hover {
    text-decoration: underline;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-social i {
    font-size: 20px;
    margin-right: 16px;
    color: #e1e3f1;
    transition: 0.2s;
}

.footer-social i:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 2px solid #68586F;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #e1e3f1;
}

.section-title-highlight {
    display: inline-block;
    position: relative;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    color: #0E0520;
    padding-bottom: 2px;
}

.section-title-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 8px;
    width: 100%;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(90deg, #d6d6fa, #f3b0d0, #ffe3aa);
}

.section-big-title-highlight {
    display: inline-block;
    position: relative;
    font-weight: bold;
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    color: #0E0520;
    padding-bottom: 2px;
    text-transform: uppercase;
}

.section-big-title-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    height: 8px;
    width: 100%;
    z-index: -1;
    border-radius: 1px;
    background: linear-gradient(90deg, #d6d6fa, #f3b0d0, #ffe3aa);
}

.section-content {
    color: #0E0520;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 10px;
}

.feature-list {
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: disc;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: #0E0520;
}

.product-detail-sticky {
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.product-detail-sticky.disable-sticky {
    position: static !important;
}

.offcanvas-cart {
    width: 200px !important;
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    overflow: hidden;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.offcanvas-summary {
    position: sticky;
    bottom: 0; /* colle en bas du conteneur scroll */
    background: #fff; /* fond plein pour lire au-dessus des items */
    /*border-top: 1px solid rgba(0, 0, 0, .08);*/
    /*box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);*/
    padding-bottom: 0.75rem; /* petit padding bas */
}

.cart-item img {
    width: 100%;
    border-radius: 16px;
}

.color-grey-prim {
    color: #e1e3f1 !important;
}

@media (max-width: 767.98px) {
    .fixed-bottom {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999999999;
        background-color: #fff; /* ou transparent si tu veux */
        padding: 1rem;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        transition: all 1s ease;
    }
}

.swiper,
.swiper-slide,
.slider-wrapper {
    z-index: auto !important; /* ou < 1050 */
}

.swiper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 250px;
    object-fit: cover;
    margin: auto;
}

#thumbnailScroll::-webkit-scrollbar {
    display: none;
}

#thumbnailScroll {
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none; /* Firefox */
}

.bottom-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    /*background: #14062B;*/
    padding: 0 16px;
    /*box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);*/
    border-radius: 20px;

    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bottom-buy-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-horizontal-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.scroll-horizontal-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.scroll-horizontal-wrapper-filters {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: block;
    width: 100%;
}

.scroll-horizontal-wrapper-filters::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-inner-filters {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content; /* important pour forcer le dépassement */
}

.horizontal-scroll-inner-filters {
    display: flex;
    flex-wrap: nowrap;
}

.product-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card .add-to-cart-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    color: #14062B;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
}

.scroll-horizontal-wrapper-auto {
    position: relative;
    overflow: hidden;
}

.scroll-track {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    display: flex;
    width: max-content;
    animation: scroll-horizontal 30s linear infinite;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/*Filtres*/
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    border-radius: 50% !important;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox:checked {
    background-color: transparent; /* évite le carré bleu */
    border-color: #000;
}

.custom-checkbox.color-filter, .custom-checkbox.color-filter:checked {
    background-color: var(--checkbox-color) !important;
}

.custom-checkbox.color-filter:checked::before {
    display: none;
}

.custom-checkbox:checked::before {
    display: none;
}

.filter-option:hover label span {
    color: #000 !important;
}

.filter-option:hover .custom-checkbox {
    border: 1px solid #000 !important;
}

/* Supprimer le focus bleu */
.custom-checkbox:focus {
    outline: none;
    box-shadow: none;
    border-color: #000;
}

/* Badge à droite */
.badge-count {
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 600;
    font-size: 14px;
}

.category-link {
    border: 1px solid #dee2e6;
    color: #999 !important;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
}

.category-link:hover {
    color: #000;
    border-color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#price-range .ui-slider-range {
    background: #0d1b2a;
}

#price-range .ui-slider-handle {
    border-radius: 50%;
    border: 2px solid #0d1b2a;
    background: white;
    width: 20px;
    height: 20px;
    top: -0.3em;
    cursor: pointer;
}

/*Homme*/
.banner-1,
.banner-2,
.banner-3 {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    color: #fff;
}

.banner-1 img,
.banner-2 img,
.banner-3 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-content {
    position: relative;
    z-index: 2;
}

.banner-1::before,
.banner-2::before,
.banner-3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* assombrit l’image pour que le texte soit plus lisible */
    z-index: 1;
}

.feature-box {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.feature-box:hover {
    border-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.v-enter-from, .v-leave-to {
    opacity: 0;
}

.v-enter-active, .v-leave-active {
    transition: opacity .25s ease;
}

/* rich text defaults for HTML coming from the CMS/API */
.section-content ul,
.section-content ol {
    /* bring back native list behavior even if base resets it */
    list-style: revert; /* modern browsers */
    margin: 0 0 1rem 1.25rem;
    padding-left: 1rem;
}

.section-content ul {
    list-style-type: disc;
}

.section-content ol {
    list-style-type: decimal;
}

.section-content li {
    margin-bottom: .25rem;
}

#offcanvasCart {
    z-index: 1085 !important;
}

.offcanvas-backdrop {
    z-index: 1080 !important;
}

.icon-btn {
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

.auth-actions .btn,
.auth-actions .btn-inner {
    height: 38px;
    line-height: 38px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

/* séparateur "ou continuer sans compte" */
.divider-with-text {
    position: relative;
    text-align: center;
    color: #6c757d;
    font-size: .9rem;
}

.divider-with-text::before,
.divider-with-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 44%;
    height: 1px;
    background: rgba(0, 0, 0, .12);
}

.divider-with-text::before {
    left: 0;
}

.divider-with-text::after {
    right: 0;
}

.divider-with-text > span {
    background: #fff; /* adapte si dark */
    padding: 0 .65rem;
}

/* nav sans arrondis bas quand le panneau est ouvert */
.header-wrapper.search-mode {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* barre de saisie dans le header (tu peux garder ton style existant) */
.search-head-bar {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: .5rem .75rem;
}

.search-head-bar .form-control {
    background: transparent;
    border: none;
    color: #fff;
}

.search-head-bar .form-control::placeholder {
    color: rgba(255, 255, 255, .6);
}

/* ⬇️ le panneau overlay, largeur = celle du container */
.search-panel-abs {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px); /* collé sous la barre */
    z-index: 1100;
    background: #fff;
    border-radius: 0 0 32px 32px; /* arrondi seulement en bas */
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    max-height: 70vh;
    overflow: auto;
}

.result-card {
    background: rgba(0, 0, 0, .03);
    transition: transform .12s ease, background .12s ease;
}

.result-card:hover {
    background: rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.extra-small {
    font-size: .75rem;
}

.search-fade-enter-from, .search-fade-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

.search-fade-enter-active, .search-fade-leave-active {
    transition: opacity .15s ease, transform .15s ease;
}

@media (max-width: 991.98px) {
    .search-panel-abs {
        left: 8px;
        right: 8px; /* léger padding latéral sur mobile */
        top: calc(100% + 12px);
        border-radius: 0 0 16px 16px;
        max-height: 65vh;
    }
}

:root {
    --topbar-h: 44px;
}

.header-wrapper.fixed-top {
    top: 38px;
    transition: top .2s ease;
}

.header-wrapper.fixed-top.has-no-topbar {
    top: 0;
}

:root {
    --header-h: 80px; /* ajuste si besoin */
}

/* Offcanvas Filtres : commence sous le header */
.offcanvas.filter-offcanvas.offcanvas-start {
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 1205 !important;
    max-width: 45% !important;
}

/* Backdrop limitée à la zone sous le header, seulement quand ce offcanvas est ouvert */
body.filter-offcanvas-open .offcanvas-backdrop.show {
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    background: rgba(0, 0, 0, .35);
}

/* (Optionnel) header plus petit en mobile */
@media (max-width: 575.98px) {
    :root {
        --header-h: 64px;
    }
}

.scroll-horizontal-wrapper-auto {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.scroll-horizontal-wrapper-auto::-webkit-scrollbar {
    display: none; /* WebKit */
}

.scroll-horizontal-wrapper-auto .scroll-track {
    display: flex;
    flex-wrap: nowrap;
}

.scroll-horizontal-wrapper-auto .feature-box {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* optionnel : petit “clic” de snap */
.scroll-horizontal-wrapper-auto {
    scroll-snap-type: x proximity;
}
