* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-dark: linear-gradient(135deg, #1A8DD9 0%, #1577C2 50%, #0F5F9E 100%);
    --header-light: linear-gradient(135deg, #2BA3E8 0%, #1A8DD9 50%, #1577C2 100%);
    --header-dark-solid: #1A8DD9;
    --header-light-solid: #2BA3E8;
    --primary-color: #1A8DD9;
    --primary-hover: #1577C2;
    --text-dark: #1A1814;
    --text-light: #6B6561;
    --bg-light: #FAF9F7;
    --border-color: #E8E5E0;
    --white: #FFFFFF;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
    --accent-blue: #2BA3E8;
    --beige-light: #F5F1E8;
    --blue-dark: #0F5F9E;
    --blue-light: #E6F4FC;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container-fluid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 0.5rem;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-header {
    background: var(--header-dark);
    border-bottom: 2px solid var(--blue-dark);
}

.header-top {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: border-color 0.15s;
}

.logo-link:hover {
    border-color: var(--white);
}

.logo-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-tagline {
    color: var(--white);
    font-size: 0.9rem;
    margin-left: 2px;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.delivery-info:hover {
    border-color: var(--white);
}

.location-icon {
    font-size: 1.2rem;
}

.delivery-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.delivery-label {
    color: #CCCCCC;
    font-size: 0.75rem;
}

.delivery-location {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.search-section {
    flex: 1;
    max-width: 900px;
}

.search-form-main {
    display: flex;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
}

.search-category {
    background-color: #F3F3F3;
    border: none;
    padding: 0 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    outline: none;
}

.search-category:hover {
    background-color: #E3E6E6;
}

.search-input-main {
    flex: 1;
    border: none;
    padding: 0 0.8rem;
    font-size: 0.95rem;
    outline: none;
}

.search-btn-main {
    background: linear-gradient(135deg, #0F5F9E 0%, #1577C2 100%);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(15, 95, 158, 0.3);
}

.search-btn-main:hover {
    background: linear-gradient(135deg, #1577C2 0%, #1A8DD9 100%);
    box-shadow: 0 4px 8px rgba(15, 95, 158, 0.4);
    transform: translateY(-1px);
}

.search-btn-main svg {
    display: block;
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.header-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.header-link:hover {
    border-color: var(--white);
}

.flag-link {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
}

.flag-icon {
    font-size: 1.2rem;
}

.header-link-label {
    color: #CCCCCC;
    font-size: 0.75rem;
    line-height: 1.2;
}

.header-link-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}
.header-link-text-mobile { display:none; }

.cart-link-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: border-color 0.15s;
}

.cart-link-main:hover {
    border-color: var(--white);
}

.cart-icon-wrapper {
    position: relative;
    color: var(--white);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    left: 12px;
    background: linear-gradient(135deg, #0F5F9E 0%, #1577C2 100%);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 0.3rem;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(15, 95, 158, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-icon-svg {
    display: block;
    width: 36px;
    height: 28px;
    fill: var(--white);
}

.cart-text-label {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.header-nav {
    background: var(--header-light);
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.nav-all-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-all-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
}

.nav-links-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex: 1;
}
.nav-links-list li { 
    position: relative; 
}

/* Améliorer la zone de survol pour garder le menu ouvert */
.nav-links-list .has-sub:hover {
    z-index: 1300; /* S'assurer que le menu est au-dessus */
}

/* Indicateur visuel pour les catégories avec sous-catégories */
.nav-links-list .has-sub > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.4rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
    display: inline-block;
}
.nav-links-list .has-sub:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Style amélioré pour le sous-menu */
.nav-links-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 0.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    max-width: 280px;
    z-index: 1200;
    margin-top: 0; /* Supprimer l'espace pour faciliter le clic */
    padding-top: 0.5rem; /* Ajouter du padding en haut à la place */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    visibility: hidden;
    pointer-events: none; /* Désactiver les événements pendant l'animation */
}

.nav-links-list li:hover > .sub-menu,
.nav-links-list .sub-menu:hover,
.nav-links-list .has-sub.menu-open > .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto; /* Réactiver les événements */
}

/* Créer une zone de transition invisible entre le lien et le sous-menu */
.nav-links-list .has-sub::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    z-index: 1199;
}

/* Style amélioré pour les items du sous-menu */
.nav-links-list .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #F5F5F5;
}

