/**
 * Storefront Scan-First — vitrine universelle Mary
 *
 * Refonte 2026-05-15 : remplace le pattern hero/nav/footer marketing par un
 * châssis unique scan-first (le client a scanné un QR, il agit, il finit).
 *
 * Préfixe : `.shop-*` (distinct de l'ancien `.sf-*` qui reste chargé pour
 * rollback safe). Quand on aura validé, supprimer storefront.css.
 *
 * Mobile-first. Breakpoint PC à 900 px (grille 3 cols + panier sidebar).
 *
 * Variables :
 *  --shop-brand        : couleur primaire (injectée inline via base template)
 *  --shop-brand-soft   : 8% du brand sur fond gris
 *  --shop-brand-shadow : ombre verte douce sur les CTAs
 */

:root {
    --shop-brand: #10b981;
    --shop-brand-soft: color-mix(in srgb, var(--shop-brand) 8%, #f5f5f7);
    --shop-brand-shadow: color-mix(in srgb, var(--shop-brand) 30%, transparent);
    --shop-text: #1d1d1f;
    --shop-text-muted: #6b7280;
    --shop-text-quiet: #9ca3af;
    --shop-bg: #fafafa;
    --shop-surface: #fff;
    --shop-border: rgba(0, 0, 0, 0.06);
    --shop-radius-card: 14px;
    --shop-radius-pill: 12px;
    --shop-radius-button: 12px;
    --shop-shadow-card: 0 1px 3px rgba(0,0,0,0.04);
    --shop-shadow-card-hover: 0 8px 24px rgba(0,0,0,0.06);
}

/* ===== RESET LOCAL ===== */
.shop-storefront *,
.shop-storefront *::before,
.shop-storefront *::after { box-sizing: border-box; }

.shop-storefront {
    margin: 0;
    background: var(--shop-bg);
    color: var(--shop-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER (44px mobile / 56px desktop)
   ============================================================ */
.shop-h {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--shop-border);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 44px;
}
@media (min-width: 900px) {
    .shop-h { padding: 12px 32px; min-height: 56px; gap: 14px; }
}

.shop-h__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--shop-text);
    min-width: 0;
}
@media (min-width: 900px) {
    .shop-h__brand { gap: 12px; }
}

.shop-h__mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--shop-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.005em;
}
.shop-h__mark img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
@media (min-width: 900px) {
    .shop-h__mark { width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
    .shop-h__mark img { border-radius: 10px; }
}

.shop-h__title {
    display: flex; flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.shop-h__name {
    font-size: 14px; font-weight: 700;
    color: var(--shop-text);
    letter-spacing: -0.012em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 900px) { .shop-h__name { font-size: 17px; letter-spacing: -0.015em; } }
.shop-h__sub {
    font-size: 10px;
    color: var(--shop-text-muted);
    margin-top: 1px;
}
@media (min-width: 900px) { .shop-h__sub { font-size: 12px; } }

.shop-h__spacer { flex: 1; }

.shop-h__badge {
    padding: 4px 10px;
    background: var(--shop-brand);
    color: #fff;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    flex-shrink: 0;
    letter-spacing: -0.005em;
}
@media (min-width: 900px) { .shop-h__badge { padding: 5px 12px; font-size: 12px; } }

/* Search input — PC seulement (mobile passe par l'icône) */
.shop-h__search {
    display: none;
}
@media (min-width: 900px) {
    .shop-h__search {
        display: block;
        width: 220px;
        padding: 7px 12px;
        background: rgba(120, 120, 128, 0.10);
        border: 0;
        border-radius: 999px;
        color: var(--shop-text);
        font-size: 13px;
        font-family: inherit;
        letter-spacing: -0.005em;
    }
    .shop-h__search::placeholder { color: var(--shop-text-muted); }
    .shop-h__search:focus {
        outline: 2px solid var(--shop-brand-shadow);
        background: #fff;
    }
}

.shop-h__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.10);
    color: #4b5563;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.shop-h__icon:hover { background: rgba(120, 120, 128, 0.18); }
.shop-h__icon svg { display: block; }
.shop-h__icon-badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    background: var(--shop-brand);
    color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 0 2px #fff;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   TABS CATÉGORIES (sticky sous header)
   ============================================================ */
.shop-tabs {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--shop-border);
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 44px;
    z-index: 25;
}
@media (min-width: 900px) {
    .shop-tabs { padding: 10px 32px; top: 56px; gap: 6px; }
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs__btn {
    flex-shrink: 0;
    padding: 5px 11px;
    background: rgba(120, 120, 128, 0.10);
    color: var(--shop-text);
    border: 0;
    border-radius: 999px;
    font-size: 11px; font-weight: 500;
    letter-spacing: -0.008em;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}
@media (min-width: 900px) { .shop-tabs__btn { padding: 7px 16px; font-size: 13px; } }
.shop-tabs__btn--active {
    background: var(--shop-text);
    color: #fff;
    font-weight: 600;
}
.shop-tabs__btn:hover:not(.shop-tabs__btn--active) {
    background: rgba(120, 120, 128, 0.18);
}

/* ============================================================
   MAIN LAYOUT (mobile = stack ; desktop = grid + sidebar)
   ============================================================ */
.shop-main {
    display: flex;
    flex-direction: column;
}
@media (min-width: 900px) {
    .shop-main {
        display: grid;
        grid-template-columns: 1fr 380px;
        align-items: stretch;
        /* Hauteur min calculée pour que la sidebar fasse toute la hauteur */
        min-height: calc(100vh - 56px);
    }
}

.shop-content {
    padding: 14px 12px 100px;  /* padding-bottom mobile = laisse place au CTA sticky */
}
@media (min-width: 900px) {
    .shop-content {
        padding: 24px 32px;
        overflow-y: auto;
    }
}

/* Section header inline (À partager, Individuelles…) */
.shop-section-h {
    font-size: 10px; font-weight: 700;
    color: var(--shop-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.shop-section-h:not(:first-child) { margin-top: 20px; }
@media (min-width: 900px) {
    .shop-section-h { font-size: 12px; margin-bottom: 14px; }
    .shop-section-h:not(:first-child) { margin-top: 28px; }
}

/* ============================================================
   GRID ITEMS (universel produit/prestation/création/devis)
   ============================================================ */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } }
@media (min-width: 900px) { .shop-grid { grid-template-columns: 1fr 1fr 1fr; gap: 14px; } }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.shop-item {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-card);
    overflow: hidden;
    border: 0.5px solid var(--shop-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shop-shadow-card);
    position: relative;
}
.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-card-hover);
}
/* Le <a> couvre photo + body, le foot reste hors du link (form valide). */
.shop-item__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.shop-item__add-form {
    display: inline-flex;
    margin: 0;
}

