/* Pages produit — style luxe type Li-vy, key notes avec icônes craft */

.product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.product-gallery {
    position: sticky;
    top: 7rem;
}
.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-sable-blanc);
}
.product-gallery__main img,
.product-gallery__main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    mix-blend-mode: darken;
    transform-origin: 50% 88%;
    /* Transform au même rythme que la sidebar (100 ml ↔ 50 ml) : 0.35s ease */
    transition:
        transform 0.35s ease,
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
/* Pendant le changement de format : flou + fondu uniquement — pas de transition sur transform
   (sinon le passage 50ml→100ml anime scale(0.62)→scale(1) sur l’ancienne image) */
.product-gallery__main img#product-img.is-format-morph {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.96);
    transition:
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Format 50 ml : plus petit que le 100 ml, mais même position verticale (scale centré = aligné comme le 100 ml) */
.product-gallery__main--50ml img#product-img {
    transform: scale(0.62);
    transform-origin: center center;
}
.product-gallery__main--50ml img#product-img.is-format-morph {
    transform: scale(0.6);
    transform-origin: center center;
    /* même principe : pas de transition transform pendant le morph */
    transition:
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Miniatures en haut à gauche — style luxe */
.product-gallery__thumbs {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.product-gallery__thumb {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(44, 51, 38, 0.18);
    background-size: cover;
    background-position: center;
    background-color: var(--color-sable-blanc);
    cursor: pointer;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(44, 51, 38, 0.06);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.product-gallery__thumb:hover {
    border-color: rgba(44, 51, 38, 0.35);
    box-shadow: 0 2px 8px rgba(44, 51, 38, 0.08);
}
.product-gallery__thumb.active {
    border-color: rgba(44, 51, 38, 0.5);
    box-shadow: 0 0 0 1px rgba(44, 51, 38, 0.5), 0 2px 8px rgba(44, 51, 38, 0.06);
}

.product-detail__title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.product-detail__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}
/* Prix page produit = même police que le reste du site (Inter), comme cartes / sidebar */
.product-detail__price {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.product-detail__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sélecteur de taille / format — même style que KEY NOTES */
.product-option-label {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-vert-maquis);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    display: block;
}
.product-size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.product-size-selector .size-btn {
    padding: 0.5rem 1.25rem;
    border: 0.5px solid var(--color-vert-maquis);
    background: transparent;
    color: var(--color-vert-maquis);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50px;
}
.product-size-selector .size-btn:hover {
    background: rgba(44, 51, 38, 0.5);
    color: var(--color-sable-blanc);
}
.product-size-selector .size-btn.active,
.product-size-selector .size-btn.active:hover {
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    opacity: 1;
}

/* Sidebar : bloc FORMAT — espacement uniforme avec le reste de la colonne */
.quick-sidebar #sb-option-label.quick-sidebar__option-label,
aside.quick-sidebar #sb-option-label {
    margin-top: 0; /* l’espace avant FORMAT = margin-bottom du sous-titre */
    margin-bottom: 0.65rem; /* serré sous le libellé → boutons */
}
/* Sidebar quick view — FORMAT : #sb-sizes */
#sb-sizes.quick-sidebar__sizes,
#sb-sizes.product-size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* Un seul gap avant KEY NOTES (pas de double marge avec .quick-sidebar__notes) */
    margin-bottom: var(--sidebar-section-gap, 1.5rem);
    align-items: flex-start;
}
/* Spécificité id + class > seules les classes — forcé pour sidebar uniquement */
#sb-sizes .size-btn,
#sb-sizes button.size-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.3rem 0.75rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.1em !important;
    line-height: 1.25 !important;
    border-radius: 999px !important;
}
#sb-sizes .size-btn.active,
#sb-sizes .size-btn.active:hover {
    border: 0.5px solid var(--color-vert-maquis) !important;
}