.nav-links-list .sub-menu li:last-child {
    border-bottom: none;
}

.nav-links-list .sub-menu li a {
    color: var(--text-dark);
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links-list .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.nav-links-list .sub-menu li a:hover {
    color: var(--primary-color);
    background-color: var(--beige-light);
    padding-left: 1.25rem;
}

.nav-links-list .sub-menu li a:hover::before {
    transform: scaleY(1);
}

/* Titre de section dans le sous-menu (optionnel) */
.nav-links-list .sub-menu::before {
    content: '';
    display: block;
    height: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin-bottom: 0.25rem;
    border-radius: 6px 6px 0 0;
}

/* Amélioration pour mobile - sous-menus plus accessibles */
@media (max-width: 768px) {
    .nav-links-list .sub-menu {
        position: static;
        display: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--primary-color);
        border-radius: 0;
        padding-left: 0.75rem;
        opacity: 1;
        transform: none;
        visibility: visible;
    }
    
    .nav-links-list .has-sub > a::after {
        content: '▶';
        font-size: 0.65rem;
    }
    
    .nav-links-list .has-sub:hover > a::after {
        transform: rotate(90deg);
    }
    
    /* Sur mobile, on peut cliquer pour ouvrir/fermer */
    .nav-links-list .has-sub.active > .sub-menu {
        display: block;
    }
    
    .nav-links-list .sub-menu li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-links-list .sub-menu li a:hover {
        padding-left: 1rem;
    }
}

.nav-links-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-links-list a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-promo-link a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-promo-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1500;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease-in-out;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    background-color: var(--header-light);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
}

.sidebar-nav {
    padding-bottom: 2rem;
}

.sidebar-section {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.sidebar-link-title {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-link-title:hover {
    color: var(--primary-color);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0.2rem 0;
    position: relative;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    background-color: var(--beige-light);
    padding-left: 1rem;
}

.sidebar-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 3px;
    height: 60%;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: transform 0.2s ease;
}

.sidebar-list a:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.arrow-right {
    fill: var(--text-light);
    transition: transform 0.2s ease, fill 0.2s ease;
    flex-shrink: 0;
}

.sidebar-list a:hover .arrow-right {
    fill: var(--primary-color);
    transform: translateX(3px);
    flex-shrink: 0;
}

.sidebar-help {
    background-color: #F7F8F8;
}

main {
    min-height: calc(100vh - 250px);
}

.carousel {
    width: 100%;
    height: 450px;
    margin-bottom: 1.5rem;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 100%;
}

.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: var(--white);
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-price {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons for home carousel */
#homeCarousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#homeCarousel .carousel-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

#homeCarousel .carousel-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

#homeCarousel .carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#homeCarousel .carousel-prev {
    left: 10px;
}

#homeCarousel .carousel-next {
    right: 10px;
}

#homeCarousel .carousel-nav svg {
    width: 24px;
    height: 24px;
    color: #1A8DD9;
}

/* Indicators for home carousel */
#homeCarouselIndicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

#homeCarouselIndicators .indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

#homeCarouselIndicators .indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

#homeCarouselIndicators .indicator-dot.active {
    background-color: var(--white);
    border-color: var(--white);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-price {
        font-size: 1.2rem;
    }
    
    .carousel-content {
        padding: 1.5rem;
    }
    
    #homeCarousel .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    #homeCarousel .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}

.deals-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.deals-section .container-fluid {
    max-width: 1500px;
}

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

.deal-card {
    background-color: var(--white);
    padding: 1.5rem;
    transition: transform 0.2s;
}

.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.deal-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.deal-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.deal-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.deal-item:hover {
    transform: scale(1.05);
}