.shop-item__media {
    aspect-ratio: 1 / 1;
    background: var(--shop-brand-soft);
    color: var(--shop-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 900px) {
    .shop-item__media { aspect-ratio: 4 / 3; }
}
.shop-item__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.shop-item__placeholder {
    font-size: 22px;
    font-weight: 700;
    opacity: 0.4;
}
@media (min-width: 900px) { .shop-item__placeholder { font-size: 32px; } }

.shop-item__badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--shop-brand);
    border-radius: 999px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}
.shop-item__badge--promo {
    background: #dc2626;
    color: #fff;
}
.shop-item__badge--rupture {
    background: rgba(120, 120, 128, 0.16);
    color: #4b5563;
}

.shop-item__body { padding: 8px 10px 4px; }
@media (min-width: 900px) { .shop-item__body { padding: 10px 12px 4px; } }
.shop-item__name {
    font-size: 13px; font-weight: 600;
    color: var(--shop-text);
    line-height: 1.3;
    letter-spacing: -0.008em;
    margin: 0;
}
@media (min-width: 900px) { .shop-item__name { font-size: 14px; } }
.shop-item__sub {
    font-size: 11px;
    color: var(--shop-text-muted);
    margin-top: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 900px) { .shop-item__sub { font-size: 12px; } }

