/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background-color: #f0f2f5;
    color: #1F2937;
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 0.05rem 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: transform 0.3s ease;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 20px;
    flex-wrap: wrap;
    min-height: auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 150px;
    width: auto;
    max-width: 100%;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    position: relative;
}
.search-bar input {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}
.search-bar button {
    background-color: #ff8c00;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: white;
    font-weight: bold;
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
}
.user-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.user-actions a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
    transition: all 0.2s;
}
.user-actions a:hover {
    color: #ff8c00;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: #1a2a3a;
    padding: 0.3rem 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #ff8c00;
}

/* ========== LAYOUT 3 COLONNES ========== */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 20px;
    align-items: start;
}

/* ========== SIDEBAR GAUCHE ========== */
.sidebar-left {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}
.sidebar-left h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1a5276;
    border-bottom: 2px solid #ff8c00;
    display: inline-block;
    padding-bottom: 0.3rem;
}
.sidebar-categories {
    list-style: none;
}
.sidebar-categories > li {
    margin-bottom: 0.75rem;
}
.sidebar-categories > li > a {
    font-weight: 600;
    text-transform: uppercase;
    color: #1a5276;
    font-size: 0.9rem;
}
.sidebar-categories a {
    text-decoration: none;
    color: #1a5276;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.sidebar-categories a:hover {
    color: #ff8c00;
}
.subcategories {
    list-style: none;
    padding-left: 1.2rem;
    margin-top: 0.3rem;
}
.subcategories a {
    font-weight: normal;
    text-transform: none;
    font-size: 0.85rem;
}

/* ========== CONTENU CENTRAL ========== */
.main-content {
    min-width: 0;
    width: 100%;
}

/* ========== GRILLE PRODUITS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}
.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff8c00;
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5276;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6rem;
}
.product-price {
    font-weight: bold;
    color: #1a5276;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.old-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* ========== BOUTONS ========== */
.product-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: auto !important;
    padding-top: 0.8rem !important;
}

.product-actions form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 1 auto !important;
}

.product-actions .btn,
.product-actions form .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1a5276;
    color: white;
    padding: 0 0.8rem !important;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem !important;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    height: 38px !important;
    line-height: 1 !important;
    min-width: 85px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    width: auto !important;
    flex: 0 1 auto !important;
}

.product-actions .btn-outline {
    background: transparent !important;
    border: 1px solid #1a5276 !important;
    color: #1a5276 !important;
}
.product-actions .btn-outline:hover {
    background: #1a5276 !important;
    color: white !important;
}
.product-actions .btn:hover {
    background-color: #0e3a56 !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a5276;
    color: white;
    padding: 0 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    height: 38px;
    line-height: 1;
    min-width: 85px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1a5276;
    color: #1a5276;
}
.btn-outline:hover {
    background: #1a5276;
    color: white;
}
.btn:hover {
    background-color: #0e3a56;
}
.btn-orange {
    background-color: #ff8c00;
}
.btn-orange:hover {
    background-color: #e67e00;
}
.btn-sm {
    padding: 0 0.6rem;
    font-size: 0.65rem;
    min-width: auto;
    height: 32px;
}

/* ========== BANNIÈRE HERO ========== */
.hero-banner {
    background: linear-gradient(135deg, #1a5276, #2980b9), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1200') center/cover no-repeat;
    background-blend-mode: overlay;
    border-radius: 12px;
    min-height: 280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}
.hero-content {
    color: white;
    padding: 2rem;
}
.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========== CATÉGORIES POPULAIRES ========== */
.popular-categories h3, .featured-products h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #1a5276;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 1rem 0 2rem;
}
.category-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.category-icon {
    font-size: 2.5rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
    transition: transform 0.2s, color 0.2s;
}
.category-card:hover .category-icon {
    transform: scale(1.1);
    color: #ff8c00;
}
.category-card a {
    text-decoration: none;
    color: #1a5276;
    font-weight: 500;
}

/* ========== SIDEBAR DROITE ========== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.promo-box, .filter-box {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.promo-box h3, .filter-box h3 {
    color: #1a5276;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.promo-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}
.promo-icon {
    width: 50px;
    height: 50px;
    background: #ff8c00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}
.promo-item p {
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.promo-item span {
    font-size: 0.85rem;
    color: #666;
}
.filter-box label {
    display: block;
    margin-bottom: 0.5rem;
}
.btn-small {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
}
.btn-small:hover {
    background-color: #e67e00;
}

/* ========== PAGE PRODUIT DÉTAIL - GALERIE AVEC ZOOM ========== */
.product-detail-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.product-gallery {
    position: relative;
    max-width: 450px;
}

.main-image-container {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: visible !important;
    margin-bottom: 1rem;
    cursor: crosshair;
}

.main-product-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ZOOM PROFESSIONNEL */
#zoom-lens {
    position: absolute;
    border: 2px solid #ff8c00;
    width: 100px;
    height: 100px;
    background: rgba(255, 140, 0, 0.15);
    display: none;
    pointer-events: none;
    z-index: 10;
    border-radius: 8px;
}

#zoom-result {
    position: absolute;
    border: 1px solid #ddd;
    width: 450px;
    height: 450px;
    background: white;
    display: none;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: 350%;
    overflow: hidden;
    left: calc(100% + 25px);
    top: 0;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox .close-lightbox:hover {
    color: #ff8c00;
}

