/* ============================================
   SHOP PAGE — /boutique + /boutique/<slug>
   ============================================ */

.shop-page {
    min-height: 100vh;
}

.shop-hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-size: cover;
    background-position: center 35%;
}

.shop-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0.55) 35%, rgba(5, 5, 7, 0.97) 92%);
    pointer-events: none;
}

.shop-hero-section .container {
    position: relative;
    z-index: 1;
    padding-bottom: var(--space-3xl);
    width: 100%;
}

.shop-hero {
    text-align: left;
    max-width: none;
    margin: 0;
}

.shop-hero h1 {
    font-size: clamp(2.6rem, 8vw, 6.5rem);
    max-width: 900px;
    margin-bottom: var(--space-md);
}

.shop-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: var(--space-md);
}

.shop-section {
    padding: var(--space-xl) 0;
}

/* --- Grid / Cards --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.shop-card {
    display: block;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
}

.shop-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
}

/* --- Carte vitrine : image plein cadre (~70% de la carte), infos sur l'image en dégradé bas
   (retour Val 20261014 : "ça fait trop liste et pas assez illustré") --- */
.shop-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.shop-card-image .shop-card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(5, 5, 7, 0.9));
    font-size: 2.2rem;
    color: rgba(242, 242, 245, 0.35);
    z-index: 0;
}

.shop-card-image[style*="url"] .shop-card-fallback {
    opacity: 0;
}

.shop-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0) 35%, rgba(5, 5, 7, 0.94) 100%);
    z-index: 1;
    transition: opacity var(--transition-base);
}

.shop-card:hover .shop-card-image {
    transform: scale(1.04);
}

.shop-card:hover .shop-card-image::after {
    background: linear-gradient(180deg, rgba(230, 5, 62, 0.08) 0%, rgba(5, 5, 7, 0) 35%, rgba(5, 5, 7, 0.96) 100%);
}

.shop-card-image {
    transition: transform var(--transition-base);
}

.shop-card {
    overflow: hidden;
}

.shop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--red-bright);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.shop-card-overlay {
    position: relative;
    z-index: 2;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    width: 100%;
}

.shop-card-overlay h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.shop-card-tagline {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding: var(--space-sm) var(--space-lg) 0;
}

.shop-card-body {
    padding: var(--space-lg);
}

.shop-card-body h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-card-body p {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.shop-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--red-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-price-compare {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.shop-cta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-bundle-includes {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

/* --- Bundle illustré : mosaïque des produits inclus au-dessus de la carte --- */
.shop-bundle-mosaic {
    display: grid;
    gap: 2px;
    height: 150px;
    overflow: hidden;
}
.shop-bundle-mosaic span { background-size: cover; background-position: center; display: block; background-color: var(--bg-tertiary); }
.shop-bundle-mosaic-1 { grid-template-columns: 1fr; }
.shop-bundle-mosaic-2 { grid-template-columns: 1fr 1fr; }
.shop-bundle-mosaic-3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.shop-bundle-mosaic-3 span:first-child { grid-row: 1 / 3; }
.shop-bundle-mosaic-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* --- Fairness banner --- */
.shop-fairness {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    background: rgba(107, 142, 78, 0.08);
    border: 1px solid rgba(107, 142, 78, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.shop-fairness i {
    font-size: 2rem;
    color: var(--faction-civil);
}

.shop-fairness h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.shop-faq {
    padding-top: 0;
}

/* --- Loyalty rewards --- */
.shop-loyalty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.shop-loyalty-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.shop-loyalty-card i {
    font-size: 1.6rem;
    color: var(--red-bright);
    margin-bottom: var(--space-sm);
}

.shop-loyalty-card h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.shop-loyalty-cost {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Detail page --- */
.shop-detail-container {
    padding-top: calc(var(--navbar-height) + var(--space-2xl));
    padding-bottom: var(--space-4xl);
}

.shop-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.shop-detail-image {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-detail-image .shop-card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(5, 5, 7, 0.9));
    font-size: 4rem;
    color: rgba(242, 242, 245, 0.3);
}

.shop-detail-info {
    padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) 0;
}

.shop-detail-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-sm);
}

.shop-detail-tagline {
    margin-bottom: var(--space-md);
}

.shop-detail-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-bright);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.shop-includes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.shop-includes li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.shop-includes li i {
    color: var(--faction-civil);
    margin-top: 2px;
}

.shop-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.shop-conditions {
    margin-bottom: var(--space-lg);
}

.shop-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    line-height: 1.5;
}

