/* =============================================
   ZIKOOP - FEUILLE DE STYLES PRINCIPALE
   Version: 1.0 - Nettoyée et optimisée
   ============================================= */

/* ===========================================
   1. RESET ET STYLES DE BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* ===========================================
   2. BANNIÈRE ET EN-TÊTE
   =========================================== */

/* Bannière supérieure */
.top-banner {
    background: linear-gradient(90deg, #ff4747 0%, #ff6b6b 100%);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* En-tête supérieur */
.header-top {
    background: #333;
    color: #999;
    font-size: 12px;
    padding: 8px 0;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left,
.header-top-right {
    display: flex;
    gap: 20px;
}

.header-top-right {
    align-items: center;
}

.header-top a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.header-top a:hover {
    color: white;
}

/* En-tête principal */
.header-main {
    background: white;
    padding: 15px 0;
    border-bottom: 2px solid #ff6b6b;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo */
.logo {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Boîte de recherche */
.search-box {
    flex: 1;
    display: flex;
    background: #f5f5f5;
    border: 2px solid #ff6b6b;
    border-radius: 4px;
    overflow: hidden;
}

.search-categories {
    background: white;
    border: none;
    padding: 0 15px;
    font-size: 13px;
    color: #666;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    background: transparent;
    outline: none;
}

.search-btn {
    background: #ff6b6b;
    border: none;
    padding: 0 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #ff4747;
}

/* Actions de l'en-tête */
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.header-action:hover {
    color: #ff6b6b;
}

.header-action-icon {
    font-size: 24px;
    position: relative;
}

.header-action-text {
    font-size: 11px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* ===========================================
   3. NAVIGATION DES CATÉGORIES
   =========================================== */
.categories-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.categories-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.all-categories {
    background: #ff6b6b;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.main-categories {
    display: flex;
    gap: 25px;
    flex: 1;
}

.main-categories a {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    font-size: 14px;
    transition: color 0.2s;
    position: relative;
}

.main-categories a:hover {
    color: #ff6b6b;
}

.main-categories a.hot::after {
    content: 'HOT';
    position: absolute;
    top: 0;
    right: -25px;
    background: #ff4747;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* ===========================================
   4. SECTION HERO
   =========================================== */
.hero-section {
    background: white;
    padding: 15px 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 15px;
}

/* Barre latérale des catégories */
.categories-sidebar {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.category-item:hover {
    background: #fff5f5;
    color: #ff6b6b;
    padding-left: 20px;
}

.category-item:last-child {
    border-bottom: none;
}

.category-icon {
    margin-right: 10px;
    font-size: 18px;
}

.category-item.category-hidden {
    display: none;
}

.categories-sidebar.expanded .category-item.category-hidden {
    display: flex;
    animation: slideDownSidebar 0.3s ease forwards;
}

.show-more-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background: #f8f8f8;
    color: #ff6b6b;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.show-more-sidebar:hover {
    background: #fff5f5;
    color: #ff4747;
}

.show-more-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.categories-sidebar.expanded .show-more-arrow {
    transform: rotate(180deg);
}

/* Bannière principale */
.main-banner {
    position: relative;
    height: 360px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: opacity 0.3s ease, background 0.5s ease;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner-btn {
    background: white;
    color: #ff6b6b;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-btn:hover {
    transform: scale(1.05);
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Barre latérale droite */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.signin-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-bottom: 8px;
}

.register-btn {
    background: white;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}

.promo-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.promo-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.promo-icon {
    font-size: 20px;
}

/* ===========================================
   5. SECTIONS DE CONTENU
   =========================================== */
.section {
    background: white;
    margin: 15px 0;
    padding: 20px 0;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 {
    font-size: 22px;
    color: #333;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-weight: 600;
}

.countdown-box {
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    min-width: 30px;
    text-align: center;
}

.view-more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-more:hover {
    color: #ff6b6b;
}

/* ===========================================
   6. GRILLE DE PRODUITS
   =========================================== */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Carte produit complète avec toutes les fonctionnalités */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ff6b6b;
}

.product-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Overlay sombre au survol */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.product-card:hover .product-image::after {
    background: rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

/* Bouton favori */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 5;
    font-size: 18px;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff6b6b;
    animation: heartBeat 0.8s ease-in-out;
}

/* Boutons d'action au survol */
.product-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    flex: 1;
    padding: 5px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-cart-btn {
    background: #ff6b6b;
    color: white;
}

.add-cart-btn:hover {
    background: #ff4747;
    transform: scale(1.05);
}

.view-detail-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid #e0e0e0;
}

.view-detail-btn:hover {
    background: white;
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: scale(1.05);
}

.product-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.product-action-btn.loading {
    position: relative;
}

.product-action-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

/* Informations produit */
.product-info {
    padding: 10px;
}

.product-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: 36px;
}

.product-price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 5px;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.rating-stars {
    color: #ffa500;
}

.product-sold {
    font-size: 11px;
}

/* Super Deals */
.super-deals {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    margin: 15px 0;
    padding: 20px 0;
}

.super-deals .section-title h2 {
    color: white;
}

.super-deals .products-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* ===========================================
   7. GRILLE DE CATÉGORIES
   =========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.category-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    opacity: 1;
    transform: scale(1);
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.2s;
}

.category-card:hover .category-card-icon {
    background: #fff5f5;
    color: #ff6b6b;
}

.category-card-name {
    font-size: 12px;
}

.category-card.hidden {
    display: none;
}

.categories-section.expanded .categories-grid {
    grid-template-columns: repeat(6, 1fr);
}

.categories-section.expanded .category-card.hidden {
    display: block;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.3s ease forwards;
}

.show-more-categories {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-categories:hover {
    color: #ff4747;
    transform: translateX(5px);
}

.show-more-categories .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.categories-section.expanded .show-more-categories .arrow {
    transform: rotate(180deg);
}

/* ===========================================
   8. PIED DE PAGE
   =========================================== */
.footer {
    background: #333;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.payment-icon {
    width: 50px;
    height: 30px;
    background: #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

/* ===========================================
   9. MENU MOBILE
   =========================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-categories {
    padding: 15px;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-item.mobile-category-hidden {
    display: none;
}

.mobile-menu.expanded .mobile-category-item.mobile-category-hidden {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

.show-more-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background: #f8f8f8;
    color: #ff6b6b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
    margin: 10px 0;
    border-radius: 4px;
}

.show-more-mobile:hover {
    background: #fff5f5;
    color: #ff4747;
}

.mobile-menu.expanded .show-more-mobile .show-more-arrow {
    transform: rotate(180deg);
}

/* Navigation mobile du bas */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    z-index: 999;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    padding: 5px 10px;
}

.mobile-nav-item.active {
    color: #ff6b6b;
}

.mobile-nav-icon {
    font-size: 20px;
}

/* ===========================================
   10. ANIMATIONS
   =========================================== */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
    }
    to {
        transform: translateX(-50%) translateY(100%);
    }
}

@keyframes slideDownSidebar {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    40% { transform: scale(1); }
    60% { transform: scale(1.3); }
    80% { transform: scale(1); }
    100% { transform: scale(1); }
}

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

/* ===========================================
   11. RESPONSIVE DESIGN
   =========================================== */

/* Tablettes - Large */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .super-deals .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .category-card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .category-card.hidden {
        display: none !important;
    }
    
    .categories-section.expanded .category-card.hidden {
        display: block !important;
    }
}

/* Tablettes - Medium */
@media (max-width: 992px) {
    .header-top {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 200px 1fr;
        gap: 10px;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .super-deals .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobiles - Large */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content {
        gap: 10px;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .search-box {
        display: none;
    }
    
    .header-actions {
        gap: 15px;
        margin-left: auto;
    }
    
    .header-action-text {
        display: none;
    }
    
    .header-action:nth-child(2) {
        display: none;
    }
    
    .categories-nav {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .categories-sidebar {
        display: none;
    }
    
    .main-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .product-card {
        border-radius: 3px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 12px;
        height: 32px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .categories-section.expanded .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 18px;
    }
    
    .countdown {
        font-size: 14px;
    }
    
    .countdown-box {
        padding: 2px 6px;
        min-width: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* Mobiles - Medium */
@media (max-width: 576px) {
    .top-banner {
        font-size: 11px;
        padding: 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .product-info {
        padding: 8px 6px;
    }
    
    .product-sold {
        display: none;
    }
    
    .super-deals .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .categories-section.expanded .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .countdown {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-methods {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .payment-icon {
        width: 40px;
        height: 25px;
        font-size: 9px;
    }
}

/* Mobiles - Small */
@media (max-width: 360px) {
    .logo {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-action-icon {
        font-size: 20px;
    }
    
    .main-banner {
        height: 150px;
    }
    
    .banner-content h1 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .banner-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .product-title {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .categories-grid {
        gap: 5px;
    }
    
    .category-card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .category-card-name {
        font-size: 11px;
    }
}

/* Correction pour les cartes produits */
.product-card {
    position: relative;
    cursor: default; /* Retirer le curseur pointer global */
}

.product-info-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-info-link:hover {
    text-decoration: none;
}

/* S'assurer que les boutons d'action ne déclenchent pas la navigation */
.product-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10; /* Plus élevé pour être au-dessus */
}

.product-action-btn {
    cursor: pointer;
    user-select: none;
}

/* Empêcher la propagation des clics sur les boutons */
.wishlist-btn,
.product-action-btn {
    pointer-events: auto;
}

/* État de chargement pour les boutons */
.product-action-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.product-action-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}