/* ============================================
   KING TECHNOLOGIE - Nouveau Design
   Couleurs : #ff61a1 (rose) | #4b4c50 (gris)
   Base : maquette Continente adaptée
============================================ */

:root {
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --primary-light: #333333;
    --secondary-color: #111111;
    --secondary-light: #2a2a2a;
    --text-dark: #000000;
    --text-muted: #555555;
    --text-light: #888888;
	--text-white: #fff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TYPOGRAPHIE
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 48px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.view-all-link {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.view-all-link i {
    font-size: 11px;
}

/* ============================================
   BOUTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* ============================================
   HEADER - 3 LIGNES (style Continente)
============================================ */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Topbar - ligne 1 */
.topbar {
    background-color: var(--secondary-color);
    color: white;
    font-size: 12px;
    padding: 8px 0;
}

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

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    font-weight: 700;
    font-size: 13px;
}

.brand-logo span:first-child {
    color: var(--text-white);
}

.topbar-right a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right a:hover {
    color: var(--primary-color);
}

/* Main Header - ligne 2 */
.main-header {
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: auto;
    width: 100px;
}

.logo-text {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
}

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

/* Adresse livraison */
.address-delivery {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-light);
    padding: 8px 20px;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
}

.address-delivery:hover {
    background-color: #e8e8e8;
}

.address-delivery i {
    font-size: 20px;
    color: var(--primary-color);
}

.address-info {
    display: flex;
    flex-direction: column;
}

.address-info .label {
    font-size: 11px;
    color: var(--text-muted);
}

.address-info .address {
    font-weight: 700;
    font-size: 13px;
}

