/* Sélecteur de langue stylisé */
.language-selector-wrapper {
    position: relative;
    display: inline-block;
}

#language-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #fcd34d;
    border-radius: 9999px;
    padding: 0.5rem 2.5rem 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #78350f;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#language-selector:hover {
    background-color: white;
    border-color: #b85e3a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#language-selector:focus {
    border-color: #b85e3a;
    box-shadow: 0 0 0 3px rgba(184, 94, 58, 0.2);
}

/* Option styles */
#language-selector option {
    background-color: white;
    color: #1f2937;
    padding: 0.5rem;
}

/* Animation de transition */
main {
    transition: opacity 0.3s ease;
}

/* Loading state */
.menu-loading {
    position: relative;
    overflow: hidden;
}

.menu-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Styles pour les cartes produits améliorés */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Lignes de description tronquées */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Effet de verre pour les badges */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Media queries pour le responsive */
@media (max-width: 640px) {
    .category-toggle h2 {
        font-size: 1.5rem;
    }
    
    .category-toggle .w-16 {
        width: 3rem;
        height: 3rem;
    }
}