/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {

    background: #FFFFFF;
    width: 100%;
    overflow-x: hidden;
}

/* En-tête et navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 20px;
    position: relative;
    z-index: 100;
}

.logo img {
    width: 184px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a:hover {
    color: #ffffff;
    background: #6BB252;
    border-color: #4a8a3a;
    box-shadow: 0 4px 15px rgba(107, 178, 82, 0.3);
    transform: translateY(-2px);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::before {
    opacity: 1;
}

/* Effet de contour pour la page active */
nav a.active {
    color: #ffffff;
    background: #6BB252;
    border-color: #4a8a3a;
    box-shadow: 0 4px 15px rgba(107, 178, 82, 0.4);
}

/* Animation d'entrée pour les liens */
nav ul li {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

nav ul li:nth-child(1) {
    animation-delay: 0.1s;
}

nav ul li:nth-child(2) {
    animation-delay: 0.2s;
}

nav ul li:nth-child(3) {
    animation-delay: 0.3s;
}

nav ul li:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Effet de ripple pour les liens de navigation */
nav a {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.header-icons a {
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: #4CAF50;
}

.header-icons i {
    font-size: 24px;
}

.cart-icon,
.user-icon,
.search-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.icon-label {
    font-size: 12px;
    margin-top: 4px;
}

.cart-icon {
    position: relative;
}

.cart-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: none;
}

.cart-icon.has-items::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #c61717;
    border-radius: 50%;
    animation: cartBadgeAppear 0.3s ease-out;
}

/* Cart Preview Dropdown */
.cart-dropdown {
    position: relative;
}

.cart-preview {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 450px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 101;
    overflow-y: auto;
    flex-direction: column;
}

.cart-dropdown:hover .cart-preview,
.cart-preview.active {
    display: flex;
    /* Show on hover or when active */
}

