/* ==========================================================
   HOME HERO - PROMOTION
   ========================================================== */

.zzz-home-hero {
    position: relative;
    width: 100%;
    height: clamp(360px, 27vw, 440px);
    overflow: hidden;
    background: #fff;
}


/* ==========================================================
   IMAGE
   ========================================================== */

.zzz-home-hero__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.zzz-home-hero__image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ==========================================================
   OVERLAY
   ========================================================== */

.zzz-home-hero__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    pointer-events: none;
}


/* ==========================================================
   CONTENU PROMOTIONNEL
   ========================================================== */

.zzz-home-hero__content {
    width: auto;
    max-width: min(520px, calc(100% - 48px));

    margin: 0;
    padding: 22px 30px;

    color: #fff;
    text-align: center;

    background: rgba(0, 0, 0, .58);

    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .18);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, .35);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    pointer-events: auto;
}


/* ==========================================================
   NOM DE LA CAMPAGNE
   ========================================================== */

.zzz-home-hero__name {
    margin-bottom: 6px;

    font-size: clamp(1.25rem, 1.8vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}


/* ==========================================================
   RÉDUCTION
   ========================================================== */

.zzz-home-hero__discount {
    margin-bottom: 10px;

    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: .95;
}


/* ==========================================================
   VALIDITÉ
   ========================================================== */

.zzz-home-hero__validity {
    margin-bottom: 10px;

    font-size: .95rem;
    font-weight: 600;
}


/* ==========================================================
   COMPTE À REBOURS
   ========================================================== */

.zzz-home-hero__countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 6px;

    width: max-content;
    max-width: 100%;

    margin: 0 auto 18px;
}

.zzz-home-hero__countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 48px;
}

.zzz-home-hero__countdown-item strong {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.zzz-home-hero__countdown-item small {
    margin-top: 4px;

    font-size: .65rem;
    line-height: 1;
    text-transform: uppercase;
}

.zzz-home-hero__countdown-separator {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}


/* ==========================================================
   BOUTON
   ========================================================== */

.zzz-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 20px;

    text-shadow: none;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 991.98px) {

    .zzz-home-hero {
        height: clamp(320px, 42vw, 400px);
    }

    .zzz-home-hero__overlay {
        padding: 20px;
    }

    .zzz-home-hero__content {
        max-width: min(
            480px,
            calc(100% - 40px)
        );

        padding: 20px 26px;
    }

    .zzz-home-hero__discount {
        font-size: clamp(
            2.2rem,
            6vw,
            3.5rem
        );
    }
}



/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    /*
     * Le Hero mobile a une hauteur volontairement limitée.
     *
     * L'image mobile remplit cette zone avec object-fit: cover.
     * Une image verticale ne peut donc plus allonger
     * toute la homepage.
     */

    .zzz-home-hero {
        width: 100%;
        height: clamp(320px, 92vw, 390px);
        min-height: 0;

        overflow: hidden;
    }

    .zzz-home-hero__picture {
        display: block;

        width: 100%;
        height: 100%;
    }

    .zzz-home-hero__image {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center center;
    }


    /* ======================================================
       OVERLAY MOBILE
       ====================================================== */

    .zzz-home-hero__overlay {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 12px;

        pointer-events: none;
    }


    /* ======================================================
       CARTOUCHE MOBILE
       ====================================================== */

    .zzz-home-hero__content {
        width: auto;
        max-width: calc(100% - 32px);

        margin: 0;
        padding: 14px 18px;

        color: #fff;
        text-align: center;

        background: rgba(0, 0, 0, .62);

        border-radius: 8px;

        box-shadow:
            0 6px 22px rgba(0, 0, 0, .18);

        text-shadow:
            0 1px 2px rgba(0, 0, 0, .35);

        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);

        pointer-events: auto;
    }


    /* ======================================================
       NOM CAMPAGNE
       ====================================================== */

    .zzz-home-hero__name {
        margin-bottom: 4px;

        font-size: 1rem;
        font-weight: 700;
        line-height: 1.1;
    }


    /* ======================================================
       RÉDUCTION
       ====================================================== */

    .zzz-home-hero__discount {
        margin-bottom: 7px;

        font-size: clamp(
            2.2rem,
            10vw,
            3rem
        );

        font-weight: 800;
        line-height: .95;
    }


    /* ======================================================
       VALIDITÉ
       ====================================================== */

    .zzz-home-hero__validity {
        margin-bottom: 8px;

        font-size: .78rem;
        font-weight: 600;
        line-height: 1.2;
    }


    /* ======================================================
       COUNTDOWN MOBILE
       ====================================================== */

    .zzz-home-hero__countdown {
        display: flex;
        align-items: flex-start;
        justify-content: center;

        gap: 2px;

        width: max-content;
        max-width: 100%;

        margin: 0 auto 10px;
    }

    .zzz-home-hero__countdown-item {
        display: flex;
        flex-direction: column;
        align-items: center;

        min-width: 34px;
    }

    .zzz-home-hero__countdown-item strong {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
    }

    .zzz-home-hero__countdown-item small {
        margin-top: 3px;

        font-size: .5rem;
        line-height: 1;

        text-transform: uppercase;
    }

    .zzz-home-hero__countdown-separator {
        font-size: .95rem;
        font-weight: 700;
        line-height: 1;
    }


    /* ======================================================
       BOUTON MOBILE
       ====================================================== */

    .zzz-home-hero__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 38px;
        padding: 7px 14px;

        font-size: .85rem;

        text-shadow: none;
    }
}







