/* LEAVAH PARIS — Modale produit + sidebars */

/* ===== MODALE SÉLECTION VARIANTE ===== */
.variant-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn .2s ease;
}
@media (min-width: 640px) {
    .variant-modal-overlay { align-items: center; }
}
.variant-modal-box {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
}
.variant-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.variant-modal-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.variant-modal-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}
.variant-modal-name {
    font-family: var(--font-title, Georgia, serif);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}
.variant-modal-price {
    font-size: .9rem;
    color: #666;
    margin-top: .2rem;
}
.variant-modal-section {
    margin-bottom: 1.25rem;
}
.variant-modal-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: .5rem;
}
.variant-modal-label span {
    color: #1a1a1a;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.variant-modal-colors {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.vm-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    background: none;
    transition: border-color .15s;
}
.vm-color-btn.active,
.vm-color-btn:hover {
    border-color: #b8960c;
}
.vm-color-btn .color-swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.variant-modal-sizes {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.vm-size-btn {
    min-width: 48px;
    padding: .4rem .75rem;
    border: 1px solid #ccc;
    background: none;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.vm-size-btn:hover:not([disabled]),
.vm-size-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}
.vm-size-btn.out-of-stock,
.vm-size-btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.variant-modal-stock {
    font-size: .8rem;
    min-height: 1.2em;
    margin-bottom: .75rem;
}
.variant-modal-stock.low   { color: #b8960c; }
.variant-modal-stock.out   { color: #dc3545; }
.variant-modal-cta {
    width: 100%;
    padding: .85rem;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.variant-modal-cta:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ===== TOPBAR LITE — page produit dédiée ===== */
.product-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    background: #faf8f5;
    border-bottom: 1px solid #e5ddd0;
}

.product-topbar-logo {
    font-family: var(--font-logo);
    font-size: 1.7rem;
    letter-spacing: normal;
    text-transform: none;         /* "Leavah" en script, cohérent avec la home */
    line-height: 1;
    color: var(--text-primary);
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.product-topbar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.product-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s;
}
.product-topbar-btn:hover { color: var(--gold); }

/* Badge favori sur la topbar produit — aligné EXACTEMENT sur le badge panier
   (cf. cart-animations.css .product-topbar-cart .cart-count) : même position
   (coin haut-droit, hors de l'icône) et même taille. Seule la couleur diffère
   (rouge favoris vs sombre panier, héritée de .nav-fav-count). */
.product-topbar-btn { position: relative; }
.product-topbar-fav .nav-fav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-page-wrap {
    background: #faf8f5;
    min-height: calc(100vh - 56px);
}

.product-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 0;
    transition: color 0.2s;
}
.product-back-btn:hover { color: var(--text-primary); }
.product-back-btn i { font-size: 1rem; }

/* ===== MODALE OVERLAY ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #faf8f5;
    z-index: 2100;
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-overlay.active { display: block; }

.modal {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: calc(100vh - 56px);
    width: 100%;
}

/* Bouton retour */
.modal-close {
    position: fixed;
    top: 22px;
    left: 28px;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 2200;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }

/* Loading */
.modal-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 2rem;
    color: var(--gold);
}

@keyframes spin { to { transform: rotate(360deg); } }
.modal-loading i { animation: spin 1s linear infinite; }

/* ===== ZONE IMAGE ===== */
.modal-img {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    background: #f0ece4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-slide { display: none; width: 100%; height: 100%; }
.modal-slide.active { display: flex; align-items: center; justify-content: center; }

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.modal-slide img:hover { opacity: 0.92; }

/* Lightbox plein écran */
#product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}
#product-lightbox.open { display: flex; }
#product-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.6);
}
#product-lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
}
#product-lightbox-close:hover { opacity: 1; }

#product-lightbox-prev, #product-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 20px;
    user-select: none;
}
#product-lightbox-prev { left: 0; }
#product-lightbox-next { right: 0; }
#product-lightbox-prev:hover, #product-lightbox-next:hover { opacity: 1; }

.modal-img-prev, .modal-img-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    color: var(--text-primary);
    transition: background 0.2s;
}
.modal-img-prev:hover, .modal-img-next:hover { background: rgba(255,255,255,0.95); }
.modal-img-prev { left: 0; }
.modal-img-next { right: 0; }

.modal-img-dots {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 10;
}

.modal-img-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.modal-img-dot.active { background: var(--text-primary); }

