/* Global fixes: prevent horizontal page scrolling and use border-box sizing */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    /* site background set to white as requested */
    background: #ffffff;
    color: #231c17;
    overflow-x: hidden;
}

.navbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 170px;
    padding: 6px 48px 18px 48px;
    min-height: 60px;
    background: transparent;
    /* transparent by default so the banner appears under the navbar */
    /* place navbar over the carousel so the image can touch the very top */
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 200;
    border-radius: 50px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s ease-in-out;
}

/* Hide navbar when scrolling down */
.navbar.navbar-hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.navbar.sticky {
    /* when user scrolls, make navbar fixed and restore brown background */
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px #0001;
    color: #000000;
}

.navbar.sticky.navbar-hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* when navbar becomes sticky (brown), make links and logo light for contrast */
.navbar.sticky .nav-links a,
.navbar.sticky .logo {
    color: #000000;
}

/* make icons black when navbar is sticky */
.navbar.sticky .search-btn,
.navbar.sticky .fav-btn,
.navbar.sticky .cart-btn,
.navbar.sticky .login-btn {
    color: #000000;
}

/* make heart icon black when navbar is sticky */
.navbar.sticky .nav-icons .fav-btn,
.navbar.sticky .nav-icons .fav-btn svg,
.navbar.sticky .nav-icons .fav-btn svg path {
    color: #000000 !important;
    stroke: #000000 !important;
    fill: none !important;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e2c9a7;
}

/* icon buttons (search, cart) */
.search-btn,
.fav-btn,
.cart-btn {
    /* no white background — icons themselves are white */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    color: #ffffff;
    /* icons will be white (SVG uses currentColor) */
    border-radius: 0;
    box-shadow: none;
}

.search-btn svg,
.fav-btn svg,
.cart-btn svg {
    display: block;
}

/* wrapper for the right-side icons so we can adjust spacing */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modern "wow" styles for the inline search and mobile toggle */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    /* removed the visible border to create a cleaner, frameless look */
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px) saturate(1.05);
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 180ms ease;
}

.nav-search[aria-hidden="true"] {
    opacity: 0.0;
    transform: scale(0.98);
}

