/* ========================================
   ESPACE DJAGO - MODERN THEME CSS COMPLET
   Version: 3.0 - Mobile-First avec TOUTES les sections
   Couleurs: Orange (#FF8C00), Blanc, Bleu Foncé (#011E2C)
======================================== */

/* ========================================
   VARIABLES GLOBALES
======================================== */
:root {
    /* Couleurs Principales */
    --primary-orange: #FF8C00;
    --secondary-orange: #FFA500;
    --dark-blue: #011E2C;
    --light-blue: #023E5C;
    --white: #FFFFFF;
    
    /* Couleurs Neutres */
    --light-gray: #F8F9FA;
    --gray: #E9ECEF;
    --dark-gray: #6C757D;
    --text-dark: #212529;
    --text-muted: #6C757D;
    
    /* Couleurs de Status */
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    
    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(1, 30, 44, 0.05);
    --shadow-sm: 0 2px 4px rgba(1, 30, 44, 0.1);
    --shadow-md: 0 4px 8px rgba(1, 30, 44, 0.15);
    --shadow-lg: 0 8px 16px rgba(1, 30, 44, 0.2);
    --shadow-xl: 0 12px 24px rgba(1, 30, 44, 0.25);
    --shadow-2xl: 0 20px 40px rgba(1, 30, 44, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Spacing - Mobile First */
    --space-xs: 8px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Typography - Fluid Sizing */
    --font-size-xs: clamp(0.75rem, 2vw, 0.85rem);
    --font-size-sm: clamp(0.85rem, 2.5vw, 0.95rem);
    --font-size-base: clamp(0.9rem, 3vw, 1rem);
    --font-size-lg: clamp(1rem, 3.5vw, 1.15rem);
    --font-size-xl: clamp(1.2rem, 4vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-3xl: clamp(1.8rem, 6vw, 2.5rem);
    --font-size-4xl: clamp(2rem, 7vw, 3.5rem);
}

/* ========================================
   RESET ET BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--font-size-base);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   LOADER ANIMATION
======================================== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#pageLoader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--primary-orange);
    width: 0%;
    animation: progress 2s ease-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

/* ========================================
   HEADER MODERNE
======================================== */
.modern-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.logo-link {
    display: inline-block;
    transition: transform var(--transition-normal);
}

.logo-link:hover {
    transform: scale(1.05);
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Desktop */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--dark-blue);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Avatar Utilisateur */
.user-avatar {
    width: 45px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: none;
}

.navbar-toggler svg {
    color: var(--white);
    transition: transform var(--transition-normal);
}

.navbar-toggler:hover svg {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }

     .welcom-title {
        font-size: 1.5rem !important;
    }

    .hero-banner {
        padding: 8px !important;
        margin: 8px !important;
    }
        
}

/* ========================================
   HERO BANNER - OPTIMISÉ MOBILE-FIRST
======================================== */
.hero-banner {
    background: var(--light-blue);
    padding: var(--space-xl) var(--space-md);
    margin: var(--space-md) var(--space-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.welcom-title {
    color: white;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.Welcom-details {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero-banner {
        padding: var(--space-2xl) var(--space-lg);
        max-width: 1400px;
    }
}

/* ========================================
   CATEGORIES SECTION - OPTIMISÉE MOBILE-FIRST
======================================== */
.categories-section {
    max-width: 1400px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--dark-blue);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    border-radius: var(--radius-sm);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-top: var(--space-sm);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-orange);
    color: var(--white);
    padding: 6px 15px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-md);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    transition: left 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.category-icon-wrapper {
    width: 45px;
    height: 45px;
    margin: 0 auto var(--space-xs);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray), var(--gray));
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
}

.category-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.category-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--dark-blue);
    transition: color var(--transition-fast);
    line-height: 1.3;
    word-break: break-word;
}

.category-card:hover .category-name {
    color: var(--primary-orange);
}

@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
    
    .category-card {
        padding: var(--space-md);
    }
    
    .category-icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: var(--space-sm);
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
    }
    
    .category-name {
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 992px) {
    .categories-section {
        margin: var(--space-2xl) auto;
        padding: 0 var(--space-md);
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-badge {
        padding: 8px 20px;
        font-size: var(--font-size-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-lg);
    }
    
    .category-card {
        padding: var(--space-lg) var(--space-md);
    }
    
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: var(--font-size-base);
    }
}