/* ===== CORPS ===== */
.modal-body {
    padding: 28px 48px 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.modal-breadcrumb {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6e6e6e; /* contraste AA (4,5:1) ; #aaa : 2,2:1 */
    margin-bottom: 8px;
}
.modal-breadcrumb a { color: #6e6e6e; text-decoration: none; }
.modal-breadcrumb a:hover { color: #1a1a1a; }

.modal-collections { margin-bottom: 16px; margin-top: 0; }
.modal-collection-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold, #c8a96e);
    border: 1px solid var(--gold, #c8a96e);
    border-radius: 20px;
    padding: 2px 10px;
    margin-right: 4px;
    text-decoration: none;
}

.modal-body h2 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Titre produit mobile (au-dessus de la photo). Masqué en desktop —
   affiché uniquement dans la media query mobile ci-dessous, où le titre
   du panneau info (.modal-body h2) est lui masqué. */
.product-mobile-title { display: none; }

.modal-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    margin-top: 10px;
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.88rem;
    margin-bottom: 32px;
    max-width: 360px;
}

/* Swatches couleur — style DA (cercle + label + underline) */
.modal-swatches { display: flex; gap: 4px; margin-bottom: 24px; }

.modal-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding: 6px 10px;
    transition: border-color 0.2s;
    outline: none;
}

.modal-color-swatch.active { border-bottom-color: #1a1a1a; }

.modal-swatch-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-color-swatch.active .modal-swatch-label { color: #1a1a1a; }

.color-swatch-inner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: block;
}

.swatch-inner-gold    { background: #d4b06a; }
.swatch-inner-silver  { background: #c0c0c0; }
.swatch-inner-rosegold { background: #d4a0a0; }

/* Tailles */
.modal-sizes { margin-bottom: 28px; }
.modal-sizes-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b6b6b; /* contraste AA (4,5:1) ; #888 : 3,3:1 */
    margin-bottom: 12px;
}
.modal-sizes-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-size-btn {
    width: 44px; height: 44px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.modal-size-btn:hover, .modal-size-btn.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #fff;
}
.modal-size-btn.size-out {
    /* Taille en rupture : barrée sur fond gris clair, texte lisible (contraste AA 4,5:1 ; #bbb à 60 %
       d'opacité ne faisait que 1,4:1). */
    color: #6e6e6e;
    border-color: #e0e0e0;
    background: #f3f3f3;
    cursor: pointer;
    text-decoration: line-through;
}
.modal-size-btn.size-out:hover {
    border-color: #ccc;
    background: #ebebeb;
    color: #6e6e6e;
}
.modal-size-btn.size-out.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    text-decoration: line-through;
    opacity: 1;
}

/* Bouton ajouter */
.btn-add {
    width: 100%;
    max-width: 360px;
    padding: 16px;
    background: #1a1a1a;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: auto;
}
.btn-add:hover { background: #333; }
.btn-add--out { background: #999; cursor: not-allowed; }
.btn-add--out:hover { background: #999; }
.modal-stock-msg {
    display: none;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 4px;
}
.modal-stock-msg.is-visible { display: block; } /* affiché par product-modal.js */
.modal-stock-low { color: #c8a05a; }
.modal-stock-out { color: #999; }

/* Set promo */
.modal-set-promo {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e8e2d8;
}
.modal-set-promo-label {
    font-size: 0.58rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 12px;
    display: block;
}
.modal-set-promo-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.modal-set-promo-sub { font-size: 0.78rem; color: #6e6e6e; margin-bottom: 16px; } /* #aaa : 2,2:1 */
.modal-set-promo-pieces { display: flex; gap: 10px; margin-bottom: 18px; }
.modal-set-promo-piece {
    width: 64px; height: 64px;
    border: 1px solid #e8e2d8;
    overflow: hidden;
    background: #f9f5ef;
    flex-shrink: 0;
}
.modal-set-promo-piece img { width: 100%; height: 100%; object-fit: cover; }
a.modal-set-promo-btn,
.modal-set-promo-btn {
    display: inline-block !important;
    padding: 13px 32px !important;
    background: transparent !important;
    border: 1px solid #1a1a1a !important;
    color: #1a1a1a !important;
    font-family: var(--font-body);
    font-size: 0.6rem !important;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
a.modal-set-promo-btn:hover,
.modal-set-promo-btn:hover { background: #1a1a1a !important; color: #fff !important; }

/* Infos composition/livraison */
.modal-info-sections { margin-top: 40px; display: flex; flex-direction: column; }
.modal-info-block { border-top: 1px solid #e8e2d8; padding: 20px 0; }
.modal-info-block:last-child { border-bottom: 1px solid #e8e2d8; }
.modal-info-title {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.modal-info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.modal-info-row:last-child { margin-bottom: 0; }
.modal-info-dot { flex-shrink: 0; font-size: 0.75rem; color: #c8b89a; line-height: 1; }
.modal-info-text { font-size: 0.8rem; color: #666; line-height: 1.6; }
.modal-info-text strong { color: var(--text-primary); font-weight: 600; }

/* ===== SIDEBAR (panier / favoris) ===== */
.sidebar {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 420px;
    max-width: 95vw;
    background: var(--bg-card);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 40px rgba(0,0,0,0.15);
}
.sidebar.active { transform: translateX(0); }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.sidebar-backdrop.active { opacity: 1; pointer-events: all; }

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-title {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.sidebar-close {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color var(--transition);
}
.sidebar-close:hover { color: var(--text-primary); }

.sidebar-body { flex: 1; overflow-y: auto; padding: 24px; }
.sidebar-footer { padding: 24px; border-top: 1px solid var(--border); }

.sidebar-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

/* ===== SIDEBAR PANIER — items ===== */
.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item__img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cart-item__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item__price {
    font-size: 0.85rem;
    color: var(--gold);
    margin-top: 4px;
}

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.cart-qty-btn:hover {
    color: var(--text-primary);
}

.cart-item__qty {
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 16px;
    text-align: center;
}

.cart-remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0;
    transition: color 0.15s;
}

.cart-remove-btn:hover {
    color: #c0392b;
}

/* Pied de sidebar panier */
.cart-footer-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: baseline;
}

.cart-footer-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.cart-footer-amount {
    color: var(--gold);
    font-size: 0.9rem;
}

.cart-footer-cta {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* ===== SIDEBAR FAVORIS — items ===== */
.fav-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

/* Zone cliquable de l'item favori (image + nom + prix) → page produit.
   Le bouton ✕ reste en dehors du lien pour ne pas déclencher la navigation. */
.fav-item__link {
    display: flex;
    gap: 14px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    text-decoration: none;
    cursor: pointer;
}
.fav-item__link:hover .fav-item__name { color: var(--gold); }

.fav-item__img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.fav-item__info {
    flex: 1;
}

.fav-item__name {
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.fav-item__price {
    font-size: 0.8rem;
    color: var(--gold);
}

.fav-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.fav-item__remove:hover {
    color: #c0392b;
}

/* ===== MODALE CONFIRMATION SUPPRESSION FAVORI ===== */
.fav-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fav-confirm-box {
    background: #fff;
    padding: 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.fav-confirm-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.fav-confirm-msg {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.fav-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    /* Ligne image en `auto` : elle épouse la hauteur réelle de .modal-img.
       Avec une ligne fixe 55vw, l'image (min-height 280px) débordait vers
       le bas et masquait le haut de la première pastille couleur. */
    /* Flux block en mobile : image puis body s'empilent naturellement.
       Le grid (avec ligne image `auto`/`55vw`) ne réservait pas la vraie
       hauteur de l'image (min-height 280px) → l'image débordait et le body
       remontait dessous (chevauchement). Le block élimine ce souci. */
    .modal { display: block; }
    /* top: auto obligatoire : la règle de base pose `top: 56px` (pour le
       sticky desktop). En relative, ce top décalait l'image de 56px vers
       le bas sans décaler le body → chevauchement. */
    .modal-img { position: relative; top: auto; height: 80vw; min-height: 320px; }
    /* Image plein espace en mobile : object-fit cover (au lieu de contain)
       → l'image remplit toute la largeur, plus de bandes beiges latérales. */
    .modal-slide { width: 100%; height: 100%; }
    .modal-slide img { object-fit: cover; }
    .modal-body { padding: 32px 24px; height: auto; overflow-y: visible; }
    .sidebar { width: 100%; }
    .modal-close { top: 14px; left: 14px; }

    /* Topbar mobile : on masque le mot "Retour" (on garde la flèche) et on
       réduit le padding latéral pour libérer de la place — sinon le bouton
       retour, le logo centré et les 3 icônes se chevauchent. */
    .product-topbar { padding: 0 12px; }
    .product-back-btn span { display: none; }
    .product-back-btn { padding: 8px 6px 8px 0; font-size: 1.1rem; }
    .product-topbar-logo { font-size: 1.5rem; }
    .product-topbar-btn { width: 34px; }

    /* Titre au-dessus de la photo (entre topbar et image) ; on masque
       le titre du panneau info devenu redondant. Padding réduit pour ne
       pas créer une bande trop haute. */
    .product-mobile-title {
        display: block;
        margin: 0;
        padding: 8px 24px 10px;
        font-family: var(--font-title);
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 1.15;
        color: var(--text-primary);
        background: #faf8f5;
    }
    .modal-body h2 { display: none; }

    /* Prix + swatches sur une même ligne : swatches à gauche, prix à droite.
       DOM = prix puis swatches → row-reverse pour inverser, space-between
       pour coller aux extrémités. */
    .modal-price-swatches {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .modal-price-swatches .modal-price { margin: 0; }
    .modal-price-swatches .modal-swatches { margin-bottom: 0; }

    /* Badges collection déplacés sous le bouton "Ajouter au panier" en mobile
       (via flex order : le panneau info est un flex column). Le bouton et son
       message de stock gardent l'ordre par défaut (0) ; les collections
       passent en order 1 (juste après), puis set + composition/entretien en
       order 2. Desktop : ordre par défaut, collections restent en haut. */
    .modal-collections {
        order: 1;
        margin-top: 24px;
        margin-bottom: 0;
    }
    .modal-set-promo,
    .modal-info-sections { order: 2; }
}