.nav-search[aria-hidden="false"] {
    opacity: 1;
    transform: scale(1);
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search-input {
    background: transparent;
    /* remove inner border/frame for a minimal input appearance */
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    color: #ffffff;
    min-width: 160px;
    max-width: 420px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: box-shadow 120ms ease, border-color 120ms ease;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.nav-search-close {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-search-close:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* mobile toggle modern look */
.mobile-nav-toggle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mobile-nav-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.mobile-nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 900px) {
    .nav-search {
        max-width: 68vw;
    }

    .nav-search-input {
        max-width: 58vw;
    }
}

/* Mobile: when search is opened, hide links/icons and show only the input */
@media (max-width: 900px) {

    .navbar.search-open-mobile .nav-links,
    .navbar.search-open-mobile .nav-icons {
        display: none !important;
    }

    /* also hide logo and mobile toggle so only the search input is visible */
    .navbar.search-open-mobile .logo,
    .navbar.search-open-mobile .mobile-nav-toggle {
        display: none !important;
    }

    .navbar.search-open-mobile .nav-search {
        display: flex !important;
        width: calc(100% - 40px);
        margin: 6px 20px 6px 20px;
        justify-content: center;
    }

    /* make input larger on mobile when open */
    .navbar.search-open-mobile .nav-search-input {
        min-width: calc(100% - 80px);
        max-width: calc(100% - 80px);
        padding: 12px 14px;
        font-size: 1rem;
    }

    /* backdrop to blur page content behind navbar */
    .nav-search-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 190;
        /* below navbar (navbar has z-index 200) */
        background: rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(6px) saturate(1.05);
        -webkit-backdrop-filter: blur(6px) saturate(1.05);
        transition: opacity 180ms ease;
    }
}

/* Ensure the navbar heart icon is white on the homepage navbar (force where other rules may override) */
.navbar .nav-icons .fav-btn,
.navbar .nav-icons .fav-btn svg,
.navbar .nav-icons .fav-btn svg path {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
}

/* Make the fav button match the other icon buttons on the index page */
.nav-icons .fav-btn {
    position: relative;
    /* allow absolute positioning of the count badge */
    background: none !important;
    color: #fff !important;
    border: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;

}

.nav-icons .fav-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.nav-icons img.nav-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.mobile-top-strip img.nav-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Ensure login button matches fav/cart sizing and SVG styles */
.nav-icons .login-btn {
    position: relative;
    background: none !important;
    color: #fff !important;
    border: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
}

.nav-icons .login-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Fill the head circle and ensure strokes follow `currentColor` so the icon is visible */
.nav-icons .login-btn svg circle {
    stroke: currentColor !important;
    fill: currentColor !important;
}

.nav-icons .login-btn svg path {
    stroke: currentColor !important;
    fill: none !important;
}

/* small badge on the fav button: use transform for robust positioning across breakpoints */
.nav-icons .fav-btn .fav-count {
    position: absolute;
    top: 0;
    right: 0;
    /* nudge the badge outside the button using transform so it doesn't shift layout
               and remains consistently placed on different devices */
    transform: translate(45%, -45%);
    transform-origin: top right;
    background: #bca98a;
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.75rem;
    display: none;
    pointer-events: none;
    z-index: 50;
    /* raised so it stays above other elements */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 80px 0 80px;
    min-height: 70vh;
    background: radial-gradient(ellipse 90% 70% at 55% 85%, #bca98a 0%, #3a2e22 35%, #231c17 80%, #1a140f 100%);
    position: relative;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    align-items: flex-end;
    position: relative;
}

.hero-img img {
    max-width: 900px;
    width: 500px;
    transform: rotate(-18deg);
    filter: drop-shadow(0 16px 64px #000a);
    position: relative;
    z-index: 2;
}

.bottle-shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(1.2) scaleY(0.5) rotate(-18deg);
    width: 420px;
    height: 80px;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, #000a 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 160px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: #231c17;
    margin-bottom: 32px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 3rem;
    color: #e2c9a7;
    margin-bottom: 48px;
}

.hero-btn {
    background: #231c17;
    color: #f5e8d6;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.2s, color 0.2s;
}

.hero-btn:hover {
    background: #e2c9a7;
    color: #000000;
}

.promotions {
    background: #ffffff;
    padding: 48px 0 56px 0;
    text-align: center;
    position: relative;
}

.promotions-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #231c17;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.promotions-list {
    display: flex;
    justify-content: flex-start;
    gap: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.promotions-list::-webkit-scrollbar {
    display: none;
}

.promo-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000000cc;
    color: #f5e8d6;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px #0003;
    transition: background 0.2s;
}

.promo-slider-arrow:hover {
    background: #ffffff;
    color: #000000;
}

.promo-slider-arrow.left {
    left: 0;
}

.promo-slider-arrow.right {
    right: 0;
}

.promo-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0001;
    /* keep layout stable by using a transparent border by default */
    border: 1px solid transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 360px;
    max-width: 360px;
    height: 380px;
    padding: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Hover state: show a 1px black border without shifting layout */
.promo-card:hover {
    border-color: #000000;
    cursor: pointer;
}

.promo-img {
    position: relative;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    height: 250px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* two-image product preview: default (no packaging) and packaged on hover */
.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-img img.prod-img-packaged {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.75);
    /* Dézoom initial très prononcé */
}

.promo-img:hover img.prod-img-packaged {
    opacity: 1;
    transform: scale(0.85);
    /* Zoom très contenu */
}

.promo-img:hover img.prod-img-default {
    opacity: 0;
}

/* overlay shown on hover: eye + cart centered */
.card-overlay {
    position: absolute;
    inset: 0;
    /* cover parent */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.promo-card:hover .card-overlay,
.best-seller-card:hover .card-overlay,
.product-card:hover .card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    color: #ffffff;
}

.overlay-btn:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.75);
}

.overlay-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.promo-img img {
    /* force images to fully cover the fixed .promo-img box so all cards look identical */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.promo-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
    color: #231c17;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.promo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #231c17;
    margin: 18px 0 2px 0;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: block;
}

