*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', Arial, sans-serif;
    --color-bg: #fff;
    --primary-bg: #4D0012;
    --primary-light: #F2EBEC;
    --color-text: #313131;
    --color-accent: #CEC0A5;
    --color-overlay-bg: #0f0f0f;
    --color-overlay-text: #f5f5f5;
    --nav-height: 64px;
    --promo-height: 37px;
    --transition-speed: 0.45s;
    --transition-ease: cubic-bezier(0.77, 0, 0.18, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
}
/* General Styles */
.section__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--primary-bg);
    text-decoration: none;
    border: 1px solid var(--color-accent);
    padding: 12px 26px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.section__cta:hover {
    background-color: transparent;
    color: var(--color-accent);
}
/* ─── PROMO BANNER ─── */
/* ─── STICKY WRAPPER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
}

.site-header--no-promo {
    --promo-height: 0px;
}

.promo-banner {
    background-color: var(--primary-bg);
    color: var(--color-accent);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-accent);
}

/* ─── HEADER ─── */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 24px;
    background-color: var(--primary-bg);
}

/* ─── NAV / BURGER ─── */
nav {
    display: flex;
}

/* Burger button */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    position: relative;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform var(--transition-speed) var(--transition-ease),
        opacity var(--transition-speed) var(--transition-ease),
        background-color var(--transition-speed) ease;
}
.burger:hover .burger__line {
    background-color: var(--color-overlay-text);
}
/* Burger → X when open */
.burger.is-open .burger__line--top {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-overlay-text);
}

.burger.is-open .burger__line--mid {
    opacity: 0;
    transform: scaleX(0);
}

.burger.is-open .burger__line--bot {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-overlay-text);
}

/* ─── FULLSCREEN OVERLAY MENU ─── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10vw;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition:
        opacity var(--transition-speed) var(--transition-ease),
        transform var(--transition-speed) var(--transition-ease),
        visibility 0s linear var(--transition-speed);
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity var(--transition-speed) var(--transition-ease),
        transform var(--transition-speed) var(--transition-ease),
        visibility 0s linear 0s;
}

/* Nav links */
.nav-overlay__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
}

.nav-overlay__item {
    overflow: hidden;
}

.nav-overlay__link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;

    /* Stagger slide-up per item */
    transform: translateY(100%);
    opacity: 0;
    transition:
        color 0.2s ease,
        transform var(--transition-speed) var(--transition-ease),
        opacity var(--transition-speed) var(--transition-ease);
}

.nav-overlay__link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--color-overlay-text);
    transition: width 0.3s ease;
}

.nav-overlay__link:hover::after {
    width: 100%;
}

.nav-overlay__link:hover {
    color: var(--color-overlay-text);
}

/* Stagger delay for each link when opening */
.nav-overlay.is-open .nav-overlay__link {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay__item:nth-child(1) .nav-overlay__link { transition-delay: 0.05s; }
.nav-overlay__item:nth-child(2) .nav-overlay__link { transition-delay: 0.10s; }
.nav-overlay__item:nth-child(3) .nav-overlay__link { transition-delay: 0.15s; }
.nav-overlay__item:nth-child(4) .nav-overlay__link { transition-delay: 0.20s; }
.nav-overlay__item:nth-child(5) .nav-overlay__link { transition-delay: 0.25s; }

/* Reset delays on close so items hide quickly */
.nav-overlay:not(.is-open) .nav-overlay__link {
    transition-delay: 0s;
}


/* ─── LOGO ─── */
.logo-wrap {
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-accent);
}

.logo__img {
    width: 60px;
    max-height: 60px;
    display: block;
    object-fit: contain;
}

.cms-image-edit-group--logo {
    top: calc(100% + 8px) !important;
    left: 0;
    right: auto !important;
}