.shop-checkbox input {
    margin-top: 3px;
    accent-color: var(--red-bright);
}

.shop-checkbox a {
    color: var(--red-bright);
}

.shop-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.shop-reassurance i {
    color: var(--faction-civil);
    margin-right: 6px;
}

/* ============================================
   DA ORIGINALE — Boutique /boutique (hero, offre, fondateur,
   plus achetés, reco perso, rangées catégories)
   ============================================ */

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 26, 60, 0.4);
    border-radius: var(--radius-full);
    background: var(--red-subtle);
    margin-bottom: var(--space-lg);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red-bright);
}

.shop-hero-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--red-bright);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.shop-hero-stats {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: var(--space-lg);
}

.shop-hero-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-bright);
}

.shop-hero-stat span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Offre du moment (campagne active) --- */
.shop-offer {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(5, 5, 7, 0.95) 10%, rgba(5, 5, 7, 0.68) 55%, var(--red-subtle) 100%), var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    padding: var(--space-3xl) var(--space-2xl);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.shop-offer-tag {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: var(--space-sm);
}

.shop-offer h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); margin-bottom: var(--space-md); }
.shop-offer p { color: var(--text-secondary); max-width: 460px; margin-bottom: var(--space-lg); }

.shop-offer-countdown { display: flex; gap: var(--space-sm); }
.shop-offer-countdown div {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: center;
    min-width: 64px;
}
.shop-offer-countdown b { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.shop-offer-countdown span { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; }

.shop-offer-side { text-align: right; }
.shop-offer-price { font-family: var(--font-display); font-size: 3.2rem; color: var(--red-bright); line-height: 1; }
.shop-offer-price .old { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }

/* --- Pack Fondateur / stock : bannière en fond (retour Val 20261014 : "il manque d'image") --- */
.shop-founder {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 26, 60, 0.3);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    margin-bottom: var(--space-2xl);
}
.shop-founder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(5, 5, 7, 0.92) 20%, rgba(5, 5, 7, 0.55) 70%);
    z-index: 0;
}
.shop-founder > * { position: relative; z-index: 1; }
.shop-founder-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--red-subtle); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--red-bright); border: 1px solid rgba(255, 26, 60, 0.3);
}
.shop-founder h3 { font-size: 2rem; margin-bottom: var(--space-sm); }
.shop-founder p { color: var(--text-secondary); max-width: 520px; margin-bottom: var(--space-sm); }
.shop-stock-bar {
    width: 100%; max-width: 420px; height: 10px; border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.shop-stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-primary), var(--red-bright)); border-radius: var(--radius-full); }
.shop-stock-label { font-size: 0.8rem; color: var(--text-tertiary); margin-top: var(--space-sm); }
.shop-stock-label b { color: var(--red-bright); }
.shop-founder-cta { text-align: center; }
.shop-founder-cta .num { font-family: var(--font-display); font-size: 2.4rem; }
.shop-founder-cta .den { color: var(--text-muted); font-size: 1.1rem; }

/* --- Plus achetés --- */
.shop-rank-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.shop-rank-card {
    position: relative; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg); background: var(--bg-glass); transition: var(--transition-base);
    text-decoration: none; display: block; color: var(--text-primary);
}
.shop-rank-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); }
.shop-rank-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--red-subtle); position: absolute; top: 8px; right: 14px; z-index: 1; }
.shop-rank-visual {
    width: 100%; height: 150px; border-radius: var(--radius-md); background: var(--red-subtle);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: rgba(255, 255, 255, 0.45); margin-bottom: var(--space-md);
}
.shop-rank-card h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.shop-rank-card .cat { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-sm); }
.shop-rank-card .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--red-bright); }

