

/* ===== CAROUSEL GUIDES ===== */
.gs-carousel-container {
    position: relative;
    width: 100%;
    margin: 25px 0;
    /* Espace pour les boutons de nav qui dépassent */
    padding: 0 20px;
    box-sizing: border-box;
}

/* Zone de scroll — clip horizontal, PAS de wrap */
.gs-scroll-area {
    overflow-x: auto;
    overflow-y: hidden;         /* ← cache ce qui dépasse verticalement */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px;
    cursor: grab;
    /* Forcer que les enfants ne wrappent pas */
    white-space: nowrap;        /* ← sécurité supplémentaire */
}
.gs-scroll-area:active { cursor: grabbing; }
.gs-scroll-area::-webkit-scrollbar { display: none; }
.gs-scroll-area { scrollbar-width: none; }

/* Rail — UNE seule ligne, largeur portée par les items */
.gs-track {
    display: flex;
    flex-wrap: nowrap;          /* ← clé : interdit le retour à la ligne */
    flex-direction: row;        /* ← explicite */
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: max-content;         /* ← le rail est aussi large que tous ses enfants */
    min-width: 100%;
}

/* Carte */
.gs-item {
    scroll-snap-align: start;
    flex: 0 0 160px;            /* ne grandit pas, ne rétrécit pas */
    width: 160px;
    white-space: normal;        /* ← annule le nowrap du parent pour le texte */
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;       /* ← inline pour respecter le nowrap du parent */
    flex-direction: column;
    vertical-align: top;
}
.gs-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.gs-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.gs-recommande {
    background: #f7fdfa !important;
    border-color: #0F6E56 !important;
    border-width: 2px !important;
}

/* Image wrapper — hauteur fixe pour aligner toutes les cartes */
.gs-img-wrapper {
    width: 100%;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0ede8;
	background: #eeeeee40;
    overflow: hidden;
}
.gs-img-wrapper img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.12));
}

/* Infos texte */
.gs-info {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gs-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F6E56;
}
.gs-title {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a18;
    /* Limiter à 3 lignes max */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px; /* 3 lignes × 16px */
}
.gs-price {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a18;
    margin-top: 4px;
}
.gs-save {
    font-size: 10px;
    color: #0F6E56;
    font-weight: 500;
    display: block;
    margin-top: 1px;
}
.gs-cta {
    font-size: 12px;
    color: #185FA5;
    font-weight: 500;
    margin-top: 6px;
}

/* ===== BOUTONS NAV ===== */
.gs-prev-btn,
.gs-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
    /* Positionnement à l'extérieur de la zone de scroll */
    line-height: 1;
    font-size: 20px;
    color: #555;
    padding-bottom: 2px; /* correction optique du centrage */
}
.gs-prev-btn { left: -4px; }
.gs-next-btn { right: -4px; }
.gs-prev-btn:hover,
.gs-next-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
/* Masquer quand inutile */
.gs-prev-btn.gs-hidden,
.gs-next-btn.gs-hidden {
    opacity: 0;
    pointer-events: none;
}

.gs-img-wrapper img[alt*="Pack"] {
    filter: none;
}

@media (max-width: 600px) {
    .gs-carousel-container {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .gs-scroll-area { 
        order: 0; 
        width: 100%; 
    }
    .gs-prev-btn, .gs-next-btn {
        position: static;
        transform: none;
        margin-top: 10px;
        order: 1;  /* passent sous le carousel */
    }
    .gs-prev-btn {
        margin-right: 10px; /* espace entre les deux boutons */
    }
    .gs-item { flex: 0 0 145px; width: 145px; }
    .gs-img-wrapper { height: 155px; }
}