.shop-item__foot {
    padding: 0 10px 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
@media (min-width: 900px) { .shop-item__foot { padding: 0 12px 12px; } }
.shop-item__price {
    font-size: 14px; font-weight: 700;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.012em;
}
.shop-item__price--old {
    font-size: 11px; font-weight: 500;
    color: var(--shop-text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}
.shop-item__price--devis {
    font-size: 12px; font-weight: 600;
    color: var(--shop-text-muted);
    letter-spacing: -0.005em;
}

.shop-item__add {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--shop-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; font-weight: 400;
    border: 0;
    box-shadow: 0 3px 8px var(--shop-brand-shadow);
    line-height: 1;
    cursor: pointer;
    transition: transform 0.1s ease;
    flex-shrink: 0;
}
.shop-item__add:hover { transform: scale(1.05); }
.shop-item__add:active { transform: scale(0.95); }
.shop-item__add:disabled {
    background: var(--shop-text-quiet);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ============================================================
   PANIER (mobile = CTA sticky bottom ; desktop = sidebar)
   ============================================================ */

/* MOBILE : CTA sticky qui ouvre une sheet/route panier */
.shop-cta-mobile {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--shop-border);
    z-index: 20;
    display: block;
}
@media (min-width: 900px) { .shop-cta-mobile { display: none; } }

.shop-cta-mobile__btn {
    width: 100%;
    height: 48px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 15px; font-weight: 600;
    letter-spacing: -0.012em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 8px 20px var(--shop-brand-shadow);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.1s ease;
}
.shop-cta-mobile__btn:active { transform: translateY(1px); }
.shop-cta-mobile__btn--empty {
    background: rgba(120, 120, 128, 0.18);
    color: var(--shop-text-muted);
    box-shadow: none;
    cursor: default;
}
.shop-cta-mobile__sep { opacity: 0.6; }

/* DESKTOP : panier sidebar 380 px à droite */
.shop-cart {
    display: none;
    background: var(--shop-surface);
    border-left: 1px solid var(--shop-border);
    flex-direction: column;
    position: sticky;
    top: 56px;
    align-self: start;
    height: calc(100vh - 56px);
}
@media (min-width: 900px) { .shop-cart { display: flex; } }

.shop-cart__head {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--shop-border);
    flex-shrink: 0;
}
.shop-cart__title {
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--shop-text);
    margin: 0;
}
.shop-cart__sub {
    font-size: 12px;
    color: var(--shop-text-muted);
    margin-top: 2px;
}
.shop-cart__list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.shop-cart__row {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    align-items: center;
}
.shop-cart__row:hover { background: var(--shop-bg); }
.shop-cart__row-qty {
    min-width: 28px;
    font-size: 13px; font-weight: 700;
    color: var(--shop-brand);
    font-variant-numeric: tabular-nums;
}
.shop-cart__row-body { flex: 1; min-width: 0; }
.shop-cart__row-name {
    font-size: 13px; font-weight: 500;
    color: var(--shop-text);
    letter-spacing: -0.005em;
}
.shop-cart__row-meta {
    font-size: 11px;
    color: var(--shop-text-quiet);
    margin-top: 1px;
}
.shop-cart__row-price {
    font-size: 13px; font-weight: 600;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
}
.shop-cart__empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--shop-text-quiet);
}
.shop-cart__empty-icon { font-size: 32px; opacity: 0.4; margin-bottom: 8px; }
.shop-cart__empty-title {
    font-size: 14px; font-weight: 500;
    color: #515154;
    margin: 6px 0 4px;
}
.shop-cart__empty-sub {
    font-size: 12px;
    color: var(--shop-text-muted);
}

.shop-cart__foot {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--shop-border);
    background: var(--shop-surface);
    flex-shrink: 0;
}
.shop-cart__totals { padding: 4px 0 14px; }
.shop-cart__total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--shop-text-muted);
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
}
.shop-cart__total-row--main {
    font-size: 17px; font-weight: 700;
    color: var(--shop-text);
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--shop-border);
    letter-spacing: -0.015em;
}

.shop-cart__cta {
    width: 100%;
    height: 48px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px; font-weight: 600;
    letter-spacing: -0.012em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 6px 18px var(--shop-brand-shadow);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.1s ease;
}
.shop-cart__cta:hover { transform: translateY(-1px); }
.shop-cart__cta:active { transform: translateY(0); }
.shop-cart__cta--empty {
    background: rgba(120, 120, 128, 0.18);
    color: var(--shop-text-muted);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}