/* ========================================
   SEARCH SECTION - RESPONSIVE
======================================== */
.search-section {
    max-width: 900px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-sm);
}

.search-container {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.search-input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2), var(--shadow-xl);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: var(--font-size-base);
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-results {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.search-result-price {
    color: var(--primary-orange);
    font-weight: 600;
}

@media (min-width: 768px) {
    .search-section {
        margin: 50px auto;
        padding: 0 var(--space-md);
    }
    
    .search-input {
        padding: 18px 25px;
        font-size: 1.1rem;
    }
    
    .search-btn {
        padding: 18px 35px;
        font-size: 1rem;
    }
}

/* ========================================
   PRODUCTS SECTION - RESPONSIVE
======================================== */
.products-section {
    max-width: 1400px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid var(--gray);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.product-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 2;
}

.product-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--gray);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(1, 30, 44, 0.95), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-overlay {
        display: none !important;
    }
    .categories-section {
        display: none !important;
    }
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.product-quick-view {
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    width: 100%;
    transition: all var(--transition-fast);
    border: none;
}

.product-quick-view:hover {
    background: var(--secondary-orange);
    transform: scale(1.05);
}

.product-details {
    padding: var(--space-sm);
    background: var(--white);
}

.product-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.product-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-orange);
}

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

.product-discount {
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.product-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-sm);
}

.product-location svg {
    width: 16px;
    height: 16px;
}

.product-cta {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px;
    border-radius: var(--radius-full);
    width: 100%;
    font-weight: 600;
    font-size: var(--font-size-xs);
    transition: all var(--transition-normal);
    border: none;
}

