:root {
    --primary: #FF6700;
    --secondary: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --primary: #FF6700;
    --secondary: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    background-color: #f9f9f9;
}

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

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 400;
}

.user-actions {
    display: flex;
    align-items: center;
}

.action-item {
    margin-left: 20px;
    text-align: center;
    position: relative;
}

.action-icon {
    font-size: 24px;
    color: var(--secondary);
}

.action-text {
    font-size: 12px;
    margin-top: 3px;
}

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

/* Navigation styles */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-dropdown {
    position: relative;
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 400;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.categories-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--secondary);
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style-type: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/api/placeholder/1200/400') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e05900;
}

/* Featured categories */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
    font-weight: 400;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 100px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-name {
    padding: 10px;
    font-weight: 600;
}

/* Featured products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 18px;
}

.express-badge {
    position: absolute;
    bottom: 60%;
    left: 0;
    background-color: #FF6700;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    font-weight: bold;
}

.product-image {
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

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

.current-price {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

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

.stars {
    color: #FFD700;
    margin-right: 5px;
}

.rating-count {
    font-size: 14px;
    color: #888;
}

.add-to-cart {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.3s;
}

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

/* Special features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    background-color: rgba(255, 103, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 20px;
}

.feature-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--secondary); 
    color: #aaa;
    padding: 40px 0 20px;
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
}

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

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

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

.footer-links a:hover {
    color: var(--primary);
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

.payment-methods {
    margin-top: 15px;
}

.payment-methods img {
    height: 30px;
    margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search-bar {
        margin: 15px 0;
    }
    
    .user-actions {
        justify-content: space-around;
        margin-top: 15px;
    }
    
    .action-item {
        margin: 0;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .categories-dropdown {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
}

/* Ajouts aux variables CSS existantes */

/* Style mobile général */
@media (max-width: 768px) {
/* Header compact */
.top-bar {
    display: none; /* Masquer la barre supérieure sur mobile */
}

.main-header .container {
    flex-direction: row;
    padding: 10px;
    align-items: center;
}

.logo {
    font-size: 24px;
    margin-right: auto;
    margin-bottom: 0;
}

.search-bar {
    display: none; /* La recherche sera accessible via une icône */
}

/* Icône menu hamburger */
.menu-toggle {
    display: block;
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
}

.user-actions {
    margin-top: 0;
}

.user-actions .action-item {
    margin-left: 15px;
}

.action-text {
    display: none; /* Masquer les textes sous les icônes */
}

/* Navigation simplifiée */
nav {
    padding: 10px 0;
}

.nav-container {
    flex-direction: row;
    flex-wrap: wrap;
}

.categories-dropdown {
    display: none; /* Sera accessible via menu hamburger */
}

/* Filtres horizontaux comme dans l'exemple Jumia */
.mobile-filters {
    display: flex;
    overflow-x: auto;
    padding: 0 10px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.filter-item {
    flex: 0 0 auto;
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.filter-item.active {
    background-color: #ffeee0;
    color: var(--primary);
}

.filter-item span {
    margin-right: 5px;
}

.nav-links {
    display: none; /* Masquer la navigation principale */
}

/* Hero section réduite */
.hero {
    height: 200px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Catégories en ligne défilante */
.categories {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    margin-bottom: 25px;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    flex: 0 0 100px;
}

/* Grille de produits 2 colonnes */
.section-title {
    font-size: 18px;
    text-align: left;
    padding-left: 10px;
}

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

.product-card {
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-image {
    height: 150px;
    padding: 10px;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
   line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.product-price {
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
}

.original-price {
    font-size: 12px;
}

.product-rating {
    margin-bottom: 8px;
}

.stars {
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
}

.discount-badge {
    border-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 12px;
    padding: 3px 6px;
}

.express-badge {
    font-size: 10px;
    padding: 2px 6px;
}

.add-to-cart {
    padding: 8px;
    font-size: 14px;
    border-radius: 3px;
}

/* Barre de tri/filtre en bas */
.sort-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    display: flex;
    z-index: 100;
}

.sort-filter-bar div {
    flex: 1;
    text-align: center;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #444;
}

.sort-filter-bar div:last-child {
    border-right: none;
}

.sort-filter-bar span {
    margin-right: 5px;
}

/* Pourquoi nous choisir - simplifié */
.features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
}

.feature-card {
    padding: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-right: 10px;
}

.feature-text h3 {
    font-size: 14px;
}

.feature-text p {
    font-size: 12px;
}

/* Footer simplifié */
footer {
    padding: 25px 0 80px; /* Plus d'espace en bas pour la barre de tri/filtre */
}

.footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.footer-bottom {
    font-size: 12px;
}
}

/* Media queries pour la responsivité */
@media (max-width: 1200px) {
.product-image {
    height: 180px;
    padding: 15px;
}
}

@media (max-width: 992px) {
.product-image {
    height: 160px;
    padding: 12px;
}
}

@media (max-width: 768px) {
.product-image {
    height: 140px;
    padding: 10px;
}
}

@media (max-width: 576px) {
.product-image {
    height: 120px;
    padding: 8px;
}
}

/* Media queries pour la responsivité des images de catégories */
@media (max-width: 1200px) {
.category-image {
    height: 90px;
}
}

@media (max-width: 992px) {
.category-image {
    height: 80px;
}
}

@media (max-width: 768px) {
.category-image {
    height: 70px;
}
}

@media (max-width: 576px) {
.category-image {
    height: 60px;
}
}