.shop-cart__cta-sep { opacity: 0.6; }
.shop-cart__hint {
    text-align: center;
    font-size: 11px;
    color: var(--shop-text-quiet);
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* ============================================================
   EMPTY STATE (grille vide)
   ============================================================ */
.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 32px;
    color: var(--shop-text-muted);
}
.shop-empty p { font-size: 14px; margin: 12px 0 16px; }
.shop-empty a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--shop-text);
    color: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   PAGINATION (centrée discrète, scan-first = peu de pages)
   ============================================================ */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    margin-top: 16px;
}
.shop-pagination__btn {
    padding: 6px 12px;
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    color: var(--shop-text);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.shop-pagination__btn--current {
    background: var(--shop-text);
    color: #fff;
    border-color: var(--shop-text);
    font-weight: 600;
}
.shop-pagination__btn:hover:not(.shop-pagination__btn--current) {
    background: var(--shop-bg);
}

/* ============================================================
   TOAST (notifications éphémères)
   ============================================================ */
.shop-toast-container {
    position: fixed;
    bottom: 80px;
    left: 12px; right: 12px;
    z-index: 100;
    display: flex; flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
@media (min-width: 900px) {
    .shop-toast-container {
        bottom: 20px;
        left: auto;
        right: 20px;
        max-width: 360px;
    }
}
.shop-toast {
    background: var(--shop-text);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    pointer-events: auto;
    animation: shopToastIn .25s ease-out;
}
.shop-toast--success { background: var(--shop-brand); }
.shop-toast--error { background: #dc2626; }
.shop-toast-hide { animation: shopToastOut .2s ease-in forwards; }
@keyframes shopToastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes shopToastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* ============================================================
   FICHE PRODUIT (.shop-detail)
   ============================================================ */
.shop-detail {
    padding: 0 0 100px;  /* place pour CTA sticky mobile */
}
@media (min-width: 900px) {
    .shop-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px 32px;
        align-items: start;
    }
}

/* ─── Média : photo + galerie + back button ─── */
.shop-detail__media {
    position: relative;
    background: var(--shop-surface);
}
@media (min-width: 900px) {
    .shop-detail__media {
        position: sticky;
        top: 72px;  /* sous le header 56px + marge */
        border-radius: var(--shop-radius-card);
        overflow: hidden;
        border: 0.5px solid var(--shop-border);
    }
}

.shop-detail__back {
    position: absolute;
    top: 12px; left: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--shop-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
@media (min-width: 900px) { .shop-detail__back { display: none; } }

.shop-detail__hero {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--shop-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 900px) { .shop-detail__hero { aspect-ratio: 4 / 3; } }
.shop-detail__hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.shop-detail__hero-placeholder {
    font-size: 80px;
    font-weight: 700;
    color: var(--shop-brand);
    opacity: 0.4;
    letter-spacing: -0.04em;
}

.shop-detail__badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--shop-brand);
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 4;
}
.shop-detail__badge--promo { background: #dc2626; color: #fff; }
.shop-detail__badge--rupture { background: rgba(120, 120, 128, 0.16); color: #4b5563; }

.shop-detail__gallery {
    display: flex;
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--shop-surface);
}
.shop-detail__gallery::-webkit-scrollbar { display: none; }
.shop-detail__thumb {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.shop-detail__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.shop-detail__thumb--active { border-color: var(--shop-brand); }
@media (min-width: 900px) {
    .shop-detail__thumb { width: 72px; height: 72px; }
}

/* ─── Info : nom, prix, desc, sections ─── */
.shop-detail__info {
    padding: 20px 16px 0;
}
@media (min-width: 900px) {
    .shop-detail__info {
        padding: 0;
        max-width: 520px;
    }
}

.shop-detail__name {
    font-size: 22px;
    font-weight: 700;
    color: var(--shop-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 4px;
}
@media (min-width: 900px) { .shop-detail__name { font-size: 32px; letter-spacing: -0.025em; } }

.shop-detail__category {
    font-size: 12px;
    color: var(--shop-text-muted);
    margin: 0 0 14px;
}
.shop-detail__category a {
    color: var(--shop-text-muted);
    text-decoration: none;
}
.shop-detail__category a:hover { color: var(--shop-text); }

.shop-detail__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.shop-detail__price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
@media (min-width: 900px) { .shop-detail__price-current { font-size: 28px; } }
.shop-detail__price-old {
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.shop-detail__desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}
.shop-detail__desc p { margin: 0 0 10px; }
.shop-detail__desc p:last-child { margin-bottom: 0; }

.shop-detail__stock {
    font-size: 12px;
    color: var(--shop-brand);
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.shop-detail__stock--low { color: #d97706; }
.shop-detail__stock--out { color: #dc2626; }

/* ─── Variants ─── */
.shop-detail__variants { margin-bottom: 16px; }
.shop-detail__variant-group { margin-bottom: 12px; }
.shop-detail__variant-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.shop-detail__variant-options {
    display: flex; flex-wrap: wrap;
    gap: 6px;
}
.shop-detail__variant-btn {
    padding: 8px 14px;
    background: rgba(120, 120, 128, 0.10);
    color: var(--shop-text);
    border: 0;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.008em;
}
.shop-detail__variant-btn:hover { background: rgba(120, 120, 128, 0.18); }
.shop-detail__variant-btn--active {
    background: var(--shop-text);
    color: #fff;
    font-weight: 600;
}
.shop-detail__variant-status {
    font-size: 12px;
    color: var(--shop-text-muted);
    margin: 8px 0 0;
}

/* ─── CTA form (qty + bouton ajouter) ─── */
.shop-detail__cta-form {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.shop-detail__qty {
    display: inline-flex;
    align-items: center;
    background: rgba(120, 120, 128, 0.10);
    border-radius: 12px;
    padding: 2px;
    flex-shrink: 0;
}
.shop-detail__qty-btn {
    width: 36px; height: 40px;
    background: transparent;
    border: 0;
    color: var(--shop-text);
    font-size: 18px; font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    font-family: inherit;
}
.shop-detail__qty-btn:hover { background: rgba(255, 255, 255, 0.6); }
.shop-detail__qty-input {
    width: 36px;
    height: 40px;
    background: transparent;
    border: 0;
    text-align: center;
    font-size: 15px; font-weight: 700;
    color: var(--shop-text);
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.shop-detail__cta {
    flex: 1;
    height: 44px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 14px; font-weight: 600;
    letter-spacing: -0.012em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 6px 16px var(--shop-brand-shadow);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.1s ease;
}
.shop-detail__cta:hover { transform: translateY(-1px); }
.shop-detail__cta:active { transform: translateY(0); }
.shop-detail__cta:disabled {
    background: rgba(120, 120, 128, 0.18);
    color: var(--shop-text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.shop-detail__cta-sep { opacity: 0.6; }
.shop-detail__cta--outline {
    background: transparent;
    color: var(--shop-text);
    border: 1px solid var(--shop-border);
    box-shadow: none;
    width: 100%;
    margin-bottom: 14px;
}
.shop-detail__cta--outline:hover { background: var(--shop-bg); transform: none; }

/* ─── Sections expandables (<details>) ─── */
.shop-detail__details {
    border-top: 1px solid var(--shop-border);
    padding: 14px 0;
}
.shop-detail__details summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.008em;
}
.shop-detail__details summary::-webkit-details-marker { display: none; }
.shop-detail__details summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--shop-text-muted);
    margin-left: 12px;
}
.shop-detail__details[open] summary::after { content: '−'; }

.shop-detail__details-body {
    padding-top: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
}
.shop-detail__details-body p { margin: 0 0 8px; }
.shop-detail__details-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--shop-text);
    border-top: 1px solid var(--shop-border);
}
.shop-detail__details-row:first-child { border-top: 0; }
.shop-detail__details-row span:first-child { color: var(--shop-text-muted); }

/* CTA sticky mobile sur la fiche : masqué PC */
.shop-cta-mobile--detail { display: block; }
@media (min-width: 900px) { .shop-cta-mobile--detail { display: none; } }

/* ============================================================
   PAGE PANIER (.shop-cart-page) — vue dédiée /panier/
   ============================================================ */
.shop-cart-page {
    padding: 16px 16px 100px;
}
@media (min-width: 900px) {
    .shop-cart-page {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 32px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px;
        align-items: start;
    }
}

.shop-cart-page__items-col { min-width: 0; }

.shop-cart-page__head {
    margin-bottom: 18px;
}
.shop-cart-page__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--shop-text);
    letter-spacing: -0.022em;
    margin: 0 0 4px;
}
@media (min-width: 900px) { .shop-cart-page__title { font-size: 32px; } }
.shop-cart-page__count {
    font-size: 13px;
    color: var(--shop-text-muted);
    margin: 0;
}

/* ─── Items list ─── */
.shop-cart-page__items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: var(--shop-radius-card);
}
.shop-cart-page__item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid var(--shop-border);
    align-items: center;
}
.shop-cart-page__item:first-child { border-top: 0; }
@media (min-width: 600px) {
    .shop-cart-page__item { grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px; }
}

.shop-cart-page__item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--shop-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-brand);
    font-size: 22px; font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}