.deal-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.deal-item p {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.deal-price {
    font-weight: 700;
    color: #B12704;
    font-size: 1.1rem;
}

.see-more {
    color: #007185;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.see-more:hover {
    color: #C7511F;
    text-decoration: underline;
}

.signin-box {
    text-align: center;
    padding: 2rem 1rem;
}

.signin-box p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1A8DD9 0%, #1577C2 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 2px 4px rgba(26, 141, 217, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1577C2 0%, #0F5F9E 100%);
    box-shadow: 0 4px 8px rgba(26, 141, 217, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: #0F1111;
    border: 1px solid #D5D9D9;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background-color: #F7F8F8;
    border-color: #1A8DD9;
    color: #1A8DD9;
    box-shadow: 0 2px 6px rgba(26, 141, 217, 0.2);
    transform: translateY(-1px);
}

.btn-signin {
    width: 100%;
    background-color: #FFD814;
    color: var(--text-dark);
    border: 1px solid #FCD200;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

.btn-signin:hover {
    background-color: #F7CA00;
}

.featured-products {
    padding: 2rem 0;
    background-color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header a {
    color: #007185;
    text-decoration: none;
    font-size: 0.9rem;
}

.section-header a:hover {
    color: #C7511F;
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007600;
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #CC0C39;
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #CC0C39;
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.deal-item-image {
    position: relative;
}

.deal-item-name {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.original-price {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.original-price-line {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.price-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, #1A8DD9 0%, #1577C2 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(26, 141, 217, 0.3), 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart:hover::before {
    width: 100px;
    height: 100px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #2BA3E8 0%, #1A8DD9 100%);
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 24px rgba(26, 141, 217, 0.4), 0 4px 8px rgba(0,0,0,0.15);
}

.btn-add-cart:active {
    transform: scale(1.05) rotate(4deg);
}

.btn-add-cart:disabled {
    background: linear-gradient(135deg, #CCC 0%, #999 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-add-cart:disabled:hover {
    transform: none;
}

.btn-add-cart svg {
    fill: var(--white);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-add-cart:hover svg {
    transform: scale(1.1);
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.1) translateY(-4px); }
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.product-detail {
    padding: 2rem 0;
    background-color: var(--white);
}

@media (max-width: 768px) {
    .product-detail {
        padding: 1rem 0;
    }
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
}

.breadcrumb a {
    color: #007185;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #C7511F;
    text-decoration: underline;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.detail-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 500px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
    transform-origin: center center;
    display: block;
    margin: 0 auto;
}

/* Zoom simple au survol (desktop uniquement) */
@media (hover: hover) and (pointer: fine) {
    .main-image-container.desktop-only:hover .main-product-image {
        transform: scale(1.5);
        cursor: zoom-out;
    }
}

/* Pas de zoom sur mobile - désactiver complètement */
@media (max-width: 768px) {
    .main-image-container,
    .carousel-slide .main-image-container {
        cursor: default !important;
    }
    
    .main-image-container .main-product-image,
    .carousel-slide .main-product-image {
        transform: none !important;
        cursor: default !important;
    }
}

.promo-badge-detail {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #CC0C39;
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Image carousel for mobile */
.image-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
    touch-action: pan-x;
    height: 400px;
}

/* Navigation buttons for carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #333;
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    position: relative;
    height: 100%;
    width: auto;
    min-width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.carousel-slide .main-image-container {
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.carousel-slide .main-image-container.zoom-container {
    touch-action: none;
    overflow: hidden;
}

.carousel-slide .zoom-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel-slide .main-product-image {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    padding: 0.5rem;
    display: block;
    position: relative;
    margin: 0 auto;
    transition: transform 0.3s ease-out;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.carousel-slide .zoomable-image {
    cursor: zoom-in;
}

.carousel-slide .zoomable-image.zoomed {
    cursor: move;
    transition: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: 2px solid transparent;
    /* Make it more clickable with larger touch target */
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.3s ease;
}

.indicator-dot.active::before {
    background-color: #1A8DD9;
    width: 12px;
    height: 12px;
}

.indicator-dot:hover::before {
    background-color: #1A8DD9;
    transform: scale(1.2);
}

.indicator-dot.active {
    /* Active state handled by ::before pseudo-element */
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .thumbnail-gallery {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem 0.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        width: 100%;
        max-width: 100%;
    }

    .thumbnail-gallery::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnail-gallery::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .thumbnail-gallery::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .thumbnail-gallery::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

.thumbnail-item {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .thumbnail-item {
        flex-shrink: 0;
        width: 90px;
        height: 90px;
        min-width: 90px;
    }
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.thumbnail-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .thumbnail-image {
        height: 100%;
        padding: 0.3rem;
    }
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-brand-detail {
    color: #007185;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-title-detail {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.3;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #FFA41C;
    font-size: 1.2rem;
}

.review-count {
    color: #007185;
    font-size: 0.9rem;
}

.price-section-detail {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-group-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.original-price-detail {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-detail {
    font-size: 2rem;
    font-weight: 700;
    color: #B12704;
}

.savings-badge {
    margin-top: 0.5rem;
    background-color: #F0F2F2;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.savings-badge span {
    color: #007600;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-description-detail {
    padding: 1rem 0;
}

.product-description-detail h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.product-description-detail p {
    color: var(--text-dark);
    line-height: 1.6;
}

.product-meta-detail {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
}

.meta-item-detail {
    display: flex;
    gap: 0.5rem;
}

.meta-label-detail {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 120px;
}

.meta-value-detail {
    color: var(--text-light);
}

.stock-status.in-stock {
    color: #007600;
    font-weight: 600;
}

.stock-status.out-stock {
    color: #B12704;
    font-weight: 600;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-section label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background-color: var(--bg-light);
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: var(--border-color);
}

.quantity-control input {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem 0;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-info-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #F0F8FF;
    border-radius: 4px;
    border: 1px solid #C3E1FF;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item svg {
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

footer {
    background: linear-gradient(135deg, #0F5F9E 0%, #1577C2 50%, #1A8DD9 100%);
    color: var(--white);
    margin-top: 2rem;
}

.footer-content {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4,
.footer-column .footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}



.footer-column ul li,
.footer-column .footer-list li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #DDD;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
    display: block;
    padding: 0.25rem 0;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--white);
}

.footer-bottom {
    background: linear-gradient(135deg, #0F5F9E 0%, #1577C2 100%);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.products-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
    min-height: 70vh;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.products-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section-products {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #E3E6E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.sidebar-section-products:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sidebar-section-products h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #F0F2F4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}

.sidebar-section-products h3::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #FF9900, #FF6F00);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.4rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: #0F1111;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: linear-gradient(90deg, #FFF8F0 0%, #FFFFFF 100%);
    border-color: #FFD49A;
    color: #C7511F;
    transform: translateX(4px);
}

.category-list a.active {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
    color: #C7511F;
    font-weight: 700;
    border: 1px solid #FFD49A;
    box-shadow: 0 2px 8px rgba(199, 81, 31, 0.12);
}

.category-list a.active::before {
    content: '▸';
    margin-right: 0.3rem;
    font-size: 1.1rem;
}

.category-list .count {
    background-color: #F0F2F4;
    color: #565959;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    min-width: 32px;
    text-align: center;
}

.category-list a.active .count {
    background-color: #FFE8CC;
    color: #C7511F;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.price-filter label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #0F1111;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.price-filter label:hover {
    background-color: #F7FAFA;
}

.price-filter input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.price-filter label span {
    flex: 1;
}

.promo-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8CC 100%);
    border: 2px solid #FFD49A;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.15);
}

.promo-section h3 {
    color: #C7511F;
    border-bottom-color: #FFD49A;
}

.promo-section h3::before {
    background: linear-gradient(180deg, #C7511F, #FF6F00);
}

.promo-filter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #C7511F;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid #FFD49A;
    transition: all 0.2s ease;
}

.promo-filter:hover {
    background-color: #FFF4E6;
    box-shadow: 0 2px 8px rgba(199, 81, 31, 0.15);
    transform: scale(1.02);
}

.promo-filter input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #C7511F;
}

.products-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2rem;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid #E3E6E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.products-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.products-count {
    color: #565959;
    font-size: 0.95rem;
    font-weight: 500;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-section label {
    color: #0F1111;
    font-weight: 600;
    font-size: 0.95rem;
}

.sort-select {
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 1px solid #D5D9D9;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23565959' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #0F1111;
}

.sort-select:hover {
    border-color: #C7511F;
}

.sort-select:focus {
    outline: none;
    border-color: #C7511F;
    box-shadow: 0 0 0 3px rgba(199, 81, 31, 0.1);
}

.rating-stars-small {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.rating-stars-small span:first-child {
    color: #FFA41C;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.rating-count {
    color: #007185;
    font-size: 0.85rem;
    font-weight: 500;
}

.no-products {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid #E3E6E8;
}

.no-products svg {
    opacity: 0.3;
}

.no-products h3 {
    font-size: 1.6rem;
    color: #0F1111;
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}

.no-products p {
    color: #565959;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.stock-badge.out-of-stock {
    background-color: #B12704;
}

@media (max-width: 1024px) {
    .nav-links-list {
        display: none;
    }

    .search-section {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }

    .search-section {
        display: none;
    }

    .delivery-info {
        display: none;
    }

    .header-top {
        padding: 0.25rem 0;
    }

    .logo-section {
        gap: 0.4rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .logo-link {
        padding: 0.2rem;
        flex-shrink: 0;
    }

    .logo-image {
        height: 32px;
        width: auto;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-tagline {
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 0.25rem;
        flex-shrink: 1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-link {
        padding: 0.3rem 0.4rem;
        min-width: auto;
    }

    .header-link-label {
        display: none;
    }

    .header-link-text {
        font-size: 0.85rem;
    }

    .cart-link-main {
        padding: 0.3rem 0.4rem;
    }

    .cart-icon-svg {
        width: 28px;
        height: 24px;
    }

    .cart-text-label {
        font-size: 0.85rem;
    }

    /* Show only Commandes on small screens */
    .returns-link .header-link-text { display: none; }
    .returns-link .header-link-text-mobile { display: inline; }

    /* Réduire la taille du header-nav */
    .header-nav {
        padding: 0;
    }

    .nav-content-bar {
        padding: 0.4rem 0;
        gap: 0.8rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .nav-all-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .hamburger-icon {
        width: 16px;
    }

    .nav-links-list {
        display: none;
    }

    .nav-promo-link {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .nav-promo-link a {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .carousel {
        height: 250px;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .detail-image-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .detail-info {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .product-brand-detail {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .product-title-detail {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
    }

    .price-section-detail {
        padding: 1rem 0;
    }

    .product-price-detail {
        font-size: 1.6rem;
    }

    .original-price-detail {
        font-size: 1rem;
    }

    .product-description-detail {
        padding: 1rem 0;
    }

    .product-description-detail h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .product-description-detail p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .product-meta-detail {
        padding: 1rem;
        gap: 0.8rem;
    }

    .meta-item-detail {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .meta-label-detail {
        min-width: auto;
        font-size: 0.95rem;
    }

    .meta-value-detail {
        font-size: 0.95rem;
    }

    .options-section {
        margin: 1rem 0;
    }

    .option-field {
        margin-bottom: 1rem;
    }

    .option-field label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .quantity-section {
        margin: 1rem 0;
        flex-wrap: wrap;
    }

    .quantity-section label {
        font-size: 0.95rem;
    }

    .quantity-control {
        width: 100%;
        max-width: 200px;
    }

    .action-buttons-detail {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .action-buttons-detail .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .delivery-info-detail {
        margin-top: 1.5rem;
        gap: 1rem;
        padding: 1rem;
    }

    .delivery-info-detail .info-item {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .delivery-info-detail .info-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .delivery-info-detail .info-item strong {
        font-size: 0.9rem;
    }

    .delivery-info-detail .info-item p {
        font-size: 0.85rem;
        margin: 0;
    }

    .main-image-container {
        height: auto;
        min-height: 280px;
        max-height: 380px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: default;
    }

    .main-product-image {
        padding: 0.5rem;
        margin: 0 auto;
        display: block;
    }

    .carousel-container {
        height: 380px;
        min-height: 350px;
        max-height: 450px;
    }

    .carousel-slide .main-image-container {
        height: 100%;
        min-height: 350px;
        max-height: 450px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: default;
    }

    .carousel-slide .main-product-image {
        width: 75%;
        max-width: 75%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        padding: 1.5rem;
        display: block;
        margin: 0 auto;
    }

    .product-title-detail {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .product-brand-detail {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .price-section-detail {
        padding: 1.5rem 0;
    }

    .product-price-detail {
        font-size: 1.8rem;
    }

    .original-price-detail {
        font-size: 1.1rem;
    }

    .product-description-detail {
        padding: 1.5rem 0;
    }

    .product-description-detail h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .product-description-detail p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .product-meta-detail {
        padding: 1.5rem;
        gap: 1rem;
    }

    .meta-item-detail {
        font-size: 1rem;
    }

    .meta-label-detail {
        font-weight: 600;
        font-size: 1rem;
    }

    .meta-value-detail {
        font-size: 1rem;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        order: 2;
        display: none; /* hide bottom filters on mobile; use drawer instead */
    }

    .products-main {
        order: 1;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.5rem;
    }

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

    .price-section-detail {
        align-items: flex-start;
    }

    .main-image-container {
        height: auto;
        min-height: 280px;
        max-height: 350px;
    }

    .carousel-container {
        height: 360px;
        min-height: 320px;
        max-height: 400px;
    }

    .carousel-slide .main-image-container {
        height: 100%;
        min-height: 320px;
        max-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: default;
    }

    .carousel-slide .main-product-image {
        width: 70%;
        max-width: 70%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        padding: 1.5rem;
        margin: 0 auto;
        display: block;
    }

    /* Thumbnail gallery styles already handled in @media (max-width: 768px) above */

    .option-select {
        width: 100%;
        padding: 0.6rem 0.75rem;
        font-size: 1rem;
    }

    .quantity-control {
        gap: 0.5rem;
    }

    .qty-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1.1rem;
    }

    #quantity {
        width: 70px;
        font-size: 1rem;
        padding: 0.4rem 0.5rem;
    }

    .action-buttons-detail .btn-large {
        width: 100%;
    }
}

/* Mobile Filters Drawer */
.filters-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); z-index: 3000; }
.filters-drawer { position: fixed; left:0; right:0; bottom:0; max-height:85vh; background:#fff; border-top-left-radius:12px; border-top-right-radius:12px; box-shadow: var(--shadow-lg); overflow:auto; }
.filters-header { display:flex; align-items:center; justify-content:space-between; padding:1rem; border-bottom:1px solid #eee; }
.filters-header h3 { margin:0; font-size:1.1rem; }
.filters-close { background:none; border:none; font-size:2rem; line-height:1; cursor:pointer; }
.filters-body { padding:1rem; display:flex; flex-direction:column; gap:1rem; }
.filters-section h4 { margin:0 0 0.6rem 0; font-size:1rem; }
.filters-actions { position: sticky; bottom:0; background:#fff; padding:0.75rem 1rem; display:flex; gap:0.8rem; border-top:1px solid #eee; }

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-column:last-of-type {
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        color: var(--white);
        letter-spacing: 0.3px;
    }

    .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: block !important;
    }

    .footer-list li {
        margin-bottom: 0.75rem;
        padding-left: 1rem;
        position: relative;
    }

    .footer-list li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .footer-list li:last-child {
        margin-bottom: 0;
    }

    .footer-column a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: block;
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        margin: 0 -0.75rem;
        position: relative;
        font-weight: 400;
        letter-spacing: 0.2px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column a:hover {
        color: var(--white);
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(4px);
        text-decoration: none;
    }

    .footer-column a:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(2px);
    }

    .footer-bottom {
        padding: 1.5rem 1rem;
        background: linear-gradient(135deg, #0F5F9E 0%, #1577C2 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-bottom p {
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.6;
        margin: 0;
        color: rgba(255, 255, 255, 0.95);
        letter-spacing: 0.2px;
    }

    /* Styles pour les autres éléments existants */
    .logo-text {
        font-size: 1.1rem;
    }

    .logo-tagline {
        font-size: 0.7rem;
    }

    .header-content {
        gap: 0.4rem;
    }

    .header-actions {
        gap: 0.2rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-top {
        padding: 0.2rem 0;
    }

    .logo-section {
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .logo-image {
        height: 28px;
        width: auto;
    }

    .logo-link {
        padding: 0.15rem;
        flex-shrink: 0;
    }

    .header-link {
        padding: 0.25rem 0.35rem;
        flex-shrink: 0;
    }

    .header-link-text {
        font-size: 0.8rem;
    }

    .cart-link-main {
        padding: 0.25rem 0.35rem;
    }

    .cart-icon-svg {
        width: 24px;
        height: 20px;
    }

    .cart-text-label {
        font-size: 0.8rem;
    }

    .header-link-label { 
        display: inline;
        font-size: 0.7rem;
    }

    .returns-link { 
        display: none; 
    }

    .nav-content-bar {
        padding: 0.3rem 0;
        gap: 0.6rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .nav-all-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .hamburger-icon {
        width: 14px;
    }

    .nav-promo-link a {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }

    .main-image-container {
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-product-image {
        margin: 0 auto;
        display: block;
    }

    .product-title-detail {
        font-size: 1.25rem;
    }

    .product-price-detail {
        font-size: 1.25rem;
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 0.6rem 0.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-sticky-cta .cta-price {
        font-weight: 700;
        font-size: 1.1rem;
        color: #111827;
    }

    .mobile-sticky-cta .cta-button {
        flex: 1;
        text-align: center;
        padding: 0.75rem 1rem;
        background-color: #1A8DD9;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 600;
    }

    .has-sticky-cta main {
        padding-bottom: 84px;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1A8DD9;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #1570b3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}
