/* =========================================== */
/* STYLES BOUTIQUE CAMEROUN24 - VERSION OPTIMISÉE */
/* =========================================== */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --shop-primary: #007a3d;
    --shop-primary-dark: #005a2d;
    --shop-secondary: #fcd116;
    --shop-accent: #ce1126;
    --shop-light: #f8f9fa;
    --shop-dark: #343a40;
    --shop-gray: #6c757d;
    --shop-border: #dee2e6;
    --shop-success: #28a745;
    --shop-warning: #ffc107;
    --shop-danger: #dc3545;
    
    /* Couleurs supplémentaires pour compatibilité */
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* =========================================== */
/* LAYOUT GÉNÉRAL */
/* =========================================== */

/* Conteneur principal */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header boutique */
.shop-header {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.shop-logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.shop-logo a {
    color: white;
    text-decoration: none;
}

.shop-logo span {
    color: var(--shop-secondary);
}

/* Actions utilisateur */
.shop-user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.shop-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    color: white;
    font-size: 1.2rem;
}

.shop-cart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--shop-accent);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dropdown utilisateur */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.shop-cart-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--shop-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.user-link:hover {
    background: var(--shop-light);
    color: var(--shop-primary);
}

/* Barre de recherche */
.shop-search-container {
    position: relative;
    width: 300px;
}

.shop-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.shop-search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--shop-secondary);
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.2);
}

.shop-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

/* =========================================== */
/* NAVIGATION AMÉLIORÉE */
/* =========================================== */

.shop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.shop-categories {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-categories > li {
    position: relative;
    flex-shrink: 0;
}

.shop-categories > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.shop-categories > li > a:hover,
.shop-categories > li.active > a {
    background: rgba(255,255,255,0.1);
}

/* Dropdown catégories */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.shop-categories > li:hover .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 1.5rem;
}

.dropdown-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--shop-border);
}

.dropdown-section h4 {
    margin: 0;
    color: var(--shop-dark);
}

.view-all {
    color: var(--shop-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--shop-dark);
    border-radius: 6px;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--shop-light);
}

.dropdown-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.dropdown-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--shop-border);
    text-align: center;
}

