/* ==========================================================================
   Missebo — fiche produit (vue detailsMissebo.blade.php)
   Portee : #page-content.mm-fiche

   Version claire de la maquette de reference : photo pleine largeur,
   commandes flottantes, cartes d'attributs, carte vendeur, barre d'achat
   fixe portant le prix. Noir et or sur blanc.
   ========================================================================== */

#page-content.mm-fiche {
    --or: #c9971b;
    --or-clair: #fdf6e3;
    --n: #14130f;
    --gris: #6f6a62;
    --trait: #e8e4dc;
    --fond: #f7f5f1;
    --vert: #1a7f3c;

    background: #fff;
    color: var(--n);
    padding-bottom: 96px;
    font-family: "Poppins", system-ui, sans-serif;
}

#page-content.mm-fiche * { box-sizing: border-box; }

/* ---------- Galerie ------------------------------------------------------- */
#page-content.mm-fiche .mmf-visuel {
    position: relative;
    background: var(--fond);
}
#page-content.mm-fiche .mmf-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

#page-content.mm-fiche .mmf-rond {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--n);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    text-decoration: none;
}
#page-content.mm-fiche .mmf-rond:hover { background: #fff; }

#page-content.mm-fiche .mmf-retour {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
}
#page-content.mm-fiche .mmf-flottants {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.55rem;
}

#page-content.mm-fiche .mmf-miniatures {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
#page-content.mm-fiche .mmf-mini {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
#page-content.mm-fiche .mmf-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
#page-content.mm-fiche .mmf-mini.active { border-color: var(--or); }

#page-content.mm-fiche .mmf-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    background: var(--n);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
}

/* ---------- Corps --------------------------------------------------------- */
#page-content.mm-fiche .mmf-corps {
    padding: 1.4rem clamp(1rem, 5vw, 2rem) 0;
    max-width: 720px;
    margin-inline: auto;
}

#page-content.mm-fiche .mmf-fil {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gris);
    margin: 0 0 0.55rem;
}

#page-content.mm-fiche .mmf-titre {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    text-wrap: balance;
    color: var(--n);
}

#page-content.mm-fiche .mmf-prix-ligne {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}
#page-content.mm-fiche .mmf-prix {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--or);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
#page-content.mm-fiche .mmf-prix-barre {
    font-size: 1rem;
    color: var(--gris);
    text-decoration: line-through;
}
#page-content.mm-fiche .mmf-mention {
    font-size: 0.8125rem;
    color: var(--gris);
}

/* ---------- Cartes d'attributs -------------------------------------------- */
#page-content.mm-fiche .mmf-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}
#page-content.mm-fiche .mmf-carte {
    border: 1px solid var(--trait);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #fff;
}
#page-content.mm-fiche .mmf-carte-lib {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gris);
}
#page-content.mm-fiche .mmf-carte-val {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--n);
}

/* ---------- Vendeur ------------------------------------------------------- */
#page-content.mm-fiche .mmf-vendeur {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--trait);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.4rem;
    background: var(--fond);
}
#page-content.mm-fiche .mmf-vendeur-pastille {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--n);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
}
#page-content.mm-fiche .mmf-vendeur-txt { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
#page-content.mm-fiche .mmf-vendeur-txt strong { font-size: 0.9375rem; font-weight: 700; }
#page-content.mm-fiche .mmf-vendeur-txt small {
    font-size: 0.75rem;
    color: var(--gris);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
#page-content.mm-fiche .mmf-vendeur-txt ion-icon { color: var(--or); font-size: 0.8rem; }
#page-content.mm-fiche .mmf-vendeur-lien {
    border: 1px solid var(--n);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--n);
    text-decoration: none;
    white-space: nowrap;
    flex: none;
}
#page-content.mm-fiche .mmf-vendeur-lien:hover { background: var(--n); color: #fff; }

/* ---------- Sections ------------------------------------------------------ */
#page-content.mm-fiche .mmf-soustitre {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gris);
    margin: 1.6rem 0 0.6rem;
}
#page-content.mm-fiche .mmf-texte {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #3a372f;
}
#page-content.mm-fiche .mmf-texte p { margin-bottom: 0.6rem; }

#page-content.mm-fiche .mmf-puces { display: flex; flex-wrap: wrap; gap: 0.45rem; }
#page-content.mm-fiche .mmf-puce {
    border: 1px solid var(--trait);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--n);
    background: #fff;
}

/* ---------- Barre d'achat fixe -------------------------------------------- */
#page-content.mm-fiche .mmf-barre {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem clamp(0.8rem, 4vw, 1.2rem);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--trait);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.07);
}
#page-content.mm-fiche .mmf-barre-coeur {
    width: 54px;
    height: 54px;
    flex: none;
    border: 1px solid var(--trait);
    border-radius: 14px;
    background: #fff;
    color: var(--n);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#page-content.mm-fiche .mmf-barre-coeur:hover { border-color: var(--or); color: var(--or); }

#page-content.mm-fiche .mmf-qte {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

#page-content.mm-fiche .mmf-cta {
    flex: 1;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: var(--or) !important;
    color: var(--n) !important;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
#page-content.mm-fiche .mmf-cta:hover { background: #b4870f !important; }
#page-content.mm-fiche .mmf-cta:active { transform: scale(0.99); }
#page-content.mm-fiche .mmf-cta:focus-visible { outline: 2px solid var(--n); outline-offset: 2px; }

/* ---------- Grand ecran : galerie et informations cote a cote ------------- */
@media (min-width: 992px) {
    #page-content.mm-fiche {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
        max-width: 1240px;
        margin-inline: auto;
        padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
        align-items: start;
    }
    #page-content.mm-fiche .mmf-visuel {
        border-radius: 18px;
        overflow: hidden;
        position: sticky;
        top: 1.5rem;
    }
    #page-content.mm-fiche .mmf-corps {
        padding: 0;
        max-width: none;
    }
    #page-content.mm-fiche .mmf-barre {
        position: static;
        grid-column: 2;
        padding: 1.2rem 0 0;
        background: transparent;
        border-top: 1px solid var(--trait);
        box-shadow: none;
        backdrop-filter: none;
        margin-top: 1.6rem;
    }
    #page-content.mm-fiche { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    #page-content.mm-fiche * { transition: none !important; }
}