/* --- Reco perso --- */
.shop-reco {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    background: var(--bg-glass); border: 1px solid var(--glass-border); padding: var(--space-2xl);
}
.shop-reco-user { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.shop-reco-avatar { width: 44px; height: 44px; border-radius: 50%; }
.shop-reco-user span { font-size: 0.8rem; color: var(--text-tertiary); }
.shop-reco-user b { display: block; }
.shop-reco h3 { font-size: 1.9rem; margin-bottom: var(--space-md); }
.shop-reco p { color: var(--text-secondary); margin-bottom: var(--space-lg); }
.shop-reco-items { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.shop-reco-chip {
    display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border); border-radius: var(--radius-full); padding: 10px 16px 10px 10px;
    text-decoration: none; color: var(--text-primary);
}
.shop-reco-chip i { width: 30px; height: 30px; border-radius: 50%; background: var(--red-subtle); color: var(--red-bright); display: flex; align-items: center; justify-content: center; }
.shop-reco-chip b { font-size: 0.82rem; }
.shop-reco-chip .p { color: var(--red-bright); font-size: 0.78rem; margin-left: 4px; }

/* --- Rangées éditoriales par catégorie ---
   Bandeau visuel (image d'ambiance + titre) au-dessus, grille pleine largeur en
   dessous (retour Val 20261014 : boutique "trop liste, pas assez illustrée"). */
.shop-cat-row { padding: var(--space-2xl) 0; border-top: 1px solid var(--glass-border); }
.shop-cat-banner {
    position: relative;
    height: 140px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}
.shop-cat-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 5, 7, 0.92) 0%, rgba(5, 5, 7, 0.55) 60%, rgba(5, 5, 7, 0.2) 100%);
}
.shop-cat-banner h3 { position: relative; z-index: 1; font-size: 1.6rem; margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
.shop-cat-banner h3 i { color: var(--red-bright); }
.shop-prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: var(--space-lg); }

.shop-event-stock {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.shop-event-stock i { color: var(--red-bright); }

@media (max-width: 1023px) {
    .shop-offer { grid-template-columns: 1fr; }
    .shop-offer-side { text-align: left; }
    .shop-founder { grid-template-columns: 1fr; text-align: center; }
    .shop-founder-icon { margin: 0 auto; }
    .shop-rank-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .shop-hero-section { min-height: 94vh; }
    .shop-hero-stats { gap: var(--space-lg); }
    .shop-rank-strip { grid-template-columns: 1fr 1fr; }
    .shop-offer, .shop-founder, .shop-reco { padding: var(--space-xl) var(--space-lg); }
}

.btn-block { width: 100%; justify-content: center; }

/* ============================================
   PROMO TICKER — bandeau campagne (si active_campaign)
   ============================================ */
.shop-ticker {
    background: linear-gradient(90deg, var(--red-primary), #9a0329);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    position: relative;
    z-index: 200;
}
.shop-ticker span { text-transform: uppercase; }
.shop-ticker .shop-ticker-cd {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* ============================================
   DA ORIGINALE — Fiche produit (PDP) /boutique/<slug>
   ============================================ */
.shop-breadcrumb {
    padding: calc(var(--navbar-height) + var(--space-md)) 0 var(--space-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.shop-breadcrumb a { color: var(--text-tertiary); }
.shop-breadcrumb a:hover { color: var(--red-bright); }

.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.pdp-gallery-main {
    height: 420px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.pdp-gallery-main .shop-card-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(5, 5, 7, 0.9));
    font-size: 4rem; color: rgba(242, 242, 245, 0.3);
    z-index: 0;
}

/* Galerie : vignettes + zoom plein écran */
.pdp-gallery-stage-wrap { margin-bottom: 10px; }
.pdp-gallery-main { cursor: zoom-in; }
.pdp-zoom-btn {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.75); color: var(--text-primary); font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-thumb {
    width: 64px; height: 64px; border-radius: var(--radius-sm); flex-shrink: 0;
    background-size: cover; background-position: center; background-color: var(--bg-tertiary);
    border: 2px solid transparent; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; color: var(--text-tertiary);
}
.pdp-thumb.active { border-color: var(--red-bright); }
.pdp-thumb-3d { background: var(--bg-tertiary); font-size: 1.1rem; }

.pdp-zoom-overlay {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: rgba(5, 5, 7, 0.92); align-items: center; justify-content: center; padding: var(--space-xl);
    cursor: zoom-out;
}
.pdp-zoom-overlay.open { display: flex; }
.pdp-zoom-overlay img { max-width: min(90vw, 900px); max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); }
.pdp-zoom-close {
    position: absolute; top: var(--space-lg); right: var(--space-lg);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06); color: var(--text-primary); font-size: 1rem; cursor: pointer;
}

.pdp-buy-box {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    background: var(--bg-glass);
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-sm));
}
.pdp-badges { display: flex; gap: 8px; margin-bottom: var(--space-md); flex-wrap: wrap; }
.pdp-badge {
    background: var(--red-subtle); color: var(--red-bright);
    font-size: 0.68rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.pdp-buy-box h1 { font-size: 2.1rem; margin-bottom: var(--space-sm); }
.pdp-tag { color: var(--text-tertiary); font-size: 0.92rem; margin-bottom: var(--space-lg); }
.pdp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pdp-price-row .now { font-family: var(--font-display); font-size: 2.4rem; color: var(--red-bright); }
.pdp-price-row .old { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.pdp-save { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: var(--space-md); }
.pdp-stock { margin-bottom: var(--space-md); }
.pdp-stock-track { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 6px; }
.pdp-stock-track i { display: block; height: 100%; background: var(--red-bright); }
.pdp-stock span { font-size: 0.78rem; color: var(--text-tertiary); }
.pdp-stock b { color: var(--red-bright); }
.pdp-countdown { display: flex; gap: 8px; margin-bottom: var(--space-lg); }
.pdp-countdown div { flex: 1; background: var(--bg-tertiary); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); text-align: center; padding: 10px; }
.pdp-countdown b { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.pdp-countdown span { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }

.pdp-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-lg); }
.pdp-panel { border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--bg-glass); }
.pdp-panel h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: var(--space-md); display: flex; gap: 8px; align-items: center; font-family: var(--font-body); }
.pdp-panel h3 i { color: var(--red-bright); }
.pdp-rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--text-primary); }
.pdp-rank-row .thumb { width: 40px; height: 40px; border-radius: 6px; background-size: cover; background-position: center; flex-shrink: 0; }
.pdp-rank-row .info { flex: 1; }
.pdp-rank-row b { font-size: 0.84rem; display: block; }
.pdp-rank-row span { font-size: 0.72rem; color: var(--text-muted); }
.pdp-rank-row .pr { color: var(--red-bright); font-weight: 700; font-size: 0.84rem; }
.pdp-reco-row { display: flex; justify-content: space-between; padding: 10px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 0.85rem; text-decoration: none; color: var(--text-primary); }
.pdp-reco-row span { color: var(--red-bright); font-weight: 700; }

