/* =========================================================
   BOUTIQUE APO-ART — styles dédiés
   Chargé en plus de style5.css (variables & header réutilisés)
   ========================================================= */

/* ---------- Générique ---------- */
.boutique-page main {
    display: block;
}

button.icon-bag {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px 6px;
    font-family: var(--font-body);
}

.boutique-eyebrow {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: 1px solid #271624;
    color: #271624;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-ghost:hover {
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-gold));
    border-color: transparent;
    color: white;
}

/* Focus clavier visible sur toute la boutique */
.boutique-page a:focus-visible,
.boutique-page button:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- HERO ---------- */
.boutique-hero {
    padding: 165px 5% 50px;
    text-align: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(246, 216, 229, 0.9), transparent 60%),
        radial-gradient(circle at 100% 10%, rgba(221, 234, 252, 0.85), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(255, 246, 224, 0.9), transparent 60%),
        var(--bg-body);
}

.boutique-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.boutique-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--text-main);
    margin: 12px 0 18px;
    line-height: 1.15;
}

.boutique-hero-sub {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.98rem;
}

.boutique-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 30px 0 0;
    padding: 0;
}

.boutique-badges li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(201, 166, 102, 0.3);
    border-radius: 999px;
    padding: 9px 18px;
}

.boutique-badges li i {
    color: var(--accent-pink);
}

.boutique-badges li:nth-child(2) i {
    color: var(--accent-gold);
}

/* ---------- BANDEAU PHOTOS ---------- */
.boutique-strip {
    overflow: hidden;
    padding: 18px 0 26px;
    background: var(--bg-body);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.strip-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.strip-static {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5%;
}

.strip-animated {
    animation: stripScroll 45s linear infinite;
}

.boutique-strip:hover .strip-animated {
    animation-play-state: paused;
}

@keyframes stripScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .strip-animated {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0 5%;
    }
}

.strip-item {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(233, 218, 240, 0.9);
    background: #f9f4fb;
    cursor: zoom-in;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.strip-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(217, 138, 160, 0.3);
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- CATALOGUE ---------- */
.boutique-catalogue {
    padding: 70px 5% 90px;
    background: var(--bg-section);
    scroll-margin-top: 90px;
}

.boutique-catalogue-sub {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Filtres */
.boutique-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(39, 22, 36, 0.35);
    background: transparent;
    color: #271624;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.filter-btn.active {
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-gold));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(217, 138, 160, 0.35);
}

/* Grille */
.boutique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 34px;
    max-width: 1240px;
    margin: 0 auto;
}

.boutique-card {
    background: linear-gradient(145deg, #ffffff, #fff4f9);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(233, 218, 240, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* display:flex écraserait le [hidden] posé par le filtre JS */
.boutique-card[hidden],
.cart-panel[hidden] {
    display: none;
}

.boutique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(217, 138, 160, 0.25);
}

.boutique-card-img {
    position: relative;
    height: 300px;
    background: #f9f4fb;
    overflow: hidden;
}

.card-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.card-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s ease;
}

.boutique-card:hover .card-zoom img {
    transform: scale(1.05);
}

.card-noimg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9c7d2;
    font-size: 2.4rem;
}

/* Badges état */
.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 7px 14px;
    pointer-events: none;
}

.badge-unique {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.badge-sold {
    background: rgba(37, 24, 36, 0.85);
    color: #fff;
}

.boutique-card.is-sold .card-zoom img {
    filter: grayscale(0.55) brightness(0.96);
}

/* Corps de carte */
.boutique-card-body {
    padding: 22px 20px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-category {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--accent-pink);
    letter-spacing: 2px;
}

.boutique-card-body h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: #271624;
    margin: 0;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.card-price {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: #271624;
}

.card-add {
    font-family: var(--font-body);
}

.card-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent;
    color: #271624;
}

.card-add.added {
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-gold));
    border-color: transparent;
    color: white;
}

