/* ============================================================
   TWOTAILS MOBILE RESPONSIVE ENHANCEMENTS
   Version: 1.0 - Février 2026
   Breakpoints: 991px (tablet), 767px (mobile), 480px (small)
   ============================================================ */

/* ===========================================
   1. VARIABLES MOBILE
   =========================================== */
:root {
    --tt-mobile-padding: 16px;
    --tt-mobile-gap: 12px;
    --tt-mobile-radius: 12px;
}

/* ===========================================
   2. HEADER MOBILE
   =========================================== */
@media (max-width: 991px) {
    /* Header principal */
    #header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    #header .header-top {
        padding: 10px 0 !important;
    }
    
    /* Logo mobile */
    #header .logo {
        max-height: 40px !important;
    }
    
    /* Icônes header mobile */
    #header .blockcart .cart-products-count {
        font-size: 10px !important;
        min-width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
    }
    
    /* Menu hamburger */
    .mobile-menu-icon,
    #iqitmegamenu-mobile-toggler {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Menu mobile overlay */
    #mobile_top_menu_wrapper,
    .mobile-menu-wrapper {
        width: 85% !important;
        max-width: 320px !important;
        padding-top: 60px !important;
    }
    
    .mobile-menu-wrapper .menu-item a {
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
}

/* ===========================================
   3. HERO SLIDER MOBILE - PERFECTION RESPONSIVE
   =========================================== */
@media (max-width: 767px) {
    /* RESET GLOBAL - Supprimer les gaps et paddings parasites */
    .page-home,
    .page-content,
    #content-wrapper,
    section.page-home,
    #content,
    .js-content-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Supprimer l'espace au-dessus du header */
    .header-top {
        margin-top: 0 !important;
    }
    
    /* Supprimer l'espace entre header et hero */
    #wrapper {
        padding-top: 0 !important;
    }
    
    /* Gap entre header et contenu - FORCE */
    .header-top,
    #header,
    header,
    .desktop-header-style-w-2 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Supprimer l'espace au-dessus du slider */
    .cpp-hero-slider {
        margin-top: 0 !important;
    }
    
    /* Forcer le full-width réel en cassant le container */
    .cpp-hero-slider,
    .elementor-widget-cppheroslider {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* FORCE: Hero slider hauteur = wrapper hauteur */
    .cpp-hero-slider {
        height: 60vw !important;
        min-height: 220px !important;
        max-height: 320px !important;
    }
    
    /* Supprimer les paddings des parents Elementor pour éviter les résidus blancs */
    .elementor-column, .elementor-column-wrap, .elementor-widget-wrap {
        padding: 0 !important;
    }

    /* Hauteur du wrapper = même hauteur que le parent */
    .cpp-slides-wrapper {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }

    .cpp-slide {
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Contenu du slider : en bas avec dégradé subtil */
    .cpp-hero-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 80px 20px 20px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
        border-radius: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-shadow: none !important;
    }

    .cpp-hero-title {
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
        color: #fff !important;
        line-height: 1.2 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }

    .cpp-hero-subtitle {
        font-size: 0.85rem !important;
        color: rgba(255,255,255,0.9) !important;
        margin-bottom: 4px !important;
        font-weight: 500 !important;
    }

    .cpp-hero-tagline {
        font-size: 0.75rem !important;
        color: rgba(255,255,255,0.7) !important;
        margin-bottom: 12px !important;
    }

    .cpp-hero-cta {
        background: #22c55e !important;
        color: #fff !important;
        padding: 10px 28px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4) !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    /* Flèches de navigation - plus discrètes */
    .cpp-hero-slider .slick-prev,
    .cpp-hero-slider .slick-next,
    .cpp-hero-slider [class*="prev"],
    .cpp-hero-slider [class*="next"] {
        width: 32px !important;
        height: 32px !important;
        background: rgba(255,255,255,0.3) !important;
        border-radius: 50% !important;
        z-index: 10 !important;
    }
    
    .cpp-hero-slider .slick-prev,
    .cpp-hero-slider [class*="prev"] {
        left: 8px !important;
    }
    
    .cpp-hero-slider .slick-next,
    .cpp-hero-slider [class*="next"] {
        right: 8px !important;
    }
    
    /* Dots de navigation */
    .cpp-hero-slider .slick-dots {
        bottom: 8px !important;
    }
}

/* ===========================================
   4. BARRE REASSURANCE MOBILE
   =========================================== */