.see-more {
    color: var(--shop-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Annonce boutique */
.shop-announcement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-announcement .badge {
    background: var(--shop-secondary);
    color: var(--shop-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* =========================================== */
/* CONTENU PRINCIPAL */
/* =========================================== */

/* Bannière promo */
.shop-banner {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Filtres rapides */
.shop-quick-filters {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.quick-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--shop-border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--shop-gray);
    font-size: 0.9rem;
}

.quick-filter-btn:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

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

/* Sections de produits */
.shop-section {
    margin: 3rem 0;
}

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

.section-header h2 {
    font-size: 1.8rem;
    color: var(--shop-dark);
    margin: 0;
}

.btn-link {
    color: var(--shop-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Grid de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cartes de produits */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.badge-new {
    background: var(--shop-success);
}

.badge-hot {
    background: var(--shop-accent);
}

.badge-sale {
    background: var(--shop-warning);
    color: var(--shop-dark);
}

.badge-out {
    background: var(--shop-gray);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--shop-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.action-btn:hover {
    background: var(--shop-primary);
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--shop-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

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

.product-title a {
    color: var(--shop-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--shop-primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.old-price {
    font-size: 1rem;
    color: var(--shop-gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--shop-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--shop-warning);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--shop-gray);
}

.product-stock {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.stock-in {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

/* Catégories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.category-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--shop-dark);
}

.category-count {
    color: var(--shop-gray);
    font-size: 0.9rem;
}

/* Features section */
.shop-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature i {
    font-size: 2.5rem;
    color: var(--shop-primary);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--shop-dark);
}

.feature p {
    color: var(--shop-gray);
    margin: 0;
}

/* =========================================== */
/* MODALS ET OVERLAYS */
/* =========================================== */

/* Modal panier */
.cart-mini {
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.cart-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--shop-border);
}

.cart-mini-header h3 {
    margin: 0;
    color: var(--shop-dark);
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--shop-gray);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--shop-dark);
}

.cart-mini-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-mini-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--shop-border);
}

.cart-mini-item:last-child {
    border-bottom: none;
}

.cart-mini-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--shop-dark);
}

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

.item-total {
    margin-left: auto;
    font-weight: 600;
    color: var(--shop-primary);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--shop-gray);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.more-items {
    text-align: center;
    padding: 0.75rem;
    color: var(--shop-gray);
    font-size: 0.9rem;
    background: var(--shop-light);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.cart-mini-footer {
    padding: 1rem;
    border-top: 1px solid var(--shop-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-total span:first-child {
    color: var(--shop-dark);
}

.cart-total strong {
    color: var(--shop-primary);
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Modal général */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================== */
/* RESPONSIVE DESIGN */
/* =========================================== */

@media (max-width: 992px) {
    .category-dropdown {
        width: 400px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-banner {
        padding: 2rem 1rem;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .shop-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shop-categories {
        width: 100%;
        justify-content: flex-start;
        gap: 0.25rem;
    }
    
    .shop-categories > li > a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .shop-search-container {
        width: 100%;
    }
    
    .category-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        z-index: 2000;
    }
    
    .dropdown-content {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .shop-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .cart-mini {
        width: 100%;
        height: 100vh;
        max-width: none;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.3s;
        border-radius: 0;
    }
    
    .cart-mini.open {
        transform: translateX(0);
    }
    
    .shop-announcement {
        justify-content: center;
    }
    
    .shop-announcement .badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .shop-top-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .shop-user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .shop-quick-filters {
        margin: 1rem 0;
    }
}

/* =========================================== */
/* UTILITAIRES */
/* =========================================== */

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-warning {
    background-color: var(--shop-warning);
    color: var(--shop-dark);
}

.badge-success {
    background-color: var(--shop-success);
    color: white;
}

.badge-danger {
    background-color: var(--shop-danger);
    color: white;
}

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

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--shop-primary-dark);
    border-color: var(--shop-primary-dark);
}

.btn-outline-light {
    color: white;
    background-color: transparent;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-warning {
    color: var(--shop-dark);
    background-color: var(--shop-secondary);
    border-color: var(--shop-secondary);
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alertes */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* =========================================== */
/* CORRECTIONS SPÉCIFIQUES */
/* =========================================== */

/* Menu horizontal avec scroll */
.shop-categories {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
    max-width: 100%;
}

.shop-categories::-webkit-scrollbar {
    height: 4px;
}

.shop-categories::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.shop-categories::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.shop-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Icône panier visible */
.shop-cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.shop-cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--shop-accent);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dropdown utilisateur visible */
.shop-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-cart-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid var(--shop-border);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--shop-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--shop-light);
    transition: all 0.3s;
}

.user-link:last-child {
    border-bottom: none;
}

.user-link:hover {
    background: var(--shop-light);
    color: var(--shop-primary);
}

.user-link i {
    width: 20px;
    text-align: center;
}

/* Formulaire de recherche amélioré */
.shop-search-container {
    position: relative;
    width: 300px;
    min-width: 200px;
}

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

.shop-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.shop-search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--shop-secondary);
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.2);
}

.shop-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
}

/* Modal panier amélioré */
#cartModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#cartModal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive menu */
@media (max-width: 768px) {
    .shop-user-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .shop-search-container {
        flex: 1;
        margin: 0 1rem;
    }
    
    .shop-categories {
        padding: 0.5rem 0;
    }
    
    .shop-categories li a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .shop-top-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shop-logo h1 {
        font-size: 1.5rem;
    }
    
    .shop-search-container {
        width: 100%;
        margin: 0;
    }
    
    .shop-user-actions {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* =========================================== */
/* CORRECTIONS POUR LE HEADER */
/* =========================================== */

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.shop-user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Container panier + utilisateur */
.shop-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icône panier visible */
.shop-cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.shop-cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--shop-accent);
    color: white;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Dropdown utilisateur visible */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--shop-border);
    margin-top: 10px;
}

.shop-cart-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--shop-dark);
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.user-link:last-child {
    border-bottom: none;
}

.user-link:hover {
    background: var(--shop-primary);
    color: white;
}

.user-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Bouton utilisateur dans la barre */
.btn-user {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* =========================================== */
/* NAVIGATION AMÉLIORÉE */
/* =========================================== */

.shop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    flex-wrap: wrap;
}

.shop-categories {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
    max-width: 70%;
}

.shop-categories::-webkit-scrollbar {
    height: 4px;
}

.shop-categories::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.shop-categories::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.shop-categories li {
    flex-shrink: 0;
}

.shop-categories li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
}

.shop-categories li a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.shop-categories li.active a {
    background: var(--shop-secondary);
    color: var(--shop-dark);
    font-weight: 600;
}

/* Annonce visible */
.shop-announcement {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(252, 209, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0); }
}