.pdp-bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.pdp-bundle { border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--bg-glass); }
.pdp-bundle h4 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.pdp-bundle ul { margin: 0 0 var(--space-sm); }
.pdp-bundle li { font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 8px; margin-bottom: 4px; }
.pdp-bundle li i { color: var(--red-bright); font-size: 0.7rem; }
.pdp-bundle .price { font-family: var(--font-display); font-size: 1.6rem; margin: 10px 0; }

.pdp-points-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: 10px; }
.pdp-reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-reward { border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.pdp-reward i { color: var(--red-bright); font-size: 1.3rem; margin-bottom: 8px; }
.pdp-reward b { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

@media (max-width: 1023px) {
    .pdp { grid-template-columns: 1fr; }
    .pdp-buy-box { position: static; }
    .pdp-two-col { grid-template-columns: 1fr; }
    .pdp-bundle-grid { grid-template-columns: 1fr; }
    .pdp-reward-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pdp-gallery-main { height: 260px; }
}

/* "Comment ça marche" (fiche produit) */
.pdp-howto { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--glass-border); }
.pdp-howto h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: var(--space-md); display: flex; gap: 8px; align-items: center; font-family: var(--font-body); }
.pdp-howto h3 i { color: var(--red-bright); }
.pdp-howto-steps { display: flex; flex-direction: column; gap: 12px; }
.pdp-howto-step { display: flex; gap: 12px; align-items: flex-start; }
.pdp-howto-step .n {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red-subtle); color: var(--red-bright);
    font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pdp-howto-step b { font-size: 0.84rem; display: block; margin-bottom: 2px; }
.pdp-howto-step p { font-size: 0.78rem; color: var(--text-tertiary); margin: 0; }