/* Quantité avant Add to cart — aligné FORMAT / KEY NOTES */
.product-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--product-section-gap);
}
.product-quantity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.product-quantity-row__label {
    margin-bottom: 0;
}
.product-quantity {
    display: inline-flex;
    align-items: center;
    border: 0.5px solid var(--color-vert-maquis);
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
}
.product-quantity__btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-vert-maquis);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
}
.product-quantity__btn:hover {
    background: rgba(44, 51, 38, 0.08);
}
.product-quantity__input {
    width: 2.5rem;
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    color: var(--color-vert-maquis);
    font-size: 0.85rem;
    text-align: center;
    -moz-appearance: textfield;
}
.product-quantity__input::-webkit-outer-spin-button,
.product-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Focus : même esprit que les boutons − / + (plus de contour bleu navigateur) */
.product-quantity__input:focus {
    outline: none;
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    caret-color: var(--color-sable-blanc);
}
.product-quantity__input:focus::placeholder {
    color: rgba(245, 242, 236, 0.6);
}
.product-quantity__input:focus-visible {
    outline: none;
}
/* Sidebar quick view — type Livy : titre + prix sur une ligne (prix à droite), moins d’air sous la photo */
aside.quick-sidebar .quick-sidebar__body,
.quick-sidebar__body {
    padding-top: 0.85rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* Cadre image sidebar : taille fixe pour tous les produits (même « boîte ») */
aside.quick-sidebar .quick-sidebar__img-wrap,
.quick-sidebar__img-wrap {
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e9e5de;
    box-sizing: border-box;
}
aside.quick-sidebar .quick-sidebar__img-wrap img,
.quick-sidebar__img-wrap img#sb-img,
.quick-sidebar__img-wrap img {
    max-width: 78%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    mix-blend-mode: darken;
    transition:
        transform 0.35s ease,
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
/* Même morph que la page produit : flou + fondu avant changement de src (100 ml ↔ 50 ml) */
.quick-sidebar__img-wrap img#sb-img.is-format-morph {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.96);
    transform-origin: center center;
    transition:
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.quick-sidebar__img-wrap.quick-sidebar__img-wrap--50ml img#sb-img.is-format-morph {
    transform: scale(0.6);
    transform-origin: center center;
    transition:
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
/* 50 ml : même logique que .product-gallery__main--50ml — le flacon paraît plus petit que le 100 ml */
.quick-sidebar__img-wrap.quick-sidebar__img-wrap--50ml img,
.quick-sidebar__img-wrap--50ml #sb-img {
    transform: scale(0.62);
    transform-origin: center center;
}
.quick-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 1.25rem;
    margin-bottom: 0.35rem;
    width: 100%;
}
.quick-sidebar__head .quick-sidebar__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    padding-right: 0.5rem;
}
.quick-sidebar__head .quick-sidebar__price {
    margin: 0;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.9;
    white-space: nowrap;
}
.quick-sidebar__subtitle {
    margin-top: 0;
    margin-bottom: var(--sidebar-section-gap, 1.5rem);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}
/* Si pas de .quick-sidebar__head (ancienne page), garder prix lisible */
.quick-sidebar__body > .quick-sidebar__price {
    font-family: var(--font-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: right;
    margin-bottom: 0.85rem;
}

/* Sidebar : même stepper que page produit (plus compact retiré — alignement visuel) */
.quick-sidebar .product-quantity-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
    margin-top: 0.25rem;
}
/* Bloc CTA en bas de sidebar = même logique que .cart-drawer__footer (trait + padding + gap bouton/lien) */
.quick-sidebar__cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* identique .cart-drawer__footer-cta */
    width: 100%;
    margin-top: auto; /* colle le bloc en bas quand la sidebar a de la hauteur, comme le footer panier */
    min-height: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
    box-sizing: border-box;
    padding: 1.25rem 1.5rem 2.5rem; /* aligné .cart-drawer__footer */
    border-top: 0.5px solid rgba(44, 51, 38, 0.15);
    background: var(--color-sable-blanc);
    flex-shrink: 0;
}
.quick-sidebar__cta .product-quantity-row {
    margin-top: 0;
}
.quick-sidebar__cta .quick-sidebar__view-more {
    margin-top: 0;
    padding-top: 0;
}
/* Sidebar prévisualisation : pas de trait ; marges verticales = même gap partout */
aside.quick-sidebar .quick-sidebar__notes,
.quick-sidebar .quick-sidebar__notes {
    border-top: none;
    margin-top: 0; /* l’espace vient du margin-bottom de #sb-sizes */
    margin-bottom: var(--sidebar-section-gap, 1.5rem);
    padding-top: 0;
}

