/*
 * Menu mobile qui vend (CRO 10) : bloc posé en tête du tiroir de menu et du menu plein écran
 * des en-têtes cartzilla (partials/header-mobile-showcase.blade.php), quand le réglage
 * `mobile_menu_showcase` est allumé. Chargé seulement dans ce cas, sans bloquer l'affichage :
 * le tiroir est fermé au premier écran.
 * Couleurs : celles du site (variables Cartzilla), jamais une valeur en dur.
 */
.cz-mms {
    padding: 0 0 1.25rem;
    margin-bottom: .75rem;
    border-bottom: var(--cz-border-width) solid var(--cz-border-color);
}

/* Dans le menu plein écran, le panneau a déjà ses marges. */
.cz-megamenu .cz-mms {
    padding: 0 0 1.5rem;
    margin-bottom: 2rem;
}

/* Recherche en direct, en tête. */
.cz-mms-search .cz-mms-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    opacity: .6;
    pointer-events: none;
}
.cz-mms-search .cz-mms-search-input {
    padding-left: 2.75rem;
    min-height: 2.75rem;
}
/* Les lignes de résultat de product-search.js sont taillées pour le panneau de recherche (container,
   640 px) : dans le tiroir, elles prennent toute la largeur, sans marge de conteneur. */
.cz-mms-search-results .container {
    padding-left: 0;
    padding-right: 0;
}
.cz-mms-search-results > .container > div {
    max-width: none !important;
}

.cz-mms-title {
    margin: 1.25rem 0 .625rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

/* Collections : grille de trois visuels carrés, libellé dessous. */
.cz-mms-collections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem .5rem;
}
.cz-mms-collection {
    display: block;
    color: inherit;
    text-decoration: none;
}
.cz-mms-collection-img,
.cz-mms-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--cz-border-radius);
    background-color: var(--cz-tertiary-bg);
}
.cz-mms-collection-img img,
.cz-mms-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Deux lignes au plus : "Couteaux japonais" se lit en entier au lieu d'être coupé en "Couteaux japo...". */
.cz-mms-collection-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .375rem;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

/* Produits : rangée qui défile au doigt, une vignette et demie visible pour inviter à glisser. */
.cz-mms-products {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
    scrollbar-width: none;
}
.cz-mms-products::-webkit-scrollbar {
    display: none;
}
.cz-mms-product {
    flex: 0 0 7.5rem;
    scroll-snap-align: start;
    color: inherit;
    text-decoration: none;
}
.cz-mms-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .375rem;
    font-size: .8125rem;
    line-height: 1.3;
}
.cz-mms-product-price {
    display: block;
    margin-top: .125rem;
    font-size: .8125rem;
    font-weight: 600;
}
.cz-mms-product-price del {
    font-weight: 400;
    opacity: .6;
}

@media (min-width: 992px) {
    .cz-mms {
        display: none !important;
    }
}