.promo-prices {
    font-size: 1.05rem;
    color: #231c17;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* two-column category CTA (perfumes) */
.category-cta {
    max-width: 1400px;
    /* increased container width so cards appear wider */
    margin: 48px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 298px;
    /* increased gap between the two cards */
    padding: 0 24px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 720px;
    /* fixed height on desktop for consistent layout */
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-overlay {
    width: 100%;
    padding: 40px 0 56px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn {
    background: #ffffff;
    color: #231c17;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, background 0.12s ease;
}

.category-btn:hover {
    transform: translateY(-4px);
    background: #f3f1ef;
}

@media (max-width: 900px) {
    .category-cta {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-card {
        height: 360px;
        /* slightly smaller on mobile */
    }
}

.old-price {
    text-decoration: line-through;
    color: #a89c8a;
    margin-right: 0;
    display: inline-block;
}

.new-price {
    font-weight: bold;
    color: #231c17;
    display: inline-block;
    display: inline-block;
}

.cta-banner {
    background: #ffffff;
    text-align: center;
    /* make the video area much larger: use viewport-relative height */
    padding: 0;
    min-height: 80vh;
    /* large on desktop */
    position: relative;
    overflow: hidden;
}

/* video that fills the CTA banner */
.cta-banner .cta-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    /* allow clicks to pass to overlay elements */
}

.cta-banner>* {
    position: relative;
    z-index: 2;
}

/* make the CTA content cover the banner so we can align the button reliably */
.cta-content {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: flex-end;
    /* place children at bottom */
    justify-content: center;
    /* center horizontally */
    pointer-events: none;
    /* allow clicks to pass to button only */
    z-index: 3;
}

.cta-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: #231c17;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.cta-btn {
    background: white;
    color: #000000;
    border: 2px solid #231c17;
    padding: 12px 32px;
    font-size: 1rem;
    position: relative;
    /* placed by the .cta-content flexbox */
    margin-bottom: 36px;
    /* distance from bottom of banner */
    pointer-events: auto;
    /* ensure button is clickable */
    display: flex;
    align-items: center;
    /* center button content vertically */
    justify-content: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
    background: #000000;
    color: #eeeeee;
}

.reviews {
    background: #ffffff;
    text-align: center;
    padding: 48px 0 38px 0;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin-bottom: 8px;
}

.reviews-icon {
    font-size: 2.1rem;
    margin-right: 8px;
}

.reviews-title {
    font-size: 2rem;
}

.reviews-subtitle {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 32px;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 36px;
    justify-content: center;
    margin-bottom: 40px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    background: #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 2px 16px #0001;
    width: 520px;
    min-height: 110px;
    padding: 24px 38px 18px 38px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
}

.review-quote {
    font-size: 2.2rem;
    color: #bca98a;
    font-family: serif;
    margin-right: 8px;
}

.review-quote.end {
    margin-left: 8px;
    margin-right: 0;
}

.review-content {
    flex: 1;
    text-align: left;
}

.review-author {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.review-stars {
    color: #bca98a;
    font-size: 1.08rem;
    margin-bottom: 4px;
}

.review-text {
    font-size: 1.04rem;
    color: #231c17;
}

.reviews-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-top: 18px;
}

.review-btn {
    background: none;
    color: #231c17;
    border: 2px solid #231c17;
    padding: 12px 32px;
    font-size: 1.08rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0;
}

.review-btn:hover {
    background: #000000;
    color: #f5e8d6;
}

.review-collection-btn {
    background: none;
    color: #000000;
    border: 2px solid #000000;
    padding: 12px 32px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.review-collection-btn:hover {
    background: #000000;
    color: #f5e8d6;
}

.site-footer {
    background: #000000;
    color: #fff;
    font-size: 1rem;
    padding: 48px 0 0 0;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 18px auto;
    padding: 0 32px;
}

.footer-location {
    font-size: 1.08rem;
}

.footer-socials {
    display: flex;
    gap: 22px;
}

.footer-icon {
    font-family: 'FontAwesome', Arial, sans-serif;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

/* ensure inline SVG icons inside .footer-icon inherit color/size */
.footer-icon svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.footer-icon:hover {
    color: #bca98a;
}

.footer-sep {
    border: none;
    border-top: 1px solid #333;
    margin: 24px 0;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-title {
    font-weight: bold;
    font-size: 1.08rem;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #bca98a;
}

.footer-made {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0 24px 0;
    font-size: 0.95rem;
}

.best-sellers {
    background: #ffffff;
    padding: 56px 0 48px 0;
    text-align: center;
}

.best-sellers-header {
    margin-bottom: 38px;
}

.best-sellers-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #231c17;
    font-weight: bold;
    letter-spacing: 1px;
}

.best-sellers-list {
    display: flex;
    justify-content: center;
    gap: 38px;
    flex-wrap: wrap;
}

.best-seller-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0001;
    /* keep layout stable by using a transparent border by default (like .promo-card) */
    border: 1px solid transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 340px;
    min-height: 380px;
    padding: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.best-seller-card:hover {
    border-color: #000000;
    cursor: pointer;
}

.best-seller-img {
    position: relative;
    /* contain the absolute .card-overlay */
    width: 100%;
    height: 270px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin-bottom: 38px;
    display: block;
}

.best-seller-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.best-seller-img img.best-img-packaged {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.75);
}

.best-seller-img:hover img.best-img-packaged {
    opacity: 1;
    transform: scale(0.85);
}

.best-seller-img:hover img.best-img-default {
    opacity: 0;
}

.best-seller-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.best-seller-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    color: #231c17;
    font-weight: bold;
    margin-bottom: 8px;
}

.best-seller-desc {
    font-size: 1rem;
    color: #3a2e22;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 8px 0 8px;
    }

    .nav-links-container {
        justify-content: flex-start;
        margin: 12px 0;
    }

    .search-btn {
        align-self: flex-end;
    }

    .hero {
        flex-direction: column;
        padding: 32px 16px 0 16px;
    }

    .hero-content {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .hero-img img {
        max-width: 320px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-img {
        margin-bottom: 32px;
    }

    .promotions-list {
        gap: 16px;
    }

    .promo-card {
        width: 45vw;
        min-width: 160px;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 12px !important;
    }

    .promo-img {
        height: 150px !important;
        min-height: unset !important;
        flex-shrink: 0 !important;
    }

    /* reduce the right margin on small screens so icons don't consume layout */
    .nav-icons {
        margin-right: 12px;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
        margin-bottom: 18px;
        /* slightly closer to bottom on small screens */
        position: relative;
        pointer-events: auto;
    }

    .reviews-list {
        gap: 12px;
    }

    .review-card {
        width: 90vw;
        min-width: 160px;
    }

    /* make CTA smaller on mobile to preserve viewport space */
    .cta-banner {
        min-height: 40vh;
    }
}

html,
body {
    /* prevent the whole page from showing a horizontal scrollbar
     while allowing internal horizontal scrollers (e.g. .promotions-list) */
    overflow-x: hidden;
}

/* Modern "wow" styles for the inline navbar search and mobile toggle */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    transform-origin: right center;
    transition: transform 220ms cubic-bezier(.2, .9, .2, 1), opacity 180ms ease;
}

.nav-search[aria-hidden="true"] {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
    pointer-events: none;
}

.nav-search[aria-hidden="false"] {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px) saturate(120%);
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.nav-search-form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(188, 169, 138, 0.95);
    /* accent color */
}

.nav-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    min-width: 160px;
    max-width: 420px;
    width: 18ch;
    font-size: 0.98rem;
    caret-color: #bca98a;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search .nav-search-close {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 140ms ease, transform 140ms ease;
}