@media (min-width: 600px) {
    .shop-cart-page__item-img { width: 88px; height: 88px; }
}
.shop-cart-page__item-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.shop-cart-page__item-body { min-width: 0; }
.shop-cart-page__item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text);
    text-decoration: none;
    letter-spacing: -0.008em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-cart-page__item-name:hover { color: var(--shop-brand); }
.shop-cart-page__item-unit {
    font-size: 12px;
    color: var(--shop-text-muted);
    margin: 0 0 8px;
    font-variant-numeric: tabular-nums;
}

.shop-cart-page__item-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(120, 120, 128, 0.10);
    border-radius: 10px;
    padding: 2px;
    width: fit-content;
}
.shop-cart-page__qty-form { margin: 0; display: contents; }
.shop-cart-page__item-qty button {
    width: 30px; height: 32px;
    background: transparent;
    border: 0;
    color: var(--shop-text);
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
}
.shop-cart-page__item-qty button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.6); }
.shop-cart-page__item-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.shop-cart-page__qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
}

.shop-cart-page__item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.shop-cart-page__item-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.012em;
}
@media (min-width: 600px) { .shop-cart-page__item-total { font-size: 17px; } }
.shop-cart-page__remove-form { margin: 0; }
.shop-cart-page__remove {
    background: transparent;
    border: 0;
    color: var(--shop-text-quiet);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shop-cart-page__remove:hover { color: #dc2626; background: rgba(220, 38, 38, 0.08); }

.shop-cart-page__continue {
    display: inline-block;
    font-size: 13px;
    color: var(--shop-text-muted);
    text-decoration: none;
    margin-top: 14px;
}
.shop-cart-page__continue:hover { color: var(--shop-text); }

/* ─── Summary (aside droite PC / inline bas mobile) ─── */
.shop-cart-page__summary {
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: var(--shop-radius-card);
    padding: 20px;
    margin-top: 20px;
}
@media (min-width: 900px) {
    .shop-cart-page__summary {
        position: sticky;
        top: 72px;
        margin-top: 0;
    }
}

.shop-cart-page__coupon {
    border-bottom: 1px solid var(--shop-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.shop-cart-page__coupon summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.005em;
}
.shop-cart-page__coupon summary::-webkit-details-marker { display: none; }
.shop-cart-page__coupon summary::after { content: '+'; color: var(--shop-text-muted); font-weight: 400; }
.shop-cart-page__coupon[open] summary::after { content: '−'; }

.shop-cart-page__coupon-body { padding-top: 12px; }
.shop-cart-page__coupon-form {
    display: flex;
    gap: 6px;
    margin: 0;
}
.shop-cart-page__coupon-input {
    flex: 1;
    padding: 9px 12px;
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--shop-text);
    font-family: inherit;
}
.shop-cart-page__coupon-input:focus { outline: 2px solid var(--shop-brand-shadow); border-color: var(--shop-brand); }
.shop-cart-page__coupon-apply {
    padding: 9px 14px;
    background: var(--shop-text);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.shop-cart-page__coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--shop-brand) 8%, transparent);
    color: var(--shop-brand);
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    margin: 0;
}
.shop-cart-page__coupon-remove {
    background: transparent;
    border: 0;
    color: var(--shop-brand);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.shop-cart-page__totals { margin-bottom: 16px; }
.shop-cart-page__total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--shop-text-muted);
    font-variant-numeric: tabular-nums;
}
.shop-cart-page__total-row--discount { color: var(--shop-brand); font-weight: 500; }
.shop-cart-page__total-row--main {
    font-size: 17px;
    font-weight: 700;
    color: var(--shop-text);
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--shop-border);
    letter-spacing: -0.015em;
}