/* Miniatures */
.thumbnail-container {
    margin-top: 1rem;
}

.thumbnail-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #ff8c00;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations produit */
.product-info-section {
    flex: 1;
}

.product-title-detail {
    font-size: 1.8rem;
    color: #1a5276;
    margin-bottom: 1rem;
}

.product-price-detail {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #ff8c00;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-stock {
    margin: 0.5rem 0;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.product-description {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Sélecteur de couleurs */
.color-selection {
    margin: 1rem 0;
}

.color-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.color-btn.active {
    border-color: #ff8c00;
    transform: scale(1.1);
}

.color-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    white-space: nowrap;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
}

.color-btn:hover .color-label {
    display: block;
}

/* Quantité et panier */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.add-to-cart-section {
    margin-top: 1.5rem;
}

.add-to-cart-btn, .wishlist-btn {
    width: 100%;
    margin-bottom: 0.8rem;
}

/* ========== AVIS CLIENTS ========== */
.reviews-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.review-card {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.review-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}
.review-form {
    margin-top: 1rem;
}

/* ========== PRODUITS SIMILAIRES - VERSION COMPACTE ========== */
.similar-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 1rem 0;
}

.similar-products .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.similar-products .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.similar-products .product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.similar-products .product-image {
    height: 130px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
}

.similar-products .product-info {
    padding: 0.5rem 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.similar-products .product-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a5276;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2rem;
}

.similar-products .product-info .price {
    font-weight: bold;
    color: #1a5276;
    font-size: 0.95rem;
    margin-top: auto;
}

.similar-products .product-info .price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Responsive produits vedettes */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);  /* 3 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 colonnes sur mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;  /* 1 colonne sur très petit écran */
    }
}

@media (max-width: 480px) {
    .similar-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .similar-products .product-image {
        height: 90px;
    }
    .similar-products .product-info h4 {
        font-size: 0.7rem;
        min-height: 1.6rem;
    }
    .similar-products .product-info .price {
        font-size: 0.8rem;
    }
}

/* ========== PANIER ========== */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th, .cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}
.empty-cart {
    text-align: center;
    padding: 3rem;
}

/* ========== PRODUITS VEDETTES ========== */
/* ========== PRODUITS VEDETTES ========== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 2rem;
}

/* Responsive produits vedettes */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BADGE PANIER ========== */
.cart-link {
    position: relative;
}
.cart-badge {
    background-color: #ff8c00;
    color: white;
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    display: inline-block;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #1a2a3a;
    color: white;
    padding: 2rem 20px;
    margin-top: 3rem;
    width: 100%;
}
.footer-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.social-icons a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== WHATSAPP FLOTTANT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
}

/* ============================================================ */
/* VIDÉO DE PRÉSENTATION - AJOUTÉ AVANT LES MEDIA QUERIES */
/* ============================================================ */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: videoFadeIn 0.3s ease;
}
.video-container.active {
    display: flex;
}
.video-wrapper {
    position: relative;
    width: 80%;
    max-width: 900px;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.close-video {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
}
.close-video:hover {
    transform: rotate(90deg);
    color: #ff8c00;
}
.play-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}
.play-video-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}
.play-video-btn i {
    font-size: 1.5rem;
}
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================ */
/* RESPONSIVE VIDÉO */
/* ============================================================ */
@media (max-width: 768px) {
    .video-wrapper {
        width: 95%;
        border-radius: 8px;
    }
    .close-video {
        top: 15px;
        right: 15px;
        font-size: 1.8rem;
    }
    .play-video-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    .play-video-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        width: 98%;
        border-radius: 6px;
    }
    .close-video {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    .play-video-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
    }
    .play-video-btn i {
        font-size: 1rem;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 220px 1fr;
    }
    .sidebar-right {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.1rem 20px;
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.3rem 20px;
        min-height: auto;
    }
    .logo-img {
        height: 100px;
    }
    .search-bar {
        width: 100%;
        max-width: none;
    }
    .user-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-links {
        gap: 0.8rem;
        justify-content: space-around;
    }
    .main-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    .sidebar-left {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .product-gallery {
        max-width: 100%;
    }
    .main-product-image {
        max-height: 250px;
    }
    .thumbnail {
        width: 55px;
        height: 55px;
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0.5rem;
    }
    .cart-actions {
        flex-direction: column;
    }
    .product-title-detail {
        font-size: 1.4rem;
    }
    .current-price {
        font-size: 1.5rem;
    }
    #zoom-result {
        width: 200px;
        height: 200px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .product-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        justify-content: flex-start !important;
    }
    .product-actions form {
        flex: 0 1 auto !important;
    }
    .product-actions .btn,
    .product-actions form .btn {
        min-width: 70px !important;
        font-size: 0.65rem !important;
        padding: 0 0.5rem !important;
        height: 32px !important;
        flex: 0 1 auto !important;
    }
    .user-actions a {
        font-size: 0.75rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .logo-img {
        height: 60px;
    }
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    .current-price {
        font-size: 1.3rem;
    }
    .color-btn {
        width: 40px;
        height: 40px;
    }
    #zoom-result {
        display: none !important;
    }
}