/* ─── HEADER ACTIONS ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-actions__btn svg {
    display: block;
}

.header-actions__btn:hover {
    color: var(--color-overlay-text);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    height: calc(100vh - var(--nav-height) - var(--promo-height));
    background-image: var(--hero-bg-desktop);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 5% 15%;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-bg);
    color: var(--color-accent);
    text-decoration: none;
    border: 1px solid transparent;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s ease, color 0.25s ease;
}

.hero__cta:hover {
    background-color: var(--color-accent);
    color: var(--primary-bg);
    border: 1px solid var(--primary-bg);
}

/* ─── BESTSELLERS ─── */
.bestsellers {
    display: flex;
    min-height: 720px;
    max-height: 800px;
    background-color: var(--primary-bg);
}

.bestsellers__panel {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.bestsellers__panel--image {
    background-image: var(--bestsellers-bg-desktop);
    background-size: cover;
    background-position: center;
}

.bestsellers__panel--content {
    position: relative;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    padding: 56px 52px 160px;
    gap: 28px;
}

.bestsellers__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.bestsellers__label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.55;
}

.bestsellers__heading {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

/* ─── BESTSELLERS CAROUSEL ─── */
.carousel {
    width: 330px;
    align-self: center;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 0;
}

.carousel__track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

/* ─── BESTSELLERS PRODUCT CARD ─── */
.product-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    flex-shrink: 0;
    background-color: #faf8f4;
    cursor: pointer;
}

.product-card__image-wrap {
    width: 100%;
    aspect-ratio: 2/2.3;
    flex-shrink: 0;
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.product-card__image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--primary-light);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card__image-wrap img.is-active {
    opacity: 1;
}

.product-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 15%;
    border: none;
    background-color: var(--primary-bg);
    color: var(--color-accent);
    cursor: pointer;
    opacity: 0;
    transform: translateX(6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.product-card__action:nth-child(2) {
    transition-delay: 0.05s;
}

.product-card:hover .product-card__action {
    opacity: 1;
    transform: translateX(0);
}

.product-card__action:hover {
    background-color: var(--color-accent);
    color: var(--primary-bg);
}

@media (hover: none) {
    .product-card__action {
        opacity: 1;
        transform: none;
    }
}

.product-card__colors {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 7px;
    align-items: center;
}

.product-card__color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px transparent, 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease;
}

.product-card__color:hover,
.product-card__color.is-active {
    box-shadow: 0 0 0 1.5px #faf8f4, 0 0 0 3px var(--color-text);
}

.product-card__info {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}
.product-card__collection, .product-card__name, .product-card__price {
    align-self: center;
}
.product-card__collection {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
}

.product-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 5px;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
}

.product-card__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.03em;
}


.product-card__sizes-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-top: 8px;
}

/* `display:flex` ci-dessus prime sinon sur le `display:none` natif de [hidden] */
.product-card__sizes-wrap[hidden],
.color-panel[hidden] {
    display: none;
}

.product-card__sizes {
    flex: 1;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    min-width: 0;
}

.product-card__sizes::-webkit-scrollbar {
    display: none;
}

.sizes-scroll-btn {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd5cc;
    background-color: #faf8f4;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.sizes-scroll-btn:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

@media (hover: hover) {
    .sizes-scroll-btn.is-visible {
        display: flex;
    }
}

.product-card__size {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #ddd5cc;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    color: var(--color-text);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-card__size:hover:not(.product-card__size--unavailable),
.product-card__size.is-selected {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: #fff;
}

.product-card__size--unavailable {
    color: #d0d0d0;
    border-color: #eee;
    text-decoration: line-through;
    pointer-events: none;
}

/* ─── CAROUSEL FOOTER ─── */
.bestsellers__footer {
    position: absolute;
    width: 345px;
    max-width: 100%;
    margin: 0 auto;
    bottom: 30px;
    left: 52px;
    right: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.carousel__nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.carousel__counter {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    white-space: nowrap;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}

.carousel__progress {
    flex: 1;
    height: 1px;
    background-color: rgba(206, 192, 165, 0.2);
    position: relative;
    overflow: hidden;
}

.carousel__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.carousel__arrows {
    display: flex;
    gap: 8px;
}

.carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(206, 192, 165, 0.3);
    background: none;
    cursor: pointer;
    color: var(--color-accent);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.carousel__arrow:hover:not(:disabled) {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--primary-bg);
}

.carousel__arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* NEW ARRIVALS*/
.new-arrivals {
    position: relative;
    display: flex;
    height: fit-content;
    margin: 40px 0;
}
.new-arrivals__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 430px;
    /* height: 360px; — remplacé par une hauteur calquée sur celle des images
       des cartes (voir syncNewArrivalsHeaderHeight dans client/home/main.ts) */
    background-color: var(--primary-bg);
    color: var(--color-accent);
}
.new-arrivals__heading {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}
.new-arrivals__label {
    font-size: 14px;
    color: var(--color-accent);
}
.new-arrivals__cta {
    margin-top: 25px;
}

.new-arrivals__carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 0 5px;
    /* height: 360px; — retiré, la hauteur naturelle des cartes (image + info)
       gouverne désormais la ligne ; voir .new-arrivals__header ci-dessus */
}