.product-cta:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-info-badge {
    display: inline-block;
    background: var(--info);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

@media (min-width: 576px) {
    .products-section {
        margin: var(--space-2xl) auto;
        padding: 0 var(--space-md);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-details {
        padding: var(--space-md);
    }
    
    .product-title {
        font-size: var(--font-size-base);
    }
    
    .product-price {
        font-size: var(--font-size-xl);
    }
    
    .product-cta {
        padding: 10px;
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .product-details {
        padding: var(--space-lg);
    }
    
    .product-title {
        font-size: var(--font-size-lg);
    }
    
    .product-cta {
        padding: 12px;
        font-size: var(--font-size-base);
    }
}

/* ========================================
   SHOP SECTION - SLIDER HORIZONTAL
======================================== */
.shop-section {
    margin-bottom: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.sm_shop-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}

.btn_show_shop {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

.shop-products-wrapper {
    position: relative;
    margin: 0 -var(--space-sm);
    padding: 0 var(--space-sm);
}

.shop-products {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--space-sm) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) var(--light-gray);
}

.shop-products::-webkit-scrollbar {
    height: 6px;
}

.shop-products::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.shop-products::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -5px;
}

.slider-btn.next {
    right: -5px;
}

.product-card-mini {
    flex: 0 0 160px;
    width: 160px;
}

.mini-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.mini-card-img {
    width: 100%;
    height: 140px;
    background: var(--light-gray);
    overflow: hidden;
    border-bottom: 2px solid var(--gray);
    position: relative;
}

.mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.mini-card:hover .mini-card-img img {
    transform: scale(1.1);
}

.mini-card-body {
    padding: var(--space-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card-price {
    font-size: var(--font-size-base);
    color: var(--primary-orange);
    font-weight: 700;
    margin-top: auto;
}

@media (min-width: 576px) {
    .product-card-mini {
        flex: 0 0 200px;
        width: 200px;
    }
    
    .mini-card-img {
        height: 180px;
    }
    
    .mini-card-body {
        padding: var(--space-md);
    }
    
    .mini-card-title {
        font-size: var(--font-size-base);
    }
}

@media (min-width: 768px) {
    .shop-section {
        padding: var(--space-lg);
    }
    
    .shop-header {
        margin-bottom: var(--space-lg);
    }
    
    .sm_shop-title {
        font-size: var(--font-size-xl);
    }
    
    .btn_show_shop {
        padding: 5px 5px;
        font-size: var(--font-size-sm);
    }
    
    .shop-products-wrapper {
        margin: 0;
        padding: 0 40px;
    }
    
    .shop-products {
        gap: var(--space-md);
    }
    
    .slider-btn {
        display: flex;
        width: 45px;
        height: 45px;
    }
    
    .slider-btn.prev {
        left: 0;
    }
    
    .slider-btn.next {
        right: 0;
    }
}

/* ========================================
   FOOTER MODERNE
======================================== */
.modern-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: var(--space-2xl);
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-logo-section {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-logo img {
    height: 50px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: var(--white);
}

.footer-social-link:hover {
    background: var(--primary-orange);
    transform: translateY(-5px);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h6 {
    color: var(--primary-orange);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--primary-orange);
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ========================================
   SHOP SINGLE - PAGE PRODUIT
======================================== */
.product-gallery .main-image-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.thumbnail {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    height: 60px;
}

.thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

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

.product-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.product-info h1 {
    color: var(--dark-blue);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-gallery .main-image-container {
        padding: var(--space-lg);
    }
    
    .thumbnails-container {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
    }
    
    .thumbnail,
    .thumbnail img {
        height: 100px;
    }
    
    .product-info {
        padding: var(--space-2xl);
    }
    
    .product-info h1 {
        font-size: var(--font-size-3xl);
    }
}

/* ========================================
   BREADCRUMB - MOBILE
======================================== */
.modern-breadcrumb {
    background: var(--light-blue);
    padding: 10px var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--font-size-xs);
}

.breadcrumb-item {
    color: var(--white);
    font-weight: 500;
}

.breadcrumb-item.active{
   color: var(--white);
}

.breadcrumb-item a {
    color: var(--white);
    transition: opacity var(--transition-fast);
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .modern-breadcrumb {
        padding: 15px var(--space-lg);
    }
    
    .breadcrumb {
        gap: 10px;
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   BUTTONS - RESPONSIVE
======================================== */
.btn-modern {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .btn-modern {
        padding: 10px 25px;
        font-size: var(--font-size-base);
    }
}

/* ========================================
   CATEGORIE ACCUEIL DYNAMIQUE
======================================== */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-orange);
    background: white;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

@media (max-width: 768px) {
    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-width: 1.5px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
    font-size: var(--font-size-xs);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-orange);
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.mobile-nav-item .badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* ========================================
   CONTAINER
======================================== */
.container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container-modern {
        padding: 0 var(--space-md);
    }
}

@media (min-width: 1200px) {
    .container-modern {
        padding: 0 var(--space-lg);
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-modern {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-success { background: var(--success); color: var(--white); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--text-dark); }
.badge-info { background: var(--info); color: var(--white); }
.badge-orange { background: var(--primary-orange); color: var(--white); }

.mt-custom { margin-top: var(--space-lg); }
.mb-custom { margin-bottom: var(--space-lg); }
.py-custom { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.px-custom { padding-left: var(--space-md); padding-right: var(--space-md); }

/* ========================================
   OFFCANVAS MOBILE
======================================== */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform 0.3s ease-in-out;
}

.offcanvas-start {
    top: 0;
    left: 0;
    width: 300px;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 300px;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
}

.offcanvas.show {
    transform: none;
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1rem 1rem;
    overflow-y: auto;
}

.offcanvas-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.75;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

.offcanvas .navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas .nav-item {
    margin-bottom: 0;
}

.offcanvas .nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--dark-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    margin-bottom: 5px;
}

.offcanvas .nav-link:hover {
    background: var(--light-gray);
    color: var(--primary-orange);
    padding-left: 25px;
}

.offcanvas .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ========================================
   DROPDOWN
======================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-dark);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

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

/* ========================================
   MODAL
======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* ========================================
   UTILITY CLASSES BOOTSTRAP
======================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-grid {
    display: grid !important;
}

@media (min-width: 768px) {
    .d-md-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-inline {
        display: inline !important;
    }
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.w-100 {
    width: 100% !important;
}

.border-bottom {
    border-bottom: 1px solid var(--light-gray) !important;
}

.rounded {
    border-radius: var(--radius-md) !important;
}

.icon-hover {
    transition: all var(--transition-fast);
}

.icon-hover:hover {
    background: var(--light-gray);
    cursor: pointer;
}

/* ========================================
   ACCESSIBILITY
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) var(--light-gray);
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .modern-header,
    .mobile-bottom-nav,
    .slider-btn,
    .modern-footer {
        display: none !important;
    }
    
    .product-card,
    .category-card {
        break-inside: avoid;
    }
}