/* logo for welia store link to website entreprises */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none; /* reste non souligné même au survol */
    color: inherit;
}

/* ... keep existing code (all the existing CSS) */

/* Nouvelles styles pour la galerie d'images des produits */

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.product-image-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image-container:hover .image-navigation {
    opacity: 1;
    pointer-events: all;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.product-thumbnails {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #ff6900;
    transform: scale(1.1);
}

/* Styles pour la modal avec galerie d'images */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
}

.modal-image-container .product-image-main {
    height: 300px;
    margin-bottom: 10px;
}

.modal-image-container .product-thumbnails {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 60px;
    overflow-y: auto;
}

.modal-image-container .thumbnail {
    width: 50px;
    height: 50px;
}

.modal-image-container .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.modal-image-container .image-navigation {
    opacity: 1;
    pointer-events: all;
}

/* Responsive pour les galeries d'images */
@media (max-width: 768px) {
    .product-thumbnails {
        gap: 3px;
    }
    
    .thumbnail {
        width: 30px;
        height: 30px;
    }
    
    .nav-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .modal-image-container .product-image-main {
        height: 200px;
    }
    
    .modal-image-container .thumbnail {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        display: none; /* Masquer les thumbnails sur très petits écrans */
    }
    
    .nav-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .modal-image-container .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Améliorer l'affichage en mode liste */
.products-grid.list-view .product-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.products-grid.list-view .product-thumbnails {
    display: none;
}

.products-grid.list-view .image-indicators {
    bottom: 5px;
}

/* Animation pour le changement d'images */
.main-product-image {
    transition: opacity 0.3s ease;
}

.image-changing {
    opacity: 0.7;
}

/* Styles supplémentaires pour une meilleure UX */
.product-card:hover .main-product-image {
    transform: scale(1.05);
}

.modal-image-container .main-product-image:hover {
    transform: scale(1.02);
}

/* Indicateur de loading pour les images */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 20px;
}