.boutique-no-result {
    text-align: center;
    color: var(--text-light);
    margin-top: 30px;
    font-style: italic;
}

/* Boutique vide / indisponible */
.boutique-empty {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px;
}

.boutique-empty i {
    font-size: 2.6rem;
    color: var(--accent-pink);
    margin-bottom: 20px;
}

.boutique-empty h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.boutique-empty p {
    color: var(--text-light);
    margin-bottom: 26px;
}

.boutique-empty-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- LIGHTBOX SHOPPABLE ---------- */
/* Barre flottante qui suit le produit affiché dans l'agrandissement */
.lightbox-shop {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 700px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    animation: shopBarIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-shop[hidden] {
    display: none;
}

@keyframes shopBarIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.lightbox-shop-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lightbox-shop-cat {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-pink);
    font-weight: 700;
}

.lightbox-shop-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

.lightbox-shop-price {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.lightbox-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.lightbox-shop-view,
.lightbox-shop-share,
.lightbox-shop-add {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.lightbox-shop-view,
.lightbox-shop-share {
    background: transparent;
    border: 1px solid rgba(39, 22, 36, 0.4);
    color: var(--text-main);
}

.lightbox-shop-view:hover,
.lightbox-shop-share:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.lightbox-shop-add {
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-gold));
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(217, 138, 160, 0.4);
}

.lightbox-shop-add:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(201, 166, 102, 0.45);
}

.lightbox-shop-add:disabled {
    background: #e2d7de;
    color: #8a7b84;
    box-shadow: none;
    cursor: not-allowed;
}

.lightbox-shop-add.added {
    background: linear-gradient(120deg, #7fae7f, #c9a666);
}

/* Le compteur passe en haut sur la boutique pour ne pas gêner la barre */
.boutique-page .lightbox-counter {
    top: 22px;
    bottom: auto;
}

@media (max-width: 600px) {
    .lightbox-shop {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        bottom: 14px;
        padding: 14px;
        text-align: center;
    }

    .lightbox-shop-title {
        white-space: normal;
    }

    .lightbox-shop-actions {
        justify-content: center;
        gap: 8px;
    }

    .lightbox-shop-view,
    .lightbox-shop-share {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.65rem;
    }

    .lightbox-shop-add {
        flex: 1 1 100%;
        justify-content: center;
        padding: 12px 14px;
    }
}

/* Mise en évidence d'une carte après « Voir en détail » */
.boutique-card.card-highlight {
    animation: cardHighlight 2.2s ease;
}

@keyframes cardHighlight {
    0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04); }
    15%, 55% { box-shadow: 0 0 0 3px var(--accent-pink), 0 18px 40px rgba(217, 138, 160, 0.4); }
}

/* ---------- BANDEAU SUR-MESURE ---------- */
.boutique-custom {
    padding: 30px 5% 90px;
    background: var(--bg-section);
}

.boutique-custom-inner {
    max-width: 1080px;
    margin: 0 auto;
    background: linear-gradient(90deg, #fff7e7, #ffe9f2);
    border: 1px solid rgba(201, 166, 102, 0.35);
    border-radius: 24px;
    padding: 40px 44px;
    text-align: center;
}

.boutique-custom-text h2 {
    font-family: var(--font-title);
    font-size: 1.7rem;
    margin: 8px 0 10px;
    color: #2a1824;
}

.boutique-custom-text p {
    margin: 0 auto 22px;
    color: var(--text-light);
    font-size: 0.92rem;
    max-width: 520px;
}

/* ---------- PANIER (panneau latéral) ---------- */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37, 24, 36, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-backdrop.show {
    opacity: 1;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    height: 100dvh;
    width: min(420px, 92vw);
    background: #fffdfc;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: -24px 0 60px rgba(37, 24, 36, 0.18);
    transform: translateX(115%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(201, 166, 102, 0.25);
}

.cart-head h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.cart-count-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-pink);
    font-weight: 600;
    margin-left: 8px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    transition: transform 0.3s, color 0.3s;
}