@media (max-width: 767px) {
    .reassurance-bar,
    .blockreassurance,
    .trust-badges {
        padding: 16px var(--tt-mobile-padding) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    .reassurance-item,
    .blockreassurance-item,
    .trust-badge {
        flex: 0 0 auto !important;
        min-width: 140px !important;
        padding: 12px 16px !important;
        scroll-snap-align: start !important;
        text-align: center !important;
    }
    
    .reassurance-item svg,
    .reassurance-item i,
    .blockreassurance-item svg {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 8px !important;
    }
    
    .reassurance-item span,
    .blockreassurance-item span {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
}

/* ===========================================
   5. SECTION "NOS UNIVERS" MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Titre section */
    .section-title,
    h2.section-title,
    .home-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
        padding: 0 var(--tt-mobile-padding) !important;
    }
    
    /* Sous-titre section */
    .section-subtitle,
    .home-section p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        padding: 0 var(--tt-mobile-padding) !important;
    }
    
    /* Grille catégories */
    .categories-grid,
    .univers-grid,
    .home-categories {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 var(--tt-mobile-padding) !important;
    }
    
    /* Carte catégorie */
    .category-card,
    .univers-card,
    .home-categories a {
        padding: 16px 12px !important;
        border-radius: var(--tt-mobile-radius) !important;
        text-align: center !important;
    }
    
    .category-card img,
    .univers-card img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }
    
    .category-card h3,
    .univers-card span {
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    
    .category-card .count,
    .univers-card small {
        font-size: 11px !important;
        opacity: 0.7 !important;
    }
}

/* ===========================================
   6. BANNIÈRES PROMO MOBILE
   =========================================== */