.shop-announcement .badge {
    background: var(--shop-secondary);
    color: var(--shop-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================== */
/* RECHERCHE AMÉLIORÉE */
/* =========================================== */

.shop-search-container {
    position: relative;
    width: 350px;
    min-width: 250px;
}

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

.shop-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.shop-search-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--shop-secondary);
    box-shadow: 0 0 0 4px rgba(252, 209, 22, 0.2);
}

.shop-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.shop-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Styles spécifiques pour le menu boutique */
.shop-categories > li.has-dropdown:hover .category-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

/* Icône panier visible */
.shop-cart-icon .fa-shopping-cart {
    display: inline-block !important;
    font-size: 1.2rem !important;
}

/* Compteur panier */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ce1126;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Corrections spécifiques pour le menu boutique */
.shop-categories > li.has-dropdown:hover .category-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.category-dropdown {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
}

/* Icône panier garantie visible */
.shop-cart-icon .fa-shopping-cart {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Correction pour Font Awesome */
.fa-shopping-cart:before {
    content: "\f07a" !important;
}

/* Style des liens dans le dropdown */
.dropdown-item:hover {
    background: #f8f9fa !important;
}

/* Responsive menu */
@media (max-width: 768px) {
    .shop-categories {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .shop-categories > li.has-dropdown .category-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 5px;
    }
}


/* Styles pour le menu déroulant des catégories */
.categories-dropdown-btn {
    transition: all 0.3s ease !important;
}

.categories-dropdown-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.categories-dropdown-content {
    animation: fadeIn 0.2s ease !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-item a {
    position: relative;
}

.category-item:hover > a {
    background: #f8f9fa !important;
    color: #007a3d !important;
}

.subcategories-container {
    animation: slideInRight 0.2s ease;
    border-left: 2px solid #007a3d;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Icône panier améliorée */
.shop-cart-icon {
    position: relative;
}

.shop-cart-icon:hover .fa-shopping-cart {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .shop-top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .shop-user-actions {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .shop-categories-dropdown,
    .shop-search-container {
        width: 100%;
        max-width: none !important;
    }
    
    .categories-dropdown-content {
        width: 100% !important;
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        height: 70vh;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
    }
    
    .subcategories-container {
        position: static !important;
    }
}

/* Styles améliorés pour le menu déroulant avec toutes les catégories */
.categories-dropdown-btn i.fa-chevron-down {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.categories-dropdown-content {
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

.categories-list::-webkit-scrollbar {
    width: 6px;
}

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

.categories-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.toggle-subcategories i {
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.subcategories-container {
    animation: fadeIn 0.2s ease-in-out !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
}

.subcategories-container[style*="display: block"] {
    max-height: 500px !important;
}

/* Effets visuels améliorés */
.category-main-link:hover {
    padding-left: 25px !important;
}

.category-main-link:hover i.fa-folder {
    transform: scale(1.1) !important;
    transition: transform 0.2s ease !important;
}

.product-count-badge {
    transition: all 0.3s ease !important;
}

.category-item:hover .product-count-badge {
    transform: scale(1.1) !important;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3) !important;
}

/* Responsive design amélioré */
@media (max-width: 1200px) {
    .shop-user-actions {
        flex-wrap: wrap;
        gap: 15px !important;
    }
    
    .shop-categories-dropdown {
        min-width: 200px !important;
    }
    
    .shop-search-container {
        max-width: 400px !important;
        margin: 0 10px !important;
    }
}

@media (max-width: 992px) {
    .shop-user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .shop-categories-dropdown,
    .shop-search-container,
    .shop-cart-wrapper {
        width: 100%;
        max-width: none !important;
    }
    
    .shop-search-container {
        margin: 10px 0 !important;
    }
    
    .categories-dropdown-content {
        width: 100% !important;
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        height: 85vh;
        max-height: 85vh !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        animation: slideUp 0.3s ease !important;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .categories-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .categories-footer {
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
}

@media (max-width: 576px) {
    .user-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-user span {
        display: none;
    }
    
    .btn-user {
        padding: 10px !important;
        min-width: 40px;
        justify-content: center;
    }
    
    .shop-announcement-bar span {
        flex-direction: column;
        gap: 5px !important;
    }
    
    .shop-announcement-bar span > span:not(:last-child)::after {
        content: "•";
        margin-left: 5px;
    }
}

/* Animation pour l'icône du panier */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.shop-cart-icon:hover .fa-shopping-cart {
    animation: cartPulse 0.5s ease;
}

/* Style pour le compteur de produits */
.product-count-badge {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}