/* Keep all existing CSS styles unchanged */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo h1 {
    color: #ff6900;
    font-size: 24px;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ff6900;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.search-bar button {
    padding: 12px 20px;
    background: #ff6900;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    background: #ff6900;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone {
    font-weight: bold;
    color: #ff6900;
}

/* Navigation */
.nav {
    background: #fff;
    margin-top: 80px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 15px 0;
    position: relative;
}

.nav-menu li {
    margin-right: 30px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6900;
    border-bottom-color: #ff6900;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    border-bottom: none;
    color: #333;
    font-weight: 400;
    display: block;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #ff6900;
}

.mobile-menu-toggle {
    display: none;
}

/* Promo Banner Style - Jumia-like */
.promo-banner {
  background: linear-gradient(90deg, #ff6600, #ff9900);
  color: white;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  animation: slideInBanner 0.8s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.promo-icon {
  font-size: 1.4rem;
  animation: pulseIcon 1.2s infinite;
}

.promo-message strong {
  color: #fff700;
  margin: 0 5px;
}

.promo-phone {
  margin-left: 10px;
  font-weight: normal;
  font-size: 0.95rem;
}

@keyframes slideInBanner {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/* Texte qui clignote (ex. -80%) */
.blink-text {
  animation: blink 1.5s infinite;
  color: #fff700;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Texte promo temporaire (Économisez GROS !) */
.flash-text {
  color: #ffffff;
  font-weight: bold;
  animation: slideIn 0.6s ease-out;
}

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


/* Mobile responsive */
@media (max-width: 600px) {
  .promo-banner {
    font-size: 0.9rem;
  }

  .promo-phone {
    display: block;
    margin-top: 5px;
  }
}

/* Hero Carousel - Version corrigée */

.min-h-screen {
    min-height: 100vh;
}

.bg-gray-100 {
    background-color: #f5f5f5;
}

/* Hero Carousel - Version corrigée */
.hero-carousel {
    background: linear-gradient(135deg, #4A90E2, #FF8533);
    overflow: hidden;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden; /* Important pour masquer les slides non visibles */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    /* Suppression du transform par défaut - sera géré par JavaScript */
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0; /* Empêche les slides de se comprimer */
    height: 400px;
    display: flex;
    align-items: center;
    /* Suppression de l'opacity - tous les slides sont visibles mais décalés */
}

/* Suppression de la classe .active car on utilise transform maintenant */

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    color: white;
}

.slide-text {
    flex: 1;
    max-width: 500px;
}

.slide-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.slide-text h2 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 15px;
}

.highlight {
    color: #FF8533;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slide-btn {
    background: #fff;
    color: #4A90E2;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slide-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.showcase-item {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.showcase-item:nth-child(1) { animation-delay: 0s; }
.showcase-item:nth-child(2) { animation-delay: 0.5s; }
.showcase-item:nth-child(3) { animation-delay: 1s; }
.showcase-item:nth-child(4) { animation-delay: 1.5s; }
.showcase-item:nth-child(5) { animation-delay: 2s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .slide-text {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .slide-text h2 {
        font-size: 32px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .showcase-item {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #ff6900;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.category-count {
    background: #ff6900;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.filter-left {
    font-weight: 500;
    color: #666;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#sortSelect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.view-toggle {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.view-toggle:hover {
    background: #ff6900;
    color: white;
    border-color: #ff6900;
}

/* Main Content */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ccc;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6900;
    margin: 10px 0;
}

.product-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-discount {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: #ff6900;
    color: white;
}

.btn-primary:hover {
    background: #e55a00;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #ccc;
}

.modal-details h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff6900;
    margin: 15px 0;
}

.specs {
    margin: 20px 0;
}

.specs h3 {
    margin-bottom: 10px;
    color: #333;
}

.specs ul {
    list-style: none;
    padding-left: 0;
}

.specs li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ccc;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ff6900;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 2px;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: #128c7e;
}

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

.overlay.show {
    display: block;
}

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

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    padding: 0 10px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-icon {
    max-width: 150px;
    height: auto;
}

.footer-desc {
    line-height: 1.8;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: #4A90E2;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF8533;
}

.footer-column p,
.footer-column li {
    line-height: 1.8;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    padding: 5px 0;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #4A90E2;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.contact-item i {
    color: #4A90E2;
    width: 20px;
    margin-top: 2px;
}

.contact-item a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #4A90E2;
}

.contact-item address {
    font-style: normal;
    color: #bdc3c7;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.social-links a:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #95a5a6;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4A90E2;
}

/* Enhanced Mobile Responsive Design */

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ff6900;
    cursor: pointer;
    padding: 10px;
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        gap: 12px;
    }
    
    .search-bar {
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .carousel-container {
        height: 320px;
    }
    
    .slide-text h2 {
        font-size: 36px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .showcase-item {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* List view styles */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
}

.products-grid.list-view .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-grid.list-view .product-actions {
    flex-direction: row;
    margin-top: 0;
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    /* Categories section mobile */
    .categories-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .category-card p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    /* Filter bar mobile */
    .filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px 0;
    }
    
    .filter-right {
        justify-content: space-between;
    }
    
    /* Navigation mobile */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        color: #ff6900;
        cursor: pointer;
        padding: 10px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        margin-bottom: 10px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 5px;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* Header mobile improvements */
    .header .container {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        order: 2;
    }
    
    .search-bar {
        order: 3;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .cart-btn {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .phone {
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Navigation mobile menu */
    .nav {
        margin-top: 110px;
        position: sticky;
        top: 110px;
        z-index: 999;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: flex-start;
        padding: 8px 0;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-menu li {
        margin: 2px;
        flex-shrink: 0;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 4px;
        background: #f8f9fa;
        border: 1px solid #eee;
        white-space: nowrap;
        display: block;
    }
    
    .nav-menu a.active,
    .nav-menu a:hover {
        background: #ff6900;
        color: white;
        border-color: #ff6900;
    }
    
    /* Promo banner mobile */
    .promo-banner {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .promo-text {
        font-size: 12px;
    }
    
    /* Carousel mobile improvements */
    .carousel-container {
        height: 250px;
    }
    
    .carousel-slide {
        height: 250px;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 15px;
    }
    
    .slide-text {
        max-width: 100%;
    }
    
    .slide-text h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .slide-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .slide-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .showcase-item {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 8px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    /* Products grid mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 6px;
    }
    
    .product-image {
        height: 120px;
        font-size: 30px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 11px;
        height: auto;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .product-old-price {
        font-size: 11px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    /* Modal mobile improvements */
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-image {
        height: 180px;
        font-size: 50px;
    }
    
    .modal-details h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .modal-price {
        font-size: 20px;
        margin: 10px 0;
    }
    
    .specs {
        margin: 15px 0;
    }
    
    .specs h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .specs li {
        font-size: 12px;
        padding: 3px 0;
    }
    
    .quantity-selector {
        margin: 15px 0;
        gap: 8px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 50px;
        padding: 6px;
        font-size: 14px;
    }
    
    /* Cart sidebar mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 12px;
    }
    
    .cart-header h3 {
        font-size: 16px;
    }
    
    .cart-items {
        padding: 12px;
    }
    
    .cart-item {
        padding: 10px 0;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .cart-item-name {
        font-size: 12px;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
    
    .cart-item-quantity {
        gap: 3px;
        margin-top: 5px;
    }
    
    .cart-item-quantity button {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .cart-item-quantity input {
        width: 30px;
        font-size: 10px;
    }
    
    .cart-footer {
        padding: 12px;
    }
    
    .cart-total {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 14px;
        gap: 8px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo-icon {
        max-width: 120px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    /* Header very small mobile */
    .header .container {
        padding: 8px;
        gap: 8px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .search-bar input,
    .search-bar button {
        padding: 8px;
        font-size: 12px;
    }
    
    .cart-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .phone {
        font-size: 10px;
    }
    
    /* Navigation very small */
    .nav {
        margin-top: 100px;
    }
    
    .nav-menu a {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Promo banner very small */
    .promo-text {
        font-size: 10px;
    }
    
    /* Carousel very small */
    .carousel-container {
        height: 200px;
    }
    
    .carousel-slide {
        height: 200px;
    }
    
    .slide-content {
        padding: 8px;
    }
    
    .slide-text h2 {
        font-size: 18px;
    }
    
    .slide-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .slide-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
    
    .slide-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .showcase-item {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .carousel-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    /* Products very small */
    .products-grid {
        gap: 8px;
    }
    
    .product-image {
        height: 100px;
        font-size: 25px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-name {
        font-size: 10px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    /* Modal very small */
    .modal-body {
        padding: 10px;
    }
    
    .modal-image {
        height: 150px;
        font-size: 40px;
    }
    
    .modal-details h2 {
        font-size: 16px;
    }
    
    .modal-price {
        font-size: 18px;
    }
    
    /* Footer very small */
    .footer-content {
        gap: 20px;
    }
    
    .footer-column h4 {
        font-size: 16px;
    }
    
    .footer-logo-icon {
        max-width: 100px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-container {
        height: 180px;
    }
    
    .carousel-slide {
        height: 180px;
    }
    
    .slide-content {
        flex-direction: row;
        padding: 10px 20px;
        gap: 20px;
    }
    
    .slide-text h2 {
        font-size: 20px;
    }
    
    .slide-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .slide-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-item {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .cart-btn,
    .carousel-btn,
    .nav-menu a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-card {
        transition: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Additional styling for empty states */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}
.zoom-lens {
  position: absolute;
  border: 1px solid #d4d4d4;
  width: 100px;
  height: 100px;
  opacity: 0.4;
  background-color: #ffffff;
  pointer-events: none;
  z-index: 1000;
  display: none;
}

.zoom-result {
  position: absolute;
  border: 1px solid #d4d4d4;
  width: 300px;
  height: 300px;
  right: -320px;
  top: 0;
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.zoom-result img {
  position: absolute;
  width: 200%;
  height: auto;
}

/** new code popup */

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-container {
  position: relative;
  width: 90%;
  max-width: 550px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
}

.popup-content {
  padding: 20px;
  text-align: center;
}

.popup-text {
  background-color: #ff6600;
  color: white;
  padding: 20px;
  border-radius: 4px;
}

.promo-title {
  font-size: 2rem;
  margin: 0;
  animation: pulse 2s infinite;
}

.warning-text {
  background: #ffcc00;
  color: #cc0000;
  padding: 5px 10px;
  font-weight: bold;
  border-radius: 4px;
  margin: 10px 0;
  animation: blink 1s infinite;
}

.promo-subtitle {
  font-size: 0.95rem;
  margin: 10px 0 0;
}

.popup-products {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.product-item {
  width: 30%;
  text-align: center;
}

.product-img {
  width: 100%;
  border-radius: 4px;
}

.product-name {
  font-weight: bold;
  margin: 8px 0 4px;
}

.product-price {
  color: #ff6600;
  font-weight: bold;
}

.popup-cta {
  background-color: #ff6600;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.popup-cta:hover {
  background-color: #e65c00;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .popup-products {
    flex-direction: column;
  }

  .product-item {
    width: 100%;
  }
}
/* Affiche le popup avec animation */
.popup-overlay.show {
  display: flex;
}

.popup-container {
  animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(-100px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(10px);
  }
  80% {
    transform: scale(0.98) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