.nav-search .nav-search-close:hover {
    background: rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

/* Floating overlay variant (mobile search icon when navbar hidden) */
.nav-search.nav-search--floating {
    gap: 0;
    padding: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 231, 0.98));
    border-radius: 999px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

.nav-search.nav-search--floating[aria-hidden="true"] {
    pointer-events: none;
}

.nav-search.nav-search--floating[aria-hidden="false"] {
    pointer-events: auto;
}

.nav-search--floating .nav-search-form {
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #f7efe4 100%);
    border: 1px solid rgba(214, 190, 150, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.nav-search--floating .nav-search-input {
    flex: 1 1 auto;
    border-radius: 999px;
    border: 1px solid rgba(209, 174, 123, 0.8);
    background: #fff;
    color: #1f140a;
    font-size: 1rem;
    padding: 10px 16px;
    min-width: 0;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.08);
}

.nav-search--floating .nav-search-input::placeholder {
    color: rgba(150, 110, 70, 0.7);
}

.nav-search--floating .nav-search-close {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f3c98a, #f7ad56);
    color: #332012;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.nav-search--floating .nav-search-close:hover {
    background: linear-gradient(135deg, #f7d4a6, #f8b868);
}

/* Modernize the mobile toggle for a sleeker look */
.mobile-nav-toggle {
    background: linear-gradient(180deg, #231c17, #1a140f);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.mobile-nav-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.mobile-nav-panel {
    backdrop-filter: blur(6px) saturate(120%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
}

.mobile-nav-panel .nav-links a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.mobile-nav-panel .nav-links a:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #bca98a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Styles pour le banner carousel */
.banner-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
}

.slides {
    position: relative;
    height: 70vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: scale(1.02);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-content {
    max-width: 720px;
    margin-left: 8%;
    color: #f5e8d6;
    text-shadow: 0 6px 24px #0008;
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    margin: 0 0 12px 0;
    line-height: 1.02;
}

.slide-subtitle {
    font-size: 1.4rem;
    color: #e2c9a7;
    margin-bottom: 18px;
}

.slide-btn {
    display: inline-block;
    background: #231c17;
    /* dark button on white site */
    color: #f5e8d6;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 28, 23, 0.65);
    color: #f5e8d6;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.carousel-control:hover {
    background: #bca98a;
    color: #231c17;
}

.carousel-control.prev {
    left: 18px;
}

.carousel-control.next {
    right: 18px;
}

.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
}

.indicator.active {
    background: #231c17;
}

/* Responsive */
@media (max-width: 900px) {
    .slides {
        height: 48vh;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-content {
        margin-left: 6%;
        text-align: left;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }
}

/* Desktop: limit promotions list width so 4 cards are visible at once */
@media (min-width: 1100px) {
    .promotions-list {
        max-width: 1536px;
        /* 360px * 4 cards + 32px * 3 gaps = 1440 + 96 = 1536 */
        margin: 0 auto;
        justify-content: flex-start;
    }

    .promotions-list {
        scroll-snap-type: x mandatory;
    }

    .promo-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .slide-content {
        margin-left: 5%;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }
}

/* New products section styles */
.new-products {
    background: #ffffff;
    padding: 56px 0;
}

.new-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.new-products .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #231c17;
    text-align: center;
    margin-bottom: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    align-items: start;
    justify-items: center;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 360px;
    min-height: 380px;
    padding: 0 0 24px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    cursor: pointer;
}

/* Hover state: show a 1px black border and lift like promo-card */
.product-card:hover {
    border-color: #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.product-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    /* match promo/best cards so images share exact silhouette */
    overflow: hidden;
    position: relative;
    border-radius: 18px 18px 0 0;
    margin-bottom: 10px;
}

.product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* product card two-image swap on hover */
.product-img img.new-img-packaged {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.75);
}

.product-card:hover .product-img img.new-img-packaged {
    opacity: 1;
    transform: scale(0.85);
}

.product-card:hover .product-img img.new-img-default {
    opacity: 0;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    color: #231c17;
    margin: 0;
}

.product-price {
    font-weight: 700;
    color: #231c17;
}

@media (max-width: 600px) {

    /* Nouveautés mobile: hauteur fixe, conteneur en relative */
    .new-products .product-card {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 0 14px 0 !important;
    }

    .new-products .product-img {
        aspect-ratio: unset !important;
        height: 150px !important;
        min-height: unset !important;
        flex: 0 0 150px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Les deux images restent absolues pour permettre le swap */
    .new-products .product-img img.new-img-default,
    .new-products .product-img img.new-img-packaged {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Assurer que la transition est active sur mobile */
    .new-products .product-img img.new-img-packaged {
        transition: opacity 280ms ease, transform 280ms ease !important;
    }

    /* Re-déclarer le swap hover avec !important pour battre l'override mobile */
    .new-products .product-card:hover .product-img img.new-img-packaged,
    .new-products .product-card.touch-active .product-img img.new-img-packaged {
        opacity: 1 !important;
        transform: scale(0.85) !important;
    }

    .new-products .product-card:hover .product-img img.new-img-default,
    .new-products .product-card.touch-active .product-img img.new-img-default {
        opacity: 0 !important;
    }

    /* Assure que product-name et price sont visibles */
    .new-products .product-name,
    .new-products .product-price {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* Small helper so the rest of the layout below the carousel doesn't jump */
body>.banner-carousel+* {
    margin-top: 0;
}

/* Modal product overlay styles (used by collection/index to show product page above current page) */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    pointer-events: none;
}

.product-modal[aria-hidden="false"] {
    pointer-events: auto;
}

.product-modal[aria-hidden="false"] {
    display: flex;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.product-modal-content {
    position: relative;
    max-width: 1100px;
    width: 96%;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
    z-index: 1210;
    padding: 18px;
}

.product-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #231c17;
}

.product-modal-body {
    padding-top: 36px;
    /* leave space for close button */
}


/* Cart drawer styles (moved here so index.html has the styles it needs) */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1400;
    pointer-events: none;
}

/* Login drawer (right-side auth panel) */
.login-drawer {
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
}

.login-drawer .login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 240ms ease;
}

.login-drawer .login-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 420px;
    max-width: 100%;
    transform: translate3d(110%, 0, 0);
    transition: transform 320ms ease;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.35);
    background: #fff;
    border-radius: 0 0 0 32px;
    overflow: hidden;
}

.login-drawer.open {
    pointer-events: auto;
}

.login-drawer.open .login-backdrop {
    opacity: 1;
}

.login-drawer.open .login-panel {
    transform: translate3d(0, 0, 0);
}

.login-hero {
    position: relative;
    padding: 28px 28px 24px;
    background: linear-gradient(145deg, #0b0a11, #39242f 60%, #5b2e1f);
    color: #fff;
    border-radius: 0;
    overflow: hidden;
}

.login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.login-hero h3 {
    margin: 24px 0 6px;
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
}

.login-hero .login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.login-panel .login-body {
    background: #fff;
    padding: 30px 28px 34px;
    margin-top: 0;
    border-radius: 0;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 6px));
}