/* Espacement vertical commun entre blocs (FORMAT → KEY NOTES → DETAILS) — sidebar & produit */
:root {
    --product-section-gap: 2rem;
    /* Sidebar quick view : un seul écart entre chaque section (FORMAT → KEY NOTES → CTA) */
    --sidebar-section-gap: 1.5rem;
    --product-section-padding-top: 2rem;
    --product-notes-row-gap: 1.75rem;
    /* Sidebar : liste qui wrap en 2 lignes — garder serré (avant 2.25rem = trop d’air) */
    --product-notes-row-gap-tight: 0.65rem;
}

/* Key notes — côte à côte, séparateur point ; row-gap dès qu’il y a 2+ lignes (sidebar étroite ou responsive) */
.product-notes {
    margin-top: var(--product-section-gap);
    padding-top: var(--product-section-padding-top);
    border-top: 0.5px solid rgba(44, 51, 38, 0.2);
}
/* Titres de section produit : FORMAT, KEY NOTES, DETAILS — même référence */
.product-notes__title {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-vert-maquis);
    opacity: 0.8;
    margin-bottom: 1rem;
}
.product-notes__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    /* row-gap dès le départ : sidebar / colonne étroite = wrap sans attendre breakpoint viewport */
    row-gap: var(--product-notes-row-gap);
    max-width: 100%;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
}
/* Sidebar : largeur fixe → wrap en 2 lignes → row-gap réduit pour ne pas étirer verticalement */
.quick-sidebar .product-notes__list,
aside.quick-sidebar .product-notes__list {
    row-gap: var(--product-notes-row-gap-tight);
    padding-top: 0.35rem;
    padding-bottom: 0.5rem;
}
.quick-sidebar .product-note,
aside.quick-sidebar .product-note {
    line-height: 1.25; /* évite une hauteur de ligne excessive quand la liste wrap */
}
/* Vue responsive page produit : augmenter progressivement */
@media (max-width: 899px) {
    .product-notes__list {
        row-gap: 1.95rem;
        padding-top: 0.55rem;
        padding-bottom: 0.95rem;
    }
}
@media (max-width: 700px) {
    .product-notes__list {
        row-gap: 2.25rem;
        padding-bottom: 1.05rem;
    }
}
@media (max-width: 600px) {
    .product-notes__list {
        row-gap: 2.5rem;
        padding-top: 0.65rem;
        padding-bottom: 1.15rem;
    }
}
@media (max-width: 480px) {
    .product-notes__list {
        row-gap: 2.75rem;
        padding-bottom: 1.25rem;
    }
}
.product-note {
    font-size: 0.72rem;
    padding: 0;
    border: none;
    border-radius: 0;
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: opacity 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    width: auto;
    background: none;
    cursor: default;
    white-space: nowrap;
}
/* Séparateur point — cercle plutôt que caractère « . » (le glyphe est bas sur la ligne, pas centré au texte) */
.product-note:not(:last-child)::after {
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    margin: 0 0.5rem;
    border-radius: 50%;
    background-color: var(--color-vert-maquis);
    opacity: 0.45;
    flex-shrink: 0;
    align-self: center;
    pointer-events: none;
    user-select: none;
}
.product-note::before {
    content: '';
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    background-color: var(--color-vert-maquis);
    mask: url('assets/icons/note-citrus.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-citrus.svg') center / contain no-repeat;
}
.product-note--lavender::before {
    mask: url('assets/icons/note-lavender.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-lavender.svg') center / contain no-repeat;
}
.product-note--bay-laurel::before {
    mask: url('assets/icons/note-bay-laurel.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-bay-laurel.svg') center / contain no-repeat;
}
.product-note--musk::before {
    mask: url('assets/icons/note-musk.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-musk.svg') center / contain no-repeat;
}
.product-note--pine::before {
    mask: url('assets/icons/note-pine.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-pine.svg') center / contain no-repeat;
}
.product-note--cedar::before {
    /* SVG avec fill #000 = zones opaques pour le masque (currentColor en SVG externe peut rester invisible) */
    mask: url('assets/icons/note-cedar.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-cedar.svg') center / contain no-repeat;
}
.product-note--lemon::before {
    mask: url('assets/icons/note-lemon.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-lemon.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--cypress::before {
    mask: url('/assets/icons/note-cypress.svg?v=3') center / contain no-repeat;
    -webkit-mask: url('/assets/icons/note-cypress.svg?v=3') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--mint::before {
    mask: url('assets/icons/note-mint.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-mint.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--grapefruit::before {
    mask: url('assets/icons/note-grapefruit.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-grapefruit.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--black-pepper::before {
    mask: url('assets/icons/note-black-pepper.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-black-pepper.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--nutmeg::before {
    mask: url('assets/icons/note-nutmeg.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-nutmeg.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--orange::before {
    mask: url('assets/icons/note-orange.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-orange.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
/* Tangerine — SVG illustré (masque = silhouette en vert maquis, comme les autres) */
.product-note--tangerine::before {
    mask: url('assets/icons/note-tangerine.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-tangerine.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--neroli::before {
    mask: url('assets/icons/note-neroli.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-neroli.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--oceanic::before {
    mask: url('/assets/icons/note-oceanic.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/icons/note-oceanic.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
/* Alias : libellé « Ocean » = même icône que Oceanic (évite le picto citrus par défaut) */
.product-note--ocean::before {
    mask: url('/assets/icons/note-oceanic.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/icons/note-oceanic.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note--thyme::before {
    mask: url('assets/icons/note-thyme.svg') center / contain no-repeat;
    -webkit-mask: url('assets/icons/note-thyme.svg') center / contain no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.product-note:hover {
    opacity: 1;
}
.product-note__icon {
    display: none;
}
.product-note__label {
    font-size: inherit;
    letter-spacing: inherit;
}

/* Détails — même rythme que .product-notes */
.product-details-block {
    margin-top: var(--product-section-gap);
    padding-top: var(--product-section-padding-top);
    border-top: 0.5px solid rgba(44, 51, 38, 0.2);
}
.product-details-block__title {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-vert-maquis);
    opacity: 0.8;
    margin-bottom: 1rem;
}
.product-details-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-details-block li {
    font-size: 0.85rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.product-details-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    background: var(--color-vert-maquis);
    border-radius: 50%;
    opacity: 0.4;
}

/* CTA produit : largeur contenu (moins imposant), hover sobre sans jeu sur le letter-spacing */
.product-cta .btn-almada {
    padding: 0.7rem 1.65rem;
    border-radius: 50px;
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    border: 0.5px solid transparent;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    text-align: center;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.product-cta .btn-almada .btn-almada__text {
    letter-spacing: 0.2em;
    /* pas de transition sur le texte — évite l’effet « animation » au survol */
}

.product-cta .btn-almada:hover {
    background-color: #252b22;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.product-cta .btn-almada:active {
    background-color: #1e231c;
}

/* ADDED : pas de changement de largeur — fondu entre libellé et ✓ ADDED (::after superposé) */
.product-cta .btn-almada,
.quick-sidebar .quick-atc-btn {
    position: relative;
}
/* Largeur minimale = évite le saut quand le texte court remplace le libellé long */
.product-cta .btn-almada {
    min-width: 15rem;
    box-sizing: border-box;
}
.product-cta .btn-almada .btn-almada__text {
    transition: opacity 0.35s ease;
    display: inline-block;
}
.product-cta .btn-almada::after,
.quick-sidebar .quick-atc-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.product-cta .btn-almada.is-added .btn-almada__text,
.product-cta .btn-almada.is-added > * {
    opacity: 0;
}
/* Lien sans span interne : tout le contenu disparaît via opacité sur pseudo non applicable aux enfants — utiliser wrapper ou cibler le nœud texte impossible en CSS seul ; les pages ont en général .btn-almada__text */
.product-cta .btn-almada.is-added::after,
.quick-sidebar .quick-atc-btn.is-added::after {
    content: '✓ ADDED';
    opacity: 1;
}
.quick-sidebar .quick-atc-btn.is-added {
    color: transparent; /* masque le texte du bouton pendant le fondu */
}
.quick-sidebar .quick-atc-btn.is-added::after {
    color: var(--color-sable-blanc);
}
.quick-sidebar .quick-atc-btn::after {
    color: var(--color-sable-blanc);
}

/* Sidebar quick add — pleine largeur + même padding que .cart-checkout-btn (panier) */
.quick-sidebar .quick-atc-btn {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0.7rem 1.65rem; /* = .cart-checkout-btn */
    text-align: center;
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    border: 0.5px solid transparent;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.quick-sidebar .quick-atc-btn:hover {
    background-color: #252b22;
    border-color: rgba(255, 255, 255, 0.06);
}
.quick-sidebar .quick-atc-btn:active {
    background-color: #1e231c;
}

/* Bouton plein type Add to cart / Checkout — pour liens hors .product-cta (panier vide, drawer, success…) */
.btn-almada--solid,
a.btn-almada--solid {
    display: inline-block;
    padding: 0.7rem 1.65rem;
    border-radius: 50px;
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc) !important;
    border: 0.5px solid transparent;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.btn-almada--solid:hover {
    background-color: #252b22;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    color: var(--color-sable-blanc) !important;
}
.btn-almada--solid:active {
    background-color: #1e231c;
}

/* Cart — Checkout : même style / taille que Add to cart (btn-almada / quick-atc) */
.cart-checkout-btn {
    display: inline-block;
    padding: 0.7rem 1.65rem;
    border-radius: 50px;
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    border: 0.5px solid transparent;
    width: fit-content;
    max-width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.35s ease, border-color 0.35s ease, opacity 0.25s ease;
}
.cart-checkout-btn:hover {
    background-color: #252b22;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    opacity: 1;
}
.cart-checkout-btn:active {
    background-color: #1e231c;
}
.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ——— Cart drawer — même largeur / animation que .quick-sidebar (min(460px)) ——— */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.35);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}
.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    /* Même largeur que la sidebar quick view (thefragrances / the-scented inline) */
    width: min(460px, 100vw);
    background: var(--color-sable-blanc, #f0ece4);
    z-index: 111;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 32px rgba(44, 51, 38, 0.08);
}
.cart-drawer.open {
    transform: translateX(0);
}
.cart-drawer__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--color-vert-maquis);
    z-index: 2;
    line-height: 1;
    outline: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.cart-drawer__close svg {
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.cart-drawer__close:hover,
.cart-drawer__close:focus {
    opacity: 0.75;
}
.cart-drawer__close:hover svg,
.cart-drawer__close:focus svg {
    transform: rotate(90deg);
}
.cart-drawer__close:active svg {
    transform: rotate(90deg) scale(0.92);
}

/* Quick sidebar close : même logique (sans cercle, rotation hover) — z-index élevé pour rester cliquable après ouverture (hit-test) */
.quick-sidebar__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--color-vert-maquis);
    line-height: 1;
    z-index: 50;
    outline: none;
    overflow: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
/* État initial à l’ouverture : la croix apparaît en fondu + scale (animée au premier open via .is-visible après rAF) */
.quick-sidebar.open .quick-sidebar__close {
    opacity: 0;
    transform: scale(0.88);
}
.quick-sidebar.open .quick-sidebar__close.is-visible {
    opacity: 1;
    transform: scale(1);
}
.quick-sidebar__close svg {
    display: block;
}
.quick-sidebar__close:hover,
.quick-sidebar__close:focus {
    background: none;
    opacity: 0.85;
    outline: none;
    transform: rotate(90deg);
}
.quick-sidebar.open .quick-sidebar__close.is-visible:hover,
.quick-sidebar.open .quick-sidebar__close.is-visible:focus {
    transform: rotate(90deg);
}
.quick-sidebar__close:active {
    transform: rotate(90deg) scale(0.92);
}
.quick-sidebar.open .quick-sidebar__close.is-visible:active {
    transform: rotate(90deg) scale(0.92);
}

.cart-drawer__header {
    /* Aligné .quick-sidebar__body : padding horizontal 1.5rem */
    padding: 1.75rem 1.5rem 1rem 1.5rem;
    border-bottom: 0.5px solid rgba(44, 51, 38, 0.12);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cart-drawer__title {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}
.cart-drawer__count {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
}
.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}
.cart-drawer__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    gap: 1rem;
    text-align: center;
}
.cart-drawer__empty {
    opacity: 0.75;
    margin: 0;
    font-size: 0.9rem;
}
.cart-drawer__cta-empty {
    display: block;
    width: fit-content;
}
.cart-drawer__line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 0.5px solid rgba(44, 51, 38, 0.1);
}
.cart-drawer__line-img {
    width: 64px;
    height: 80px;
    object-fit: contain;
    mix-blend-mode: multiply;
    background: transparent;
}
.cart-drawer__line-img--placeholder {
    background: rgba(44, 51, 38, 0.06);
    border-radius: 4px;
}
.cart-drawer__line-info {
    min-width: 0;
}
.cart-drawer__line-name {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.cart-drawer__line-price {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.75;
}
.cart-drawer__line-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.cart-drawer__qtybtn {
    width: 28px;
    height: 28px;
    border: 0.5px solid rgba(44, 51, 38, 0.35);
    background: transparent;
    color: var(--color-vert-maquis);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.cart-drawer__qtybtn:hover {
    background: var(--color-vert-maquis);
    color: var(--color-sable-blanc);
    border-color: var(--color-vert-maquis);
}
.cart-drawer__qty {
    font-size: 0.85rem;
    min-width: 1.25rem;
    text-align: center;
}
.cart-drawer__remove {
    margin-left: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.65;
    color: var(--color-vert-maquis);
    padding: 0;
    transition: opacity 0.2s ease;
}
.cart-drawer__remove:hover {
    opacity: 1;
}
.cart-drawer__line-sub {
    font-size: 0.9rem;
    font-weight: 500;
    align-self: center;
    white-space: nowrap;
}
/* Footer : même aire verticale au-dessus et au-dessous de la ligne TOTAL */
.cart-drawer__footer {
    flex-shrink: 0;
    padding: 1.25rem 1.5rem 2.5rem;
    border-top: 0.5px solid rgba(44, 51, 38, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-sable-blanc);
}
.cart-drawer__footer > * {
    flex-shrink: 0;
    min-height: 0;
}
/* Espace sous TOTAL = même valeur que padding-top du footer (1.25rem) avant le bloc CTA */
.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /* Égal au padding-top du footer (1.25rem) : autant d’air sous TOTAL qu’entre le trait et TOTAL */
    margin-bottom: 1.25rem;
}
.cart-drawer__total strong {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
}
.cart-drawer__checkout {
    width: 100%;
    display: block;
    text-align: center;
}
/* Bouton checkout en pleine largeur comme en sidebar — évite inline-block + lien collé en dessous */
.cart-drawer__footer .cart-checkout-btn {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
/* Bloc CTA + lien : gap entre Checkout et View cart (l’air au-dessus du bouton vient du margin-bottom du total) */
.cart-drawer__footer-cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    padding-top: 0;
}
.cart-drawer__footer-cta .quick-sidebar__view-more {
    margin-top: 0;
    padding-top: 0;
}
/* View full details / View cart — même style partout (sidebar + drawer) */
.quick-sidebar__view-more {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-vert-maquis);
    text-decoration: none;
    opacity: 0.65;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}
.quick-sidebar__view-more:hover {
    opacity: 1;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}
.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.product-breadcrumb a:hover {
    text-decoration: underline;
}
