/* --- BOUTON SÉLECTION (PANIER) --- */
.gs_btn_panier {
    padding: 10px 20px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 5;
}
.gs_btn_panier:hover {background:#000; color:#fff;}
.gs_btn_panier .gs_txt_remove {display:none;}

.gs_btn_panier.is_added {background:#fff; color:#999!important; border-color:#000;}
.gs_btn_panier.is_added .gs_txt_add {display:none;}
.gs_btn_panier.is_added .gs_txt_remove {display:inline-block;}

/* Cas spécifique : Position Absolue DANS LES VIGNETTES/CARTES */
.gs-vignette-wrapper .gs_btn_icon,
.gs_card_produit .gs_btn_icon {position:absolute; top:10px; right:10px; z-index:20; background:rgba(255,255,255,0.9);}

/* Style pour l'icône */
.gs_icon_heart svg {width:20px; height:20px;}

/* --- RESTE DU CSS --- */

.gs_cat_card{position:relative;}
.gs_btn_details{position:absolute; top:60px; right:15px; z-index:999; visibility:hidden; opacity:0; display:inline-block; width:40px; height:40px; border-radius:99px; padding:0; border:none; background:#fff; line-height:1em; color:#000; text-decoration:none; cursor:pointer; transition:all 0.3s; text-align:center;}
.gs_btn_details:hover{background:#000; color:#fff;}

.gs_btn_action_favori{position:absolute; top:10px; right:8px; z-index:999; visibility:hidden; opacity:0; padding:0; line-height:0; width:40px; height:40px; border-radius:99px; background:#fff; border:0; }

.gs_btn_action_favori:hover{background:#000; color:#fff!important;}
.gs_btn_action_favori:hover svg path{fill:#fff!important;}

.gs_cat_card:hover .gs_btn_details,
.gs_cat_card:hover .gs_btn_action_favori,
.gs_vedette_card:hover .gs_btn_action_favori
{visibility:visible; opacity:1;}

@media (max-width:768px){
    .gs_btn_details{top:40px; right:7px; width:30px; height:30px;}
    .gs_btn_action_favori{top:-3px; right:0px; width:30px; height:30px;}
    .gs_cat_card .gs_btn_details,
    .gs_cat_card .gs_btn_action_favori,
    .gs_vedette_card .gs_btn_action_favori
    {visibility:visible; opacity:1;}
}

/* Quickview : le cœur favori doit être visible (pas d'overlay caché ici) */
.gs-qv-actions .gs_btn_action_favori{position:static; visibility:visible; opacity:1; border:1px solid #e5e5e5;}

/* Page favoris : croix de retrait (remplace le cœur), toujours visible */
.gs_btn_fav_remove{position:absolute; top:10px; right:8px; z-index:999; width:40px; height:40px; border-radius:99px; background:#fff; border:0; cursor:pointer; font-size:24px; line-height:1; color:#000; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,.15); transition:background .2s,color .2s;}
.gs_btn_fav_remove:hover{background:#000; color:#fff;}
@media (max-width:768px){
    .gs_btn_fav_remove{top:6px; right:6px; width:32px; height:32px; font-size:20px;}
}

#gs_panier_conteneur-ajax{width:100%;} .gs_item_panier{display:flex;gap:15px;align-items:center;border-bottom:1px solid #eee;padding:10px 0;}
.gs_item_img img{width:60px;height:60px;object-fit:cover;border-radius:4px;} .gs_item_info{flex-grow:1;font-size:14px;line-height:1.4;}
.gs_item_panier a {text-decoration:none; color:inherit; transition:opacity 0.2s;}
.gs_item_panier a:hover {opacity:0.7; color:#000;}

.gs_btn_delete{color:#cc0000;background:none;border:none;font-size:24px;cursor:pointer;padding:0 10px;}
.gs_panier_vide,.gs_loading,.gs_error{padding:20px;text-align:center;font-style:italic;color:#666;}
.gs_panier_prix_row{margin-top:4px;font-size:0.9em;display:flex;align-items:center;gap:6px;}
.gs_badge_mini{background-color:#e74c3c;color:white;font-size:10px;padding:2px 4px;border-radius:3px;font-weight:bold;}
.gs_old_price{text-decoration:line-through;color:#999;font-size:0.9em;} .gs_new_price{color:#d00;font-weight:bold;} .gs_normal_price{font-weight:bold;color:#333;}

/* GRILLE FAVORIS */
.gs_grid_favoris .gs_card_favori { position: relative; border: 1px solid #eee; border-radius: 4px; padding: 15px; text-align: center; transition: transform 0.2s; background: #fff; }
.gs_grid_favoris .gs_card_favori:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.gs_delete_abs {position:absolute; top:5px; right:5px; background:#fff; border-radius:50%; width:30px; height:30px; line-height:30px; padding:0; box-shadow:0 2px 5px rgba(0,0,0,0.1); z-index:10;}
.gs_delete_abs:hover {background:#d00; color:#fff;}

/* ========================= FORMULAIRE DE DEMANDE ========================= */
.gs_form_wrap{max-width:720px;margin:0 auto;}
.gs_form_success{padding:16px 20px;background:#eaf6ee;color:#1e6b3a;border:1px solid #bfe3cb;border-radius:12px;margin-bottom:26px;font-size:15px;line-height:1.5;}

.gs_recap_section{margin-bottom:34px;padding-bottom:26px;border-bottom:1px solid #ececec;}
.gs_form_section_title{font-family:dashiell-fine, Georgia, serif;font-size:1.7em;line-height:1.2;margin:0 0 18px;color:#11171a;}

/* Sections (fieldset sans bordure native) */
.gs_form_section{border:0;margin:0 0 26px;padding:0;min-width:0;}
.gs_form_legend{display:block;width:100%;font-family:dashiell-fine, Georgia, serif;font-size:1.3em;color:#11171a;margin:0 0 16px;padding:0 0 10px;border-bottom:1px solid #ececec;}

/* Lignes & champs */
.gs_form .gs_row{display:flex;gap:18px;flex-wrap:wrap;}
.gs_form .gs_field{margin-bottom:18px;flex:1 1 220px;min-width:0;}
.gs_form .gs_field_cp{flex:0 1 150px;}
.gs_form .gs_field_ville{flex:2 1 220px;}
.gs_form .gs_field label{display:block;font-size:13px;font-weight:600;color:#5a5a5f;margin-bottom:7px;letter-spacing:.01em;}
.gs_req{color:#c0392b;}
.gs_opt{color:#adadb2;font-weight:400;font-style:italic;}

.gs_form input,.gs_form select,.gs_form textarea{
    width:100%;box-sizing:border-box;padding:12px 14px;
    border:1px solid #dcdce0;border-radius:9px;background:#fff;
    font-family:inherit;font-size:15px;color:#222;
    transition:border-color .15s ease, box-shadow .15s ease;
}
.gs_form input::placeholder,.gs_form textarea::placeholder{color:#b6b6bb;}
.gs_form input:focus,.gs_form select:focus,.gs_form textarea:focus{
    outline:none;border-color:#11171a;box-shadow:0 0 0 3px rgba(17,23,26,.09);
}
.gs_form textarea{resize:vertical;min-height:110px;line-height:1.5;}

/* Sélecteurs : chevron personnalisé */
.gs_form select{
    -webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:38px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 14px center;background-size:10px 6px;
}

/* Bouton d'envoi */
.gs_form_submit{
    width:100%;margin-top:8px;padding:15px 24px;
    background:#11171a;color:#fff;border:none;border-radius:9px;
    font-size:15px;font-weight:600;letter-spacing:.03em;cursor:pointer;
    transition:background .15s ease, transform .05s ease;
}
.gs_form_submit:hover{background:#252f36;}
.gs_form_submit:active{transform:translateY(1px);}
.gs_form_submit:disabled{opacity:.6;cursor:default;}
.gs_form_note{margin:12px 0 0;font-size:12px;color:#9a9aa0;text-align:center;}

@media (max-width:600px){
    .gs_form_section_title{font-size:1.45em;}
    .gs_form .gs_row{gap:0;}
    .gs_form .gs_field_cp,.gs_form .gs_field_ville{flex:1 1 100%;}
}

/* ====================== POPUP QUICKVIEW PLEIN ÉCRAN ====================== */
.gs-modal-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,0.5);}
.gs-modal-box-large{position:absolute;inset:0;width:100%;height:100%;background:#fff;overflow:hidden;}
#gs_close_modal{position:absolute;top:18px;right:24px;z-index:40;width:46px;height:46px;border:none;background:rgba(255,255,255,0.92);border-radius:50%;font-size:30px;line-height:1;cursor:pointer;color:#000;box-shadow:0 2px 8px rgba(0,0,0,0.15);}
#gs_close_modal:hover{background:#000;color:#fff;}
#gs_quickview_content{width:100%;height:100%;}

/* Layout plein écran : GALERIE à gauche, INFOS à droite */
.gs-full-product-layout{display:flex;flex-wrap:nowrap;width:100%;height:100%;gap:0;overflow:hidden;}
.gs-col-gallery{order:1;flex:1 1 55%;max-width:55%;height:100%;overflow:hidden;position:relative;animation:gsSlideInLeft .5s cubic-bezier(.22,.61,.36,1) both;}
/* Badge promo de la quickview : overlay fixe au-dessus du slider (ne défile pas) */
.gs-col-gallery > .gs_badge_promo{position:absolute;top:14px;left:14px;z-index:10;}
.gs-col-infos{order:2;flex:1 1 45%;max-width:45%;height:100%;overflow-y:auto;padding:70px 55px;box-sizing:border-box;animation:gsSlideInRight .5s cubic-bezier(.22,.61,.36,1) both;}

@keyframes gsSlideInLeft{from{transform:translateX(-100%);opacity:0;}to{transform:translateX(0);opacity:1;}}
@keyframes gsSlideInRight{from{transform:translateX(100%);opacity:0;}to{transform:translateX(0);opacity:1;}}

/* La galerie remplit toute la hauteur de l'écran */
.gs-col-gallery .gs_quickview_swiper,
.gs-col-gallery .gs-main-img-wrapper{height:100%;display:flex;align-items:center;justify-content:center;background:#f7f7f7;}
.gs-col-gallery .gs-main-img{width:100%;height:100%;object-fit:contain;display:block;}

/* Mobile : on empile (galerie en haut, infos en dessous), sans animation latérale.
   Le popup défile verticalement ; surtout PAS de flex-wrap (sinon les infos
   passent dans une 2e colonne hors écran). */
@media (max-width:768px){
    .gs-modal-box-large{overflow-y:auto;-webkit-overflow-scrolling:touch;}
    #gs_quickview_content{height:auto;min-height:100%;}
    .gs-full-product-layout{flex-direction:column;flex-wrap:nowrap;height:auto;min-height:100%;overflow:visible;}
    .gs-col-gallery{order:1;flex:0 0 auto;max-width:100%;width:100%;height:55vh;overflow:hidden;animation:none;}
    .gs-col-infos{order:2;flex:0 0 auto;max-width:100%;width:100%;height:auto;overflow:visible;padding:30px 22px;animation:none;}
}
.gs-qv-logo{display:block;width:auto;max-width:160px;height:auto;margin:0 0 18px;}
.gs-qv-title{margin-top:0;font-size:2em;line-height:1.2;} .gs-qv-price-wrap{font-size:1.5em;margin:20px 0;}
.gs-qv-old-price{text-decoration:line-through;color:#999;margin-right:10px;} .gs-qv-new-price{color:#d00;font-weight:bold;} .gs-qv-price{font-weight:bold;}
.gs-qv-metas{margin-bottom:20px;font-size:0.9em;color:#666;border-bottom:1px solid #eee;padding-bottom:15px;} .gs-meta-row{margin-bottom:5px;}

/* Partage réseaux sociaux (popup fiche produit) */
.gs-qv-share{display:flex;align-items:center;gap:10px;margin:16px 0 4px;flex-wrap:wrap;}
.gs-qv-share-label{font-size:0.9em;color:#666;}
.gs-share-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid #e5e5e5;background:#fff;color:#222;cursor:pointer;padding:0;transition:background .15s,color .15s,border-color .15s,transform .1s;}
.gs-share-btn:hover{transform:translateY(-1px);}
.gs-share-fb:hover{background:#1877f2;border-color:#1877f2;color:#fff;}
.gs-share-x:hover{background:#000;border-color:#000;color:#fff;}
.gs-share-ig:hover{background:#e1306c;border-color:#e1306c;color:#fff;}
.gs-share-wa:hover{background:#25d366;border-color:#25d366;color:#fff;}
.gs-share-sms:hover{background:#34c759;border-color:#34c759;color:#fff;}
.gs-share-ig-copied{position:relative;}
.gs-share-ig-copied::after{content:"Lien copié";position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#222;color:#fff;font-size:11px;line-height:1;white-space:nowrap;padding:5px 8px;border-radius:4px;}

/* Les SMS n'existent que sur mobile. La classe est posée sur <body> par
   script.js -> pas de bouton mort affiché ailleurs. */
.gs-share-mobile{display:none;}
body.gs-is-mobile .gs-share-mobile{display:inline-flex;}

/* Partage de la SÉLECTION complète */
.gs_partage_panier{margin:18px 0;}
.gs_partage_panier .gs-qv-share{margin:0;}

/* Bandeau d'une sélection reçue via un lien partagé */
.gs_shared_banner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;margin-bottom:18px;border:1px solid #e5e5e5;border-radius:6px;background:#faf7f5;}
.gs_shared_banner_txt{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;}
.gs_shared_banner_txt strong{font-size:0.98em;}
.gs_shared_banner_txt span{font-size:0.85em;color:#666;}
.gs_shared_import{cursor:pointer;}
.gs_shared_mine{font-size:0.85em;color:#666;text-decoration:underline;}

.gs-main-img-wrapper{position:relative;display:block;} .gs-main-img{width:100%;height:auto;border-radius:4px;margin-bottom:15px;}
.gs-qv-badge-overlay,.gs_badge_promo{position:absolute;top:10px;left:10px;background-color:#d00;color:#fff;padding:5px 10px;font-weight:bold;font-size:14px;border-radius:4px;z-index:5;box-shadow:0 2px 5px rgba(0,0,0,0.2);}
.gs_badge_promo{position:relative;top:auto;left:auto;display:inline-block;margin-right:5px;vertical-align:middle;font-size:0.8em;padding:4px 8px;}
.gs-qv-video,.gs_video_wrapper{margin:20px 0;position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:4px;}
.gs-qv-video iframe,.gs_video_wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}

.gs_term_link{color:#333;text-decoration:none;border-bottom:1px solid transparent;transition:all 0.2s;} .gs_term_link:hover{color:#000;border-bottom:1px solid #000;}


.gs_prix{font-family:dashiell-fine; font-size:1.2em;}
.gs_prix_barre{text-decoration:line-through;margin-right:10px;opacity:0.6;font-size:0.9em;} 
.gs_prix_promo{color:#d00;font-weight:bold;}

.swiper{width:100%;height:100%;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;}
.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box;}
.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block;}

.gs_quickview_swiper{width:100%;height:100%;border-radius:4px;} .gs_quickview_swiper .swiper-slide{display:flex;align-items:center;justify-content:center;background:#f7f7f7;} .gs_quickview_swiper .swiper-slide img{width:100%;height:100%;object-fit:contain;display:block;}
.gs_quickview_swiper .swiper-button-next,.gs_quickview_swiper .swiper-button-prev{color:#000;background:rgba(255,255,255,0.8);width:40px;height:40px;border-radius:50%;z-index:50;}
.gs_quickview_swiper .swiper-button-next:after,.gs_quickview_swiper .swiper-button-prev:after{font-size:14px;font-weight:bold;}

/* ==========================================================================
   PAGE DÉDIÉE PRODUIT (single robe/accessoire) — réutilise le design du popup
   mais dans une vraie page (hauteurs adaptées, plus de contrainte "modale").
   ========================================================================== */
.gs-single-product{max-width:1200px;margin:0 auto;padding:40px 20px;box-sizing:border-box;}
.gs-qv-logo-link{display:inline-block;transition:opacity .15s;}
.gs-qv-logo-link:hover{opacity:.7;}
.gs-single-product .gs-full-product-layout{height:auto;overflow:visible;gap:40px;}
.gs-single-product .gs-col-gallery{height:75vh;overflow:hidden;animation:none;}
.gs-single-product .gs-col-infos{height:auto;overflow:visible;padding:0;animation:none;}
@media (max-width:768px){
    .gs-single-product{padding:20px 0;}
    .gs-single-product .gs-full-product-layout{gap:0;}
    .gs-single-product .gs-col-gallery{height:60vh;}
    .gs-single-product .gs-col-infos{padding:24px 18px;}
}

.gs_product_carousel_wrapper{margin:30px 0;width:100%;max-width:100%;overflow:hidden;position:relative;}
.gs_product_swiper{width:100%;padding-bottom:40px;}
.gs_product_swiper .swiper-slide{width:auto;max-width:100%;}
.gs_product_swiper .swiper-slide img{width:100%;height:400px;object-fit:cover;border-radius:4px;cursor:grab;display:block;}
.gs_product_swiper .swiper-slide img:active{cursor:grabbing;} .gs_product_swiper .swiper-pagination-bullet-active{background:#000;}

/* --- STYLE VIGNETTE (SLIDER SURVOL) --- */
.gs-vignette-wrapper a{display:block;width:100%;height:100%;}
.gs-vignette-img {display: block; transition: transform 0.5s ease;}
.gs-vignette-wrapper:hover .swiper-slide-active .gs-vignette-img {transform:scale(1.05);}

.gs_card_swiper{width:100%;max-width:100%;height:100%;padding-bottom:0!important;overflow:hidden;}
.gs-card-next,.gs-card-prev{color:#000;background:rgba(255,255,255,0.8);width:25px;height:25px;border-radius:50%;opacity:0;transition:opacity 0.3s;position:absolute;top:50%;transform:translateY(-50%);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.gs-card-prev:after{content:'\2039';font-size:16px;font-weight:bold;line-height:1;}
.gs-card-next:after{content:'\203A';font-size:16px;font-weight:bold;line-height:1;}
.swiper-button-disabled{opacity:0.3!important;cursor:default;}
.gs-card-next{right:10px;} .gs-card-prev{left:10px;}
.gs-vignette-wrapper:hover .gs-card-next,.gs-vignette-wrapper:hover .gs-card-prev{opacity:1;}
@media (max-width:768px){.gs-card-next,.gs-card-prev{opacity:1;}}

.elementor-widget-shortcode{width:100%;min-width:0;}

.gs_grid_similaire{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-top:20px;}
.gs_card_produit{border:1px solid #eee;padding:10px;border-radius:4px;text-align:center;transition:transform 0.2s;}
.gs_card_produit:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,0.05);}
.gs_card_img{width:100%;height:250px;background-size:cover;background-position:center;margin-bottom:10px;border-radius:2px;}
.gs_card_title{font-weight:bold;margin-bottom:10px;color:#333;text-decoration:none;display:block;}
.gs_card_produit a{text-decoration:none;}
.gs_history_title{margin-top:40px;margin-bottom:20px;font-size:1.5em;border-bottom:2px solid #eee;padding-bottom:10px;}

/* ==========================================================================
   A. MODE "PELLICULE" (Hauteur fixe, Largeur variable, Pas de crop)
   ========================================================================== */

/* 1. HAUTEUR SUR ORDINATEUR */
.gs-vignette-wrapper { height:800px!important; aspect-ratio:auto!important; width:100%; }

.gs-vignette-wrapper > img { height:800px!important; }

/* 2. HAUTEUR SUR MOBILE */
@media (max-width: 768px) {
    .gs-vignette-wrapper { height:270px!important; }
    .gs-vignette-wrapper > img { height:270px!important; }
}

/* 3. Ajustement des diapositives */
.gs-vignette-wrapper .swiper-slide {
    width: auto !important;  
    height: 100%;
    aspect-ratio: auto !important;
    border-radius: 4px;
    overflow: hidden;
}

/* 4. Gestion de l'image (Cover vs Contain) */
.gs-vignette-wrapper .swiper-slide img {
    height: 100%;      
    width: auto;       
    object-fit: cover; /* "cover" remplit tout le cadre (joli). */
    display: block;
}

/* ==========================================================================
   C. CATALOGUE DYNAMIQUE [gs_catalogue] (GRILLE À SPANS ALÉATOIRES)
   ========================================================================== */

/* Barre de filtres catégorie / marque — en BOUTONS (pastilles cliquables) */
.gs_cat_filtres{display:flex; flex-direction:column; gap:10px; margin:0 0 20px; padding:0 20px;}
.gs_filtre_group{display:flex; flex-wrap:wrap; gap:8px; align-items:center;}
.gs_filtre_btn{
    display:inline-block; padding:7px 15px; border:1px solid #ddd; background:#fff;
    color:#333; font-size:13px; line-height:1.1; text-decoration:none; border-radius:999px;
    cursor:pointer; transition:background .15s, border-color .15s, color .15s;
}
.gs_filtre_btn:hover{border-color:#11171a; color:#000;}
.gs_filtre_btn.is-active{background:#11171a; border-color:#11171a; color:#fff;}
.gs_filtre_count{opacity:.55; font-size:.9em;}
.gs_filtre_btn.is-active .gs_filtre_count{opacity:.8;}
.gs_cat_filtre_reset{align-self:flex-start; font-size:13px; color:#555; text-decoration:underline;}
@media (max-width:600px){
    .gs_filtre_group{gap:6px;}
    .gs_filtre_btn{padding:6px 12px; font-size:12px;}
}

/* Conteneur des pages d'archives (robes/accessoires + catégories/marques) */
.gs-archive-catalogue{max-width:1400px;margin:0 auto;padding:30px 0 60px;box-sizing:border-box;}

/* Fil d'Ariane (en-tête du catalogue) — titre animé lettre par lettre (thème) */
.gs_cat_breadcrumb{padding:0 20px;margin:0 0 16px;}
.gs_cat_breadcrumb .gs_bc_heading{margin:0;font-size:1em;font-weight:600;color:#333;line-height:1.3;letter-spacing:.01em;}
.gs_cat_breadcrumb .gs_bc_heading a{color:inherit;text-decoration:none;cursor:pointer;}
.gs_cat_breadcrumb .gs_bc_heading a:hover{opacity:.7;}

.gs_catalogue{width:100%; padding:0 20px;}

/* --- MODE MASONRY (grille CSS : largeur par produit + hauteurs qui épousent les images) ---
   Base de 6 colonnes -> Pleine largeur = 6, Moitié = 3 (2/ligne), Tiers = 2 (3/ligne).
   La HAUTEUR de chaque carte est convertie en "grid-row: span N" par le JS (unité de
   rangée fine), ce qui donne l'effet masonry. 'dense' comble les trous.
   Avant JS (.gs-ready absent) : affichage en bloc = 1 colonne (fallback sans masonry). */
.gs_catalogue.gs-masonry.gs-ready{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    grid-auto-rows:8px;              /* unité de rangée : plus c'est petit, plus l'ajustement est fin */
    grid-auto-flow:row dense;
    gap:var(--gs-cat-gap,16px);
    align-items:start;               /* indispensable : les cartes gardent leur hauteur de contenu */
}
.gs_catalogue.gs-masonry .gs_cat_item{margin:0;}
.gs_catalogue.gs-masonry .gs-w-full{grid-column:1 / -1;} /* pleine largeur */
.gs_catalogue.gs-masonry .gs-w-half{grid-column:span 3;} /* moitié : 2 par ligne */
.gs_catalogue.gs-masonry .gs-w-third{grid-column:span 2;} /* tiers : 3 par ligne */

/* En masonry, la boîte média a le ratio de la 1ère image : celle-ci la REMPLIT
   entièrement (cover, sans bandes grises). Les autres images du slider sont
   affichées ENTIÈRES (contain) puisque leur ratio peut différer. */
.gs_catalogue.gs-masonry .gs_cat_photo{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}
.gs_catalogue.gs-masonry .gs_cat_photo.gs-first{
    object-fit:cover !important;
}

/* Tablette : on garde la base 6 (2 ou 3 cartes par ligne selon leur largeur). */
/* Mobile : une seule colonne, toutes les cartes en pleine largeur. */
@media (max-width:600px){
    .gs_catalogue.gs-masonry.gs-ready{grid-template-columns:1fr;}
    .gs_catalogue.gs-masonry .gs_cat_item{grid-column:1 / -1 !important;}
}

/* Scroll infini : indicateur de chargement + sentinelle de détection */
.gs_cat_loader{display:none;text-align:center;padding:24px 0;}
.gs_cat_loader.is-visible{display:block;}
.gs_cat_sentinel{width:100%;height:1px;}

/* Une RANGÉE = N colonnes de largeur ÉGALE (flex:1 chacune).
   Le nombre de colonnes (1, 2 ou 3) est réglé sur chaque fiche produit (_gs_cols)
   et s'applique à l'identique sur PC ET mobile. Une rangée d'1 colonne occupe
   donc 100 % de la largeur, quel que soit le support. */
.gs_cat_row{display:flex;gap:16px;margin-bottom:16px;align-items:stretch;}
.gs_cat_row > .gs_cat_item{flex:1 1 0;min-width:0;} /* parts strictement égales */
.gs-cols-1{display:block;} /* rangée pleine largeur : la carte occupe 100 % */

/* Seuil mobile/tablette aligné sur le reste de la feuille de style (768px). */
@media (max-width:768px){
    .gs_cat_row{gap:10px;margin-bottom:10px;}
    /* Rangée d'1 colonne : sur mobile/tablette on garde un format PORTRAIT (et non le
       bandeau 16:9 du bureau), sinon la photo de robe apparaît comme une fine bande
       centrée avec de grandes marges grises -> on a l'impression qu'elle ne fait pas 100 %. */
    .gs-cols-1 > .gs_cat_item{width:100%;}
    .gs-cols-1 .gs_cat_media{aspect-ratio:3 / 4;}
}

/* --- La carte produit (minimaliste : pas d'ombre ni de transition) --- */
.gs_cat_card{position:relative; border:0px solid #eee; background:#fff; height:100%; display:flex; flex-direction:column;}

/* Zone média : la HAUTEUR est donnée par un RATIO (aspect-ratio).
   Comme les colonnes d'une même rangée ont la même largeur, elles ont donc
   la même hauteur => parfaitement homogènes côte à côte.
   Image affichée en ENTIER (contain), donc jamais rognée. */
.gs_cat_media{
    position:relative;
    width:100%;
    aspect-ratio:3 / 4;       /* rangées de 2 ou 3 : portrait */
    background:#f7f7f7;
    overflow:hidden;
}
/* Rangée d'un seul produit : format bandeau pour ne pas être démesuré */
.gs-cols-1 .gs_cat_media{aspect-ratio:16 / 9;}

/* Le slider Swiper occupe toute la boîte */
.gs_cat_swiper,
.gs_cat_swiper .swiper-wrapper,
.gs_cat_swiper .swiper-slide{height:100%;width:100%;}

/* IMPORTANT (fix mobile / iOS) : la boîte média tire sa hauteur d'aspect-ratio, or
   height:100% ne se résout pas toujours contre un parent ainsi dimensionné (le slider
   s'effondrait à 0 -> on ne voyait que le fond gris). On fait donc remplir la boîte en
   ABSOLU, ce qui donne une hauteur définie fiable partout. */
.gs_cat_media > .gs_cat_swiper,
.gs_cat_media > .gs_cat_solo,
.gs_vedette_media > .gs_cat_swiper,
.gs_vedette_media > .gs_cat_solo{
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    width:100%;
    height:100%;
}

/* Slide / image solo : image centrée et affichée ENTIÈRE (jamais rognée) */
.gs_cat_swiper .swiper-slide,
.gs_cat_solo{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f7f7f7;
}
.gs_cat_swiper .swiper-slide a,
.gs_cat_solo{
    width:100%;
    height:100%;
}
.gs_cat_swiper .swiper-slide a{
    display:flex;
    align-items:center;
    justify-content:center;
}
.gs_cat_photo{
    max-width:100%;
    max-height:100%;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important; /* image entière, non rognée */
    display:block;
    -webkit-user-drag:none;
    user-select:none;
}

/* --- Slide VIDÉO du catalogue (1ère slide, si la fiche a une vidéo) ---
   La carte a déjà le ratio de la vidéo (posé en inline sur .gs_cat_media) : la
   slide peut donc la remplir exactement, sans bande ni rognage. Les PHOTOS, elles,
   passent toutes en contain — c'est le comportement voulu : elles restent
   entières quel que soit leur format. Une fiche SANS vidéo est inchangée. */
.gs_cat_video_slide{background:#000;}
.gs_cat_video{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    background:#000;
    pointer-events:none; /* décor muet : ne bloque pas le swipe du slider */
}
/* Tenant-lieu YouTube : la miniature s'affiche pendant que le lecteur se monte
   (script.js le fait à l'entrée de la carte dans l'écran, pas au chargement).
   maxresdefault fait 1280x720 même pour un Short : YouTube y centre la vidéo
   verticale sur 405 px (= 9/16 exact) et floute les côtés. Le cover ci-dessous
   recadre donc pile sur la partie nette, puisque la carte a déjà le ratio 9/16. */
.gs_cat_video_facade{
    position:relative;
    width:100%;
    height:100%;
    background:#000;
    overflow:hidden;
}
/* Le lecteur remplit la carte, qui a exactement son ratio : ni bande ni rognage.
   pointer-events:none -> décor muet en boucle : pas de chrome YouTube au survol,
   et le swipe du slider passe au travers. */
.gs_cat_video_embed{
    width:100%;
    height:100%;
}
.gs_cat_video_iframe{
    position:absolute;
    top:0; left:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
}
.gs_cat_video_embed iframe,
.gs_cat_video_iframe{
    border:0;
    display:block;
}

/* Flèches du slider : visibles, masquées sur mobile (on swipe au doigt) */
.gs_cat_arrow{
    position:absolute; top:50%; transform:translateY(-50%); width:40px!important; height:40px!important; border:none!important; border-radius:50%; background:#fff!important; color:#000!important; font-size:30px!important;  line-height:1;
    cursor:pointer; z-index:15; padding:0 0 5px 0!important; display:flex; border-radius:999px!important; align-items:center; justify-content:center; outline:none; box-shadow:none;
}
.gs_cat_prev{left:8px;}
.gs_cat_next{right:8px;}
.gs_cat_arrow.swiper-button-disabled{opacity:0.3; cursor:default;}
.gs_cat_pagination{bottom:6px !important;}
.gs_cat_pagination .swiper-pagination-bullet{background:#fff;opacity:0.4;}
.gs_cat_pagination .swiper-pagination-bullet-active{background:#fff;opacity:1;}
@media (max-width:768px){
    .gs_cat_arrow{display:none!important;} /* on défile au doigt sur mobile */
}

/* Bouton favori en haut à droite */
.gs_cat_fav{position:absolute;top:8px;right:8px;z-index:20; border:none!important;}


/* Badge promo en haut à gauche */
.gs_cat_media .gs_badge_promo,
.gs_vedette_media .gs_badge_promo{position:absolute;top:8px;left:8px;z-index:20;}

/* Corps de la carte (titre, prix, actions) */
.gs_cat_body{padding:15px 0 30px 0; display:flex; flex-direction:column; gap:6px; flex-grow:1;}
.gs_cat_title{margin:0;padding:0;cursor:pointer;font-weight:bold;color:#222;text-decoration:none;font-size:1.7em;line-height:1.3; font-family:dashiell-fine;}
.gs_cat_title:hover{text-decoration:underline;}
.gs_cat_price{font-size:1em;}
.gs_cat_actions{margin-top:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.gs_cat_actions .gs_btn_panier{font-size:12px; letter-spacing:0.07em; padding:0px; border:none; color:#999; transition:none; font-family:dashiell-fine;}
.gs_cat_actions .gs_btn_panier:hover{background:#fff; color:#000;}
.gs_cat_actions .gs_btn_panier:focus{background:#fff; color:#000;}


@media (max-width:768px){
    .gs_cat_title{font-size:1.4em; line-height:1.1; }
}

/* ==========================================================================
   MODE VEDETTES : masonry (colonnes CSS), hauteurs variables, photo entière.
   Totalement indépendant du mode catalogue (classes .gs_vedette_*).
   ========================================================================== */
.gs_vedettes_masonry{
    column-count:var(--gs-vedettes-cols,3);
    column-gap:var(--gs-vedettes-gap,16px); /* espace horizontal entre colonnes */
}
.gs_vedette_item{
    /* On empêche une carte d'être coupée entre deux colonnes */
    -webkit-column-break-inside:avoid;
    page-break-inside:avoid;
    break-inside:avoid;
    display:inline-block; /* fiabilise le break-inside sur certains navigateurs */
    width:100%;
    margin:0 0 var(--gs-vedettes-gap,16px); /* espace vertical entre articles */
}
.gs_vedette_card{background:#fff;display:flex;flex-direction:column;}
/* Média : la HAUTEUR dépend de la 1ère image (aspect-ratio injecté en inline) ;
   fallback 3/4 si dimensions inconnues. Le slider remplit cette boîte et les
   autres images s'affichent en contain (réutilise les styles .gs_cat_swiper). */
.gs_vedette_media{position:relative;width:100%;aspect-ratio:3 / 4;background:#f7f7f7;overflow:hidden;cursor:pointer;}
.gs_vedette_body{padding:12px 0 24px;display:flex;flex-direction:column;gap:6px;}

@media (max-width:1024px){ .gs_vedettes_masonry{column-count:2;} }
@media (max-width:600px){  .gs_vedettes_masonry{column-count:1;} }

/* ==========================================================================
   APPARITION AU SCROLL (fade-in + glissement depuis le haut).
   La classe .gs-reveal est ajoutée par JS, donc rien n'est masqué si le JS
   est absent. Catalogue (.gs_cat_item) ET vedettes (.gs_vedette_item).
   ========================================================================== */
.gs-reveal{opacity:0;transform:translateY(-24px);transition:opacity .6s ease, transform .6s ease;}
.gs-reveal.gs-reveal-in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
    .gs-reveal,.gs-reveal.gs-reveal-in{opacity:1;transform:none;transition:none;}
}

/* ==========================================================================
   RECHERCHE AJAX INSTANTANÉE [gs_recherche]
   ========================================================================== */
/* Bouton-icône déclencheur */
.gs_search_trigger{display:inline-flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;color:inherit;padding:6px;line-height:0;}
.gs_search_trigger:hover{opacity:.7;}
.gs_search_trigger_label{font-size:14px;line-height:1;}

/* Popup de recherche (réutilise .gs-modal-overlay : fixed, fond semi-opaque) */
.gs_search_modal_box{position:relative;width:92%;max-width:600px;margin:12vh auto 0;background:#fff;border-radius:10px;padding:28px 22px 18px;box-shadow:0 20px 60px rgba(0,0,0,.25);box-sizing:border-box;}
.gs_search_close{position:absolute;top:8px;right:12px;border:none;background:none;font-size:28px;line-height:1;color:#999;cursor:pointer;}

.gs_search{position:relative;width:100%;}
.gs_search_field{position:relative;}
.gs_search_input{width:100%;box-sizing:border-box;padding:12px 38px 12px 16px;border:1px solid #ddd;border-radius:999px;font-size:15px;outline:none;transition:border-color .2s;}
.gs_search_input:focus{border-color:#000;}
.gs_search_clear{position:absolute;top:50%;right:12px;transform:translateY(-50%);border:none;background:none;font-size:22px;line-height:1;color:#999;cursor:pointer;display:none;}
.gs_search.has-value .gs_search_clear{display:block;}
.gs_search.is-loading .gs_search_input{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04),transparent);background-size:200% 100%;animation:gsSearchLoad 1s linear infinite;}
@keyframes gsSearchLoad{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

.gs_search_results{margin-top:12px;border-top:1px solid #f0f0f0;max-height:60vh;overflow-y:auto;display:none;}
.gs_search_results.is-open{display:block;}
.gs_search_group{padding:6px 0;border-bottom:1px solid #f2f2f2;}
.gs_search_group:last-child{border-bottom:0;}
.gs_search_group_t{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#999;padding:8px 16px 4px;}
.gs_search_item{display:flex;align-items:center;gap:12px;padding:8px 16px;text-decoration:none;color:#222;}
.gs_search_item:hover{background:#f7f7f7;}
.gs_search_product{cursor:pointer;}
.gs_search_product img,.gs_search_noimg{width:44px;height:58px;object-fit:cover;background:#f0f0f0;border-radius:4px;flex:0 0 auto;}
.gs_search_meta{display:flex;flex-direction:column;line-height:1.3;flex:1 1 auto;min-width:0;}
.gs_search_title{font-weight:600;}
.gs_search_price{font-size:.85em;color:#666;}
.gs_search_term{justify-content:space-between;}
.gs_search_count{color:#aaa;font-size:.85em;}
.gs_search_empty{padding:18px 16px;color:#888;text-align:center;}

/* Cœur favori dans les résultats : visible et en flux (pas en overlay caché) */
.gs_search_fav{flex:0 0 auto;display:inline-flex;}
.gs_search_fav .gs_btn_action_favori{position:static;visibility:visible;opacity:1;width:36px;height:36px;background:transparent;}
.gs_search_fav .gs_btn_action_favori:hover{background:#f0f0f0;}
.gs_search_fav .gs_btn_action_favori:hover svg path{fill:#000!important;}

/* État FAVORI ACTIF : cœur rouge rempli (catalogue, vedettes, recherche) */
.gs_btn_action_favori.is_added svg path{fill:#d00;}

/* ==========================================================================
   B. STYLE DU SHORTCODE [gs_slider_solo]
   ========================================================================== */

.gs-solo-wrapper {
    width: 100%;
    /* Ratio Portrait 3:4 (ex: 300x400). Changez en 1/1 pour un carré */
    aspect-ratio: 3 / 4; 
    border-radius: 4px;
    background: #f4f4f4; /* Fond gris le temps que l'image charge */
}

.gs_solo_swiper, 
.gs_solo_swiper .swiper-wrapper, 
.gs_solo_swiper .swiper-slide {
    height: 100%;
    width: 100%;
}

.gs-solo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre */
    display: block;
}

/* Style des flèches spécifiques à ce slider */
.gs-solo-prev, .gs-solo-next {
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s;
    background: rgba(255,255,255,0.9);
    color: #000;
}
.gs-solo-wrapper:hover .gs-solo-prev,
.gs-solo-wrapper:hover .gs-solo-next {
    opacity: 1; /* Apparait au survol */
}

/* Style de la pagination (les points en bas) */
.gs-solo-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.gs-solo-pagination .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* ======================================================================
   TOAST — notification élégante (remplace les alert() JS)
   Personnalisable : couleurs, rayon, ombre, position ci-dessous.
   ====================================================================== */
.gs_toast_wrap{
    position:fixed;
    left:50%;
    bottom:28px;
    transform:translateX(-50%);
    z-index:100000;                 /* au-dessus des modales */
    width:auto;
    max-width:calc(100vw - 32px);
    pointer-events:none;            /* seul le toast est cliquable */
    display:flex;
    justify-content:center;
}
.gs_toast{
    pointer-events:auto;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:280px;
    max-width:440px;
    padding:15px 16px 15px 18px;
    background:#fff;
    color:#11171a;
    border:1px solid #ececec;
    border-left:4px solid #11171a;  /* liseré coloré selon le type */
    border-radius:12px;
    box-shadow:0 12px 34px rgba(17,23,26,.16);
    font-family:inherit;
    font-size:.95em;
    line-height:1.35;
    /* état de départ (avant apparition) */
    opacity:0;
    transform:translateY(14px) scale(.98);
    transition:opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.gs_toast.is-visible{
    opacity:1;
    transform:translateY(0) scale(1);
}
.gs_toast_icon{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#11171a;                  /* recoloré par type ci-dessous */
}
.gs_toast_msg{
    flex:1 1 auto;
    font-weight:500;
}
/* Fragment mis en évidence dans le message (ex : "5 robes maximum") */
.gs_toast_hl{
    font-weight:700;
    color:#11171a;
    background:rgba(217,153,21,.18);   /* léger surlignage doré */
    padding:0 3px;
    border-radius:3px;
}
.gs_toast_close{
    flex:0 0 auto;
    background:none;
    border:none;
    cursor:pointer;
    font-size:22px;
    line-height:1;
    color:#9aa2a6;
    padding:0 2px;
    margin:-4px -2px -4px 4px;
    transition:color .15s ease;
}
.gs_toast_close:hover{ color:#11171a; }

/* Variantes de couleur (liseré + icône) */
.gs_toast--warning{ border-left-color:#d99915; }
.gs_toast--warning .gs_toast_icon{ color:#d99915; }
.gs_toast--error{ border-left-color:#c0392b; }
.gs_toast--error .gs_toast_icon{ color:#c0392b; }
.gs_toast--success{ border-left-color:#1f9d55; }
.gs_toast--success .gs_toast_icon{ color:#1f9d55; }
.gs_toast--info{ border-left-color:#11171a; }
.gs_toast--info .gs_toast_icon{ color:#11171a; }

@media (max-width:600px){
    .gs_toast_wrap{ left:16px; right:16px; bottom:16px; transform:none; }
    .gs_toast{ min-width:0; width:100%; max-width:none; }
}
@media (prefers-reduced-motion: reduce){
    .gs_toast{ transition:opacity .2s ease; transform:none; }
    .gs_toast.is-visible{ transform:none; }
}