.login-panel form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-panel .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-panel .field label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #5a504c;
    text-transform: uppercase;
}

.login-panel .field input {
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    font-size: 1rem;
    background: #faf4ee;
    transition: border 0.2s ease, box-shadow 0.2s;
}

.login-panel .field input::placeholder {
    color: rgba(34, 28, 20, 0.4);
}

.login-panel .field input:focus {
    border-color: #c9a57a;
    box-shadow: 0 0 0 3px rgba(201, 165, 122, 0.25);
    outline: none;
    background: #fff;
}

.login-panel .password-wrap {
    position: relative;
}

.login-panel .password-wrap .show-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b5c55;
    padding: 6px;
}

.login-panel .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: #6b5c55;
    flex-wrap: wrap;
}

.login-panel .form-row .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-panel .form-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.login-panel .link-muted {
    color: #9a8a7f;
    text-decoration: none;
    font-weight: 600;
}

.login-panel .link-muted:hover {
    color: #5a504c;
}

.login-panel .form-error {
    color: #842029;
    background: #f8d7da;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    display: none;
}

.login-panel .login-actions {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-panel .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #231c17, #5d3a23);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel .btn-primary:hover {
    opacity: 0.92;
}

.login-panel .btn-secondary {
    width: 100%;
    text-align: center;
    border: 1px solid rgba(35, 28, 23, 0.25);
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #231c17;
    text-decoration: none;
    background: #f7f2eb;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-panel .btn-secondary:hover {
    border-color: #231c17;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.login-drawer[aria-hidden="false"] .login-backdrop {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════
   BLUR EFFECT — fond du site flou quand modal ouvert
═══════════════════════════════════════════════════ */
body.login-open>*:not(#loginDrawer) {
    filter: blur(6px) brightness(0.7);
    pointer-events: none;
    user-select: none;
    transition: filter 280ms ease;
}

body.login-open #loginDrawer {
    filter: none !important;
}