.cart-close:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

.cart-notice {
    margin: 14px 26px 0;
    padding: 12px 16px;
    background: #fdeff4;
    border: 1px solid rgba(217, 138, 160, 0.4);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.cart-lines {
    flex: 1;
    overflow-y: auto;
    padding: 6px 26px 20px;
}

.cart-line {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed rgba(201, 166, 102, 0.3);
}

.cart-line-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #f9f4fb;
}

.cart-line-info {
    flex: 1;
    min-width: 0;
}

.cart-line-cat {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent-pink);
    letter-spacing: 1.5px;
    display: block;
}

.cart-line-title {
    font-family: var(--font-title);
    font-size: 0.98rem;
    font-weight: 700;
    color: #271624;
    margin: 2px 0 8px;
    line-height: 1.3;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #eadfe6;
    border-radius: 999px;
    padding: 3px;
}

.cart-qty button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.cart-qty button:hover:not(:disabled) {
    background: #fdeff4;
    color: var(--accent-pink);
}

.cart-qty button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-qty .qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.cart-qty-max {
    display: block;
    font-size: 0.62rem;
    color: #a5929f;
    margin-top: 5px;
}

.cart-line-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-line-price {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    color: #271624;
    white-space: nowrap;
}

.cart-line-remove {
    background: none;
    border: none;
    color: #c7b3bf;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.25s;
}

.cart-line-remove:hover {
    color: var(--accent-pink);
}

/* Panier vide */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.cart-empty[hidden] {
    display: none;
}

.cart-empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fdeff4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    font-size: 1.7rem;
}

.cart-empty-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
}

/* Pied du panier */
.cart-foot {
    padding: 18px 26px 24px;
    border-top: 1px solid rgba(201, 166, 102, 0.25);
    background: linear-gradient(180deg, #ffffff, #fff4f9);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.cart-total-row span:first-child {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.cart-total {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.cart-ship-note {
    font-size: 0.72rem;
    color: #a5929f;
    margin: 0 0 16px;
}

.cart-pay {
    width: 100%;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-pay:disabled {
    opacity: 0.7;
    cursor: wait;
}

.cart-secure-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.5;
    color: #a5929f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

/* ---------- PAGE MERCI ---------- */
.merci-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 0% 0%, rgba(246, 216, 229, 0.9), transparent 60%),
        radial-gradient(circle at 100% 10%, rgba(221, 234, 252, 0.85), transparent 55%),
        var(--bg-body);
}

.merci-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 60px;
}

.merci-card {
    background: white;
    border: 1px solid rgba(201, 166, 102, 0.35);
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(217, 138, 160, 0.18);
    max-width: 560px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
}

.merci-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fdeff4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    font-size: 2rem;
    margin: 0 auto 24px;
}

.merci-card h1 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    color: var(--text-main);
    margin-bottom: 14px;
}