.na-track {
    display: flex;
    gap: 3px;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.na-card {
    flex: 0 0 calc((100% - 6px) / 3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.na-card__image-wrap {
    width: 100%;
    aspect-ratio: 2 / 2.3;
    overflow: hidden;
    background-color: var(--primary-light);
}

.na-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

.na-card:hover .na-card__image-wrap img {
    transform: scale(1.04);
}

.na-card__info {
    padding: 14px 16px 16px;
    flex-shrink: 0;
}

.na-card__collection {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
}

.na-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 5px;
}

.na-card__name a {
    color: inherit;
    text-decoration: none;
}

.na-card__price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.na-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(15, 15, 15, 0.5);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.na-arrow--prev { left: 14px; }
.na-arrow--next { right: 14px; }

.na-arrow:hover {
    background-color: rgba(15, 15, 15, 0.82);
}

.na-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Collections  */
.collections {
    display: flex;
    min-height: 720px;
    max-height: 800px;
    background-color: var(--primary-bg);
}
.collection-left, .collection-right {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding: 25px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.collection-left {
    background-image: var(--collection-left-bg-desktop);
    align-items: flex-end;
}
.collection-right {
    background-image: var(--collection-right-bg-desktop);
    align-items: flex-start;
}

/* Panneau de repli affiché à droite quand une seule collection est mise en avant
   (voir buildCollectionsSection dans home.ts) — même gabarit que .collection-right,
   mais contenu texte centré façon .new-arrivals__header plutôt qu'une image de fond. */
.collection-right--fallback {
    background-image: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    color: var(--color-accent);
}

.collections__footer {
    display: flex;
    justify-content: center;
    padding: 32px 0;
    background-color: var(--primary-bg);
}

.cms-collections-note {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
}

.cms-collections-note a {
    color: inherit;
    text-decoration: underline;
}

/* ─── FOOTER ─── */
.footer {
    background-color: var(--primary-bg);
    margin-top: 40px;
}

.footer__newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 96px 24px;
    border-bottom: 1px solid var(--color-accent);
}

.footer__newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--color-accent);
    text-align: center;
}

.footer__newsletter-form {
    display: flex;
    width: 100%;
    max-width: 420px;
}

.footer__newsletter-input {
    flex: 1;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(206, 192, 165, 0.25);
    border-right: none;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer__newsletter-input::placeholder {
    color: rgba(206, 192, 165, 0.4);
}

.footer__newsletter-input:focus {
    border-color: rgba(206, 192, 165, 0.6);
}

.footer__newsletter-btn {
    padding: 14px 24px;
    background-color: var(--color-accent);
    color: var(--primary-bg);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-accent);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer__newsletter-btn:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 45px;
    border-bottom: 1px solid var(--color-accent);
}

.footer__logo-img {
    width: 150px;
    max-height: 150px;
    display: block;
    object-fit: contain;
}

.footer__right {
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__col-heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-overlay-text);
}