@media (max-width: 767px) {
    .promo-banners,
    .home-banners {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 var(--tt-mobile-padding) !important;
        margin: 24px 0 !important;
    }
    
    .promo-banner,
    .home-banner {
        border-radius: var(--tt-mobile-radius) !important;
        padding: 20px !important;
        min-height: 120px !important;
    }
    
    .promo-banner h3 {
        font-size: 1.1rem !important;
    }
    
    .promo-banner p {
        font-size: 13px !important;
    }
    
    .promo-banner .btn {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}

/* ===========================================
   7. CARROUSEL PRODUITS MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Container best-sellers */
    .bestsellers,
    .featured-products,
    .products-carousel {
        padding: 0 !important;
        margin: 32px 0 !important;
    }
    
    /* Navigation tabs (Croquettes, Jouets, etc.) */
    .products-tabs,
    .bestsellers nav,
    .featured-products nav {
        padding: 0 var(--tt-mobile-padding) !important;
        margin-bottom: 16px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    .products-tabs a,
    .bestsellers nav a {
        flex: 0 0 auto !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        scroll-snap-align: start !important;
        background: #f8fafc !important;
        color: #475569 !important;
        border: none !important;
    }
    
    .products-tabs a.active,
    .bestsellers nav a.active {
        background: var(--tt-primary, #e85a5a) !important;
        color: #fff !important;
    }
    
    /* Grille produits horizontale scrollable */
    .products-grid,
    .products-row,
    .products {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding: 0 var(--tt-mobile-padding) 16px !important;
        margin: 0 !important;
    }
    
    /* Masquer la scrollbar tout en gardant le scroll */
    .products-grid::-webkit-scrollbar,
    .products-row::-webkit-scrollbar,
    .products::-webkit-scrollbar {
        display: none !important;
    }
    
    .products-grid,
    .products-row,
    .products {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* ===========================================
   8. CARTE PRODUIT MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Carte produit */
    .product-miniature,
    .product-card {
        flex: 0 0 160px !important;
        width: 160px !important;
        scroll-snap-align: start !important;
        border-radius: var(--tt-mobile-radius) !important;
        overflow: hidden !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    
    /* Image produit */
    .product-miniature .thumbnail-container,
    .product-card .product-image {
        height: 160px !important;
        overflow: hidden !important;
    }
    
    .product-miniature .thumbnail-container img,
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Contenu produit */
    .product-miniature .product-description,
    .product-card .product-info {
        padding: 12px !important;
    }
    
    /* Marque */
    .product-miniature .product-brand,
    .product-card .brand {
        font-size: 10px !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 4px !important;
    }
    
    /* Titre produit */
    .product-miniature .product-title,
    .product-card .product-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 32px !important;
    }
    
    .product-miniature .product-title a,
    .product-card .product-name a {
        color: #1e293b !important;
    }
    
    /* Prix */
    .product-miniature .product-price,
    .product-card .price {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--tt-primary, #e85a5a) !important;
        margin-bottom: 10px !important;
    }
    
    /* Ancien prix */
    .product-miniature .regular-price,
    .product-card .old-price {
        font-size: 12px !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
    }
    
    /* Bouton ajouter au panier */
    .product-miniature .add-to-cart,
    .product-card button[class*="add"] {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        border-radius: 8px !important;
        background: var(--tt-primary, #e85a5a) !important;
        color: #fff !important;
        border: none !important;
    }
    
    /* Badge promo */
    .product-miniature .product-flags,
    .product-card .badges {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    .product-miniature .product-flag,
    .product-card .badge {
        padding: 4px 8px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }
}

/* Version plus petite pour très petits écrans */
@media (max-width: 400px) {
    .product-miniature,
    .product-card {
        flex: 0 0 145px !important;
        width: 145px !important;
    }
    
    .product-miniature .thumbnail-container {
        height: 145px !important;
    }
    
    .product-miniature .product-title {
        font-size: 11px !important;
    }
    
    .product-miniature .product-price {
        font-size: 14px !important;
    }
    
    .product-miniature .add-to-cart {
        padding: 8px 10px !important;
        font-size: 10px !important;
    }
}

/* ===========================================
   9. SECTION TÉMOIGNAGES MOBILE
   =========================================== */
@media (max-width: 767px) {
    .testimonials,
    .reviews-section {
        padding: 32px var(--tt-mobile-padding) !important;
        margin: 24px 0 !important;
    }
    
    .testimonials-grid,
    .reviews-carousel {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 16px !important;
    }
    
    .testimonials-grid::-webkit-scrollbar,
    .reviews-carousel::-webkit-scrollbar {
        display: none !important;
    }
    
    .testimonial-card,
    .review-card {
        flex: 0 0 280px !important;
        scroll-snap-align: start !important;
        padding: 20px !important;
        border-radius: var(--tt-mobile-radius) !important;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    }
    
    .testimonial-card .avatar,
    .review-card img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        margin-bottom: 12px !important;
    }
    
    .testimonial-card .name,
    .review-card .author {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .testimonial-card .stars {
        font-size: 14px !important;
        color: #fbbf24 !important;
        margin: 8px 0 !important;
    }
    
    .testimonial-card .text,
    .review-card .content {
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #475569 !important;
    }
    
    .testimonial-card .pet-info {
        font-size: 12px !important;
        color: #94a3b8 !important;
        margin-top: 12px !important;
    }
}

/* ===========================================
   10. SECTION "NOTRE HISTOIRE" MOBILE
   =========================================== */
@media (max-width: 767px) {
    .about-section,
    .story-section {
        padding: 32px var(--tt-mobile-padding) !important;
    }
    
    .about-section .content-wrapper {
        flex-direction: column !important;
    }
    
    .about-section .image-wrapper {
        order: -1 !important;
        margin-bottom: 24px !important;
    }
    
    .about-section img {
        width: 100% !important;
        height: auto !important;
        border-radius: var(--tt-mobile-radius) !important;
    }
    
    .about-section .stats {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .about-section .stat-number {
        font-size: 2rem !important;
        font-weight: 800 !important;
    }
    
    .about-section .stat-label {
        font-size: 12px !important;
    }
    
    .about-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }
    
    .about-section p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 20px !important;
    }
    
    .about-section ul li {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }
    
    .about-section .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
    }
}

/* ===========================================
   11. NEWSLETTER MOBILE - REDESIGN TOTAL PREMIUM
   =========================================== */
@media (max-width: 767px) {
    .tt-newsletter,
    .newsletter-section,
    .block_newsletter,
    #footer .block_newsletter {
        background: #000 !important; /* Noir profond pour le premium */
        padding: 60px 25px !important;
        margin: 50px 0 !important;
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        margin-left: -50vw !important;
        text-align: center !important;
        border-radius: 0 !important;
        border-top: 4px solid #e85a5a !important; /* Ligne de rappel marque */
    }

    .tt-newsletter h2,
    .newsletter-section h2,
    .block_newsletter .h3 {
        font-size: 2rem !important;
        font-weight: 900 !important;
        color: #fff !important;
        margin-bottom: 15px !important;
        letter-spacing: -0.03em !important;
        text-transform: uppercase !important;
    }

    .tt-newsletter p,
    .newsletter-section p,
    .block_newsletter p {
        font-size: 15px !important;
        color: #bbb !important;
        margin-bottom: 35px !important;
        line-height: 1.5 !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tt-newsletter form,
    .block_newsletter form {
        max-width: 340px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .tt-newsletter input[type="email"],
    .block_newsletter input[type="email"] {
        background: #1a1a1a !important;
        border: 2px solid #333 !important;
        color: #fff !important;
        height: 60px !important;
        border-radius: 30px !important; /* Très arrondi */
        padding: 0 25px !important;
        font-size: 16px !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        text-align: center !important;
    }

    .tt-newsletter input[type="email"]:focus {
        border-color: #e85a5a !important;
        background: #222 !important;
        outline: none !important;
    }

    .tt-newsletter button,
    .block_newsletter button,
    .block_newsletter .btn,
    .block_newsletter input[type="submit"] {
        background: #e85a5a !important;
        color: #fff !important;
        height: 60px !important;
        border-radius: 30px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        border: none !important;
        width: 100% !important;
        cursor: pointer !important;
        box-shadow: 0 10px 20px rgba(232, 90, 90, 0.3) !important;
    }

    .tt-newsletter .disclaimer,
    .block_newsletter .gdpr-notice {
        margin-top: 25px !important;
        font-size: 12px !important;
        color: #555 !important;
        line-height: 1.4 !important;
        font-style: italic !important;
    }
}

/* Newsletter version desktop améliorée */
@media (min-width: 768px) and (max-width: 991px) {
    .tt-newsletter,
    .newsletter-section {
        padding: 48px 32px !important;
    }
    
    .tt-newsletter__container {
        max-width: 450px !important;
    }
    
    .tt-newsletter h2 {
        font-size: 1.75rem !important;
    }
}

/* ===========================================
   12. FOOTER MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Container footer */
    #footer,
    .twotails-footer {
        padding: 32px 0 !important;
    }
    
    .twotails-footer .footer-main {
        padding: 24px var(--tt-mobile-padding) !important;
    }
    
    /* Logo et description */
    .twotails-footer .footer-brand {
        text-align: center !important;
        margin-bottom: 28px !important;
        padding-bottom: 24px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .twotails-footer .footer-brand .logo-text {
        font-size: 1.75rem !important;
    }
    
    .twotails-footer .footer-tagline {
        font-size: 14px !important;
    }
    
    /* Réseaux sociaux */
    .twotails-footer .footer-social {
        justify-content: center !important;
        margin-top: 16px !important;
    }
    
    .twotails-footer .footer-social a {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    /* Colonnes de liens - accordéon style */
    .twotails-footer .footer-column,
    .twotails-footer .footer-links {
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .twotails-footer .footer-title {
        padding: 16px 0 !important;
        margin-bottom: 0 !important;
        font-size: 13px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
    }
    
    .twotails-footer .footer-title::after {
        content: '+' !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        transition: transform 0.3s ease !important;
    }
    
    .twotails-footer .footer-title.active::after {
        transform: rotate(45deg) !important;
    }
    
    .twotails-footer .footer-links ul {
        padding-bottom: 16px !important;
    }
    
    .twotails-footer .footer-links li {
        margin-bottom: 10px !important;
    }
    
    .twotails-footer .footer-links a {
        font-size: 13px !important;
        padding: 6px 0 !important;
        display: block !important;
    }
    
    /* Newsletter dans footer */
    .twotails-footer .footer-newsletter {
        margin-top: 24px !important;
        padding-top: 24px !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* Paiement */
    .twotails-footer .footer-payment {
        padding: 20px var(--tt-mobile-padding) !important;
    }
    
    .twotails-footer .payment-icons {
        gap: 20px !important;
    }
    
    .twotails-footer .payment-icons img {
        height: 24px !important;
    }
    
    /* Copyright */
    .twotails-footer .footer-bottom {
        padding: 20px var(--tt-mobile-padding) !important;
    }
    
    .twotails-footer .footer-bottom-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    .twotails-footer .footer-legal {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 20px !important;
    }
    
    .twotails-footer .footer-legal a {
        font-size: 12px !important;
    }
    
    .twotails-footer .footer-copyright {
        font-size: 12px !important;
    }
}

/* ===========================================
   13. PAGE CATÉGORIE MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Header catégorie */
    .category-header,
    .category-description-top {
        padding: 24px var(--tt-mobile-padding) !important;
        border-radius: var(--tt-mobile-radius) !important;
        margin: 0 var(--tt-mobile-padding) 20px !important;
    }
    
    .category-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .category-header .category-description {
        font-size: 13px !important;
    }
    
    /* Filtres mobile - bouton toggle */
    #search_filters_wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 9999 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        padding: 60px 20px 20px !important;
    }
    
    #search_filters_wrapper.active {
        left: 0 !important;
    }
    
    /* Bouton filtrer */
    .filter-toggle-btn {
        position: fixed !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 12px 24px !important;
        background: var(--tt-secondary, #2d3748) !important;
        color: #fff !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
        z-index: 100 !important;
    }
    
    /* Grille produits catégorie */
    #products .products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 var(--tt-mobile-padding) !important;
    }
    
    /* Carte produit dans grille (non carousel) */
    #products .product-miniature {
        flex: unset !important;
        width: 100% !important;
    }
    
    /* Toolbar tri */
    .products-sort-order,
    .products-top {
        flex-direction: column !important;
        padding: 12px var(--tt-mobile-padding) !important;
        gap: 12px !important;
    }
    
    .products-sort-order select {
        width: 100% !important;
    }
}

/* ===========================================
   14. PAGE PRODUIT MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Container */
    #main .product-container {
        padding: var(--tt-mobile-padding) !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Galerie images */
    .images-container {
        margin-bottom: 20px !important;
    }
    
    .product-cover {
        border-radius: var(--tt-mobile-radius) !important;
    }
    
    /* Miniatures en scroll horizontal */
    .product-images {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 12px 0 !important;
    }
    
    .product-images .thumb-container {
        flex: 0 0 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Titre produit */
    #main h1.page-title,
    .product_header_container h1 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    /* Prix */
    .product-prices {
        margin: 16px 0 !important;
    }
    
    .product-prices .current-price {
        font-size: 1.75rem !important;
    }
    
    .product-prices .regular-price {
        font-size: 1rem !important;
    }
    
    /* Variantes */
    .product-variants {
        margin: 20px 0 !important;
    }
    
    .product-variants .input-container input[type="radio"] + span {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* Quantité + bouton panier */
    .product-quantity {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .product-quantity .qty {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .product-add-to-cart .add-to-cart {
        width: 100% !important;
        padding: 16px !important;
        font-size: 14px !important;
    }
    
    /* Onglets produit */
    .product-tabs,
    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 4px !important;
    }
    
    .product-tabs .nav-link {
        flex: 0 0 auto !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    .tab-content {
        padding: 16px !important;
    }
}

/* ===========================================
   15. PANIER / CHECKOUT MOBILE
   =========================================== */
@media (max-width: 767px) {
    .cart-container,
    .checkout-container {
        padding: var(--tt-mobile-padding) !important;
    }
    
    .cart-item,
    .cart-overview .product-line-grid {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .cart-item img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Bouton sticky checkout */
    .cart-summary {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 16px !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
        z-index: 100 !important;
    }
    
    .cart-summary .checkout-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 15px !important;
    }
}

/* ===========================================
   16. BOUTON PANIER FLOTTANT MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Si vous avez un bouton panier flottant */
    .floating-cart {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: var(--tt-primary, #e85a5a) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(232, 90, 90, 0.4) !important;
        z-index: 999 !important;
    }
}

/* ===========================================
   17. UTILITAIRES MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Masquage des sections demandées */
    .winter-slider-section,
    .tt-footer__info,
    .hide-on-mobile {
        display: none !important;
    }

    /* Marges et paddings réduits */
    .container {
        padding-left: var(--tt-mobile-padding) !important;
        padding-right: var(--tt-mobile-padding) !important;
    }
    
    /* Cacher certains éléments sur mobile */
    .hide-mobile,
    .desktop-only {
        display: none !important;
    }
    
    /* Afficher uniquement sur mobile */
    .show-mobile,
    .mobile-only {
        display: block !important;
    }
    
    /* Texte centré sur mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Full width sur mobile */
    .full-width-mobile {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Espacements réduits - uniquement padding-bottom */
    section:not(.page-home):not(.nos-univers):not(.tt-trust-badges) {
        padding-bottom: 20px !important;
    }
    
    /* Sections spécifiques - marges réduites */
    .tt-trust-badges {
        padding: 10px !important;
        margin: 0 !important;
    }
    
    /* GRILLE 2x2 pour les badges - FORCE */
    section.tt-trust-badges .tt-trust-badges__container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    section.tt-trust-badges .tt-trust-badge {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .nos-univers {
        padding: 25px 15px !important;
        margin: 0 !important;
    }
    
    /* Scroll smooth pour ancres */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Éviter le zoom sur les inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ===========================================
   18. ANIMATIONS MOBILE (réduites)
   =========================================== */
@media (max-width: 767px) {
    /* Réduire les animations pour performance */
    *,
    *::before,
    *::after {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Désactiver hover effects sur touch */
    @media (hover: none) {
        .product-miniature:hover {
            transform: none !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        }
        
        .btn:hover,
        button:hover {
            transform: none !important;
        }
    }
}

/* ===========================================
   19. FIX REVSLIDER MOBILE
   =========================================== */
@media (max-width: 767px) {
    /* Force RevSlider à une hauteur raisonnable sur mobile */
    .rev_slider_wrapper,
    .revslider-wrapper,
    rs-module-wrap,
    rs-module {
        max-height: 400px !important;
        min-height: 300px !important;
        height: auto !important;
    }
    
    rs-module-wrap {
        position: relative !important;
    }
    
    /* Contenu du slide visible */
    .rev_slider .tp-caption,
    rs-layer {
        font-size: 14px !important;
    }
    
    .rev_slider h1,
    rs-layer h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .rev_slider h2,
    rs-layer h2 {
        font-size: 1.25rem !important;
    }
    
    /* Boutons slider */
    .rev_slider .tp-button,
    rs-layer a.rev-btn {
        padding: 12px 24px !important;
        font-size: 13px !important;
    }
    
    /* Fix position slides */
    .rev_slider li,
    rs-slide {
        overflow: visible !important;
    }
}

/* ===========================================
   20. FIX SPÉCIFIQUES PRESTASHOP/WAREHOUSE
   =========================================== */
@media (max-width: 767px) {
    /* Fix overflow horizontal */
    body,
    html {
        overflow-x: hidden !important;
    }
    
    #wrapper {
        overflow-x: hidden !important;
    }
    
    /* Fix Creative Elements widgets */
    .elementor-section,
    .ce-section {
        padding-left: var(--tt-mobile-padding) !important;
        padding-right: var(--tt-mobile-padding) !important;
    }
    
    /* Fix iqit megamenu */
    #iqitmegamenu-wrapper {
        display: none !important;
    }
    
    /* Fix product flags position */
    .product-miniature .product-flags {
        z-index: 2 !important;
    }
    
    /* Fix wishlist button */
    .wishlist-button-add {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        z-index: 3 !important;
    }
}

/* ===========================================
   21. NOS UNIVERS - CARROUSEL MOBILE (2 items)
   =========================================== */
@media (max-width: 767px) {
    /* Section principale */
    .nos-univers {
        padding: 40px 15px !important;
    }
    
    /* Grille des catégories → Carrousel horizontal */
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding-bottom: 15px !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"]::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Chaque carte catégorie = 50% - gap pour afficher 2 items */
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] > a {
        flex: 0 0 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        scroll-snap-align: start !important;
        aspect-ratio: 1 !important;
    }
    
    /* Images des catégories */
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] > a img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Texte des cartes catégories */
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] > a > div {
        padding: 10px !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] > a > div > div:first-child {
        font-size: 13px !important;
        font-weight: 700 !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: repeat(6"] > a > div > div:last-child {
        font-size: 11px !important;
    }
}

/* ===========================================
   22. PROMO BANNERS - EMPILÉS VERTICALEMENT
   =========================================== */
@media (max-width: 767px) {
    /* Grille des promos → Colonne verticale */
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        grid-template-columns: none !important;
    }
    
    /* Chaque banner promo = full width */
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] > a {
        width: 100% !important;
        height: 220px !important;
    }
    
    /* Texte des promos - plus lisible */
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] > a > div:last-child {
        padding: 20px !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] > a > div:last-child > div:first-child {
        font-size: 22px !important;
        font-weight: 800 !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] > a > div:last-child > div:nth-child(2) {
        font-size: 13px !important;
    }
    
    .nos-univers > div > div[style*="grid-template-columns: 1fr 1fr"] > a > div:last-child > span {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}