/* ═══════════════════════════════════════════════════
   VIEW SWITCHING — Login / Register panels
═══════════════════════════════════════════════════ */
.login-view {
    display: none;
    flex-direction: column;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-view.active {
    display: flex;
}

/* Register hero uses the same gradient as login hero */
.register-hero {
    background: linear-gradient(145deg, #0b0a11, #39242f 60%, #5b2e1f) !important;
}

/* ═══════════════════════════════════════════════════
   SWITCH VIEW LINK (bas du panneau)
═══════════════════════════════════════════════════ */
.switch-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #7a6c63;
}

.link-switch {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #5d3a23;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.2s;
}

.link-switch:hover {
    color: #231c17;
}

/* ═══════════════════════════════════════════════════
   SUCCESS MESSAGE
═══════════════════════════════════════════════════ */
.login-panel .form-success {
    color: #0a5c36;
    background: #d1f0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    display: none;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile: panel slides from bottom
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .login-drawer .login-panel {
        right: auto;
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        height: auto;
        min-height: 92vh;
        box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.35);
        transform: translate3d(0, 110%, 0);
    }

    .login-drawer.open .login-panel {
        transform: translate3d(0, 0, 0);
    }

    .login-hero {
        border-radius: 24px 24px 0 0;
        padding-bottom: 32px;
    }

    .login-panel .login-body {
        border-radius: 0;
        margin-top: 0;
        padding: 22px 18px calc(100px + env(safe-area-inset-bottom, 16px));
    }

    .social-row {
        flex-direction: column;
    }
}


.cart-drawer .cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 240ms ease;
}

.cart-drawer .cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 380px;
    max-width: 96%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 300ms ease;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    pointer-events: auto;
}

.cart-drawer.open .cart-backdrop {
    opacity: 1;
}

.cart-drawer.open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.cart-items {
    padding: 12px;
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: #fafafa;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.ci-body {
    flex: 1;
}

.ci-name {
    font-weight: 700;
}

.ci-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 4px 0;
}

.ci-price {
    font-weight: 700;
}