.cart-preview h3 {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.cart-preview .cart-items {
    padding: 10px 0;
    flex-grow: 1;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
}

.cart-preview-item-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.cart-preview-item-details {
    flex: 1;
    font-size: 14px;
}

.cart-preview-item-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.cart-preview-item-price {
    color: #666;
    font-size: 13px;
}

.cart-preview-item-subtotal {
    font-weight: 600;
    font-size: 14px;
}

.remove-from-preview-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.remove-from-preview-btn:hover {
    color: #dc3545;
}

.cart-preview .empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-preview .cart-total {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

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

.cart-preview .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
}

@keyframes cartBadgeAppear {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Bannière principale */
.hero-banner {
    position: relative;
    height: 642px;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 0 80px;
    color: #212529;
}

.hero-content h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 96px;
    letter-spacing: -3.2px;
    color: #6BB252;
    margin-bottom: 0;
}

.hero-content h1.brand {
    color: #212529;
    margin-top: 0;
}

.hero-content p {
    font-size: 24px;
    line-height: 48px;
    margin-top: 8px;
    margin-bottom: 30px;
    color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #0a0a0a;
    border: 2px solid #000000;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

/* Caractéristiques */
.features {
    display: flex;
    justify-content: space-between;
    margin-top: -100px;
    position: relative;
}

.feature-box {
    width: 364px;
    height: 128px;
    padding: 20px 40px;
    color: #F8F8F8;
}

.feature-box.green {
    background-color: #6BB252;
    border-radius: 40px;

}

.feature-box.dark {
    background-color: #364127;
    border-radius: 40px;
}

.feature-box.orange {
    background-color: #F95F09;
    border-radius: 40px;
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Sections de contenu */
section {
    padding: 40px 45px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
}

.btn-secondary {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    color: #000000;
    text-align: center;
}

.controls {
    display: flex;
    gap: 8px;
}

.nav-buttons {
    display: flex;
    gap: 5px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #000000;
    border-radius: 10px;
    background: none;
    font-size: 16px;
    cursor: pointer;
}

/* Catégories slider */
.categories-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-item {
    text-align: center;
}

.round-img {
    width: 161px;
    height: 161px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.category-item p {
    margin-top: 10px;
    font-weight: 500;
    color: #333;
}

/* Grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 90%;
    height: 212px;
    object-fit: contain;
    margin: 0 auto 20px;
    transition: transform 0.3s ease-in-out;
}

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

.product-card h3 {
    font-size: 16px;
    font-weight: 400;
    color: #212529;
    margin-bottom: 10px;
}

.rating {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 4px;
}

.reviews {
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
}

.price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.old-price {
    font-size: 16px;
    color: #000000;
    text-decoration: line-through;
}

.current-price {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.current-price::after {
    content: " FCFA";
    font-size: 0.9em;
    color: #666;
}

.discount {
    font-size: 13px;
    color: rgba(33, 37, 41, 0.5);
    padding: 2px 5px;
    border: 1px solid #ADB5BD;
}

/* Product Card Enhancements */
.origin {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Styles pour les liens de produits */
.product-link {
    text-decoration: none;
    color: inherit;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.category-item a {
    text-decoration: none;
    color: inherit;
}

/* Bannières promotionnelles */
.promo-banners {
    display: flex;
    gap: 20px;
}

.promo-large {
    flex: 1.5;
    height: 443px;
    background: url('images/promo1.jpg') no-repeat center;
    background-color: #364127;
    padding: 40px;
    display: flex;
    align-items: center;
}

.promo-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-small {
    height: 206px;
    padding: 20px;
    display: flex;
    align-items: center;
}

.promo-small.green-light {
    background: url('images/promo2.jpg') no-repeat center;
    background-color: #5e862a;
}

.promo-small.orange {
    background: url('images/promo3.jpg') no-repeat center;
    background-color: #F95F09;
}

.promo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #F8F8F8;
    margin-bottom: 8px;
}

.promo-content h3 {
    font-size: 16px;
    font-weight: 800;
    color: #F8F8F8;
    margin-bottom: 16px;
}

.btn-shop {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
}

/* Newsletter */
.newsletter {
    height: 349px;
    background: url('images/newsletter.jpg') no-repeat center;
    background-color: #364127;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.newsletter-content {
    width: 50%;
    padding-left: 60px;
}

.newsletter-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 58px;
    color: #F8F8F8;
    margin-bottom: 30px;
}

.btn-subscribe {
    width: 317px;
    height: 52px;
    background: #6BB252;
    border: 1px solid #6BB252;
    border-radius: 20px;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
}

/* Avantages */
.benefits {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.benefit-card {
    width: 199px;
    height: 210px;
    background: #FFFFFF;
    border: 1px solid #ADB5BD;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 16px;
    color: #000000;
}

/* Pied de page */
footer {
    padding: 40px;
    margin-top: 60px;
}

.footer-top {
    display: flex;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 218px;
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    width: 70%;
}

.link-column h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 8px;
}

.link-column a {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #000000;
    padding-top: 20px;
    position: relative;
}

.footer-bottom p {
    font-size: 16px;
    color: #000000;
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-contact p {
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #4CAF50;
}

/* Required Field Indicator */
.required::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* Notification Banner */
.notification-banner {
    background-color: #6BB252;
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
}

.notification-banner a {
    color: white;
    text-decoration: underline;
}

/* Slogan Display */
.slogan {
    font-style: italic;
    color: #6BB252;
    text-align: center;
    margin: 10px 0;
}

/* Price Display */
.price-fcfa {
    font-weight: bold;
    color: #6BB252;
}

/* Delivery Information Section */
.delivery-info {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.delivery-content {
    max-width: 1200px;
    margin: 0 auto;
}

.delivery-content h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 40px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.delivery-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.delivery-card h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.delivery-card ul {
    list-style: none;
    padding: 0;
}

.delivery-card li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.delivery-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: block;
    opacity: 1;
}

.search-content {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-header h2 {
    font-size: 24px;
    color: #333;
}

.close-search {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.close-search:hover {
    color: #333;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 18px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.popular-searches {
    margin-top: 40px;
}

.popular-searches h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tags a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-tags a:hover {
    background-color: #4CAF50;
    color: white;
}

/* Dropdown Menus */
.cart-dropdown,
.user-dropdown {
    position: relative;
}

.cart-preview,
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-dropdown:hover .cart-preview,
.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-preview h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart {
    color: #666;
    text-align: center;
    padding: 20px 0;
}

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

.cart-total {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

/* User Menu Styles */
.user-menu {
    padding: 10px 0;
    min-width: 200px;
}

.user-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-menu a:hover {
    background-color: #f5f5f5;
    color: #4CAF50;
}

.user-menu i {
    margin-right: 10px;
    font-size: 18px;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-close {
        display: block;
    }

    .header-icons {
        gap: 15px;
    }

    .cart-dropdown,
    .user-dropdown {
        position: static;
    }

    .cart-preview,
    .user-menu {
        position: fixed;
        top: 108px;
        left: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .user-menu {
        background: white;
        padding: 15px;
        border-radius: 0;
        border-top: 1px solid #eee;
    }

    .cart-preview {
        padding: 15px;
        border-radius: 0;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 480px) {
    .header-icons {
        gap: 10px;
    }

    .header-icons a i {
        font-size: 1.2em;
    }

    .cart-icon,
    .user-icon,
    .search-icon {
        padding: 8px;
    }

    .icon-label {
        display: none;
    }
}

/* Responsive Design Rules */
@media (max-width: 1200px) {
    .hero-content {
        padding: 80px 40px;
    }

    .hero-content h1 {
        font-size: 70px;
        line-height: 84px;
    }

    .categories-slider {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-slider::-webkit-scrollbar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    section {
        padding: 30px;
    }

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

    .promo-banners {
        flex-direction: column;
    }

    .promo-large {
        height: 300px;
    }

    .benefits {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .benefit-card {
        width: calc(50% - 20px);
        min-width: 250px;
    }

    .newsletter {
        height: auto;
        padding: 40px 20px;
    }

    .newsletter-content {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .footer-links {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
        /* Hauteur réduite pour mobile */
        padding: 0 15px;
        /* Padding horizontal ajusté */
    }

    .logo img {
        width: 150px;
        /* Taille du logo réduite */
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: 0.3s;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 80px 20px;
        gap: 20px;
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    nav a {
        padding: 15px 25px;
        font-size: 18px;
        width: 100%;
        text-align: center;
        border-radius: 30px;
        max-width: 250px;
    }

    nav a:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(107, 178, 82, 0.4);
    }

    .header-icons {
        gap: 15px;
    }

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

    .hero-content h1 {
        font-size: 50px;
        line-height: 60px;
    }

    .hero-content p {
        font-size: 20px;
        line-height: 32px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
    }

    .feature-box {
        width: 100%;
    }

    section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .controls {
        width: 100%;
        justify-content: center;
    }

    .categories-slider {
        gap: 15px;
    }

    .round-img {
        width: 120px;
        height: 120px;
    }

    .products-grid {
        gap: 15px;
    }

    .promo-content h2 {
        font-size: 24px;
    }

    .newsletter-content h2 {
        font-size: 32px;
        line-height: 1.3;
    }

    .btn-subscribe {
        width: 100%;
        max-width: 300px;
        font-size: 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        text-align: center;
    }

    .search-content {
        margin: 60px auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 40px;
        line-height: 48px;
    }

    .hero-banner {
        height: 500px;
    }

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

    .product-card {
        max-width: none;
        margin: 0;
        padding: 10px;
    }

    .product-img {
        height: 150px;
    }

    .benefit-card {
        width: 100%;
    }

    .promo-large,
    .promo-small {
        height: 200px;
    }

    .promo-content h2 {
        font-size: 20px;
    }

    .promo-content h3 {
        font-size: 14px;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 30px;
    }

    .cart-preview,
    .user-menu {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
    }

    .search-content {
        margin: 40px 10px;
    }

    .search-header h2 {
        font-size: 20px;
    }

    .search-input {
        font-size: 16px;
    }
}

/* Amélioration de l'accessibilité tactile sur mobile */
@media (hover: none) and (pointer: coarse) {

    .btn-primary,
    .btn-secondary,
    .nav-btn,
    .search-tags a,
    .user-menu a {
        padding: 12px 20px;
        min-height: 44px;
    }

    .header-icons a {
        padding: 10px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Amélioration du responsive pour les formulaires */
@media (max-width: 768px) {

    .contact-content,
    .representative-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-button {
        width: 100%;
    }

    .info-item {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .price-range {
        flex-direction: column;
    }

    .price-range input {
        width: 100%;
    }

    .sort-dropdown {
        width: 100%;
        margin-top: 15px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Amélioration du responsive pour les cartes produits */
@media (max-width: 1024px) {
    .product-card {
        padding: 10px;
    }

    .product-img {
        height: 180px;
    }

    .product-card h3 {
        font-size: 14px;
    }

    .rating {
        font-size: 16px;
    }

    .current-price {
        font-size: 14px;
    }
}

/* Amélioration du responsive pour le panier et menu utilisateur */
@media (max-width: 768px) {

    .cart-preview,
    .user-menu {
        max-height: 80vh;
        overflow-y: auto;
    }

    .cart-items {
        max-height: 50vh;
    }

    .search-overlay {
        padding: 0 15px;
    }

    .search-content {
        width: 100%;
    }
}

/* Amélioration de l'espacement sur mobile */
@media (max-width: 480px) {
    section {
        padding: 15px;
    }

    .notification-banner {
        padding: 10px;
        font-size: 12px;
    }

    .round-img {
        width: 100px;
        height: 100px;
    }

    .categories-slider {
        gap: 10px;
        padding: 5px 0;
    }

    .product-card {
        margin: 0 auto;
        max-width: 280px;
    }
}

/* Product Detail Page Styles */
.product-detail {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating {
    color: #ffc107;
}

.review-count {
    color: #666;
}

.product-price {
    font-size: 2em;
    color: #c61717;
    margin: 20px 0;
    font-weight: bold;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
}

.product-features {
    margin: 30px 0;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.features-list i {
    color: #4CAF50;
}

.product-origin {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.add-to-cart-btn {
    background-color: #c61717;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #a01313;
}

/* Custom Popup Modal */
.vimi-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.vimi-popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.vimi-popup-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.vimi-popup-close {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}