/* =====================================================================
   FICHE PRODUIT — product-single.css  (v2 — mai 2026)
   Chargé uniquement sur is_product() via childz_product_assets()
   ===================================================================== */

/* ── Variables palette ─────────────────────────────────────────────── */
:root {
    --forest:      #1a3d2e;
    --forest-mid:  #2a5c45;
    --sage:        #4a8c6a;
    --sage-light:  #8abfa0;
    --cream:       #f5f0e8;
    --sand:        #e8dfd0;
    --amber:       #d4883a;
    --amber-light: #f0b96a;
    --charcoal:    #1c1c1a;
    --warm-white:  #faf8f4;
}

/* ── Reset ciblé ───────────────────────────────────────────────────── */
.cz-product-page *,
.cz-topbar *,
.cz-cta-mobile * {
    box-sizing: border-box;
}

/* ── Cacher le header du thème sur mobile (product page uniquement) ── */
@media (max-width: 767px) {
    body.single-product .wp-site-blocks > header,
    body.single-product > header:not(.cz-topbar) {
        display: none !important;
    }
    body.single-product {
        padding-top: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE TOP-BAR
   ══════════════════════════════════════════════════════════════════════ */
.cz-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    background: rgba(245,240,232,0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26,61,46,0.07);
}

.cz-topbar__back {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: none; background: transparent; cursor: pointer;
    color: var(--charcoal);
}

.cz-topbar__logo {
    font-family: 'Fraunces', serif;
    font-size: 18px; font-weight: 700;
    color: var(--forest);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.cz-topbar__logo span { color: var(--amber); }

.cz-topbar__share {
    display: flex; align-items: center; gap: 5px;
    background: white; border: 1.5px solid rgba(26,61,46,0.12);
    border-radius: 100px; padding: 7px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: rgba(28,28,26,0.6);
    cursor: pointer;
}
.cz-topbar__share svg { opacity: 0.4; }

@media (min-width: 768px) {
    .cz-topbar { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════════ */
.cz-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: rgba(28,28,26,0.4);
    overflow-x: auto; white-space: nowrap;
    scrollbar-width: none;
}
.cz-breadcrumb::-webkit-scrollbar { display: none; }
.cz-breadcrumb a { color: rgba(28,28,26,0.4); text-decoration: none; transition: color 0.2s; }
.cz-breadcrumb a:hover { color: var(--forest); }
.cz-breadcrumb span[aria-current] { color: var(--charcoal); font-weight: 500; }
.cz-bc-sep { opacity: 0.3; }

@media (min-width: 768px) {
    .cz-breadcrumb {
        padding: 16px 56px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        background: white;
        font-size: 13px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ══════════════════════════════════════════════════════════════════════ */
.cz-product-page {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--charcoal);
}

/* Mobile : breadcrumb sous la topbar */
@media (max-width: 767px) {
    .cz-product-page { margin-top: 56px; }
}

.cz-product-wrap {
    display: block; /* mobile : empilé */
}

@media (min-width: 768px) {
    .cz-product-wrap {
        display: grid;
        grid-template-columns: 1fr 480px;
        gap: 56px;
        align-items: start;
        max-width: 1280px;
        margin: 0 auto;
        padding: 40px 56px 80px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   GALERIE
   ══════════════════════════════════════════════════════════════════════ */
.cz-gallery-col {
    /* mobile : normal flow */
}
@media (min-width: 768px) {
    .cz-gallery-col {
        position: sticky;
        top: 88px; /* navbar 68px + gap 20px */
    }
}

/* Wrapper relatif pour le positionnement absolu des thumbs mobile */
.cz-gallery-wrap {
    position: relative;
    background: var(--sand);
}

/* Image principale */
.cz-gallery-main {
    position: relative;
    overflow: hidden;
    height: 360px; /* mobile */
    background: var(--sand);
}

@media (min-width: 768px) {
    .cz-gallery-main {
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 24px;
        margin-bottom: 14px;
        cursor: zoom-in;
    }
}

.cz-gallery-img {
    display: none;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.cz-gallery-img.is-active { display: block; }

@media (min-width: 768px) {
    .cz-gallery-main:hover .cz-gallery-img.is-active { transform: scale(1.03); }
}

/* Dégradés overlays mobile */
.cz-gallery-overlay-top,
.cz-gallery-overlay-bot {
    position: absolute; left: 0; right: 0;
    pointer-events: none; z-index: 2;
}
.cz-gallery-overlay-top {
    top: 0; height: 80px;
    background: linear-gradient(to bottom, rgba(245,240,232,0.45) 0%, transparent 100%);
}
.cz-gallery-overlay-bot {
    bottom: 0; height: 100px;
    background: linear-gradient(to top, var(--warm-white) 0%, transparent 100%);
}
@media (min-width: 768px) {
    .cz-gallery-overlay-top,
    .cz-gallery-overlay-bot { display: none; }
}

/* Badge état flottant */
.cz-badge-float {
    position: absolute; top: 16px; left: 16px; z-index: 5;
    background: rgba(26,61,46,0.9);
    backdrop-filter: blur(8px);
    color: white; font-size: 11px; font-weight: 500;
    padding: 5px 12px; border-radius: 100px;
    display: flex; align-items: center; gap: 6px;
    font-family: 'DM Sans', sans-serif;
}
.cz-badge-dot {
    width: 6px; height: 6px;
    background: var(--amber-light); border-radius: 50%;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .cz-badge-float { top: 20px; left: 20px; font-size: 12px; padding: 6px 14px; }
}

/* Bouton favori galerie */
.cz-fav-gal {
    position: absolute; top: 16px; right: 16px; z-index: 5;
    width: 40px; height: 40px;
    background: white; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    color: rgba(28,28,26,0.5);
}
.cz-fav-gal:hover { transform: scale(1.08); }
.cz-fav-gal.is-liked { color: #e05252; }
.cz-fav-gal.is-liked svg { fill: #e05252; stroke: #e05252; }
@media (min-width: 768px) {
    .cz-fav-gal { top: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ── Miniatures ─────────────────────────────────────────────────────── */
/* Mobile : absolues en bas de l'image */
.cz-gallery-thumbs {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

@media (min-width: 768px) {
    .cz-gallery-thumbs {
        position: static;
        transform: none;
        bottom: auto; left: auto;
        gap: 10px;
        margin-bottom: 14px;
    }
}

.cz-gallery-thumb {
    width: 50px; height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.cz-gallery-thumb.is-active { border-color: var(--forest); }
.cz-gallery-thumb:hover { transform: translateY(-2px); }
.cz-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 768px) {
    .cz-gallery-thumb {
        flex: 1;
        width: auto; height: auto;
        aspect-ratio: 1;
        border-radius: 14px;
    }
}

/* ── Trust strip ─────────────────────────────────────────────────────── */
.cz-trust-strip {
    display: flex;
    background: white; border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    margin: 0 16px 14px;
}
.cz-trust-item {
    flex: 1; padding: 14px 10px; text-align: center;
    border-right: 1px solid rgba(0,0,0,0.06);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-family: 'DM Sans', sans-serif;
}
.cz-trust-item:last-child { border-right: none; }
.cz-trust-icon {
    width: 32px; height: 32px; background: var(--cream); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--forest);
}
.cz-trust-title { font-size: 11px; font-weight: 500; color: var(--charcoal); line-height: 1.2; }
.cz-trust-sub   { font-size: 10px; color: rgba(28,28,26,0.4); }

.cz-trust--desktop { display: none; }
.cz-trust--mobile  { }

@media (min-width: 768px) {
    .cz-trust-strip { margin: 20px 0 0; }
    .cz-trust--desktop { display: flex; }
    .cz-trust--mobile  { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   COLONNE PRODUIT
   ══════════════════════════════════════════════════════════════════════ */
.cz-product-col {
    padding: 0 16px;
}
@media (min-width: 768px) {
    .cz-product-col { padding: 0; }
}

/* ── Prix ─────────────────────────────────────────────────────────── */
.cz-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cz-price-main {
    font-family: 'Fraunces', serif;
    font-size: 40px; font-weight: 900;
    color: var(--forest); line-height: 1;
    letter-spacing: -1px;
}
.cz-price-main .woocommerce-Price-amount { font-size: inherit; color: inherit; font-weight: inherit; }
.cz-price-orig {
    font-size: 14px; color: rgba(28,28,26,0.35);
    text-decoration: line-through; margin-top: 4px;
    font-family: 'DM Sans', sans-serif;
}
.cz-price-save {
    display: inline-block;
    background: #e8f4f0; color: #1a5c42;
    font-size: 11px; font-weight: 500;
    padding: 3px 9px; border-radius: 100px;
    margin-top: 5px;
    font-family: 'DM Sans', sans-serif;
}

@media (min-width: 768px) {
    .cz-price-main { font-size: 52px; letter-spacing: -2px; }
    .cz-price-orig { font-size: 15px; }
    .cz-price-save { font-size: 12px; padding: 4px 10px; }
}

.cz-brand-card {
    background: var(--cream); border-radius: 12px;
    padding: 10px 14px; text-align: center;
    flex-shrink: 0;
}
.cz-brand-name { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--forest); }
.cz-brand-sub  { font-size: 10px; color: rgba(28,28,26,0.4); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (min-width: 768px) {
    .cz-brand-card { border-radius: 14px; padding: 12px 16px; }
    .cz-brand-name { font-size: 17px; }
}

/* ── H1 ─────────────────────────────────────────────────────────────── */
.cz-product-title {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 700;
    color: var(--charcoal); letter-spacing: -0.5px;
    line-height: 1.2; margin: 0 0 16px;
}
@media (min-width: 768px) {
    .cz-product-title { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 18px; }
}

/* ── Quick-tags ─────────────────────────────────────────────────────── */
.cz-quick-tags {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin-bottom: 22px;
}
.cz-qtag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 400;
    border: 1.5px solid rgba(0,0,0,0.07);
    background: white; color: rgba(28,28,26,0.65);
}
.cz-qtag svg { opacity: 0.5; }
.cz-qtag--green { background: #e8f4f0; border-color: #a8d4c0; color: #1a5c42; }
.cz-qtag--green svg { opacity: 1; }
.cz-qtag--amber { background: #fef3e2; border-color: #f0c984; color: #7a4d0a; }
.cz-qtag--amber svg { opacity: 1; }
@media (min-width: 768px) {
    .cz-qtag { font-size: 13px; padding: 7px 13px; }
    .cz-quick-tags { margin-bottom: 28px; }
}

/* ── Cards ─────────────────────────────────────────────────────────── */
.cz-card {
    background: white; border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 18px; margin-bottom: 14px;
}
.cz-card-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: rgba(28,28,26,0.32); margin-bottom: 14px;
}
@media (min-width: 768px) {
    .cz-card { border-radius: 20px; padding: 22px 24px; margin-bottom: 16px; }
    .cz-card-label { margin-bottom: 16px; }
}

/* ── État ─────────────────────────────────────────────────────────── */
.cz-etat-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.cz-etat-name { font-size: 18px; font-weight: 500; color: var(--charcoal); font-family: 'DM Sans', sans-serif; }
.cz-etat-pill {
    background: #e6f1fb; color: #0c447c;
    font-size: 12px; font-weight: 500;
    padding: 4px 12px; border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
}
@media (min-width: 768px) {
    .cz-etat-name { font-size: 19px; }
}
.cz-etat-bar {
    height: 6px; background: rgba(0,0,0,0.07);
    border-radius: 100px; overflow: hidden; margin-bottom: 10px;
}
.cz-etat-fill {
    height: 100%; border-radius: 100px;
    background: linear-gradient(to right, var(--sage-light), var(--sage));
    width: 0; transition: width 1s ease;
}
.cz-etat-desc {
    font-size: 13px; color: rgba(28,28,26,0.5); line-height: 1.6;
    margin-bottom: 14px; font-family: 'DM Sans', sans-serif;
}

.cz-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cz-check-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--charcoal);
    font-family: 'DM Sans', sans-serif;
}
.cz-check-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cz-check-icon--ok   { background: #e8f4f0; color: #1a5c42; }
.cz-check-icon--warn { background: #fef3e2; color: #7a4d0a; }
@media (min-width: 768px) {
    .cz-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
}

/* ── Specs ─────────────────────────────────────────────────────────── */
.cz-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) {
    .cz-specs-grid { grid-template-columns: repeat(3, 1fr); }
}
.cz-spec-item { background: var(--warm-white); border-radius: 12px; padding: 13px 14px; }
.cz-spec-key {
    font-size: 10px; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.07em; color: rgba(28,28,26,0.32); margin-bottom: 4px;
    font-family: 'DM Sans', sans-serif;
}
.cz-spec-val { font-size: 14px; font-weight: 500; color: var(--charcoal); font-family: 'DM Sans', sans-serif; }

/* ── Description ───────────────────────────────────────────────────── */
.cz-desc-text {
    font-size: 14px; color: rgba(28,28,26,0.6);
    line-height: 1.75;
    max-height: 72px; overflow: hidden;
    transition: max-height 0.4s ease;
    font-family: 'DM Sans', sans-serif;
}
.cz-desc-text p { margin: 0 0 8px; }
.cz-desc-text p:last-child { margin-bottom: 0; }
.cz-desc-text.is-open { max-height: 600px; }
.cz-desc-more {
    display: block; margin-top: 10px;
    color: var(--forest); font-weight: 500; font-size: 14px;
    background: none; border: none; cursor: pointer; padding: 0;
    font-family: 'DM Sans', sans-serif;
}
.cz-desc-more:hover { text-decoration: underline; }

/* ── Transport ─────────────────────────────────────────────────────── */
.cz-transport-list { display: flex; flex-direction: column; gap: 8px; }
.cz-transport-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.07); background: white;
    cursor: pointer; transition: border-color 0.18s, background 0.18s;
    font-family: 'DM Sans', sans-serif;
}
.cz-transport-opt:hover  { border-color: rgba(26,61,46,0.25); }
.cz-transport-opt.is-selected { border-color: var(--forest); background: #f0f6f3; }
.cz-transport-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--cream); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--forest);
}
.cz-transport-opt.is-selected .cz-transport-icon { background: rgba(26,61,46,0.1); }
.cz-transport-info { flex: 1; min-width: 0; }
.cz-transport-name   { font-size: 13px; font-weight: 500; color: var(--charcoal); }
.cz-transport-detail { font-size: 11px; color: rgba(28,28,26,0.4); margin-top: 2px; }
.cz-transport-price  { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--forest); flex-shrink: 0; }
.cz-transport-free   { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 700; color: var(--sage); flex-shrink: 0; }
@media (min-width: 768px) {
    .cz-transport-name   { font-size: 14px; }
    .cz-transport-detail { font-size: 12px; }
    .cz-transport-price  { font-size: 16px; }
    .cz-transport-opt { padding: 13px 16px; gap: 13px; border-radius: 14px; }
}
.cz-radio-dot {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
}
.cz-transport-opt.is-selected .cz-radio-dot { border-color: var(--forest); }
.cz-radio-fill {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--forest); display: none;
}
.cz-transport-opt.is-selected .cz-radio-fill { display: block; }

/* ── Vendeur ───────────────────────────────────────────────────────── */
.cz-seller-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cz-seller-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: var(--forest);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: white;
}
.cz-seller-avatar--photo { object-fit: cover; }
@media (min-width: 768px) {
    .cz-seller-avatar { width: 52px; height: 52px; font-size: 18px; }
}
.cz-seller-name  { font-size: 15px; font-weight: 500; color: var(--charcoal); font-family: 'DM Sans', sans-serif; }
.cz-seller-since { font-size: 12px; color: rgba(28,28,26,0.4); margin-top: 3px; font-family: 'DM Sans', sans-serif; }
@media (min-width: 768px) {
    .cz-seller-name { font-size: 16px; }
}
.cz-seller-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.cz-stat-item { flex: 1; text-align: center; background: var(--warm-white); border-radius: 10px; padding: 10px 8px; }
.cz-stat-val { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; color: var(--forest); }
.cz-stat-lbl { font-size: 10px; color: rgba(28,28,26,0.4); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; font-family: 'DM Sans', sans-serif; }
@media (min-width: 768px) {
    .cz-stat-item { border-radius: 12px; padding: 12px 8px; }
    .cz-stat-val  { font-size: 22px; }
}

.cz-btn-contact {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px;
    background: transparent; border: 1.5px solid rgba(26,61,46,0.2); border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--forest);
    cursor: pointer; text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
}
.cz-btn-contact:hover { background: var(--cream); border-color: rgba(26,61,46,0.35); }

/* ══════════════════════════════════════════════════════════════════════
   CTA STICKY DESKTOP
   ══════════════════════════════════════════════════════════════════════ */
.cz-cta-sticky {
    display: none; /* caché sur mobile */
}
@media (min-width: 768px) {
    .cz-cta-sticky {
        display: block;
        position: sticky; bottom: 20px;
        background: rgba(245,240,232,0.97);
        backdrop-filter: blur(14px);
        border-radius: 20px;
        border: 1px solid rgba(0,0,0,0.07);
        padding: 18px 24px;
        margin-top: 16px;
    }
}
.cz-cta-row {
    display: flex; align-items: center; gap: 12px;
}
.cz-cta-price {
    font-family: 'Fraunces', serif;
    font-size: 28px; font-weight: 900;
    color: var(--forest); letter-spacing: -1px; flex-shrink: 0;
}
.cz-cta-price .woocommerce-Price-amount { font-size: inherit; color: inherit; font-weight: inherit; }
@media (min-width: 768px) {
    .cz-cta-price { font-size: 32px; }
}

/* WooCommerce form dans le CTA desktop */
.cz-cta-sticky form.cart {
    display: contents;
}
.cz-cta-sticky .quantity { display: none; }
.cz-cta-sticky .single_add_to_cart_button,
.cz-cta-sticky button.button.alt {
    flex: 1 !important;
    padding: 16px 20px !important;
    background: var(--forest) !important;
    color: white !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important; font-weight: 500 !important;
    border: none !important; border-radius: 14px !important;
    cursor: pointer !important; text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: background 0.2s, transform 0.15s !important;
    height: auto !important; line-height: 1.3 !important;
}
.cz-cta-sticky .single_add_to_cart_button:hover { background: var(--forest-mid) !important; }
.cz-cta-sticky .single_add_to_cart_button:disabled { opacity: 0.5 !important; cursor: not-allowed !important; }

/* Bouton favori */
.cz-btn-fav {
    width: 52px; height: 52px; flex-shrink: 0;
    background: white; border: 1.5px solid rgba(26,61,46,0.15); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.2s, transform 0.2s;
    color: rgba(28,28,26,0.4);
}
.cz-btn-fav:hover { border-color: var(--forest); transform: scale(1.05); }
.cz-btn-fav.is-liked { color: #e05252; border-color: #e05252; }
.cz-btn-fav.is-liked svg { fill: #e05252; stroke: #e05252; }

/* ══════════════════════════════════════════════════════════════════════
   PRODUITS SIMILAIRES
   ══════════════════════════════════════════════════════════════════════ */
.cz-similar { padding: 28px 0 0; }
.cz-similar-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 0 16px; margin-bottom: 18px;
}
.cz-sim-label {
    font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sage); margin-bottom: 4px;
    font-family: 'DM Sans', sans-serif;
}
.cz-sim-title {
    font-family: 'Fraunces', serif;
    font-size: 24px; font-weight: 700;
    color: var(--charcoal); letter-spacing: -0.5px;
}
.cz-sim-title em { font-style: italic; font-weight: 300; color: var(--sage); }

.cz-see-all {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--forest); font-weight: 500;
    text-decoration: none; font-family: 'DM Sans', sans-serif;
    border-bottom: 1px solid var(--sage-light); padding-bottom: 2px;
    transition: gap 0.2s;
}
.cz-see-all:hover { gap: 10px; }

/* Mobile : scroll horizontal */
.cz-sim-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 8px;
    scrollbar-width: none;
}
.cz-sim-grid::-webkit-scrollbar { display: none; }

.cz-sim-card {
    flex-shrink: 0;
    width: 150px;
    background: white; border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05); overflow: hidden;
    text-decoration: none; display: block;
    transition: transform 0.25s, box-shadow 0.25s;
}
.cz-sim-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.cz-sim-img-wrap { aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.cz-sim-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.cz-sim-card:hover .cz-sim-img { transform: scale(1.05); }
.cz-sim-info { padding: 10px 11px 12px; }
.cz-sim-brand { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--sage); margin-bottom: 3px; font-family: 'DM Sans', sans-serif; }
.cz-sim-name  { font-size: 12px; font-weight: 500; color: var(--charcoal); line-height: 1.25; margin-bottom: 7px; font-family: 'DM Sans', sans-serif; }
.cz-sim-footer{ display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cz-sim-price { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--forest); }
.cz-sim-price .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.cz-sim-orig  { font-size: 10px; color: rgba(28,28,26,0.3); text-decoration: line-through; margin-left: 3px; }
.cz-sim-cond  { font-size: 9px; padding: 3px 7px; border-radius: 100px; font-weight: 500; white-space: nowrap; flex-shrink: 0; font-family: 'DM Sans', sans-serif; }
.c-neuf { background: #f0f8e8; color: #3b6d11; }
.c-tb   { background: #e6f1fb; color: #0c447c; }
.c-bon  { background: #e8f4f0; color: #1a5c42; }
.c-use  { background: #f5f0e8; color: rgba(28,28,26,0.6); }

@media (min-width: 768px) {
    .cz-similar { max-width: 1280px; margin: 72px auto 0; padding: 0 56px 80px; }
    .cz-similar-head { padding: 0; margin-bottom: 28px; }
    .cz-sim-title { font-size: 34px; }
    .cz-sim-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        overflow: visible;
        padding: 0;
    }
    .cz-sim-card { width: auto; flex-shrink: initial; border-radius: 16px; }
    .cz-sim-name  { font-size: 14px; }
    .cz-sim-price { font-size: 20px; }
    .cz-sim-cond  { font-size: 10px; padding: 3px 9px; }
}

/* ══════════════════════════════════════════════════════════════════════
   CTA MOBILE FIXE EN BAS
   ══════════════════════════════════════════════════════════════════════ */
.cz-cta-mobile {
    position: fixed;
    bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(245,240,232,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 14px 16px 28px; /* 28px safe-area iOS */
}
@media (min-width: 768px) { .cz-cta-mobile { display: none; } }

.cz-btn-buy {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px;
    background: var(--forest); color: white;
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
    border: none; border-radius: 14px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.cz-btn-buy:hover  { background: var(--forest-mid); }
.cz-btn-buy:active { background: var(--forest-mid); transform: scale(0.98); }

.cz-btn-fav--mobile {
    width: 52px; height: 52px; flex-shrink: 0;
    background: white; border: 1.5px solid rgba(26,61,46,0.15); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: rgba(28,28,26,0.4);
}
.cz-btn-fav--mobile.is-liked { color: #e05252; border-color: #e05252; }
.cz-btn-fav--mobile.is-liked svg { fill: #e05252; stroke: #e05252; }

/* Spacer pour éviter que le contenu passe sous le CTA fixe */
.cz-bottom-spacer { height: 100px; }
@media (min-width: 768px) { .cz-bottom-spacer { display: none; } }

/* ══════════════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════════════ */
.cz-toast {
    position: fixed;
    bottom: 110px; left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--forest); color: white;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    padding: 13px 24px; border-radius: 100px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap; z-index: 400;
}
.cz-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
    .cz-toast { bottom: 48px; }
}

/* ══════════════════════════════════════════════════════════════════════
   ANIMATIONS ENTRÉE
   ══════════════════════════════════════════════════════════════════════ */
@keyframes czFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cz-product-col { animation: czFadeUp 0.5s 0.1s ease both; }
.cz-gallery-col { animation: czFadeUp 0.5s ease both; }
