/**
 * Products Vedette V2 — Boutique GoExploria
 * Utilise .resto-header-block (restaurant-header.css) pour l'entête standard
 * et .vedette-carousel-* (events-vedette.css) pour le carrousel animé.
 * N'ajoute ici que les styles spécifiques aux cartes PRODUITS et à la barre de filtres.
 */

/* ============================================================
   SECTION
   ============================================================ */
.products-vedette-v2-section {
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
    position: relative;
}

.products-vedette-v2-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   FILTRES CATÉGORIES (barre basse du header)
   ============================================================ */
.products-vedette-v2-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.products-vedette-v2-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2942;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.products-vedette-v2-filter-btn:hover {
    background: #fff;
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-1px);
}

.products-vedette-v2-filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f26522 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 16px rgba(242, 101, 34, 0.35);
}

.products-vedette-v2-filter-btn i {
    font-size: 16px;
}

/* ============================================================
   CAROUSEL WRAPPER
   ============================================================ */
.products-vedette-v2-carousel {
    margin-top: 6px;
}

.products-vedette-v2-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 8px 0 16px;
}

.products-vedette-v2-scroll-container {
    display: flex;
    gap: 20px;
    overflow: visible;
    padding-bottom: 8px;
    will-change: transform;
}

/* Couleur de la barre de progression & boutons carousel spécifique produits */
.products-vedette-v2-section .vedette-carousel-bar {
    background: linear-gradient(90deg, #d4af37, #f26522);
}
.products-vedette-v2-section .vedette-carousel-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f26522 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(242, 101, 34, 0.4);
}

/* ============================================================
   CARTE PRODUIT
   ============================================================ */
.products-vedette-v2-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
    border: 1px solid #f0ece3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.products-vedette-v2-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.18);
    border-color: #d4af37;
}

/* ---------- Image ---------- */
.products-vedette-v2-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f7f4ee;
}

.products-vedette-v2-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.products-vedette-v2-card:hover .products-vedette-v2-card-image img {
    transform: scale(1.08);
}