.shop-cart-page__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.012em;
    text-decoration: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 6px 16px var(--shop-brand-shadow);
    cursor: pointer;
    transition: transform 0.1s ease;
}
.shop-cart-page__cta:hover { transform: translateY(-1px); }
.shop-cart-page__cta-sep { opacity: 0.6; }

.shop-cta-mobile--cart { display: block; }
@media (min-width: 900px) { .shop-cta-mobile--cart { display: none; } }

/* ============================================================
   DEMANDE DE DEVIS (.shop-devis) — form 4 champs + aside pro
   ============================================================ */
.shop-devis {
    padding: 16px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@media (min-width: 900px) {
    .shop-devis {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 32px;
        padding-bottom: 32px;
        align-items: start;
    }
}

.shop-devis__form-col { min-width: 0; }

.shop-devis__back {
    display: inline-block;
    font-size: 13px;
    color: var(--shop-text-muted);
    text-decoration: none;
    margin-bottom: 14px;
}
.shop-devis__back:hover { color: var(--shop-text); }

.shop-devis__head {
    margin-bottom: 18px;
}
.shop-devis__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--shop-text);
    letter-spacing: -0.022em;
    margin: 0 0 4px;
}
@media (min-width: 900px) { .shop-devis__title { font-size: 32px; letter-spacing: -0.025em; } }
.shop-devis__subtitle {
    font-size: 14px;
    color: var(--shop-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Carte produit concerné ─── */
.shop-devis__product {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: var(--shop-radius-card);
    margin-bottom: 18px;
}
.shop-devis__product-img {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--shop-brand-soft);
    color: var(--shop-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; font-weight: 700;
    flex-shrink: 0;
}
.shop-devis__product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.shop-devis__product-body { flex: 1; min-width: 0; }
.shop-devis__product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text);
    letter-spacing: -0.008em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-devis__product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.shop-devis__product-unit {
    font-size: 11px;
    color: var(--shop-text-quiet);
    font-weight: 400;
}
.shop-devis__product-price--devis {
    color: var(--shop-text-muted);
    font-weight: 500;
}

/* ─── Form ─── */
.shop-devis__form {
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: var(--shop-radius-card);
    padding: 18px;
}
@media (min-width: 900px) { .shop-devis__form { padding: 24px; } }

.shop-devis__fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
}
.shop-devis__fieldset:last-of-type { margin-bottom: 0; }

.shop-devis__legend {
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0;
}

.shop-devis__field {
    margin-bottom: 12px;
}
.shop-devis__field:last-child { margin-bottom: 0; }

.shop-devis__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .shop-devis__row { grid-template-columns: 1fr; gap: 0; }
    .shop-devis__row .shop-devis__field { margin-bottom: 12px; }
}

