:root {
    --primary-blue: #007bff;
    /* To be refined based on logo extraction if possible, but 007bff is a solid base */
    --secondary-silver: #e0e0e0;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

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

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

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 50px;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 20;
    color: white;
}

.slide-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-blue);
}

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

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

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 20px;
}

/* Hero Section Fallback/General */
/* Hero Section Fallback/General */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-sub {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-sub .container {
    position: relative;
    z-index: 2;
}

.hero-sub h1 {
    color: white !important;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-sub p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Specific Page Heroes */
.hero-boutique {
    background-image: url('img/boutique-ban.png');
}

.hero-services {
    background-image: url('img/slide/services.png');
}

.hero-about {
    background-image: url('img/bannierepng.png');
}

.hero-contact {
    background-image: url('img/contact-ban.png');
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Services Grid */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card .btn i {
    font-size: inherit;
    color: inherit;
    margin-bottom: 0;
}

/* Feature Row */
.features-row {
    background: var(--light-gray);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.features-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
}

/* Category Hub */
.category-hub {
    padding: 80px 0;
}

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

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: var(--transition);
}

.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.category-card span {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 10px;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Info Section */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge {
    /* position: absolute; */
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.badge-promo {
    background-color: #ff4757;
    color: white;
}

.badge-featured {
    background-color: var(--primary-blue);
    color: white;
}

.badge-bestseller {
    background-color: #2ed573;
    color: white;
}

/* Section Header Decoration */
.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Optimized Footer */
.footer-main {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto 50px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-contact-item i {
    color: var(--primary-blue);
    margin-top: 5px;
}

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

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 50px 0 20px;
    }
}

/* Product Detail Styles */
.product-detail-section {
    padding: 80px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #fff;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #fff;
}

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

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.product-meta {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
}

.product-meta span {
    margin-right: 20px;
}

.product-description {
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.product-description p {
    margin-bottom: 12px;
}

.product-description ul,
.product-description ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.product-description ul {
    list-style-type: disc;
}

.product-description ol {
    list-style-type: decimal;
}

.product-description li {
    margin-bottom: 6px;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
    margin: 20px 0 10px;
    color: inherit;
}

.product-description strong,
.product-description b {
    font-weight: 600;
    color: inherit;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.product-description table th,
.product-description table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.product-description table th {
    background: #f8f9fa;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.product-specs {
    margin-top: 60px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
}

.specs-table th {
    width: 30%;
    background: #f8f9fa;
    font-weight: 600;
}

.specs-table td {
    padding: 15px;
    text-align: left;
}

.related-products {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Partners / Brands Carousel Styles */
.partners-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.partners-section .container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-carousel::before,
.partners-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.partners-track {
    display: flex;
    width: fit-content;
    animation: scrollBrands 300s linear infinite;
    gap: 60px;
    /* Espace confortable entre les logos */
    padding-left: 60px;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    /* Légèrement plus visible par défaut */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    /* Ombre portée légère pour détacher les logos blancs sur fond blanc si nécessaire */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-item span {
    font-weight: 800;
    color: #b2bec3;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.partner-item:hover span {
    color: var(--primary-blue);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-33.33%));
    }
}

@media (max-width: 768px) {
    .partners-track {
        gap: 30px;
        /* Réduire l'espace sur mobile */
        padding-left: 30px;
        animation-duration: 300s;
        /* Un peu plus rapide sur mobile */
    }

    .partner-item {
        width: 120px;
        height: 80px;
    }

    .partner-item span {
        font-size: 1rem;
    }

    .partners-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   Events Index Slider
   ========================================================================== */
.events-index-section {
    padding: 60px 0 70px;
    background: #f8fafc;
    position: relative;
}

.events-index-section .container {
    max-width: 1310px;
}

.events-slider-wrapper {
    position: relative;
    max-width: 1270px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    background: #0b1120;
}

.events-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #0b1120;
}

.event-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.event-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: scale(1);
    pointer-events: auto;
}

.event-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.events-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 30;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.events-nav-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.events-nav-btn.prev {
    left: 20px;
}

.events-nav-btn.next {
    right: 20px;
}

.events-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.events-dots .event-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.events-dots .event-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .events-slider {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .events-slider {
        height: 280px;
    }

    .events-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .events-nav-btn.prev {
        left: 10px;
    }

    .events-nav-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .events-slider {
        height: 220px;
    }
}

/* ==========================================================================
   Shop Horizontal Category Navigation & Submenus
   ========================================================================== */
.shop-category-menu-wrapper {
    background: #d8f2f6;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 80px;
    z-index: 950;
    overflow: visible;
}

.shop-category-menu-wrapper .container {
    max-width: 1400px;
}

.shop-category-nav {
    position: relative;
    padding: 6px 0;
    overflow: visible;
}

.shop-cat-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    overflow: visible;
}

.shop-cat-item {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.shop-cat-item:hover,
.shop-cat-item.is-open {
    z-index: 1100;
}

.shop-cat-btn-group {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
}

.shop-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 0.79rem;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.shop-cat-btn:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
    border-color: #e2e8f0;
}

.shop-cat-btn.active,
.shop-cat-item.active>.shop-cat-btn {
    background: var(--primary-blue);
    color: #ffffff !important;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.shop-cat-btn.active i,
.shop-cat-item.active>.shop-cat-btn i {
    color: #ffffff !important;
}

.shop-cat-btn i.cat-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s;
}

.shop-cat-btn:hover i.cat-icon {
    color: var(--primary-blue);
}

.shop-cat-btn .cat-arrow {
    font-size: 0.68rem;
    margin-left: 2px;
    transition: transform 0.25s ease;
    opacity: 0.65;
}

.shop-cat-item:hover .cat-arrow,
.shop-cat-item.is-open .cat-arrow {
    transform: rotate(180deg);
}

/* Dropdown Submenus */
.shop-cat-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 250px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    padding: 8px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Invisible hover bridge to prevent flickering when moving cursor */
.shop-cat-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.shop-cat-item:nth-last-child(-n+3) .shop-cat-dropdown {
    left: auto;
    right: 0;
}

.shop-cat-item:hover .shop-cat-dropdown,
.shop-cat-item.is-open .shop-cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.shop-cat-dropdown-header {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

.shop-cat-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.shop-cat-all-link:hover {
    color: #0056b3;
}

.shop-subcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-subcat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    text-decoration: none;
}

.shop-subcat-link:hover {
    background: #f8fafc;
    color: var(--primary-blue);
    padding-left: 14px;
}

.shop-subcat-link.active {
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 700;
    border-left: 3px solid var(--primary-blue);
}

.shop-count-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.shop-subcat-link:hover .shop-count-badge,
.shop-subcat-link.active .shop-count-badge {
    background: rgba(0, 123, 255, 0.12);
    color: var(--primary-blue);
}

/* ==========================================================================
   Mega-Menu Dropdown (Sous-catégories + Liste Produits)
   ========================================================================== */
.shop-mega-dropdown {
    min-width: 620px !important;
    max-width: 750px !important;
    padding: 0 !important;
    overflow: visible;
}

.shop-mega-content {
    display: flex;
    flex-direction: row;
}

/* Panneau sous-catégories à gauche */
.shop-mega-subcats {
    width: 250px;
    flex-shrink: 0;
    padding: 0;
    border-right: 1px solid #e2e8f0;
}

.shop-mega-subcats .shop-cat-dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.shop-mega-subcats .shop-subcat-list {
    padding: 4px 6px 8px;
}

.shop-mega-subcats .shop-subcat-link {
    padding: 8px 10px;
    display: flex;
    align-items: center;
}

.shop-mega-subcats .shop-subcat-link.mega-hover {
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 600;
}

.shop-mega-subcats .shop-subcat-link.mega-hover i:last-child {
    opacity: 1 !important;
    color: var(--primary-blue);
    transform: translateX(3px);
}

/* Panneau produits à droite */
.shop-mega-products-panel {
    flex: 1;
    min-width: 330px;
    min-height: 200px;
    max-height: 420px;
    overflow-y: auto;
    background: #f8fafc;
    border-left: none;
    padding: 0;
    position: relative;
    border-radius: 0 12px 12px 0;
}

.shop-mega-products-panel::-webkit-scrollbar {
    width: 4px;
}
.shop-mega-products-panel::-webkit-scrollbar-track {
    background: transparent;
}
.shop-mega-products-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.shop-mega-product-list {
    display: none;
    padding: 0;
}

.shop-mega-product-list.active {
    display: block;
    animation: megaFadeIn 0.2s ease;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}

.shop-mega-product-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    position: sticky;
    top: 0;
    z-index: 1;
}

.shop-mega-product-list-header span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shop-mega-product-list-header a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.shop-mega-product-list-header a:hover {
    color: #0056b3;
}

.shop-mega-product-list ul {
    list-style: none;
    margin: 0;
    padding: 6px 8px;
}

.shop-mega-product-list ul li {
    margin: 0;
}

.shop-mega-product-list ul li a {
    display: block;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.15s ease;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-mega-product-list ul li a:hover {
    background: #e0e7ff;
    color: var(--primary-blue);
    padding-left: 14px;
}

.shop-mega-no-products {
    padding: 20px 16px;
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Active Filter Breadcrumb & Status Bar */
.shop-active-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.shop-filter-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    flex-wrap: wrap;
}

.shop-filter-breadcrumb a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

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

.shop-filter-breadcrumb .current-badge {
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.shop-filter-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-prod-count {
    font-size: 0.88rem;
    color: #64748b;
}

.shop-prod-count strong {
    color: #1e293b;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fee2e2;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-reset-filters:hover {
    background: #fecaca;
    color: #b91c1c;
    transform: translateY(-1px);
}

/* Default Hidden Elements on Desktop */
.mobile-cat-drawer-btn {
    display: none;
}

.shop-mobile-subcat-bar {
    display: none !important;
}

.shop-drawer-backdrop,
.shop-cat-drawer {
    display: none;
}

/* ==========================================================================
   Improved Brand Filter Component (Boutique Seven Tek)
   ========================================================================== */
.shop-brand-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 35px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-brand-filter-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.brand-filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.brand-filter-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.brand-filter-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.25;
}

.brand-filter-subheading {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.active-brand-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-brand-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.active-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #bfdbfe;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
}

.active-brand-pill i {
    font-size: 0.85rem;
}

.brand-pill-clear {
    background: #dbeafe;
    border: none;
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 2px;
}

.brand-pill-clear:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.12);
}