/* Barre d'achat collante mobile (prix + CTA toujours visibles au scroll) */
.shop-sticky-bar { display: none; }
@media (max-width: 1023px) {
    .shop-sticky-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: 10px var(--space-md); padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: var(--bg-secondary); border-top: 1px solid var(--glass-border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }
    .shop-sticky-price { display: flex; flex-direction: column; line-height: 1.1; }
    .shop-sticky-price .now { font-family: var(--font-display); font-size: 1.15rem; color: var(--red-bright); }
    .shop-sticky-price .old { font-size: 0.72rem; color: var(--text-muted); text-decoration: line-through; }
    .shop-sticky-bar .btn { flex-shrink: 0; }
    /* évite que la barre collante cache le bas de la fiche produit */
    .shop-detail-container { padding-bottom: 76px; }
}

.pulse-highlight { animation: pdpPulseHighlight 1.2s ease; }
@keyframes pdpPulseHighlight {
    0%, 100% { box-shadow: none; }
    30% { box-shadow: 0 0 0 4px var(--red-subtle); }
}

/* ============================================
   VIEWER 3D — Fiche produit (js/utils/viewer3d.js)
   Canvas transparent pose sur la DA existante.
   ============================================ */

.pdp-gallery-main.v3d-stage,
.shop-detail-image.v3d-stage {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 72%, rgba(255, 26, 60, 0.10), transparent 60%),
        var(--bg-tertiary);
}

.v3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.v3d-canvas:active { cursor: grabbing; }

.v3d-badge {
    position: absolute; top: 14px; left: 14px; z-index: 4;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--red-subtle); color: var(--red-bright); border: 1px solid rgba(255, 26, 60, 0.3);
    padding: 5px 12px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 6px;
}

.v3d-zoom { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.v3d-zoom-btn {
    width: 30px; height: 30px; border-radius: 50%; background: rgba(5, 5, 7, 0.6);
    border: 1px solid var(--glass-border-hover); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; cursor: pointer;
}
.v3d-zoom-btn:hover { background: var(--red-subtle); }

.v3d-loading {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--space-sm); background: var(--bg-tertiary); transition: opacity .35s; z-index: 5;
}
.v3d-loading.hidden { opacity: 0; pointer-events: none; }
.v3d-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--glass-border-hover); border-top-color: var(--red-bright); animation: v3d-spin 0.8s linear infinite; }
@keyframes v3d-spin { to { transform: rotate(360deg); } }
.v3d-loading span { font-size: 0.72rem; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; }

.v3d-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: var(--space-sm); background: var(--bg-tertiary); text-align: center; padding: var(--space-lg); }
.v3d-fallback img { max-width: 60%; max-height: 50%; object-fit: contain; }
.v3d-fallback p { font-size: 0.75rem; color: var(--text-tertiary); max-width: 260px; }
.v3d-unavailable .v3d-fallback { display: flex; }
.v3d-unavailable .v3d-canvas,
.v3d-unavailable .v3d-badge,
.v3d-unavailable .v3d-zoom,
.v3d-unavailable .v3d-hint { display: none; }
.v3d-unavailable .v3d-loading { display: none; }

.v3d-hint {
    position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
    font-size: 0.68rem; color: var(--text-tertiary); letter-spacing: 0.03em;
    display: flex; align-items: center; gap: 6px; background: rgba(5, 5, 7, 0.5);
    border: 1px solid var(--glass-border); padding: 5px 12px; border-radius: var(--radius-full);
    opacity: 0.9; transition: opacity .3s; pointer-events: none; z-index: 4;
}
.v3d-hint.hidden { opacity: 0; }

.v3d-swatches {
    position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 8px; justify-content: center;
    flex-wrap: wrap; z-index: 4;
}
.v3d-swatch {
    padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--glass-border-hover);
    background: rgba(5, 5, 7, 0.6); color: var(--text-secondary); font-size: 0.72rem; cursor: pointer; transition: var(--transition-fast);
}
.v3d-swatch:hover { border-color: var(--red-bright); }
.v3d-swatch.active { border-color: var(--red-bright); color: var(--red-bright); background: var(--red-subtle); }

@media (max-width: 1023px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-loyalty-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-loyalty-grid { grid-template-columns: 1fr; }
    .shop-detail { grid-template-columns: 1fr; }
    .shop-detail-info { padding: var(--space-xl); }
    .shop-fairness { flex-direction: column; }
    .shop-card-image { aspect-ratio: 1 / 1; }
    .shop-cat-banner { height: 110px; padding: 0 var(--space-lg); }
    .shop-bundle-mosaic { height: 120px; }
}
