:root {
    --primary-color: #FF6B6B;
    --secondary-color: #9B6B9E;
    --background-light: #FFF9F5;
    --text-color: #333333;
    --wood-color: #8B6B4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Hauteur totale calculée : top-bar (8px*2 + contenu + 1px border) + main-nav (80px) = ~105px */
    height: auto;
    min-height: 105px;
}

/* Séparation forcée après l'en-tête - progressive */
.main-header::after {
    content: '';
    display: block;
    height: 20px; /* Espace supplémentaire pour forcer la séparation */
    background: transparent;
    width: 100%;
}

/* Styles consolidés dans la section responsive principale */

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    gap: 20px;
    color: #666;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 2;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

@media (min-width: 1025px) {
    .nav-right {
        gap: 32px;
    }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 300px;
    flex: 1;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.account-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-link,
.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    width: 44px;
    height: 44px;
}

.account-link:hover,
.cart-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 125px; /* Compense la hauteur de l'en-tête + séparation forcée (105px + 20px) */
    padding-top: 0;
    box-sizing: border-box;
}

/* Styles consolidés dans la section responsive principale */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 .highlight {
    color: #f4e4c1;
    font-style: italic;
    position: relative;
}

.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f4e4c1, #d4af37);
    border-radius: 2px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero-content p strong {
    color: #f4e4c1;
    font-weight: 600;
}