/* ==========================================================
   ZZZ OFFERS - PRODUCT PAGE
   ========================================================== */

.zzz-offers {
    margin-block-start: 1rem;
    margin-block-end: 1rem;
    padding: 16px 20px;

    background: #f7f9fc;
    border: 1px solid #e2e6ea;
    border-radius: 5px;

    text-align: left;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}


/* ==========================================================
   PRODUCT PAGE - BADGE PROMOTION
   ========================================================== */

.zzz-offers__badge {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-block-end: 8px;

    line-height: 1.2;
}

.zzz-offers__badge::before {
    content: "🏷️";

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    font-size: 1.2rem;
    line-height: 1;
}

.zzz-offers__name,
.zzz-offers__discount {
    color: #b72a22;

    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}


/* ==========================================================
   PRODUCT PAGE - DATE DE FIN
   ========================================================== */

.zzz-offers__validity {
    margin-block-end: 3px;

    color: #495057;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
}


/* ==========================================================
   PRODUCT PAGE - COMPTE À REBOURS
   ========================================================== */

.zzz-offers__countdown {
    color: #212529;

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;

    font-variant-numeric: tabular-nums;
}

.zzz-offers__remaining-label {
    font-weight: 400;
}

.zzz-offers__countdown [data-days],
.zzz-offers__countdown [data-hours],
.zzz-offers__countdown [data-minutes],
.zzz-offers__countdown [data-seconds] {
    font-weight: 700;
}


/* ==========================================================
   PRODUCT PAGE - MOBILE
   ========================================================== */

@media (max-width: 575.98px) {

    .zzz-offers {
        padding: 14px 16px;
    }

    .zzz-offers__badge {
        gap: 6px;
        margin-block-end: 7px;
    }

    .zzz-offers__badge::before {
        font-size: 1.1rem;
    }

    .zzz-offers__name,
    .zzz-offers__discount {
        font-size: 1.1rem;
    }

    .zzz-offers__validity {
        font-size: 0.95rem;
    }

    .zzz-offers__countdown {
        font-size: 1rem;
    }
}


/* ==========================================================
   PRODUCT LISTING / HOVER
   Promotion + Aperçu rapide dans le même groupe
   ========================================================== */

.marius-miniature-hover-offer {
    position: absolute;
    z-index: 3;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


/* ==========================================================
   PRODUCT LISTING - AFFICHAGE AU SURVOL
   ========================================================== */

/* Le groupe apparaît immédiatement */

.product-miniature:hover .marius-miniature-hover-offer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* La promotion est initialement invisible */

.zzz-offers-listing {
    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;

    transition-delay: 0s;
}


/* La promotion apparaît 0,5 seconde après le hover */

.product-miniature:hover .zzz-offers-listing {
    opacity: 1;
    visibility: visible;

    transition-delay: .15s;
}


/* ==========================================================
   PRODUCT LISTING - PROMOTION
   ========================================================== */

.zzz-offers-listing {
    position: static;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    width: 100%;
    padding: 10px 10px 0 10px;

    background: rgba(255, 255, 255, .80);

    color: #212529;
    font-size: .85rem;
    line-height: 1.25;
    text-align: center;
}


/* ==========================================================
   PRODUCT LISTING - BADGE
   ========================================================== */

.zzz-offers-listing__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #b72a22;
    font-weight: 700;
}

.zzz-offers-listing__icon {
    line-height: 1;
}

.zzz-offers-listing__name,
.zzz-offers-listing__discount {
    font-weight: 700;
}


/* ==========================================================
   PRODUCT LISTING - DATE DE FIN
   ========================================================== */

.zzz-offers-listing__validity {
    color: #495057;
    font-size: .8rem;
    font-weight: 400;
}


/* ==========================================================
   PRODUCT LISTING - COMPTE À REBOURS
   ========================================================== */

.zzz-offers-listing__countdown {
    color: #212529;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;

    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.zzz-offers-listing__remaining-label {
    font-weight: 400;
}

.zzz-offers-listing__countdown [data-days],
.zzz-offers-listing__countdown [data-hours],
.zzz-offers-listing__countdown [data-minutes],
.zzz-offers-listing__countdown [data-seconds] {
    font-weight: 700;
}


/* ==========================================================
   PRODUCT LISTING - QUICKVIEW
   ========================================================== */

.marius-miniature-hover-offer
.product-miniature__quickview-button {
    position: static;
    inset: auto;
    transform: none;

    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 6px 10px;

    background: rgba(255, 255, 255, .80);
    border-top: 1px solid rgba(0, 0, 0, .06);

    font-size: .95rem;
    line-height: 1.2;
}


/* ==========================================================
   PRODUCT LISTING - MOBILE / TACTILE
   Pas de promotion hover ni Aperçu rapide
   ========================================================== */

@media (max-width: 767.98px) {
    .marius-miniature-hover-offer {
        display: none !important;
    }
}