.cart-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-btn {
    background: #231c17;
    color: #f5e8d6;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* cart item controls */
.ci-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ci-btn {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.ci-btn.ci-remove {
    background: transparent;
    color: #a00;
    border: none;
    font-size: 18px;
    padding: 4px 6px;
}

.ci-input {
    width: 56px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

/* Favorites drawer (similar to cart drawer) */
.fav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1500;
    pointer-events: none;
}

.fav-drawer .fav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 240ms ease;
}

.fav-drawer .fav-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 380px;
    max-width: 96%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 300ms ease;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.fav-drawer.open {
    pointer-events: auto;
}

.fav-drawer.open .fav-backdrop {
    opacity: 1;
}

.fav-drawer.open .fav-panel {
    transform: translateX(0);
}

.fav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.fav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.fav-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.fav-items {
    padding: 12px;
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fav-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: #fafafa;
}

.fav-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.fi-body {
    flex: 1;
}

.fi-name {
    font-weight: 700;
}

.fi-brand {
    font-size: 0.9rem;
    color: #666;
    margin: 4px 0;
}

.fi-price {
    font-weight: 700;
}

.fi-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fi-addcart {
    background: #231c17;
    color: #f5e8d6;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.fi-remove {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #a00;
    cursor: pointer;
}

.fav-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fav-empty {
    color: #666;
    padding: 18px;
    text-align: center;
}

/* Responsive tweak: slightly reduce badge offset on smaller screens */
@media (max-width: 480px) {
    .nav-icons .fav-btn .fav-count {
        transform: translate(32%, -32%);
        font-size: 0.7rem;
        top: 2px;
        right: 2px;
    }
}

/* Hide the "to top" floating button on small screens (mobile only) */
@media (max-width: 900px) {
    .to-top-btn {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-modal .checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 240ms ease;
}

.checkout-modal .checkout-panel {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
}

.checkout-modal.open {
    pointer-events: auto;
}

.checkout-modal.open .checkout-backdrop {
    opacity: 1;
}

.checkout-modal.open .checkout-panel {
    transform: scale(1);
    opacity: 1;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.checkout-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.checkout-close {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.checkout-close:hover {
    color: #000;
}

.checkout-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cart-summary-checkout {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cart-summary-checkout h3 {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.checkout-cart-item:last-child {
    border-bottom: none;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #333;
    color: #000;
}

.checkout-form h3 {
    margin: 24px 0 16px 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.checkout-form h3:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #000;
}

.form-row textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.submit-btn {
    flex: 1;
    padding: 14px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #333;
}

.cancel-btn {
    padding: 14px 24px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-modal .checkout-panel {
        width: 95%;
        max-height: 95vh;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Desktop badges: show small red numeric badges above fav and cart icons on desktop */
@media (min-width: 901px) {

    /* allow badges to overflow visually outside the navbar if needed */
    .navbar,
    .nav-icons {
        overflow: visible !important;
    }

    .nav-icons .fav-btn,
    .nav-icons .cart-btn {
        position: relative !important;
    }

    .nav-icons .fav-btn .fav-count,
    .nav-icons .cart-btn .cart-count {
        display: inline-block !important;
        position: absolute !important;
        /* move badge slightly lower so it doesn't get clipped by the navbar top */
        top: 8px !important;
        right: 6px !important;
        transform: translate(40%, -30%) !important;
        background: #d9534f !important;
        /* red */
        color: #fff !important;
        /* white number */
        font-weight: 700 !important;
        border-radius: 999px !important;
        /* pill / circular */
        min-width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
        padding: 0 6px !important;
        font-size: 12px !important;
        text-align: center !important;
        z-index: 999 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
        pointer-events: none !important;
    }
}

/* Desktop: center and enlarge the inline navbar search and add a blurred backdrop when open */
@media (min-width: 901px) {
    .nav-search {
        /* force fixed positioning so JS or other rules can't keep it pinned to the navbar */
        position: fixed !important;
        left: 50%;
        transform: translateX(-50%);
        /* move the search lower on desktop */
        top: 180px !important;
        /* descendu pour apparaître sous la navbar */
        width: 68%;
        max-width: 1000px;
        justify-content: center;
        z-index: 99999 !important;
        /* above most UI but below modals (keeps stacking predictable) */
    }

    .nav-search-input {
        width: 100%;
        max-width: none;
        padding: 16px 20px;
        font-size: 1.25rem;
        border-radius: 12px;
        color: #ffffff;
        /* keep white for high contrast over hero when using transparent form */
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
        border: none;
        height: 56px;
        line-height: 1.2;
    }

    .nav-search-form {
        background: transparent;
    }

    /* desktop backdrop inserted by JS to blur the page behind the centered search */
    .nav-search-desktop-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99990;
        /* just below the search wrap */
        background: rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(6px) saturate(1.05);
        -webkit-backdrop-filter: blur(6px) saturate(1.05);
        transition: opacity 180ms ease;
    }

    /* When the centered desktop search is opened, make the input opaque and readable
       and ensure parent backdrop-filters don't visually blur the input itself. */
    .nav-search[aria-hidden="false"] .nav-search-form {
        background: rgba(255, 255, 255, 0.96);
        /* solid-ish background so text is clear */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
        padding: 6px 10px;
    }

    .nav-search[aria-hidden="false"] .nav-search-input {
        background: transparent;
        /* the form provides the solid background */
        color: #1a140f !important;
        caret-color: #1a140f !important;
        font-weight: 600;
        box-shadow: none !important;
    }

    .nav-search[aria-hidden="false"] .nav-search-close {
        color: rgba(0, 0, 0, 0.7);
        background: rgba(0, 0, 0, 0.06);
    }

    /* Extra defensive rules: ensure no ancestor or backdrop-filter affects the input
       and keep the search wrap visually on top. */
    .nav-search,
    .nav-search-form,
    .nav-search-input {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        filter: none !important;
    }

    /* create an isolated stacking context so backdrop-filters behind this element
       don't blur its contents due to unexpected stacking/positioning. */
    .nav-search {
        isolation: isolate;
        z-index: 100001 !important;
    }

    /* Make the white area fill the entire centered frame when search is open */
    .nav-search[aria-hidden="false"] {
        /* remove wrapper gutters so the white capsule can extend fully */
        background: transparent !important;
        padding: 0 !important;
    }

    .nav-search[aria-hidden="false"] .nav-search-form {
        background: #ffffff !important;
        /* full white */
        width: 100%;
        margin: 0;
        /* ensure no gaps */
        border-radius: 999px !important;
        padding: 8px 18px !important;
        /* reduce shadow so side arcs don't appear; keep subtle depth */
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    .nav-search[aria-hidden="false"] .nav-search-input {
        color: #1a140f !important;
        background: transparent !important;
        flex: 1 1 auto !important;
        width: auto !important;
        padding: 12px 16px !important;
        min-width: 0 !important;
        /* allow flex shrinking */
        /* ensure the input extends to the left edge without internal margins */
        margin: 0 !important;
    }

    /* ensure the close button stays at the far right of the capsule */
    .nav-search[aria-hidden="false"] .nav-search-close {
        margin-left: 0 !important;
        flex: 0 0 auto !important;
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hide the browser-native clear/cancel button that appears inside
       <input type="search"> so we show only our custom close button. */
    .nav-search-input::-webkit-search-decoration,
    .nav-search-input::-webkit-search-cancel-button,
    .nav-search-input::-webkit-search-results-button,
    .nav-search-input::-webkit-search-results-decoration {
        display: none;
    }

    .nav-search-input::-ms-clear,
    .nav-search-input::-ms-reveal {
        display: none;
        width: 0;
        height: 0;
    }

    .nav-search-input {
        -webkit-appearance: none;
        appearance: none;
    }

    /* Style the custom close button so it sits cleanly on the right of the capsule */
    .nav-search .nav-search-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: transparent;
        color: #1a140f;
        font-size: 18px;
        margin-left: 8px;
        box-shadow: none;
        border: 0;
        cursor: pointer;
    }

    .nav-search .nav-search-close:hover {
        background: rgba(0, 0, 0, 0.04);
    }
}

/* Hide the mobile top-strip buttons on desktop: logo, cart and fav should only appear on mobile */
@media (min-width: 901px) {

    .mobile-top-strip .ts-logo,
    .mobile-top-strip .ts-cart,
    .mobile-top-strip .ts-fav,
    .mobile-top-strip .ts-btn {
        display: none !important;
    }
}

/* Ensure mobile-only logo: hide the mobile top-strip logo on desktop widths
     and show it only on small screens. This prevents duplicate logos on desktop. */
@media (min-width: 901px) {
    .mobile-top-strip .ts-logo {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .mobile-top-strip .ts-logo {
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   BOUTON WHATSAPP dans le modal produit — forcer la bonne taille
   (acceuil.php ne charge pas responsive.css, donc on redéclare ici)
════════════════════════════════════════════════════════════ */
.product-modal-panel .btn-whatsapp,
.product-modal-body .btn-whatsapp,
#productPreviewModal .btn-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    max-height: 48px !important;
    max-width: 200px !important;
    padding: 8px 14px !important;
    font-size: 0.95rem !important;
    overflow: hidden !important;
}

.product-modal-panel .btn-whatsapp__icon,
.product-modal-body .btn-whatsapp__icon,
#productPreviewModal .btn-whatsapp__icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.product-modal-panel .btn-whatsapp__icon img,
.product-modal-body .btn-whatsapp__icon img,
#productPreviewModal .btn-whatsapp__icon img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}