/* Controls: Search input & Select dropdown */
.brand-filter-controls {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    align-items: center;
    margin-bottom: 0;
}

.brand-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.brand-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.brand-search-input {
    width: 100%;
    padding: 11px 42px 11px 42px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.92rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.brand-search-input:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.brand-search-input:focus+.brand-search-icon {
    color: var(--primary-blue);
}

.brand-search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.brand-search-clear-btn:hover {
    color: #ef4444;
}

.brand-select-wrapper {
    position: relative;
    width: 100%;
}

.brand-select-dropdown {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.92rem;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.brand-select-dropdown:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.brand-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

/* ==========================================================================
   Ergonomic Mobile Layout for Shop Categories & Subcategories (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .shop-category-menu-wrapper {
        top: 70px;
        background: #d8f2f6;
        padding: 4px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .shop-category-menu-wrapper .container {
        padding: 0 10px;
    }

    .shop-category-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        overflow: hidden;
    }

    /* Dedicated "Rayons" Drawer Trigger Button */
    .mobile-cat-drawer-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 13px;
        border-radius: 20px;
        background: #ffffff;
        color: #1e293b;
        font-size: 0.82rem;
        font-weight: 700;
        border: 1px solid rgba(0, 123, 255, 0.25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .mobile-cat-drawer-btn i {
        color: var(--primary-blue);
        font-size: 0.9rem;
    }

    .mobile-cat-drawer-btn:active {
        background: var(--primary-blue);
        color: #ffffff;
        transform: scale(0.96);
    }

    .mobile-cat-drawer-btn:active i {
        color: #ffffff;
    }

    /* Horizontal swipeable single-line rail */
    .shop-cat-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding: 4px 2px;
        margin: 0;
    }

    .shop-cat-list::-webkit-scrollbar {
        display: none;
    }

    .shop-cat-item {
        flex-shrink: 0;
    }

    /* On mobile: hide all category items except the first (Tous les produits) */
    .shop-cat-item:not(:first-child) {
        display: none !important;
    }

    .shop-cat-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
        white-space: nowrap;
    }

    .shop-cat-btn.active,
    .shop-cat-item.active>.shop-cat-btn {
        background: var(--primary-blue);
        color: #ffffff !important;
        border-color: var(--primary-blue);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.35);
    }

    /* Hide floating desktop dropdowns on mobile */
    .shop-cat-dropdown {
        display: none !important;
    }

    .shop-cat-btn .cat-arrow {
        display: none;
    }

    /* Mobile Bottom Sheet Drawer */
    .shop-drawer-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .shop-drawer-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .shop-cat-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        z-index: 2001;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .shop-cat-drawer.active {
        transform: translateY(0);
    }

    .shop-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 14px 20px;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }

    .shop-drawer-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 2px;
        background: #cbd5e1;
    }

    .drawer-header-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .drawer-header-title i {
        color: var(--primary-blue);
        font-size: 1.15rem;
    }

    .drawer-header-title h3 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .shop-drawer-close {
        background: #f1f5f9;
        border: none;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .shop-drawer-close:active {
        background: #e2e8f0;
        color: #1e293b;
    }

    .shop-drawer-body {
        padding: 14px 16px 35px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .drawer-all-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 10px;
        background: #f8fafc;
        color: #1e293b;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        border: 1px solid #e2e8f0;
    }

    .drawer-all-link.active {
        background: #eff6ff;
        color: var(--primary-blue);
        border-color: #bfdbfe;
    }

    .drawer-link-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .drawer-link-left i {
        color: var(--primary-blue);
    }

    /* Accordions */
    .drawer-accordion-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .drawer-accordion-item {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: #ffffff;
    }

    .drawer-accordion-item.open {
        border-color: #cbd5e1;
    }

    .drawer-accordion-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
        background: #ffffff;
    }

    .drawer-cat-main-link {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
        font-size: 0.88rem;
    }

    .drawer-cat-main-link i {
        color: #64748b;
        width: 18px;
        text-align: center;
    }

    .drawer-cat-main-link.active {
        color: var(--primary-blue);
        font-weight: 700;
    }

    .drawer-cat-main-link.active i {
        color: var(--primary-blue);
    }

    .drawer-accordion-toggle {
        background: none;
        border: none;
        color: #94a3b8;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: transform 0.25s ease;
    }

    .drawer-accordion-item.open .drawer-accordion-toggle {
        transform: rotate(180deg);
        color: var(--primary-blue);
    }

    .drawer-accordion-content {
        background: #f8fafc;
        border-top: 1px solid #f1f5f9;
        padding: 6px 12px 10px 12px;
    }

    .drawer-subcat-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .drawer-subcat-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        border-radius: 6px;
        text-decoration: none;
        color: #475569;
        font-size: 0.84rem;
        font-weight: 500;
        transition: all 0.15s ease;
    }

    .drawer-subcat-link:active,
    .drawer-subcat-link.active {
        background: #eff6ff;
        color: var(--primary-blue);
        font-weight: 700;
    }

    .drawer-subcat-link span i {
        margin-right: 6px;
        font-size: 0.75rem;
        opacity: 0.6;
    }

    .shop-active-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }

    /* Mobile styles for Brand Filter Card */
    .shop-brand-filter-card {
        padding: 16px;
        margin-bottom: 25px;
    }

    .brand-filter-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand-filter-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}