.shop-devis__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.shop-devis__req { color: #dc2626; font-weight: 600; }
.shop-devis__optional {
    color: var(--shop-text-quiet);
    font-weight: 400;
    font-size: 11px;
}

.shop-devis__input,
.shop-devis__textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--shop-text);
    font-family: inherit;
    letter-spacing: -0.005em;
    transition: border-color 0.15s, background 0.15s;
}
.shop-devis__textarea {
    min-height: 100px;
    line-height: 1.5;
    resize: vertical;
}
.shop-devis__input:focus,
.shop-devis__textarea:focus {
    outline: 2px solid var(--shop-brand-shadow);
    border-color: var(--shop-brand);
    background: var(--shop-surface);
}
.shop-devis__input::placeholder,
.shop-devis__textarea::placeholder { color: var(--shop-text-quiet); }
.shop-devis__input--narrow { max-width: 160px; }

.shop-devis__submit {
    display: none;  /* mobile : remplacé par CTA sticky */
    width: 100%;
    height: 48px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.012em;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 6px 16px var(--shop-brand-shadow);
    margin-top: 18px;
    transition: transform 0.1s ease;
}
@media (min-width: 900px) { .shop-devis__submit { display: block; } }
.shop-devis__submit:hover { transform: translateY(-1px); }
.shop-devis__submit:active { transform: translateY(0); }

/* ─── Aside pro ─── */
.shop-devis__aside { }
@media (min-width: 900px) {
    .shop-devis__aside {
        position: sticky;
        top: 72px;
    }
}

.shop-devis__pro-card {
    background: var(--shop-surface);
    border: 0.5px solid var(--shop-border);
    border-radius: var(--shop-radius-card);
    padding: 20px;
}
.shop-devis__pro-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--shop-text);
    margin: 0 0 4px;
    letter-spacing: -0.012em;
}
.shop-devis__pro-tagline {
    font-size: 12px;
    color: var(--shop-text-muted);
    margin: 0 0 14px;
    line-height: 1.4;
}

.shop-devis__pro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-devis__pro-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--shop-border);
    font-size: 13px;
}
.shop-devis__pro-row:first-child { border-top: 0; padding-top: 0; }
.shop-devis__pro-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--shop-brand-soft);
    color: var(--shop-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.shop-devis__pro-row-title {
    font-weight: 600;
    color: var(--shop-text);
    letter-spacing: -0.005em;
}
.shop-devis__pro-row-title a {
    color: var(--shop-text);
    text-decoration: none;
}
.shop-devis__pro-row-title a:hover { color: var(--shop-brand); }
.shop-devis__pro-row-sub {
    font-size: 11px;
    color: var(--shop-text-muted);
    margin-top: 1px;
}

.shop-cta-mobile--devis { display: block; }
@media (min-width: 900px) { .shop-cta-mobile--devis { display: none; } }

/* ─── Empty state ─── */
.shop-cart-page__empty {
    text-align: center;
    padding: 80px 32px;
    max-width: 480px;
    margin: 0 auto;
}
.shop-cart-page__empty-icon {
    font-size: 48px;
    color: var(--shop-text-quiet);
    margin-bottom: 16px;
    opacity: 0.6;
}
.shop-cart-page__empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--shop-text);
    letter-spacing: -0.018em;
    margin: 0 0 6px;
}
.shop-cart-page__empty-sub {
    font-size: 14px;
    color: var(--shop-text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}
.shop-cart-page__empty-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--shop-brand);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px var(--shop-brand-shadow);
}

/* ============================================================
   FOOTER (minimal — scan-first = pas de découverte tunnel)
   ============================================================ */
.shop-foot {
    padding: 32px 16px 20px;
    background: var(--shop-surface);
    border-top: 1px solid var(--shop-border);
    color: var(--shop-text-muted);
    font-size: 12px;
    line-height: 1.6;
}
.shop-foot__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 900px) {
    .shop-foot {
        padding: 40px 32px 24px;
    }
    .shop-foot__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.shop-foot__brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text);
}
.shop-foot__contact {
    display: flex; flex-wrap: wrap;
    gap: 4px 14px;
}
.shop-foot__contact a {
    color: var(--shop-text-muted);
    text-decoration: none;
}
.shop-foot__contact a:hover { color: var(--shop-text); }
.shop-foot__powered {
    font-size: 11px;
    color: var(--shop-text-quiet);
}
.shop-foot__powered a {
    color: var(--shop-text-muted);
    text-decoration: none;
}
.shop-foot__powered strong { color: var(--shop-text); font-weight: 600; }

/* ============================================================
   POWERED BY MARY (badge flottant — discret)
   ============================================================ */
