/* Magic Kado — corrections de la version mobile (≤ 767 px) */

@media (max-width: 1199px) {
    /* En-tête mobile : compte + panier côte à côte (ils passaient l'un sous l'autre
       et débordaient sur le titre de la page) */
    .wgl-mobile-header .header_area_container {
        display: flex !important;
        align-items: center;
        gap: 8px;
        height: auto !important;
    }
    .wgl-mobile-header .header_area_container > .mk-account,
    .wgl-mobile-header .header_area_container > .mini-cart {
        height: auto !important;
    }
    .wgl-mobile-header .wgl-logotype-container img {
        max-width: 165px !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    /* Moins de vide entre le bandeau de titre et le contenu */
    .page-header { margin-bottom: 10px !important; }
    body.woocommerce-page main,
    body.single-product main { padding-top: 10px !important; }
    .wgl-container.single_product { margin-top: 15px !important; }

    /* Pas de défilement horizontal parasite */
    html, body { overflow-x: hidden; }

    /* Titres un peu plus compacts */
    .page-header .page-header_title { font-size: 30px !important; line-height: 1.2 !important; }
    .elementor-widget-heading h1.elementor-heading-title { font-size: 34px !important; line-height: 1.2 !important; }

    /* Tri de la boutique : pleine largeur, sans décorations qui débordent */
    .wgl-woocommerce-sorting { width: 100%; }
    .wgl-woocommerce-sorting .woocommerce-ordering { float: none; width: 100%; margin: 0 0 15px; }
    .woocommerce-result-count { float: none; text-align: center; margin-bottom: 10px; }

    /* Boutons : zone tactile confortable */
    .button, button, input[type="submit"], .wgl-button { min-height: 44px; }

    /* Formulaire de personnalisation */
    .mk-personalization-fields input,
    .mk-personalization-fields select,
    .mk-personalization-fields textarea { font-size: 16px; } /* évite le zoom auto sur iPhone */

    /* Popup « Créez votre compte » */
    .mk-gate-box { width: calc(100% - 32px); padding: 22px 18px; }
}

/* Maillage interne : « D'autres histoires à offrir » (fiche produit) */
.mk-more { clear: both; margin: 50px 0 30px; }
.mk-more__title { text-align: center; margin: 0 0 22px; font-size: 26px; }
.mk-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mk-more__card { display: flex; flex-direction: column; background: #fff; border: 2px solid #f1e2d6; border-radius: 22px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mk-more__card:hover { transform: translateY(-4px); border-color: #f0638a; box-shadow: 0 12px 28px rgba(37, 56, 105, .12); }
.mk-more__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff8f1; }
.mk-more__img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.mk-more__name { display: block; padding: 14px 16px 4px; color: #253869; font-weight: 800; font-size: 16px; line-height: 1.3; }
.mk-more__price { display: block; padding: 0 16px 16px; color: #e14b76; font-weight: 800; }
.mk-more__price del { color: #9a98a8; font-weight: 600; margin-right: 6px; }
.mk-more__price ins { text-decoration: none; }
.mk-more__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.mk-more__links a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff8f1; border: 2px dashed #f1e2d6; color: #253869; font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; }
.mk-more__links a:hover { border-color: #f0638a; color: #e14b76; }
@media (max-width: 767px) {
    .mk-more__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mk-more__grid .mk-more__card:nth-child(3) { display: none; }
    .mk-more__name { font-size: 14px; padding: 10px 10px 2px; }
    .mk-more__price { padding: 0 10px 12px; font-size: 14px; }
    .mk-more__links a { font-size: 13px; padding: 9px 14px; }
}

/* Articles du blog et intro des catégories */
.mk-more-links { clear: both; margin: 30px 0; padding: 20px 24px; background: #fff8f1; border: 2px dashed #f1e2d6; border-radius: 20px; }
.mk-more-links__label { margin: 0 0 6px; font-weight: 700; color: #253869; }
.mk-more-links__list { margin: 0; padding-left: 18px; }
.mk-more-links__list a, .mk-cat-intro a { color: #e14b76; text-decoration: underline; text-underline-offset: 3px; }
.mk-cat-intro { max-width: 900px; margin: 0 auto 25px; text-align: center; color: #555; }

/* Badge promo (-XX %) */
.woocommerce span.onsale, .woocommerce-page span.onsale {
    background: #f0638a !important; color: #fff !important; font-weight: 800; border-radius: 999px !important;
    min-width: 0 !important; min-height: 0 !important; width: auto !important; height: auto !important;
    padding: 6px 12px !important; line-height: 1.2 !important; font-size: 14px !important; box-shadow: 0 4px 12px rgba(240, 99, 138, .35);
}
/* Icônes Font Awesome 6 choisies dans Elementor mais absentes de la bibliothèque
   chargée (Font Awesome 5) : elles s'affichaient vides. Équivalents FA5. */
.fas.fa-wand-magic-sparkles::before, .fas.fa-wand-magic::before { content: "\f0d0"; }
.fas.fa-magnifying-glass::before { content: "\f002"; }
.fas.fa-circle-check::before { content: "\f058"; }
.fas.fa-house::before { content: "\f015"; }
.fas.fa-xmark::before { content: "\f00d"; }
.fas.fa-gift::before { content: "\f06b"; }
.fas.fa-book-open::before { content: "\f518"; }
.fas.fa-puzzle-piece::before { content: "\f12e"; }
.fas.fa-cart-shopping::before { content: "\f07a"; }
.fas.fa-location-dot::before { content: "\f3c5"; }
.fas.fa-phone::before { content: "\f095"; }
.fas.fa-envelope::before { content: "\f0e0"; }

/* Page « Comment ça marche » : moins de vide sous le bandeau */
.elementor-5191 .elementor-element.elementor-element-28a6a490 { --padding-top: 30px !important; }
@media (max-width: 767px) {
    .elementor-5191 .elementor-element.elementor-element-28a6a490 { --padding-top: 10px !important; }
}