.hero-content .btn-primary {
    background: linear-gradient(135deg, #8B6B4A, #A67C52);
    border: 2px solid #f4e4c1;
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.hero-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #A67C52, #8B6B4A);
    border-color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.products-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.products-grid {
    gap: 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column !important;
    width: 300px !important;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-info {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.category {
    color: var(--secondary-color);
    font-size: 14px;
}

.product-info h3 {
    margin: 10px 0 !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    width: 100% !important;
}

.price {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-bottom: 15px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

/* Buttons */
.btn-primary {
    display: inline-block !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* Categories Section - Proportion harmonieuse avec la hero */
.categories-section {
    padding: 120px 0;
    background: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.categories-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.categories-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-color);
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.categories-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Style de base pour categories-grid - sera surchargé par .categories-section .categories-grid */
.categories-grid {
    display: grid;
    gap: 30px;
    text-align: center;
}

/* Anciens styles supprimés - remplacés par le design haut de gamme */

/* Styles de bouton supprimés - toute la carte est maintenant cliquable */

/* Cartes catégories en plein visuel - Design pour carrousel horizontal */
.category-image-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    height: 400px;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.category-image-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-image-card .category-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-image-card .category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-image-card:hover .category-bg img {
    transform: scale(1.08);
}

/* Overlay dégradé premium */
.category-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.3) 60%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
    transition: opacity 0.4s ease;
}

.category-image-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.category-image-card .category-title {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 3;
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    line-height: 1.2;
    right: 20px;
    text-align: left;
}

.category-image-card:hover .category-title {
    transform: translateY(-4px);
    font-size: 20px;
}

/* Bouton supprimé - toute la carte est maintenant cliquable */

/* Grille de catégories en carrousel horizontal */
.categories-section .categories-grid {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}


/* Styles pour la scrollbar du carrousel de catégories */
.categories-section .categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-section .categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-section .categories-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.categories-section .categories-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navigation buttons - masqués car plus de défilement */
.categories-nav {
    display: none;
}

.nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Styles spécifiques pour desktop - carrousel horizontal */
@media (min-width: 1200px) {
    .categories-section .categories-grid {
        gap: 25px;
        padding: 0 40px;
    }
    
    .category-image-card {
        height: 450px;
        width: 400px;
        min-width: 400px;
        max-width: 400px;
        border-radius: 0;
    }
    
    .category-image-card .category-title {
        font-size: 20px;
        left: 25px;
        bottom: 25px;
        right: 25px;
    }
    
    .category-image-card:hover .category-title {
        font-size: 22px;
    }
}

/* Responsive pour tablette - carrousel horizontal */
@media (max-width: 1024px) {
    .categories-section .categories-grid {
        gap: 20px;
        padding: 0 30px;
    }
    
    .category-image-card {
        height: 480px;
        width: 400px;
        min-width: 400px;
        max-width: 400px;
        border-radius: 0;
    }
}

/* Styles consolidés dans la section responsive principale */

@media (max-width: 480px) {
    .categories-section {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .categories-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .categories-section .categories-grid {
        padding: 0 15px;
        gap: 12px;
    }
    
    .category-image-card {
        height: 450px;
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        border-radius: 0;
    }
    
    .category-image-card .category-title {
        font-size: 14px;
        left: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .category-image-card:hover .category-title {
        font-size: 16px;
    }
}

.category-card {
    padding: 20px;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 40px;
    height: 40px;
}

/* Footer */
.main-footer {
    background: var(--wood-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .search-container {
        min-width: 150px;
        max-width: 250px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* Products Page Styles */
.products-page {
    padding: 125px 0 60px; /* Compense la hauteur de l'en-tête + séparation forcée */
    margin-top: 0;
}

.filters-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Cart Page Styles */
.cart-page {
    padding: 145px 0 60px; /* Compense la hauteur de l'en-tête + séparation forcée + padding */
    margin-top: 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.item-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-line.total {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* Styles pour la page de validation de commande */
.checkout-header-djiefall {
    background: #f6f6f6;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 100;
}

.summary-accordion {
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.order-summary-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
}

.btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background-color: transparent;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 0.75;
}

.checkout-summary-link {
    font-size: 1.05rem;
    color: #222;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    margin-left: 0.5rem;
}

.checkout-summary-link:hover { 
    text-decoration: underline; 
}

.checkout-total-djiefall {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.checkout-login-link {
    font-size: 1.05rem;
    color: var(--primary-color);
    text-decoration: underline;
    background: none;
    border: none;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.checkout-login-link:hover { 
    color: #b8932e; 
    text-decoration: underline; 
}

@media (max-width: 767.98px) {
    .checkout-header-djiefall .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    .checkout-header-djiefall .d-flex.align-items-center.gap-3 {
        margin-left: 0;
        margin-top: 0.2rem;
    }
}

.checkout-main {
    background: #f8f9fa;
    min-height: 100vh;
}

.checkout-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.checkout-section + .checkout-section { 
    margin-top: 2.5rem; 
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
}

.section-header h2 { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin: 0; 
}

.section-link { 
    font-size: 0.95rem; 
    color: var(--primary-color); 
    text-decoration: none; 
}

.section-link:hover { 
    text-decoration: underline; 
    color: #b8932e; 
}

.form-control, .form-select { 
    border-radius: 10px; 
    min-height: 44px; 
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 16px;
}

.form-control:focus, .form-select:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 0.1rem rgba(255, 107, 107, 0.25); 
    outline: none;
}

.form-check-input:checked { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}

.form-check-label { 
    cursor: pointer; 
}

.order-summary-modern {
    background: #f6f6f6;
    border-radius: 0.7rem;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Inter', Arial, sans-serif;
    min-width: 320px;
}

.os-product-row {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.2rem;
}

.os-img-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #eaeaea;
    flex-shrink: 0;
}

.os-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.os-qty-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: #222;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-weight: 500;
}

.os-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

.os-product-title {
    font-weight: 600;
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-product-price {
    font-weight: 500;
    color: #222;
    font-size: 1.08rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.os-totals {
    margin-top: 1.7rem;
    font-size: 1.08rem;
}

.os-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #222;
}

.os-total-row {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
}

.os-total-label { 
    font-weight: 600; 
}

.os-total-amount { 
    font-size: 1.35rem; 
    font-weight: 700; 
    color: #111; 
}

.os-xof { 
    font-size: 1.1rem; 
    color: #888; 
    font-weight: 500; 
    margin-right: 0.2rem; 
    letter-spacing: 0.03em; 
}

.btn-primary { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 1.1rem; 
    padding: 0.9rem 0; 
    transition: background 0.2s; 
}

.btn-primary:hover { 
    background: #ff5252; 
    color: white; 
}

@media (max-width: 991.98px) { 
    .order-summary-box { 
        position: static; 
        margin-top: 2rem; 
    } 
}

@media (max-width: 767.98px) { 
    .checkout-form { 
        padding: 1.2rem 0.7rem; 
    } 
    .order-summary-box { 
        padding: 1.2rem 0.7rem; 
    } 
}

@media (max-width: 576px) {
    .order-summary-modern { 
        padding: 1.2rem 0.5rem; 
    }
    .os-product-row { 
        gap: 0.7rem; 
    }
}

/* Product Detail Page Styles */
.product-detail-page {
    padding: 100px 0 60px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.product-details {
    margin: 30px 0;
}

.product-details ul {
    list-style: none;
    padding: 0;
}

.product-details li {
    margin-bottom: 10px;
}

/* Auth Pages Styles */
.auth-page {
    padding: 100px 0 60px;
    background: var(--background-light);
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form h1 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
}

.checkbox-label input {
    width: auto !important;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.error-message,
.success-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

/* Styles consolidés dans la section responsive principale */

.nav-links a.btn-nav {
    color: var(--text-color);
    background: none;
}

.nav-links a.btn-nav:hover {
    color: var(--primary-color);
    background: none;
}

.nav-links a.btn-nav.active {
    color: var(--primary-color);
    background: none;
}

.nav-links a.btn-nav::after {
    display: none;
}

/* Categories Page Styles */
.categories-page {
    padding: 125px 0 60px; /* Compense la hauteur de l'en-tête + séparation forcée */
}

.categories-page h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #4a4a4a;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.categories-page h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #8B6B4A;
    border-radius: 1px;
}

/* Style pour la page categories.php - Cartes avec photos de grande taille */
.categories-page .categories-grid {
    display: flex;
    gap: 40px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Masquer la scrollbar pour WebKit */
.categories-page .categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-page .categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-page .categories-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.categories-page .categories-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    height: 350px;
    min-width: 300px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    text-align: left;
    padding: 0;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-icon {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    width: 100%;
    height: 100%;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-icon img {
    transform: scale(1.08);
}

/* Overlay dégradé premium */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.3) 60%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.category-card h3 {
    position: absolute;
    left: 20px;
    bottom: 60px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    z-index: 3;
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin: 0;
}

.category-card:hover h3 {
    transform: translateY(-3px);
    font-size: 24px;
}

.category-card p {
    position: absolute;
    left: 20px;
    bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    z-index: 3;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    min-height: auto;
}

/* Bouton de découverte élégant */
.category-card .btn-primary {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-card .btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

/* Category Products Styles */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 32px;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-color);
}

.price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* Styles consolidés dans la section responsive principale */

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Contact Page Styles */
.contact-page {
    padding: 125px 0 60px; /* Compense la hauteur de l'en-tête + séparation forcée */
    margin-top: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
        gap: 20px;
    margin-bottom: 30px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item p {
    color: #666;
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* ========================================
   RESPONSIVE STYLES CONSOLIDÉS
   ======================================== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .categories-page .categories-grid {
        gap: 30px;
        padding: 0 30px;
    }
    
    .category-card {
        height: 400px;
        min-width: 350px;
    }
    
    .category-card h3 {
        font-size: 26px;
        left: 25px;
        bottom: 70px;
    }
    
    .category-card:hover h3 {
        font-size: 28px;
    }
    
    .category-card .btn-primary {
        right: 25px;
        bottom: 25px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1024px) {
    .main-header::after {
        height: 0; /* supprime l'espace supplémentaire pour ≤1024px */
        content: none !important;
        display: none !important;
    }
    
    .hero-section {
        margin-top: 105px !important; /* aligne le hero sous l'entête (top-bar + nav ~105px) */
    }
    
    .products-page,
    .categories-page,
    .contact-page {
        padding: 123px 0 60px;
    }
    
    .cart-page {
        padding: 143px 0 60px;
    }
    
    .products-grid {
        gap: 25px !important;
        padding: 0 30px !important;
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
    }
    
    .product-card {
        min-width: 360px !important;
        max-width: 360px !important;
        height: 480px !important;
        flex-shrink: 0 !important;
        width: 360px !important;
    }
    
    .product-image {
        height: 240px !important;
    }
    
    .product-info h3 {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
    
    .categories-page .categories-grid {
        gap: 20px;
        padding: 0 20px;
    }
    
    .category-card {
        height: 320px;
        min-width: 280px;
    }
    
    .category-card h3 {
        font-size: 20px;
        left: 20px;
        bottom: 60px;
    }
    
    .category-card p {
        font-size: 13px;
        left: 20px;
        bottom: 40px;
    }
    
    .category-card .btn-primary {
        right: 20px;
        bottom: 20px;
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Tablette (900px - 1023px) */
@media (max-width: 900px) {
    .top-bar {
        display: none;
    }
    
    .main-header {
        height: 80px;
        min-height: 80px;
    }
    
    .main-header::after {
        height: 0; /* Supprime l'espace supplémentaire sous l'entête en tablette/mobile */
        content: none !important; /* Élimine totalement le pseudo-élément */
        display: none !important;
    }
    
    .hero-section {
        margin-top: 80px !important; /* Aligne le hero juste sous l'entête (80px) sans espace */
    }
    
    .products-page,
    .categories-page,
    .contact-page {
        padding: 96px 0 60px;
    }
    
    .cart-page {
        padding: 116px 0 60px;
    }
}

/* Mobile (768px - 899px) */
@media (max-width: 768px) {
    .main-header {
        height: 70px;
        min-height: 70px;
    }
    
    .main-header::after {
        height: 0; /* Supprime l'espace supplémentaire sous l'entête en mobile */
        content: none !important; /* Élimine totalement le pseudo-élément */
        display: none !important;
    }
    
    .hero-section {
        margin-top: 70px !important; /* Aligne le hero juste sous l'entête (70px) sans espace */
        height: 70vh;
        min-height: 500px;
    }
    
    .products-page,
    .categories-page,
    .contact-page {
        padding: 85px 0 60px;
    }
    
    .cart-page {
        padding: 105px 0 60px;
    }
    
    .main-nav {
        height: 70px;
        padding: 0 15px;
    }
    
    .nav-left {
        flex: 0;
    }
    
    .nav-center {
        flex: 1;
        justify-content: center;
    }
    
    .nav-right {
        flex: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        margin: 0;
        display: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 15px 15px;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-radius: 8px;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 107, 107, 0.1);
    }

    .logo img {
        height: 35px;
    }
    
    .search-container {
        display: none;
    }
    
    .account-cart {
        gap: 10px;
    }
    
    .account-link,
    .cart-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hero-content h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-content .btn-primary {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .products-grid {
        gap: 20px;
        padding: 0 20px;
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .product-card {
        min-width: 340px !important;
        max-width: 340px !important;
        height: 460px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-image {
        height: 230px !important;
        flex-shrink: 0 !important;
    }
    
    .product-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .product-info h3 {
        height: 44px !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .product-info .price {
        margin-bottom: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .product-info .btn-primary {
        flex-shrink: 0 !important;
    }
    
    .categories-section {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .categories-section h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .categories-section .categories-grid {
        gap: 15px;
        padding: 0 20px;
    }
    
    .category-image-card {
        height: 500px;
        width: 400px;
        min-width: 400px;
        max-width: 400px;
        border-radius: 0;
    }
    
    .category-image-card .category-title {
        font-size: 16px;
        left: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .category-image-card:hover .category-title {
        font-size: 18px;
    }
    
    .categories-page h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .categories-page .categories-grid {
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-card {
        height: 280px;
        min-width: 250px;
        border-radius: 12px;
    }
    
    .category-card h3 {
        font-size: 18px;
        left: 18px;
        bottom: 50px;
    }
    
    .category-card p {
        font-size: 12px;
        left: 18px;
        bottom: 35px;
    }
    
    .category-card .btn-primary {
        right: 18px;
        bottom: 18px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .category-card:hover h3 {
        font-size: 20px;
    }

    .category-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .category-header h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .item-total {
        grid-column: 1 / -1;
        text-align: right;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Small (480px - 767px) */
@media (max-width: 480px) {
    .main-nav {
        padding: 0 10px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .account-cart {
        gap: 8px;
    }
    
    .account-link,
    .cart-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .nav-links {
        padding: 15px;
    }
    
    .nav-links a {
        padding: 12px 15px;
        font-size: 15px;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-content .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .products-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .product-card {
        min-width: 300px !important;
        max-width: 300px !important;
        height: 420px !important;
    }
    
    .product-image {
        height: 200px !important;
    }
    
    .product-info h3 {
        height: 40px !important;
        font-size: 15px !important;
    }
    
    .product-info .price {
        font-size: 16px !important;
    }
    
    .product-info .btn-primary {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .categories-section {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .categories-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .categories-section .categories-grid {
        padding: 0 15px;
        gap: 12px;
    }
    
    .category-image-card {
        height: 450px;
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        border-radius: 0;
    }
    
    .category-image-card .category-title {
        font-size: 14px;
        left: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .category-image-card:hover .category-title {
        font-size: 16px;
    }
    
    .categories-page h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .categories-page .categories-grid {
        padding: 0 10px;
        gap: 15px;
    }
    
    .category-card {
        height: 250px;
        min-width: 220px;
        border-radius: 10px;
    }
    
    .category-card h3 {
        font-size: 16px;
        left: 15px;
        bottom: 45px;
    }
    
    .category-card p {
        font-size: 11px;
        left: 15px;
        bottom: 30px;
    }
    
    .category-card .btn-primary {
        right: 15px;
        bottom: 15px;
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .category-card:hover h3 {
        font-size: 18px;
    }
}

/* Styles pour le panier vide */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.empty-cart p {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.empty-cart .btn-primary {
    font-size: 16px;
    padding: 12px 30px;
}

/* Grille de produits simplifiée */
.products-grid-simplified {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 30px !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* Espacement pour éviter le chevauchement avec l'en-tête */
.products-page .container h1 {
    margin-top: 80px !important;
    margin-bottom: 30px !important;
}

@media (min-width: 769px) {
    .products-page .container h1 {
        margin-top: 100px !important;
    }
}

.product-card-simplified {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    overflow: hidden !important;
    flex: none !important;
    min-width: auto !important;
    width: 100% !important;
}

.product-card-simplified:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.product-card-simplified .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-simplified .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-simplified:hover .product-image img {
    transform: scale(1.05);
}

.product-card-simplified .product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.product-card-simplified .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-simplified .product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-card-simplified .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card-simplified .product-name:hover {
    color: var(--primary-color);
}

.product-card-simplified .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.btn-add-cart {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 160px !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3) !important;
    text-decoration: none !important;
}

.btn-add-cart:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(155, 107, 158, 0.4) !important;
}

.btn-add-cart:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3) !important;
}

.btn-add-cart svg {
    transition: transform 0.2s ease;
}

.btn-add-cart:hover svg {
    transform: scale(1.1);
}

/* Responsive pour la grille simplifiée */
@media (max-width: 768px) {
    .products-grid-simplified {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .product-card-simplified .product-info {
        padding: 15px;
    }
    
    .product-card-simplified .product-image {
        height: 160px;
    }
    
    .product-card-simplified .product-name {
        font-size: 16px;
    }
    
    .product-card-simplified .product-price {
        font-size: 18px;
    }
    
    .btn-add-cart {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .products-grid-simplified {
        gap: 12px !important;
    }
    
    .product-card-simplified .product-info {
        padding: 12px;
    }
    
    .product-card-simplified .product-image {
        height: 140px;
    }
    
    .btn-add-cart {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 120px;
    }
    
    .filters-section {
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    .filters-section.filters-open {
        max-height: 500px !important;
        padding: 15px !important;
    }
}

/* Bouton pour ouvrir/fermer les filtres sur mobile */
.filters-toggle-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.filters-toggle-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 107, 158, 0.4);
}

.filters-toggle-btn svg {
    transition: transform 0.3s ease;
}

.filters-toggle-btn .toggle-icon {
    margin-left: auto;
}

/* Styles pour les filtres sur mobile */
@media (max-width: 768px) {
    .filters-toggle-btn {
        display: flex !important;
    }
    
    .filters-section {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        background: #fff;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 0 !important;
    }
    
    .filters-section.filters-open {
        max-height: 500px !important;
        padding: 20px !important;
        border: 1px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .filters-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-group label {
        font-weight: 600;
        color: #333;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }
    
    .filters-form .btn-primary {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }
}

/* Styles pour la page produit dynamique */
.product-detail-page .container h1 {
    margin-top: 100px !important;
    margin-bottom: 30px !important;
}

/* Forcer l'application des styles de la page produit */
.product-detail-page .product-detail-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    margin-top: 120px !important;
}

.product-detail-page .product-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.product-detail-page .product-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.product-detail-page .main-image {
    width: 100% !important;
    height: 500px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-detail-page .main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.product-detail-page .product-brand {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.product-detail-page .product-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.product-detail-page .price {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.product-detail-page .btn-add-to-cart {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 18px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2) !important;
    text-decoration: none !important;
    width: 100% !important;
    margin: 10px 0 !important;
}

.product-detail-page .btn-add-to-cart:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(155, 107, 158, 0.3) !important;
}

.product-detail-page .quantity-control {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    width: fit-content !important;
    overflow: hidden !important;
    background: #fff !important;
}

.product-detail-page .qty-btn {
    width: 45px !important;
    height: 45px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
}

.product-detail-page .qty-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.product-detail-page .qty-input {
    width: 70px !important;
    height: 45px !important;
    border: none !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    outline: none !important;
    background: transparent !important;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Version mobile: image contenue et pas de zoom */
@media (max-width: 768px) {
    .main-image img { object-fit: contain; }
    .main-image img:hover { transform: none; }
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail {
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.product-price-section {
    margin: 20px 0;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.quantity-section label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    background: transparent;
}

.btn-add-to-cart {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 18px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2) !important;
    text-decoration: none !important;
    width: 100% !important;
    margin: 40px 0 !important;
}

.btn-add-to-cart:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(155, 107, 158, 0.3) !important;
}

.btn-add-to-cart:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2) !important;
}

.product-description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.product-description p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Responsive pour la page produit */
@media (max-width: 768px) {
    .product-detail-page .container {
        padding: 0 15px !important;
    }
    
    .product-detail-page .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 20px !important;
    }
    
    .product-detail-page .main-image {
        height: 300px !important;
    }
    
    .product-detail-page .product-title {
        font-size: 24px !important;
    }
    
    .product-detail-page .price {
        font-size: 24px !important;
    }
    
    .product-detail-page .btn-add-to-cart {
        padding: 14px 24px !important;
        font-size: 14px !important;
        margin: 10px 0 !important;
    }
    
    .product-detail-page .product-info {
        gap: 8px !important;
    }
    
    .product-detail-page .product-brand {
        font-size: 11px !important;
    }
    
    .product-detail-page .quantity-section {
        margin: 20px 0 !important;
    }
    
    .product-detail-page .quantity-section label {
        font-size: 14px !important;
    }
    
    .product-detail-page .qty-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .product-detail-page .qty-input {
        width: 60px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
} 