:root {
    --primary: #006699;
    --primary-dark: #005580;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e6e6e6;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #f5f5f5;
}

/* Header Styles */
.header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header.visible {
    top: 0;
}

.header-top {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.header-top a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.header-top a:hover {
    opacity: 1;
}

.header-main {
    padding: 15px 20px;
    background: white;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.search-bar {
    flex: 1;
    max-width: 800px;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 20px;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}


.search-btn:hover {
    background: var(--primary-dark);
}


.user-actions {
    display: flex;
    gap: 25px;
}

.user-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
}

.user-action i {
    font-size: 22px;
    margin-bottom: 4px;
}

.user-action span {
    font-size: 13px;
    font-weight: 500;
}

.user-action:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Navigation */
.nav-categories {
    margin-top: 0;
    position: sticky;
    top: 89px;
    z-index: 900;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 106, 0, 0.1);
}

/* Rest of the styles remain similar but with adjustments */
.banner-section {
    margin-top: 20px;
    background: white;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 20px;
}

.categories-menu {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.category-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.category-item:hover {
    background: #f8f8f8;
    color: var(--primary);
    padding-left: 25px;
}

.banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-banner {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    overflow: hidden;
    margin-bottom: 40px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.banner-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-search {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.banner-scroll {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-scroll.scrolling {
    animation: scrollBanners linear infinite;
}

@keyframes scrollBanners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.banner-item {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Styles pour la nouvelle barre de navigation */
.top-nav {
    background: var(--primary);
    padding: 0;
    position: relative;
    z-index: 100;
}


.top-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Style du bouton catégories */
.category-dropdown {
    position: static;
}

.category-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}


.category-link i {
    margin-right: 10px;
}

.category-link:hover {
    background: rgba(0, 0, 0, 0.2);
}


.category-dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    padding: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
    flex-basis: 20%;
    margin-bottom: 20px;
}

.dropdown-content a:hover {
    color: var(--primary);
}

.top-nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.top-nav-link:hover {
    opacity: 0.8;
}

.top-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.category-dropdown {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    border-radius: 8px;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw; 
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99; 
    margin-left: calc(-50vw + 50%); 
    margin-right: calc(-50vw + 50%);
    transform: translateX(0); 
}

.dropdown-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative; 
}


.category-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Animation pour le dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a i {
    width: 24px;
    margin-right: 12px;
    color: var(--primary);
    font-size: 18px;
}

.dropdown-content a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.top-nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.top-nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 1200px) {
    .dropdown-content-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .dropdown-content-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dropdown-content-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 1rem;
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.category-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sub-categories {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sub-category {
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.sub-category-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.sub-category-content {
    padding: 0.5rem;
    text-align: center;
}

.sub-category-title {
    font-size: 0.9rem;
    color: var(--text-color);
}

.category-image, .sub-category {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-image:hover, .sub-category:hover {
    transform: scale(1.05);
}

.category-card {
    cursor: pointer;
}

.sub-category {
    cursor: pointer;
}




/* Style pour la section de produits */
.products-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.product-moq {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


.brand-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.brand-name {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

 /* Styles pour la section des marques */
 .brands-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.section-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}

.brands-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
align-items: center;
margin-top: 30px;
}

/* Styles pour la section des marques partenaires */
.brands-section {
    padding: 60px 0;
    background: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

.brands-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brands-grid img:hover {
    transform: scale(1.05);
}

/* Styles pour les sections des tendances et des nouveautés */
.trends-section,
.new-arrivals-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

.view-all i {
    font-size: 14px;
    transition: transform 0.3s;
}

.view-all:hover i {
    transform: translateX(5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.product-badge.trending {
    background: var(--primary);
}

.product-badge.new {
    background: #10b981;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
}

.sales {
    color: var(--text-secondary);
    font-size: 13px;
}

.see-more-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-top: 30px;
    transition: var(--transition);
}

.see-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Styles pour les caractéristiques */
.features-section {
padding: 80px 0;
background: #f8f9fa;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
margin-top: 30px;
}

.feature-card {
text-align: center;
padding: 30px;
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
transition: var(--transition);
}

.feature-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-md);
}

.feature-card i {
font-size: 40px;
color: var(--primary);
margin-bottom: 20px;
}

.feature-card h3 {
font-size: 20px;
margin-bottom: 10px;
color: var(--text-primary);
}

.feature-card p {
color: var(--text-secondary);
font-size: 14px;
}

/* Section des avantages révisée */
.features-section {
width: 100%;
padding: 60px 0;
background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.features-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}

.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-top: 40px;
}

.feature-card {
background: white;
padding: 40px 30px;
border-radius: 16px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
}

.feature-card:hover {
transform: translateY(-10px);
}

.feature-card i {
font-size: 45px;
color: var(--primary);
margin-bottom: 20px;
background: rgba(255, 106, 0, 0.1);
width: 90px;
height: 90px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: 0 auto 20px;
}

.feature-card h3 {
font-size: 22px;
font-weight: 600;
margin-bottom: 15px;
color: #2d3436;
}

.feature-card p {
color: #636e72;
line-height: 1.6;
font-size: 16px;
}

/* Footer revisé */
.footer {
width: 100%;
background: #2d3436;
color: white;
position: relative;
overflow: hidden;
}

.footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.footer-content {
max-width: 1400px;
margin: 0 auto;
padding: 80px 20px 40px;
}

.footer-main {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 60px;
margin-bottom: 60px;
}

.footer-info {
padding-right: 40px;
}

.footer-logo {
font-size: 32px;
font-weight: 800;
color: white;
margin-bottom: 20px;
display: block;
}

.footer-description {
color: #b2bec3;
line-height: 1.8;
margin-bottom: 30px;
text-align: justify;
}

.social-links {
display: flex;
gap: 15px;
}

.social-link {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: white;
text-decoration: none;
transition: all 0.3s ease;
}

.social-link:hover {
background: var(--primary);
transform: translateY(-3px);
}

.footer-col h3 {
color: white;
font-size: 18px;
font-weight: 600;
margin-bottom: 25px;
position: relative;
padding-bottom: 15px;
}

.footer-col h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 3px;
background: var(--primary);
border-radius: 2px;
}

.footer-col ul {
list-style: none;
}

.footer-col ul li {
margin-bottom: 15px;
}

.footer-col ul li a {
color: #b2bec3;
text-decoration: none;
font-size: 15px;
transition: all 0.3s ease;
display: flex;
align-items: center;
}

.footer-col ul li a:hover {
color: var(--primary);
padding-left: 5px;
}

.footer-col ul li a i {
margin-right: 10px;
font-size: 12px;
}

.newsletter-box {
background: rgba(255, 255, 255, 0.05);
padding: 30px;
border-radius: 12px;
margin-top: 20px;
}

.newsletter-form {
display: flex;
gap: 10px;
}

.newsletter-form input {
flex: 1;
padding: 12px 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
color: white;
font-size: 14px;
}

.newsletter-form input:focus {
outline: none;
border-color: var(--primary);
}

.newsletter-form button {
background: var(--primary);
color: white;
border: none;
padding: 12px 25px;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}

.newsletter-form button:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 30px;
margin-top: 30px;
display: flex;
justify-content: space-between;
align-items: center;
}

.footer-bottom-links {
display: flex;
gap: 30px;
}

.footer-bottom-links a {
color: #b2bec3;
text-decoration: none;
font-size: 14px;
transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
color: var(--primary);
}

@media (max-width: 1024px) {
.footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-info {
    grid-column: 1 / -1;
    padding-right: 0;
}
}

@media (max-width: 768px) {
.features-grid {
    grid-template-columns: 1fr;
}

.footer-main {
    grid-template-columns: 1fr;
}

.footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
}
}

.popular-shops {
    padding: 40px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.shop-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-info {
    padding: 20px;
}

.shop-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.shop-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.shop-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-since {
    display: flex;
    align-items: center;
    gap: 4px;
}

.member-since i {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.catalog-action {
    position: absolute;
    top: -60px;
    right: 30px;
  }
  
  .catalog-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary, #006699);
    color: white;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
  }
  
  .catalog-btn:hover {
    background-color: var(--primary-dark, #005580);
    transform: translateY(-2px);
  }
  
  .categories-grid {
    position: relative;
    margin-top: 80px;
  }


  /* ======= RESPONSIVE MOBILE ======= */
@media (max-width: 1024px) {
    .search-bar {
        margin: 0 15px;
    }
    
    .user-actions {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .header-top {
        padding: 6px 0;
    }
}

@media (max-width: 768px) {
    /* Configuration du header pour mobile */
    .header-main {
        padding: 10px 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    /* Première rangée: Logo et actions utilisateur */
    .logo {
        font-size: 24px;
        margin-right: auto;
    }
    
    .user-actions {
        display: flex;
        gap: 18px;
    }
    
    .user-action {
        padding: 4px;
    }
    
    .user-action i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .user-action span {
        font-size: 11px;
    }
    
    /* Deuxième rangée: Barre de recherche */
    .search-bar {
        order: 3;
        flex-basis: 100%;
        margin: 12px 0 0 0;
        max-width: none;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    /* Header encore plus compact pour petits écrans */
    .header-top-content > div:first-child {
        font-size: 11px;
    }
    
    .header-top-content a {
        font-size: 11px;
    }
    
    .header-main {
        padding: 8px 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .user-actions {
        gap: 15px;
    }
    
    .cart-count {
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
    
    .search-bar {
        margin-top: 10px;
    }
    
    .search-input {
        padding: 8px 12px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

.category-dropdown .logo {
    display: flex;
    align-items: center;
}

    .category-dropdown .logo img {
    max-height: 80px;
    width: auto;
    }

    .header-content .logo img {
        max-height: 100px;
        width: auto;
        transition: all 0.3s ease;
    }

    .search-input:focus {
    outline: none;
    border-color: #006699;
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.2);
}

/* Styles pour le conteneur de suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid #e5e7eb;
    border-top: none;
    scrollbar-width: thin;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Styles pour les éléments de suggestion */
.search-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: #f0f7ff;
}

.suggestion-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.suggestion-details {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: #1f2937;
}

.suggestion-price {
    font-size: 0.9em;
    color: #006699;
    font-weight: 600;
}

/* Style pour "Voir tous les résultats" */
.view-all-results {
    padding: 12px 15px;
    text-align: center;
    background-color: #f5f5f5;
    color: #006699;
    font-weight: 500;
    cursor: pointer;
    border-top: 1px solid #eaeaea;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.2s;
}

.view-all-results:hover {
    background-color: #e8f4f9;
}

/* Animation pour l'apparition des suggestions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions {
    animation: fadeIn 0.2s ease-out;
}

/* Style pour le message "aucun produit" */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .search-bar {
        margin: 10px 0;
        max-width: 100%;
    }
    
    .suggestion-image {
        width: 30px;
        height: 30px;
    }
    
    .suggestion-name {
        font-size: 0.9em;
    }
    
    .suggestion-price {
        font-size: 0.8em;
    }
}

.load-more-btn {
    background-color: #006699;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
  }
  
  .load-more-btn:hover {
    background-color: #005588;
  }
  
  .load-more-btn i {
    transition: transform 0.3s ease;
  }
  
  .load-more-btn:hover i {
    transform: translateY(3px);
  }
  
  #load-more-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    padding: 20px 0;
  }

  /* Animation pour le chargement de nouveaux produits */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .product-card {
    animation: fadeIn 0.3s ease-out;
  }

  /* Styles pour le bouton de favoris */
/* Styles pour le bouton de favoris */
.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-btn i {
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-btn.active i {
    color: #ff4757;
}

.wishlist-btn:hover i {
    color: #ff4757;
}

/* Animation pour le cœur */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-btn i.fas {
    color: #ff4757;
}

/* Ajout explicite d'animation pour le cœur actif */
i.fas.fa-heart {
    animation: pop 0.3s;
}

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 71, 87, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 5;
    display: block !important;
}

/* Styles pour le modal de sélection des options */
.options-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .options-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .options-modal {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .options-modal-overlay.active .options-modal {
    transform: translateY(0);
  }
  
  .options-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
  }
  
  .options-modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #2d3748;
  }
  
  .options-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .options-modal-close:hover {
    background: #edf2f7;
    color: #334155;
  }
  
  .options-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }
  
  .modal-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
  }
  
  .modal-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
  }
  
  .modal-product-details h3 {
    font-weight: 600;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 4px;
  }
  
  .modal-product-details .modal-product-price {
    color: #006699;
    font-weight: 600;
    font-size: 18px;
  }
  
  .options-section {
    margin-bottom: 24px;
  }
  
  .options-section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: #2d3748;
  }
  
  .options-section-title i {
    margin-right: 8px;
    color: #006699;
  }
  
  .required-badge {
    font-size: 11px;
    background: rgba(0, 102, 153, 0.1);
    color: #006699;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
  }
  
  /* Variants grid avec design amélioré */
  .variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
  }
  
  /* Design amélioré des cartes de variantes */
  .variant-card {
    position: relative;
    height: 100%;
  }
  
  .variant-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .variant-label {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
    overflow: hidden;
  }
  
  .variant-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #d0d7de;
  }
  
  .variant-input:checked + .variant-label {
    border-color: #006699;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 102, 153, 0.08) 100%);
    box-shadow: 0 5px 20px rgba(0, 102, 153, 0.15);
  }
  
  .variant-input:checked + .variant-label::before {
    content: "✓";
    position: absolute;
    top: -2px;
    right: -2px;
    background: #006699;
    width: 25px;
    height: 25px;
    border-radius: 0 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
  }
  
  .variant-attributes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  }
  
  .attribute-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-transform: capitalize;
  }
  
  .attribute-value {
    color: #4a5568;
    font-size: 14px;
  }
  
  .variant-price-display {
    margin-top: auto;
    display: flex;
    justify-content: center;
  }
  
  .variant-price {
    display: inline-block;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    background-color: rgba(0, 102, 153, 0.1);
    color: #006699;
  }
  
  .price-reduction {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
  }
  
  .price-increase {
    background-color: rgba(0, 102, 153, 0.1);
    color: #006699;
  }
  
  /* Modal Footer */
  .options-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
  }
  
  .total-price {
    font-weight: 600;
    color: #2d3748;
  }
  
  .price-value {
    color: #006699;
    font-size: 18px;
    margin-left: 8px;
  }
  
  .add-to-cart-modal-btn {
    background: #006699;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
  }
  
  .add-to-cart-modal-btn:hover {
    background: #005588;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 153, 0.2);
  }
  
  /* Price summary */
  .price-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f1f7fa;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    border-left: 4px solid #006699;
  }
  
  .price-summary.reduction {
    border-left-color: #10b981;
  }
  
  .price-breakdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .price-breakdown.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e0;
    font-weight: 600;
    color: #2d3748;
  }
  
  .price-addition {
    font-weight: 600;
    color: #006699;
  }
  
  .price-reduction-text {
    font-weight: 600;
    color: #10b981;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 640px) {
    .variants-grid {
      grid-template-columns: 1fr;
    }
    
    .options-modal-footer {
      flex-direction: column;
      gap: 12px;
    }
    
    .add-to-cart-modal-btn {
      width: 100%;
      justify-content: center;
    }
  }