.shop-powered {
    display: none;  /* la mention en footer suffit, pas de badge flottant */
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.shop-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.shop-skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--shop-text);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    z-index: 100;
    font-size: 13px; font-weight: 600;
}
.shop-skip-link:focus { top: 8px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .shop-item,
    .shop-item__add,
    .shop-cart__cta,
    .shop-cta-mobile__btn,
    .shop-toast { transition: none; animation: none; }
}

/* ============================================================
   Pages légales (CGV, mentions, confidentialité, rétractation)
   + liens légaux du footer. 2026-06-11.
   ============================================================ */
.shop-legal { max-width: 760px; margin: 0 auto; padding: 24px 18px 60px; font-size: 14.5px; line-height: 1.65; color: #3a3a3c; }
.shop-legal h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #1d1d1f; margin: 18px 0 6px; }
.shop-legal h2 { font-size: 15.5px; font-weight: 650; color: #1d1d1f; margin: 26px 0 8px; }
.shop-legal section { margin-bottom: 6px; }
.shop-legal ul { padding-left: 22px; }
.shop-legal li { margin-bottom: 6px; }
.shop-legal a { color: var(--shop-brand, #10b981); text-decoration: underline; text-underline-offset: 2px; }
.shop-legal__nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.shop-legal__nav a { font-size: 12.5px; font-weight: 500; color: #6e6e73; text-decoration: none; padding: 6px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 999px; }
.shop-legal__nav a.on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.shop-legal__vendor { background: #f5f5f7; border-radius: 14px; padding: 16px 18px; margin: 14px 0 4px; }
.shop-legal__vendor h2 { margin-top: 0; }
.shop-legal__form-type { border-left: 3px solid var(--shop-brand, #10b981); margin: 12px 0; padding: 4px 0 4px 16px; color: #5a5a5e; }
.shop-legal__updated { margin-top: 34px; font-size: 12px; color: #8a8a8e; }

.shop-foot__legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 10px 18px 16px; }
.shop-foot__legal a { font-size: 11.5px; color: #8a8a8e; text-decoration: none; }
.shop-foot__legal a:hover { color: #1d1d1f; text-decoration: underline; }

/* Consentement CGV au checkout */
.sf-cgv-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #3a3a3c; cursor: pointer; }
.sf-cgv-consent input { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; accent-color: var(--shop-brand, #10b981); }
.sf-cgv-consent a { color: var(--shop-brand, #10b981); text-decoration: underline; }

/* ============================================================
   Avis clients — dépôt public (.shop-avis) + bloc fiche produit.
   ============================================================ */
.shop-avis { max-width: 640px; margin: 0 auto; padding: 24px 18px 60px; }
.shop-avis h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0; }
.shop-avis__sub { font-size: 13.5px; color: #6e6e73; line-height: 1.55; margin: 0 0 18px; }
.shop-avis__msg { background: #e7f6ef; border: 1px solid rgba(0,168,107,0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.shop-avis__msg--err { background: rgba(220,38,38,0.07); border-color: rgba(220,38,38,0.3); }
.shop-avis__card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 16px 18px; margin: 0 0 12px; }
.shop-avis__produit { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 0; }
.shop-avis__produit img { border-radius: 8px; object-fit: cover; }
.shop-avis__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 10px 0; }
.shop-avis__star { cursor: pointer; }
.shop-avis__star input { position: absolute; opacity: 0; pointer-events: none; }
.shop-avis__star span[aria-hidden] { font-size: 26px; color: #d9d9de; transition: color .1s; }
.shop-avis__star:hover span[aria-hidden],
.shop-avis__star:hover ~ .shop-avis__star span[aria-hidden],
.shop-avis__star input:checked + span[aria-hidden],
.shop-avis__star:has(input:checked) ~ .shop-avis__star span[aria-hidden] { color: #f6b83c; }
.shop-avis__card textarea { width: 100%; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13.5px; resize: vertical; }
.shop-avis__submit { display: block; width: 100%; background: var(--shop-brand, #10b981); color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.shop-avis__back { display: inline-block; margin-top: 8px; color: var(--shop-brand, #10b981); text-decoration: none; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Bloc avis sur la fiche produit */
.shop-avis-bloc { margin: 18px 0; padding: 14px 16px; background: #fafafa; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; }
.shop-avis-bloc__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.shop-avis-bloc__note { font-size: 18px; font-weight: 700; color: #f6b83c; }
.shop-avis-bloc__count { font-size: 12.5px; color: #6e6e73; }
.shop-avis-bloc__item { padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.shop-avis-bloc__meta { font-size: 12px; color: #6e6e73; margin-bottom: 3px; }
.shop-avis-bloc__item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3a3a3c; }
