/* Appliquer le style WooCommerce image global pour les images du cart partout */
#offcanvas-cart img,
#offcanvas-cart .woocommerce img,
#offcanvas-cart .woocommerce-page img {
    height: auto !important;
    max-width: 100% !important;
}
/* Styles pour la barre de catégories */
.category-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
}
.category-scroll-container {
    display: flex;
    align-items: center;
    position: relative;
}
.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.category-scroll-container:hover .category-scroll-btn {
    opacity: 1;
    visibility: visible;
}
.category-scroll-btn:hover {
    background: #2A3E6A;
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.category-scroll-left {
    left: 10px;
}
.category-scroll-right {
    right: 10px;
}
.category-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 60px;
    scroll-behavior: smooth;
}
.category-list::-webkit-scrollbar {
    display: none;
}
.category-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.category-item:hover {
    background-color: #e9ecef;
    color: #2A3E6A;
    text-decoration: none;
}
.category-item img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.5rem;
}
/* Améliorer l'espacement de la navbar principale */
.main-navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}
.search-container {
    max-width: 600px;
    width: 100%;
}
/* Styles pour le menu mobile moderne */
.modern-mobile-menu {
    padding: 1rem;
}
.menu-section {
    margin-bottom: 2rem;
}
.menu-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.menu-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}
.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.menu-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #0d6efd;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.menu-card:hover::before {
    transform: scaleX(1);
}
.menu-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.2rem;
}
.menu-card img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}
.menu-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}
.menu-card-subtitle {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}
/* Responsive pour mobile */
@media (max-width: 768px) {
    .main-navbar .container {
        display: flex;
        justify-content: space-between;
    }
    .search-container {
        display: none;
    }
    .category-bar {
        display: none; /* Masquer la barre de catégories sur mobile */
    }
}
/* Ajuster le margin-top de la page pour compenser la hauteur supplémentaire */
#page.site {
    margin-top: 120px; /* Desktop : header + catégories */
}
@media (max-width: 768px) {
    #page.site {
        margin-top: 140px; /* Mobile : header avec recherche intégrée */
    }
}
/* Styles livraison offerte */
.free-shipping-progress .fsp-bar-bg {
    background: #e3e7f0;
}
.free-shipping-progress .fsp-bar-fill {
    background: #2A3E6A !important;
    border-radius: 9px !important;
}
.free-shipping-progress .fsp-label {
    color: #2A3E6A;
    font-weight: 500;
}
.free-shipping-progress .d-flex span {
    color: #2A3E6A;
    font-weight: 500;
}