/* Barre recherche */
.search-bar {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.search-bar form {
    display: flex;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-right: none;
    background-color: var(--bg-light);
    font-family: inherit;
    transition: var(--transition);
}

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

.search-bar button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-bar button:hover {
    background-color: var(--primary-dark);
}

/* Actions utilisateur */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.user-action i {
    font-size: 22px;
}

.user-action:hover {
    color: var(--primary-color);
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation - ligne 3 */
.navbar {
    background-color: var(--bg-white);
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.navbar .container {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    height: 3px;
}

.nav-links li a {
    font-weight: 500;
    padding: 4px 0;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(75, 76, 80, 0.8);
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.navbar:hover .nav-arrow {
    opacity: 1;
    pointer-events: auto;
}

.nav-arrow.left {
    left: 0;
}

.nav-arrow.right {
    right: 0;
}

.nav-arrow:hover {
    background: var(--primary-color);
}

/* Burger mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Offcanvas mobile */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1101;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.offcanvas-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-header h3 {
    font-size: 18px;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.offcanvas-body {
    padding: 20px;
}

.offcanvas-categories ul {
    list-style: none;
}

.offcanvas-categories li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.offcanvas-categories li a:hover {
    color: var(--primary-color);
}

.offcanvas-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.offcanvas-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px;
    border-radius: 0;
}

/* ============================================
   PROMO BANNER SUPERIEUR
============================================ */
.top-promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
}

.top-promo-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    margin: 30px 0;
}

/* ============================================
   PAGE TOUTES LES CATÉGORIES
============================================ */
.categories-page {
    min-height: 60vh;
}

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

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card i {
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.15);
}

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.category-card .btn {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 12px;
    width: 100%;
    margin-top: auto;
}

.category-card:hover .btn {
    background: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 12px;
        min-height: 170px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sidebar catégories - masquée */
.categories-column {
    display: none;
}

.categories-list-wrapper {
    padding: 0;
}

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

.categories-list li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.categories-list li:last-child a {
    border-bottom: none;
}

.categories-list li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.category-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.category-item-card i {
    width: 24px;
    color: var(--primary-color);
}

/* Carousel */
.carousel-column {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Image desktop : rectangle, visible par défaut */
.carousel-item img,
.carousel-item .slide-img-desktop {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Image mobile : carrée, cachée par défaut */
.carousel-item .slide-img-mobile {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bannières droites */
.right-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 0;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.small-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.small-banner a {
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 20px;
}

/* ============================================
   PRODUCT GRID
============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 16px;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Badges produit */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

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

.product-info {
    text-align: left;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
}

.price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

.price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-pct {
    font-size: 11px;
    font-weight: 700;
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 0;
}

.product-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   FLASH SECTION
============================================ */
.flash-section,
.pop-section,
.product-section {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.flash-header,
.pop-header,
.section-header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-header h2,
.pop-header h2,
.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.flash-header .see-more,
.pop-header .see-more,
.section-header .see-more {
    color: white;
    opacity: 0.8;
    font-size: 13px;
}

.flash-header .see-more:hover,
.pop-header .see-more:hover,
.section-header .see-more:hover {
    opacity: 1;
}

/* ============================================
   PROMOTIONS
============================================ */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.promotion-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    padding: 24px;
    border-radius: 0;
    color: white;
    text-align: center;
    transition: var(--transition);
}

.promotion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.promotion-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.promotion-card .btn {
    background: white;
    color: var(--primary-color);
}

.promotion-card .btn:hover {
    transform: scale(1.05);
}

/* ============================================
   AIDE / PAGES SIDEBAR
============================================ */
.main-container-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.help-sidebar,
.pages-sidebar {
    background: var(--bg-white);
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.help-sidebar h3,
.pages-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.help-sidebar ul,
.pages-sidebar ul {
    list-style: none;
}

.help-sidebar li,
.pages-sidebar li {
    margin-bottom: 12px;
}

.help-sidebar li a,
.pages-sidebar li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.help-sidebar li a:hover,
.pages-sidebar li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.content-page-container {
    background: var(--bg-white);
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.content-page-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.content-page-text {
    line-height: 1.8;
    color: var(--text-muted);
}

.content-page-text p {
    margin-bottom: 16px;
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.breadcrumb span:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   PAGE PRODUIT
============================================ */
.product-detail-wrap {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin: 20px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-main-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 0;
    cursor: zoom-in;
    border: 1px solid var(--border-color);
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail-image:hover,
.active-thumbnail {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-detail-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.product-detail-description {
    margin: 20px 0;
    line-height: 1.7;
    color: var(--text-muted);
}

.description-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-content.collapsed {
    max-height: 120px;
}

.description-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   PANIER
============================================ */
.cart-wrap {
    margin: 20px 0 60px;
}

.cart-section-header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-section-header h2 {
    font-size: 18px;
    margin: 0;
}

.cart-body {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--bg-light);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

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

.qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-summary-box {
    background: var(--bg-light);
    padding: 24px;
    border-top: 2px solid var(--border-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total-label {
    font-size: 18px;
    font-weight: 700;
}

.cart-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.checkout-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
}

.btn-whatsapp-order {
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

/* Cart mobile */
.cart-cards {
    display: none;
}

@media (max-width: 768px) {
    .cart-table {
        display: none;
    }
    .cart-cards {
        display: block;
    }
    .cart-card {
        display: flex;
        gap: 12px;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .cart-card-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 0;
    }
    .cart-card-info {
        flex: 1;
    }
    .cart-card-name {
        font-weight: 700;
        margin-bottom: 8px;
    }
}

/* ============================================
   PAGINATION
============================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: white;
    transition: var(--transition);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   MODAL
============================================ */
.modal-content {
    border-radius: 0;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   CONFIRMATION PAGE
============================================ */
.confirmation-container {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-white);
    border-radius: 0;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.confirmation-icon.success {
    background: var(--success);
    color: white;
}

.confirmation-icon.error {
    background: var(--danger);
    color: white;
}

.confirmation-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.confirmation-message {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
}

.btn-return:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   NO DATA MESSAGE
============================================ */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
}

.no-data-message i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

/* ============================================
   FOOTER
============================================ */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 56px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--text-white);
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.social-networks {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
}

.social-networks a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-networks a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-networks a i {
    font-size: 18px;
    color: white;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #aaa;
}

.btn-call-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 100;
}

.btn-call-floating:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.btn-call-floating span {
    display: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr 220px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .categories-column {
        display: none;
    }
    .right-banners {
        flex-direction: row;
    }
    .small-banner {
        flex: 1;
        height: 120px;
    }

    /* Slide : basculer vers l'image mobile carrée */
    .carousel-item .slide-img-desktop {
        display: none;
    }
    .carousel-item .slide-img-mobile {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;   /* carré parfait */
        height: auto;
        max-height: 480px;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .burger-menu {
        display: flex;
    }
    .navbar .nav-links {
        display: none;
    }
    .product-detail-wrap {
        grid-template-columns: 1fr;
    }
    .main-container-with-sidebar {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card {
        padding: 12px;
    }
    .product-name {
        font-size: 12px;
    }
    .product-price {
        font-size: 14px;
    }
    .right-banners {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .btn-call-floating span {
        display: inline;
        font-size: 12px;
        margin-left: 5px;
    }
    .btn-call-floating {
        width: auto;
        padding: 10px 20px;
        border-radius: 0;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .topbar .container {
        flex-direction: column;
        gap: 8px;
    }
    .address-delivery {
        display: none;
    }
    .user-action span:not(.cart-count) {
        display: none;
    }
}

/* ============================================
   STYLES DU PANIER (CART)
============================================ */
.cart-wrap {
    margin: 20px auto 60px;
    max-width: 1400px;
    width: 90%;
}

.cart-section-header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-section-header h2 {
    font-size: 18px;
    margin: 0;
}

.cart-body {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cart-table th {
    background: var(--bg-light);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

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

.qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

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

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.remove-btn:hover {
    text-decoration: underline;
    color: #a00;
}

.cart-summary-box {
    background: var(--bg-light);
    padding: 24px;
    border-top: 2px solid var(--border-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-total-label {
    font-size: 18px;
    font-weight: 700;
}

.cart-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.checkout-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp-order {
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-whatsapp-order:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.empty-cart h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Cart cards (mobile) */
.cart-cards {
    display: none;
}

.cart-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.cart-card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

.cart-card-info {
    flex: 1;
}

.cart-card-name {
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cart-table {
        display: none;
    }
    .cart-cards {
        display: block;
    }
    .cart-summary-box {
        padding: 16px;
    }
    .cart-total-amount {
        font-size: 22px;
    }
    .checkout-btns {
        flex-direction: column;
    }
    .btn-checkout, .btn-whatsapp-order {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cart-wrap {
        width: 95%;
    }
    .cart-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cart-card-img {
        width: 120px;
        height: 120px;
    }
    .cart-card-row {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* ============================================
   PAIEMENT MOBILE MONEY
============================================ */
.payment-wrap {
    max-width: 580px;
    margin: 30px auto 70px;
}

.pay-recap {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pay-recap .shop-name {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.pay-recap .shop-title {
    font-size: 17px;
    font-weight: 700;
}

.pay-recap .total-label {
    font-size: 12px;
    opacity: 0.7;
    text-align: right;
    margin-bottom: 2px;
}

.pay-recap .total-amount {
    font-size: 28px;
    font-weight: 800;
    text-align: right;
    line-height: 1;
}

.pay-recap .total-currency {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.pay-card {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    padding: 28px 24px 32px;
}

.pay-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.network-card {
    flex: 1 1 28%;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    padding: 14px 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.network-card input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.network-card:hover {
    border-color: var(--primary-color);
}

.network-card.selected {
    border-color: var(--primary-color);
    background: #fff5f8;
}

.network-icon {
    width: 46px;
    height: 46px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin: 0 auto 8px;
}

.network-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.network-numero {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.steps-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
}

.step-num {
    min-width: 24px;
    height: 24px;
    border-radius: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.pay-input-group {
    margin-bottom: 20px;
}

.pay-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.pay-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

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

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 0;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: #fff5f8;
}

.upload-zone input[type=file] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 28px;
    color: #bbb;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 13px;
    color: #888;
}

.upload-text strong {
    color: var(--primary-color);
}

.upload-preview {
    display: none;
    margin-top: 12px;
}

.upload-preview img {
    max-height: 120px;
    border-radius: 0;
    border: 1px solid #ddd;
}

.upload-fname {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.btn-pay {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pay:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pay-security {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 11.5px;
    color: #aaa;
}

.pay-secure-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pay-errors {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #721c24;
}

.pay-errors ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 480px) {
    .pay-recap {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .pay-recap .total-amount,
    .pay-recap .total-label,
    .pay-recap .total-currency {
        text-align: center;
    }
    .network-card {
        flex: 1 1 45%;
    }
    .pay-card {
        padding: 20px 16px;
    }
}

/* Bannières par défaut (quand pas de promo) */
.right-banners .default-banner {
    background: linear-gradient(135deg, var(--secondary-color), #3a3b3e);
}

.right-banners .default-banner a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    text-decoration: none;
}

.right-banners .default-banner a i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.right-banners .default-banner a strong {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
}

.right-banners .default-banner a span {
    font-size: 12px;
    opacity: 0.8;
}

.right-banners .default-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.right-banners .default-banner:hover a i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ============================================
   POPUP IMAGE PRODUIT
============================================ */
#image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

#image-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
}

.close-popup:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
}

/* Animation pour l'image au clic */
.product-main-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .close-popup {
        top: -50px;
        right: 5px;
        font-size: 30px;
    }
    
    .popup-content img {
        max-height: 80vh;
    }
}