.merci-lead {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.merci-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.merci-note {
    font-style: italic;
    font-size: 0.85rem;
}

.merci-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.merci-home-link {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: underline;
}

.merci-home-link:hover {
    color: var(--accent-pink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .boutique-hero {
        padding: 130px 6% 40px;
    }

    /* .boutique-nav est aussi .nav-links : le panneau coulissant mobile de
       style5.css s'applique, ouvert via le burger (toggle dans boutique.js). */

    .boutique-catalogue {
        padding: 50px 5% 70px;
    }

    .boutique-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 22px;
    }

    .boutique-card-img {
        height: 240px;
    }

    .boutique-custom-inner {
        padding: 32px 24px;
    }

    .cart-panel {
        width: 100vw;
    }

    .strip-item {
        width: 92px;
        height: 92px;
    }
}

/* =========================================================
   PAGE PAIEMENT (paiement.php)
   ========================================================= */
.checkout-page header {
    justify-content: space-between;
}

.checkout-secure-tag {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.checkout-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 130px 5% 70px;
}

.checkout-back {
    margin-bottom: 18px;
}

.checkout-back a {
    font-size: 0.82rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-back a:hover {
    color: var(--accent-pink);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

/* --- Récapitulatif --- */
.checkout-recap {
    background: linear-gradient(160deg, #ffffff, #fff4f9);
    border: 1px solid rgba(233, 218, 240, 0.9);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 110px;
}

.checkout-recap h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0 0 18px;
}

.recap-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(201, 166, 102, 0.3);
}

.recap-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f9f4fb;
    flex-shrink: 0;
}

.recap-name {
    flex: 1;
    font-size: 0.86rem;
    color: var(--text-main);
    line-height: 1.35;
}

.recap-price {
    font-family: var(--font-title);
    font-weight: 700;
    color: #271624;
    white-space: nowrap;
}

.recap-empty {
    color: var(--text-light);
    font-style: italic;
    list-style: none;
}

.recap-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 166, 102, 0.35);
    margin-bottom: 14px;
}

.recap-total span:first-child {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.recap-total span:last-child {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-pink);
}

.recap-ship-note {
    font-size: 0.76rem;
    color: var(--text-light);
    line-height: 1.5;
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.recap-ship-note i {
    color: var(--accent-gold);
    margin-top: 2px;
}

/* Mention retours : volontairement très discrète (sous la note d'expédition) */
.recap-unique-note {
    margin-top: -8px;
    font-size: 0.72rem;
    color: #a5929f;
}

.recap-unique-note i {
    color: #c6b6c2;
}

.recap-edit {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recap-edit:hover {
    color: var(--accent-pink);
}

/* --- Formulaire --- */
.checkout-fieldset {
    border: 1px solid rgba(233, 218, 240, 0.9);
    border-radius: 16px;
    padding: 22px 22px 8px;
    margin: 0 0 22px;
    background: var(--bg-section);
}

.checkout-fieldset legend {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--accent-gold);
    padding: 0 10px;
    font-weight: 600;
}

.field {
    margin-bottom: 16px;
}

.field-row {
    display: flex;
    gap: 16px;
}

.field-row .field {
    flex: 1;
}

.field-postal {
    max-width: 140px;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6dbe4;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(217, 138, 160, 0.15);
}

.field input.field-invalid {
    border-color: #d9534f;
    background: #fff6f6;
}

.field-hint {
    display: block;
    font-size: 0.72rem;
    color: #a5929f;
    margin-top: 5px;
}

/* Autocomplétion adresse (BAN) */
.field-autocomplete {
    position: relative;
}

.addr-suggestions {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    position: absolute;
    top: calc(100% - 18px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #e6dbe4;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(37, 24, 36, 0.14);
    max-height: 260px;
    overflow-y: auto;
}

.addr-suggestions[hidden] {
    display: none;
}

.addr-suggestion {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.35;
}

.addr-suggestion:hover,
.addr-suggestion.active {
    background: var(--bg-soft-pink);
    color: var(--accent-pink);
}

/* Cartes acceptées : signal de confiance discret au-dessus du champ carte */
.accepted-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.85rem;
    line-height: 1;
    color: #c6b6c2;
    margin: 2px 0 12px;
}

.accepted-cards i {
    transition: color 0.2s;
}

/* Conteneur carte Square (iframe) */
#card-container {
    min-height: 60px;
    margin-bottom: 12px;
}

.checkout-secure-note {
    font-size: 0.74rem;
    color: var(--text-light);
    line-height: 1.5;
    display: flex;
    gap: 8px;
    margin: 4px 0 8px;
}

.checkout-secure-note i {
    color: var(--accent-gold);
    margin-top: 2px;
}