.footer__col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__link {
    display: inline-block;
    color: rgba(206, 192, 165, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background-color: var(--color-overlay-text);
    transition: width 0.3s ease;
}

.footer__link:hover::after {
    width: 100%;
}

.footer__link:hover {
    color: var(--color-overlay-text);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__social-link {
    color: var(--color-overlay-text);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer__social-link:hover {
    color: var(--color-accent);
}

.footer__social-link svg {
    height: 26px;
    width: auto;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
}

.footer__copyright {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.45);
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__legal-link {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal-link:hover {
    color: var(--color-accent);
}

.footer__legal-sep {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.25);
}
@media screen and (max-width: 1200px) {
    .new-arrivals__header {
        width: 300px;
    }
    .na-card {
        flex: 0 0 calc((100% - 3px) / 2);
    }
    .bestsellers__panel--content {
        padding: 44px 36px 160px;
    }
    .bestsellers__footer {
        bottom: 44px;
        left: 36px;
        right: 36px;
    }
}

@media screen and (max-width: 900px) {
    .new-arrivals__header {
        width: 220px;
    }
    .new-arrivals__heading {
        font-size: 20px;
    }
    .bestsellers__panel--content {
        padding: 36px 28px 160px;
    }
    .bestsellers__footer {
        bottom: 36px;
        left: 28px;
        right: 28px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 0 10px;
    }
    .header-actions {
        gap: 5px;
    }
    .hero {
        justify-content: center;
        align-items:flex-start;
        background-image: var(--hero-bg-mobile);
    }
    .hero__content {
        margin: 5% 0 0 0;
        align-items: center;
    }
    .bestsellers {
        flex-direction: column-reverse;
        min-height: auto;
        max-height: unset;
        padding-top: 3px;
    }
    .bestsellers__panel {
        width: 100%;
    }
    .bestsellers__panel--image {
        height: 830px;
        background-image: var(--bestsellers-bg-mobile);
    }
    .bestsellers__panel--content {
        padding: 40px 24px 36px;
        gap: 20px;
    }
    .bestsellers__footer {
        position: static;
    }
    .carousel {
        min-height: 240px;
    }
    .product-card {
        flex-direction: column;
    }
    .product-card__image-wrap {
        width: 100%;
        min-height: 355px;
    }
    .product-card__info {
        padding: 20px 20px 18px;
    }
    .bestsellers__footer {
        flex-wrap: wrap;
        gap: 16px;
    }
    .new-arrivals {
        flex-direction: column;
    }
    .new-arrivals__header {
        width: 100%;
        height: 300px;
        padding: 36px 24px;
        gap: 8px;
    }
    .new-arrivals__cta {
        margin-top: 16px;
    }
    .na-card {
        flex: 0 0 50%;
    }
    .footer__newsletter {
        padding: 35px 24px;
        border-bottom: none;
    }
    .footer__main {
        flex-direction: column;
        align-items: center;
        padding: 10px 0px;
        gap: 10px;
    }
    .footer__logo-img {
        width: 120px;
    }
    .footer__right {
        width: 100%;
        flex-wrap: wrap;
        gap: 40px;
        padding: 24px;
        border-top: 1px solid var(--color-accent);
    }
    .footer__bottom {
        padding: 16px 24px;
    }
    .collections {
        flex-direction: column;
        gap: 5px;
        min-height: unset;
        max-height: unset;
    }
    .collection-left, .collection-right {
        width: 100%;
        min-height: 550px;
    }
    .collection-left {
        background-image: var(--collection-left-bg-mobile);
    }
    .collection-right {
        background-image: var(--collection-right-bg-mobile);
    }
}
/* ─── ÉDITEUR VISUEL CMS ─── */
.cms-toolbar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 8px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.cms-toolbar__handle {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 18px;
    margin-left: 4px;
    cursor: grab;
}

.cms-toolbar__handle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #999;
    box-shadow:
        0 5px 0 #999,
        0 10px 0 #999,
        6px 0 0 #999,
        6px 5px 0 #999,
        6px 10px 0 #999;
}

.cms-toolbar__handle:active {
    cursor: grabbing;
}

.cms-toolbar__status {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #666;
    padding: 0 6px;
    white-space: nowrap;
}

.cms-toolbar__btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    white-space: nowrap;
}

.cms-toolbar__btn--preview {
    background-color: #f0b429;
    color: #3c2a00;
}

.cms-toolbar__btn--save {
    background-color: #2f7a57;
    color: #fff;
}

.cms-toolbar__btn--publish {
    background-color: var(--primary-bg);
    color: var(--color-accent);
}

.cms-toolbar__btn--close {
    background-color: #d64545;
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.9rem;
}

.cms-editable {
    outline: 1px dashed rgba(60, 19, 27, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
    cursor: text;
}

.cms-editable:hover,
.cms-editable:focus {
    outline-style: solid;
    background-color: rgba(240, 180, 41, 0.12);
}

.cms-link-edit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cms-edit-href-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background-color: #2f6fed;
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    line-height: 1;
}

.cms-image-edit-group {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.cms-image-edit-btn {
    background-color: #2f6fed;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.cms-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cms-ribbon--inactive {
    opacity: 0.5;
}

.cms-ribbon-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
}

.cms-ribbon-toggle,
.cms-ribbon-color {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cms-ribbon-color input[type="color"] {
    width: 22px;
    height: 22px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.cms-toolbar__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cms-toolbar__btn--discard {
    background-color: transparent;
    color: var(--primary-bg);
    border: 1px solid rgba(60, 19, 27, 0.3);
}

.cms-toolbar__badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.cms-toolbar__badge--pending {
    background-color: #fff3cd;
    color: #8a6414;
}

.cms-toolbar__badge--unsaved {
    background-color: #fbeaea;
    color: #b3261e;
}

.cms-toolbar__status--success {
    color: #256029;
    font-weight: 600;
}

.cms-toolbar__status--error {
    color: #b3261e;
    font-weight: 600;
}

/* ─── MODALE (édition de lien, confirmation d'annulation) ─── */
.cms-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 15, 0.5);
}

/* La classe ci-dessus (display: flex) a plus de priorité que le style natif de
   l'attribut [hidden] et l'écraserait sinon, laissant la modale visible en permanence. */
.cms-modal[hidden] {
    display: none;
}

.cms-modal__panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    margin: 0 20px;
    padding: 28px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cms-modal__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-bg);
}

