
    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .slider-container {
        position: relative;
        min-height: 600px;
        width: 100%;
        background: #f5f5f5;
    }

    .slider-loader {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f5f5f5;
        z-index: 10;
        transition: opacity 0.5s ease;
    }

    .slider-loader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

    .revslider-wrapper {
        opacity: 0;
        transition: opacity 0.5s ease;
        width: 100%;
        height: 100%;
    }

    .revslider-wrapper.show {
        opacity: 1;
    }

    sr7-module {
        min-height: 600px !important;
        display: block !important;
    }

    /* ============ CORRECTION DES BOUTONS ============ */

    /* S'assurer que meta-wrapper-2 est visible */
    .meta-wrapper-2 {
        position: relative !important;
        z-index: 5 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .product-group-button-meta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Style de base pour tous les boutons dans le groupe */
    .product-group-button-meta .button-in {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
    }

    .product-group-button-meta .button-in.quickshop a::before {
        content: "👁";
        font-size: 16px;
    }

    .product-group-button-meta .button-in.add-to-cart a::before {
        content: "🛒";
        font-size: 18px;
    }

    /* Tooltip */
    .ts-tooltip.button-tooltip {
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 10;
    }

    .ts-tooltip.button-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .product-group-button-meta .button-in:hover .ts-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: calc(100% + 15px);
    }

    /* Animation de clic */
    .product-group-button-meta .button-in.add-to-cart.clicked {
        animation: buttonClick 0.3s ease;
    }

    @keyframes buttonClick {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(0.8);
        }

        100% {
            transform: scale(1);
        }
    }

    /* S'assurer que le produit a un position relative pour le tooltip */
    .product-wrapper {
        position: relative;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .product-group-button-meta .button-in {
            width: 35px;
            height: 35px;
        }

        .ts-tooltip.button-tooltip {
            font-size: 10px;
            padding: 4px 8px;
        }
    }

    /* Notification */
    .cart-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #4CAF50;
        color: white;
        padding: 15px 25px;
        border-radius: 8px;
        z-index: 99999;
        font-weight: 600;
        font-size: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        gap: 10px;
        animation: slideInRight 0.3s ease;
    }

    .cart-notification::before {
        content: "✓";
        font-size: 20px;
        font-weight: bold;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    /* ============ EFFET DE CHANGEMENT D'IMAGE AU SURVOL (CORRIGÉ) ============ */
    
    .thumbnail-wrapper {
        position: relative;
        overflow: hidden;
    }

    .thumbnail-wrapper figure {
        position: relative;
        margin: 0;
    }

    .thumbnail-wrapper .primary-image {
        display: block;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 1;
        visibility: visible;
    }

    .thumbnail-wrapper .secondary-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Uniquement si une image secondaire existe - l'effet de survol s'applique */
    .product-wrapper.has-secondary-image:hover .thumbnail-wrapper .primary-image {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05);
    }

    .product-wrapper.has-secondary-image:hover .thumbnail-wrapper .secondary-image {
        opacity: 1;
        visibility: visible;
        transform: scale(1.05);
    }

    /* ============ UNIFORMITÉ DES PRODUITS ============ */

    .products {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
    }

    .product {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .product-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden;
    }

    /* Container d'image avec hauteur fixe */
    .thumbnail-wrapper {
        position: relative !important;
        width: 100% !important;
        padding-top: 100% !important;
        /* Ratio 1:1 - Hauteur = Largeur */
        overflow: hidden !important;
      
    }

    .thumbnail-wrapper a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .thumbnail-wrapper figure {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .thumbnail-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* L'image couvre tout l'espace sans déformation */
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Images primaire et secondaire */
    .thumbnail-wrapper .primary-image {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 2;
    }

    .thumbnail-wrapper .secondary-image {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1;
    }

    .product-wrapper.has-secondary-image:hover .thumbnail-wrapper .primary-image {
        opacity: 0;
        visibility: hidden;
    }

    .product-wrapper.has-secondary-image:hover .thumbnail-wrapper .secondary-image {
        opacity: 1;
        visibility: visible;
    }

    /* Zone de contenu texte - hauteur fixe */
    .meta-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        text-align: center !important;
    }

    .meta-wrapper .heading-title {
        margin: 0 0 8px 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .meta-wrapper .heading-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        /* Limite à 2 lignes */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    /* Zone des étoiles */
    .meta-wrapper .star-rating {
        margin: 5px auto !important;
        min-height: 20px !important;
    }

    /* Zone du prix - hauteur fixe */
    .meta-wrapper .price {
      justify-content: center !important;
    }

    .meta-wrapper .price del {
        display: block !important;
        color: #999 !important;
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .meta-wrapper .price ins {
        text-decoration: none !important;
        color: #e74c3c !important;
    }

    /* Zone des boutons - toujours en bas */
    .meta-wrapper-2 {
        margin-top: auto !important;
        /* Pousse les boutons vers le bas */
        padding: 10px 0 15px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .product-group-button-meta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Labels de réduction */
    .product-label {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 10 !important;
    }

    .onsale {
        display: inline-block !important;
        background: #e74c3c !important;
        color: white !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    /* ============ RESPONSIVE ============ */

    @media (max-width: 1200px) {
        .products {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }

    @media (max-width: 992px) {
        .products {
            grid-template-columns: repeat(3, 1fr) !important;
        }

        .meta-wrapper {
            min-height: 110px !important;
        }
    }

    @media (max-width: 768px) {
        .products {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 15px !important;
        }

        .meta-wrapper {
            min-height: 100px !important;
            padding: 10px 5px !important;
        }

        .meta-wrapper .heading-title {
            font-size: 13px !important;
            min-height: 35px !important;
        }

        .meta-wrapper .price {
            font-size: 14px !important;
        }

        .button-in {
            width: 35px !important;
            height: 35px !important;
        }
    }

    @media (max-width: 480px) {
        .products {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px !important;
        }

        .meta-wrapper {
            min-height: 90px !important;
            padding: 8px 5px !important;
        }
    }

    /* ============ MODALE QUICKVIEW ============ */

    .zoo-quickview-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99998;
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .zoo-quickview-overlay.active {
        display: block;
    }

    .zoo-quickview-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 1000px;
        max-height: 85vh;
        background: #fff;
        z-index: 99999;
        border-radius: 8px;
        overflow-y: auto;
        display: none;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
        animation: slideIn 0.4s ease;
    }

    .zoo-quickview-modal.active {
        display: block;
    }

    .zoo-quickview-modal .close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        text-decoration: none;
        color: #333;
    }

    .zoo-quickview-modal .close-btn:hover {
        background: #e74c3c;
        color: #fff;
        transform: rotate(90deg);
    }

    /* Layout de la modale */
    .zoo-quickview-content {
        display: flex;
        flex-wrap: wrap;
        padding: 30px;
        gap: 30px;
    }

    /* Galerie d'images */
    .wrap-single-product-images {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .zoo-product-gallery {
        width: 100%;
    }

    .zoo-main-image {
        position: relative;
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
        aspect-ratio: 4/3;
    }

    .zoo-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .zoo-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        z-index: 5;
        border: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        width: 30px;
  height: 30px;
  background: white;
  color: black;
    }

    .zoo-gallery-nav:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .zoo-gallery-nav.prev {
        left: 10px;
    }

    .zoo-gallery-nav.next {
        right: 10px;
    }

    /* Miniatures */
    .zoo-thumbnails {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .zoo-thumbnail-item {
        width: calc(20% - 7px);
        aspect-ratio: 4/3;
        border: 2px solid transparent;
        border-radius: 4px;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0.7;
    }

    .zoo-thumbnail-item:hover,
    .zoo-thumbnail-item.active {
        border-color: #495057;
        opacity: 1;
    }

    .zoo-thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Résumé du produit */
    .zoo-quickview-summary {
        flex: 0 0 calc(55% - 30px);
        max-width: calc(55% - 30px);
    }

    .zoo-quickview-summary .product-title {
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 15px;
        color: #333;
        line-height: 1.3;
    }

    .zoo-quickview-summary .product-price {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .zoo-quickview-summary .product-price del {
        color: #999;
        font-size: 16px;
        display: block;
    }

    .zoo-quickview-summary .product-price ins {
        text-decoration: none;
        color: #e74c3c;
        font-weight: 700;
    }

    .zoo-quickview-summary .product-price .current-price {
        color: #333;
        font-weight: 700;
    }

    .zoo-quickview-summary .product-description {
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        font-size: 14px;
    }

    /* Formulaire d'ajout au panier */
    .zoo-quickview-summary .cart-form {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .zoo-quickview-summary .quantity-wrapper {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }

    .zoo-quickview-summary .qty-btn {
        width: 40px;
        height: 40px;
        border: none;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .zoo-quickview-summary .qty-btn:hover {
        background: #e0e0e0;
    }

    .zoo-quickview-summary .qty-input {
        width: 60px;
        height: 40px;
        text-align: center;
        border: none;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        font-size: 16px;
    }

    .zoo-quickview-summary .add-to-cart-btn {
        flex: 1;
        min-width: 200px;
        height: 45px;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .zoo-quickview-summary .add-to-cart-btn:hover {
        background: #333;
    }

    .zoo-quickview-summary .add-to-cart-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    .zoo-quickview-summary .view-details-btn {
        display: inline-block;
        padding: 10px 20px;
        background: transparent;
        color: #495057;
        border: 2px solid #495057;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .zoo-quickview-summary .view-details-btn:hover {
        background: #000;
        color: #fff;
    }

    /* SKU et catégories */
    .zoo-quickview-summary .product-meta {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        font-size: 13px;
        color: #999;
    }

    .zoo-quickview-summary .product-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .zoo-quickview-summary .product-meta .sku {
        color: #333;
        font-weight: 600;
    }

    /* Loader */
    .zoo-quickview-loader {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        font-size: 18px;
        color: #999;
    }

    .zoo-quickview-loader::before {
        content: '';
        width: 30px;
        height: 30px;
        border: 3px solid #ddd;
        border-top-color: #495057;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-right: 10px;
    }

    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50%, -48%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .zoo-quickview-modal {
            width: 95%;
            max-height: 90vh;
        }
        
        .zoo-quickview-content {
            flex-direction: column;
            padding: 20px;
        }
        
        .wrap-single-product-images,
        .zoo-quickview-summary {
            flex: 0 0 100%;
            max-width: 100%;
        }
        
        .zoo-quickview-summary .product-title {
            font-size: 20px;
        }
        
        .zoo-quickview-summary .add-to-cart-btn {
            width: 100%;
            min-width: auto;
        }
    }
