@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
/* Product card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Product title styling */
.product-card h3 {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
/* Product image zoom effect */
product-card img {
    transition: transform 0.5s ease;
    transform-origin: center;
}
product-card:hover img {
    transform: scale(1.1);
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #7F5283;
    border-radius: 50%;
    cursor: pointer;
}

/* Active filter link */
.category-link.active {
    color: #7F5283;
    font-weight: 500;
    position: relative;
}

.category-link.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #7F5283;
    border-radius: 50%;
}
/* Category hover effect */
.category-item:hover img {
    transform: scale(1.1);
}

/* Related products container */
.related-product {
    overflow: hidden;
    position: relative;
}
.category-item:hover h3 {
    transform: translateY(0);
}

/* Smooth transitions */
a, button, .nav-link, .footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f472b6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec4899;
}
/* Animation pour le menu mobile */
#mobile-menu {
    overflow: hidden;
    max-height: 0; /* fermé par défaut */
    transition: max-height 0.3s ease-in-out;
}
#mobile-menu.open {
    max-height: 500px; /* assez grand pour contenir le menu */
}
/* Menu mobile redesign */
#mobile-menu {
    overflow: hidden;
    max-height: 0; /* fermé par défaut */
    transition: max-height 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.95); /* fond clair semi-transparent */
    border-radius: 1rem; /* coins arrondis */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ombre subtile */
    right: 0;
    top: calc(100% + 0.5rem); /* juste en dessous du bouton */
    width: 200px; /* largeur fixe */
    z-index: 20;
}

/* Ouvert */
#mobile-menu.open {
    max-height: 500px;
}

/* Liens du menu mobile */
#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #7F5283; /* violet du site */
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    border-radius: 0.5rem;
}

#mobile-menu a:hover {
    background-color: #fce7f3; /* rose très clair au hover */
    color: #a0529f; /* violet plus foncé au hover */
}

/* Icône menu / croix */
#menu-toggle i {
    color: #7F5283; /* violet */
    transition: transform 0.3s ease;
}

#menu-toggle.open i {
    transform: rotate(90deg); /* ou tu peux mettre une croix si tu veux */
}