.cms-modal__message {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #444;
}

.cms-modal__input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.cms-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.cms-modal__btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cms-modal__btn--cancel {
    background-color: transparent;
    color: #666;
    border: 1px solid var(--color-border);
}

.cms-modal__btn--confirm {
    background-color: var(--primary-bg);
    color: var(--color-accent);
}

/* ─── PANNEAU COULEURS GLOBALES ─── */
.cms-colors-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 260px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cms-colors-panel[hidden] {
    display: none;
}

.cms-colors-panel__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-bg);
}

.cms-colors-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #444;
    cursor: pointer;
}

.cms-colors-panel__row input[type="color"] {
    width: 32px;
    height: 24px;
    border: 1px solid var(--color-border);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.cms-colors-panel__subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary-bg);
    margin-top: 4px;
}

.cms-page-texts-panel {
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
}

.cms-page-texts-panel__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #444;
}

.cms-page-texts-panel__row input[type="text"] {
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

/* Mode aperçu : masque les affordances d'édition sans recharger la page */
body.cms-edit-mode.cms-preview-mode .cms-editable,
body.cms-edit-mode.cms-preview-mode .cms-link-edit .cms-editable {
    outline: none;
    background: none;
}

body.cms-edit-mode.cms-preview-mode .cms-edit-href-btn,
body.cms-edit-mode.cms-preview-mode .cms-image-edit,
body.cms-edit-mode.cms-preview-mode .cms-ribbon-controls,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__btn--save,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__btn--publish,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__btn--discard,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__btn--colors,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__btn--page-texts,
body.cms-edit-mode.cms-preview-mode .cms-toolbar__badge,
body.cms-edit-mode.cms-preview-mode .cms-colors-panel {
    display: none;
}

body.cms-edit-mode.cms-preview-mode .cms-ribbon--inactive {
    display: none;
}

@media screen and (max-width: 480px) {
    .hero__cta {
        padding: 7px 12px;
    }
    .section__cta {
        padding: 8px 15px;
    }
    .na-card {
        flex: 0 0 100%;
    }
    .footer__social {
        width: 100%;
    }
    .footer__social-link svg {
        height: 24px;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
}