/* Liens de réassurance vers Square (page panier + page paiement) */
.checkout-secure-note a,
.cart-secure-note a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    white-space: nowrap;
}

.checkout-secure-note a:hover,
.cart-secure-note a:hover {
    color: var(--accent-pink);
}

.checkout-status {
    min-height: 1.2em;
    font-size: 0.88rem;
    margin: 4px 0 14px;
    padding: 0;
}

.checkout-status.is-error {
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 12px 14px;
}

.checkout-status.is-info {
    color: var(--text-light);
}

.checkout-pay {
    width: 100%;
    border-radius: 30px;
    padding: 16px;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-pay:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- Portefeuilles (Apple Pay / Google Pay) ---------- */
.wallet-section {
    margin-bottom: 14px;
}

.wallet-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.wallet-hint i {
    color: var(--accent-gold);
}

/* Bouton Apple Pay : rendu natif par Safari (non supporté ailleurs -> masqué en JS). */
.apple-pay-button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: buy;
    -apple-pay-button-style: black;
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 30px;
    margin-bottom: 10px;
    cursor: pointer;
}

.apple-pay-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Conteneur du bouton Google Pay (rendu par le SDK Square via attach()). */
.google-pay-button {
    width: 100%;
    min-height: 48px;
    margin-bottom: 4px;
    cursor: pointer;
}

.google-pay-button:empty {
    min-height: 0;
    margin-bottom: 0;
}

.wallet-divider {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin: 16px 0 4px;
    color: var(--text-light);
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wallet-divider::before,
.wallet-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(233, 218, 240, 0.9);
}

.checkout-config-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.checkout-config-error i {
    font-size: 2.4rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.checkout-config-error p {
    margin-bottom: 22px;
}

@media (max-width: 820px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-recap {
        position: static;
    }
}

@media (max-width: 480px) {
    .checkout-main {
        padding: 110px 5% 50px;
    }

    .field-row {
        flex-direction: column;
        gap: 0;
    }

    .field-postal {
        max-width: none;
    }

    .checkout-secure-tag span,
    .checkout-secure-tag {
        font-size: 0.7rem;
    }
}


/* =========================================================
   BLOC PRODUIT SSR (SEO)
   ========================================================= */
.boutique-breadcrumb {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.boutique-breadcrumb a {
    text-decoration: underline;
}
.boutique-breadcrumb a:hover {
    color: var(--accent-pink);
}

.product-ssr {
    margin: 30px auto;
    max-width: 750px;
    text-align: left;
    background: var(--bg-section);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.product-ssr-img {
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    max-width: 100%;
    flex-basis: 300px;
    flex-grow: 1;
}
.product-ssr-details {
    flex: 1;
    min-width: 250px;
}
.product-ssr-desc {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}
.product-ssr-price {
    font-size: 1.4rem;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}
.product-ssr-stock {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}
.product-ssr-stock.in-stock { color: #2e7d32; }
.product-ssr-stock.out-of-stock { color: #d32f2f; }
.product-ssr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-ssr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    text-decoration: none;
    white-space: nowrap;
}

.product-ssr-btn-add {
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-gold));
    color: white;
    border: none;
    box-shadow: 0 12px 28px rgba(217, 138, 160, 0.4);
}

.product-ssr-btn-add:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(201, 166, 102, 0.45);
    color: white;
}

.product-ssr-btn-add.added {
    background: linear-gradient(120deg, #7fae7f, #c9a666);
}

.product-ssr-btn-sold {
    background: #e2d7de;
    color: #8a7b84;
    border: none;
    box-shadow: none;
    cursor: not-allowed;
}

.product-ssr-btn-browse {
    background: transparent;
    border: 1.5px solid rgba(39, 22, 36, 0.35);
    color: var(--text-main);
}

.product-ssr-btn-browse:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .product-ssr-actions {
        flex-direction: column;
    }
    .product-ssr-btn {
        width: 100%;
        justify-content: center;
    }
}

