/* Global Styles */
:root {
    --primary-color: #6a0dad;
    --primary-light: #9c27b0;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-light);
    margin: 15px auto;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Assure qu'il reste au-dessus du contenu */
}

.top-bar {
    background: var(--dark-gray);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--white);
    margin: 0 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-light);
}

nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark-gray);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Products Section */
.products {
    padding: 80px 5%;
    background: var(--light-gray);
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    margin: 0 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: block;
}

.add-to-cart {
    width: 100%;
    padding: 8px 0;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-light);
}

/* About Section */
.about {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1615634262417-98ba8a8e8b33?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 5%;
    background: var(--light-gray);
    text-align: center;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial h4 {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 80px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--white);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter {
    flex: 1;
    min-width: 300px;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.newsletter h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.newsletter p {
    margin-bottom: 20px;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: absolute;
    top: 80px;
    right: 0;
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.cart-items {
    margin: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
    padding: 0 15px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.remove-item {
    color: #ff0000
}

.gender-hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.gender-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.gender-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.gender-hero p {
    font-size: 1.5rem;
    max-width: 700px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    margin-bottom: 30px;
}

/* Gender-Specific Hero Backgrounds */
#women-hero {
    background: linear-gradient(135deg, #6a0dad 0%, #9c27b0 50%, #e91e63 100%);
    animation: gradientBG 15s ease infinite;
    background-size: 200% 200%;
}

#men-hero {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 50%, #64b5f6 100%);
    animation: gradientBG 15s ease infinite;
    background-size: 200% 200%;
}

#children-hero {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #a18cd1 100%);
    animation: gradientBG 15s ease infinite;
    background-size: 200% 200%;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1000px;
}

.category-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark-gray);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer Styles */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 5% 20px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 767px) and (min-width: 375px) and (min-height:667px) {
    body {
        padding-top: 0 !important;
    }

    .top-bar {
        position: relative;
        z-index: 1001;
    }
    
    nav {
        padding: 10px 5%;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(57vh - 57px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: var(--transition);
        padding-top: 30px;
        overflow-y: auto;
        padding-bottom: 60px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero {
        margin-top: 0;
        padding-top: 0;
    }

    .about {
        flex-direction: column;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .contact {
        flex-direction: column;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Espacement entre les boutons */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

/* Brand Sections */
.brand-categories {
    padding: 40px 5%;
}

.brand-section {
    margin-bottom: 50px;
}

.brand-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Quick Navigation */
.brand-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 0 5%;
}

.brand-link {
    padding: 8px 15px;
    background: var(--primary-light);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.brand-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.product-section {
    padding: 60px 5%;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 10px;
    margin-top: 30px;
}

.product-card {
    width: 100%; /* Full width of grid cell */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 150px; /* Reduced height */
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-details {
    padding: 10px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
        gap: 20px;
    }
    
    .product-image-container {
        height: 200px; /* Slightly taller on desktop */
    }
}

.product-name {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.add-to-cart {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;

}

.add-to-cart:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Stock Indicator Styles */
.stock-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.in-stock {
    background-color: #4CAF50; /* Green */
    color: white;
}

.out-of-stock {
    background-color: #F44336; /* Red */
    color: white;
}

/* Optional: Low stock warning */
.low-stock {
    background-color: #FF9800; /* Orange */
    color: white;
}

/* Disabled button for out of stock items */
button.add-to-cart:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none !important;
}

/* Optional: Add stock quantity */
.stock-quantity {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Search Bar Styles */
.search-container {
    padding: 0 5%;
    margin: 15px auto;
    max-width: 800px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-light);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--primary-color);
}

/* Search Results */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}

.search-result-info h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.search-result-info p {
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Subcategory Navigation */
.subcategory-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px;
}

.subcategory-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    background: #ddd;
}

.subcategory-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Product subcategory filtering */
.product-card {
    display: block; /* Will be controlled by JavaScript */
}

.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Make sure other categories aren't affected */
.product-section:not(#skincare) .product-card {
    display: block !important; /* Force show products in other categories */
}

/* Cart Summary Styles */
.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.cart-total, .cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-subtotal {
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.subtotal-amount {
    color: var(--primary-color);
    font-weight: 600;
}

/* Add this to your CSS */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Animation d'ajout au panier */
.product-added {
    animation: productAdded 0.8s ease;
    box-shadow: 0 0 0 2px var(--primary-light);
}

@keyframes productAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Notification d'ajout au panier */
.add-to-cart-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.add-to-cart-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.add-to-cart-notification i {
    font-size: 1.2rem;
}

/* Bouton de suppression amélioré */
.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff0000;
    transform: rotate(90deg);
}

/* Amélioration de l'affichage des articles du panier */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(0,0,0,0.02);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item > div {
    flex: 1;
    min-width: 0;
}

.cart-item h4 {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Styles pour les boutons du panier */
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.clear-cart-btn {
    background: #f44336;
    margin-right: 10px;
}

.clear-cart-btn:hover {
    background: #d32f2f;
}

/* Assure que les notifications sont visibles */
.add-to-cart-notification {
    z-index: 1001; /* Au-dessus de la modale */
}

/* Styles pour les contrôles de quantité */
.quantity-controls {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.quantity-controls button:hover {
    background: #eee;
}

.quantity-controls .decrease-qty {
    border-radius: 4px 0 0 4px;
}

.quantity-controls .increase-qty {
    border-radius: 0 4px 4px 0;
}

.quantity-controls .item-qty {
    width: 30px;
    text-align: center;
    padding: 0 5px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Réorganisation des éléments du panier */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item > img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.cart-item > div:first-of-type {
    flex: 1;
    min-width: 0;
}

.cart-item h4 {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item p {
    color: #666;
    font-size: 0.9rem;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gender-hero h1, .gender-hero p {
    animation: floatText 6s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-btn {
    position: relative;
    z-index: 2;
    background: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .gender-hero {
        height: 50vh;
    }
    
    .gender-hero h1 {
        font-size: 2.5rem;
    }
    
    .gender-hero p {
        font-size: 1.2rem;
    }
}

/* RESPONSIVE DESIGN */

/* TABLETTE */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gender-hero h1 {
        font-size: 2.5rem;
    }

    .gender-hero p {
        font-size: 1.1rem;
    }
}

/* SUBCATEGORY BUTTONS - Mise en page responsive */
.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
}

.subcategory-btn {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.subcategory-btn:hover,
.subcategory-btn.active {
    background: var(--primary-light);
}

/* MOBILE FIX 
@media (max-width: 576px) {
    .subcategory-btn {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

.subcategory-btn.active {
    background-color: var(--primary-light);
    color: white;
    font-weight: bold;
    border: 2px solid var(--primary-light);
}

@media (max-width: 480px) {
    .product-grid {
        gap: 8px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
}*/

/* Nouveaux styles pour le menu mobile */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--white);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    left: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 992px) {
    .mobile-menu-overlay {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        padding-top: 0;
    }
    
    .close-menu-btn {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
}

/* Empêche le défilement quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    /* Remove the mobile-cart-icon if it exists */
    .mobile-cart-icon {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        padding: 0;
    }

    .hamburger {
        display: none;
    }
}