/* ---------- Badge ---------- */
.products-vedette-v2-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.products-vedette-v2-badge--promo    { background: linear-gradient(135deg, #e53935, #d32f2f); }
.products-vedette-v2-badge--new      { background: linear-gradient(135deg, #1e88e5, #1565c0); }
.products-vedette-v2-badge--hot      { background: linear-gradient(135deg, #f26522, #e84c10); }
.products-vedette-v2-badge--trending { background: linear-gradient(135deg, #d4af37, #b8922d); }

/* ---------- Favori ---------- */
.products-vedette-v2-fav {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.products-vedette-v2-fav:hover,
.products-vedette-v2-fav.is-active {
    background: #e53935;
    color: #ffffff;
    transform: scale(1.08);
}

/* ---------- Overlay aperçu rapide ---------- */
.products-vedette-v2-quick {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, 0.92) 100%);
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.products-vedette-v2-card:hover .products-vedette-v2-quick {
    transform: translateY(0);
}

.products-vedette-v2-quick-btn {
    width: 100%;
    padding: 9px 14px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0a1628;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.products-vedette-v2-quick-btn:hover {
    background: #d4af37;
    color: #ffffff;
}

/* ---------- Contenu ---------- */
.products-vedette-v2-card-content {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.products-vedette-v2-card-brand {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #d4af37;
}

.products-vedette-v2-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2942;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.products-vedette-v2-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59f00;
    font-size: 12px;
}

.products-vedette-v2-card-rating .far {
    color: #dcdcdc;
}

.products-vedette-v2-card-reviews {
    margin-left: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
}

/* ---------- Footer prix + bouton ajouter ---------- */
.products-vedette-v2-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid #f0ece3;
}

.products-vedette-v2-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.products-vedette-v2-price-old {
    font-size: 16px;
    font-weight: 500;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1;
}

.products-vedette-v2-price {
    font-size: 18px;
    font-weight: 800;
    color: #0a1628;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.products-vedette-v2-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #f26522 100%);
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 16px rgba(242, 101, 34, 0.35);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.products-vedette-v2-add-btn:hover {
    transform: translateY(-2px) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(242, 101, 34, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .products-vedette-v2-section   { padding: 45px 0; }
    .products-vedette-v2-container { padding: 0 20px; }
    .products-vedette-v2-card      { min-width: 240px; max-width: 240px; }
    .products-vedette-v2-card-image { height: 210px; }
    .products-vedette-v2-filter-btn { font-size: 10px; padding: 5px 11px; }
}

@media (max-width: 768px) {
    .products-vedette-v2-section   { padding: 30px 0; }
    .products-vedette-v2-container { padding: 0 12px; }

    /* Carousel : réduire le padding réservé aux boutons pour laisser de la place aux cartes */
    .products-vedette-v2-section .vedette-carousel-outer { padding: 0 38px; }
    .products-vedette-v2-section .vedette-carousel-btn   { width: 34px; height: 34px; font-size: 12px; }
    .products-vedette-v2-section .vedette-carousel-progress { margin: 10px 38px 2px; }

    /* Filtres catégories : scroll horizontal sur mobile pour éviter le retour à la ligne inesthétique */
    .products-vedette-v2-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        width: 100%;
    }
    .products-vedette-v2-filters::-webkit-scrollbar { display: none; }
    .products-vedette-v2-filter-btn {
        flex-shrink: 0;
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Cartes */
    .products-vedette-v2-card         { min-width: 200px; max-width: 200px; border-radius: 12px; }
    .products-vedette-v2-card-image   { height: 180px; }
    .products-vedette-v2-card-content { padding: 12px; gap: 6px; }
    .products-vedette-v2-card-brand   { font-size: 9px; letter-spacing: 1px; }
    .products-vedette-v2-card-title   { font-size: 13px; min-height: 34px; }
    .products-vedette-v2-card-rating  { font-size: 11px; }
    .products-vedette-v2-card-reviews { font-size: 10px; }
    .products-vedette-v2-price        { font-size: 15px; }
    .products-vedette-v2-price-old    { font-size: 10px; }
    .products-vedette-v2-badge        { font-size: 9px; padding: 4px 8px; }
    .products-vedette-v2-add-btn      { width: 34px; height: 34px; font-size: 12px; }
    .products-vedette-v2-fav          { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 480px) {
    .products-vedette-v2-container { padding: 0 8px; }

    /* Encore moins de padding pour les boutons carousel sur smartphone */
    .products-vedette-v2-section .vedette-carousel-outer { padding: 0 6px; }
    .products-vedette-v2-section .vedette-carousel-btn   {
        width: 30px; height: 30px; font-size: 11px;
        background: rgba(255,255,255,0.92);
    }
    .products-vedette-v2-section .vedette-carousel-prev  { left: -2px; }
    .products-vedette-v2-section .vedette-carousel-next  { right: -2px; }
    .products-vedette-v2-section .vedette-carousel-progress { margin: 10px 6px 2px; }

    /* Cartes : 1 carte quasi pleine largeur, lisibilité maximale */
    .products-vedette-v2-scroll-container { gap: 12px; }
    .products-vedette-v2-card         { min-width: 75vw; max-width: 75vw; }
    .products-vedette-v2-card-image   { height: 56vw; max-height: 240px; }
    .products-vedette-v2-card-content { padding: 12px 14px; }
    .products-vedette-v2-card-title   { font-size: 14px; min-height: 36px; }
    .products-vedette-v2-price        { font-size: 16px; }
    .products-vedette-v2-add-btn      { width: 36px; height: 36px; font-size: 13px; }

    /* Aperçu rapide (overlay) — toujours visible sur tactile puisque le hover ne s'applique pas */
    .products-vedette-v2-quick      { transform: translateY(0); background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.75) 100%); padding: 10px; }
    .products-vedette-v2-quick-btn  { font-size: 11px; padding: 7px 10px; }
}

@media (max-width: 360px) {
    .products-vedette-v2-card       { min-width: 82vw; max-width: 82vw; }
    .products-vedette-v2-card-title { font-size: 13px; }
    .products-vedette-v2-price      { font-size: 15px; }
}
