/* Reset and Base Styles */

@font-face {
    font-family: 'solitus'; /* Name of the font */
    src: 
         url('assets/Solitus.ttf') format('woff'); /* Add other formats if available */
    font-weight: normal; /* Specify the font weight */
    font-style: normal; /* Specify the font style */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: solitus;
    font-size: large;
}

@keyframes zoomBackground {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px; /* Compenser la navbar fixe */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/téléchargement.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: zoomBackground 20s ease-in-out infinite;
    opacity: 0.8;
}

/* Header and Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: black;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    text-align: center;
    color: #fff;
}

.nav-center h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.nav-center p {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nav-link, .cart-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-link:hover, .cart-link:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px; /* Commence sous la navbar */
    right: 20px;
    width: 280px;
    max-height: 400px;
    background-color: #000;
    z-index: 1000;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    animation: slideInMenu 0.3s ease-out;
}

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

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 16px;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.mobile-menu .cart-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .cart-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.mobile-menu .cart-count {
    position: static;
    display: inline-block;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    height: auto; /* Permettre au conteneur de s'adapter au contenu */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    height: 40vh; /* Optimiser la hauteur de l'image sur mobile et tablette */
    width: 100%;
    background-image: url('assets/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Products Section */
.products {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    background-color: transparent;
}

.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
    
}

.product-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
    width: fit-content;
}

.product-slide {
    flex: 0 0 300px;
    margin: 0 20px;
    text-align: center;
   

}

.product-slide img:hover{
    scale: 1.2
}

.product-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-slide h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

.product-slide .price {
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: bold;
}

.slider-nav-container {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 40px;
}

.slider-nav {
    width: 50px;
    height: 50px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #000;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.slider-nav:hover {
    background-color: #333;
}

.slider-nav.prev {
    position: static;
    transform: none;
}

.slider-nav.next {
    position: static;
    transform: none;
}

.slider-nav i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .slider-nav-container {
        padding: 15px 20px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .slider-nav i {
        font-size: 1.2rem;
    }
}

/* Newsletter Section */
.newsletter {
    background-color: transparent;
    padding: 4rem 5%;
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    padding: 0.8rem;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newsletter-form button {
    padding: 12px 32px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #d6c4ab;
}

.newsletter-form button:hover {
    background-color: #333;
}

/* Footer */
footer {
    color: black;
    padding: 4rem 5% 2rem;
    
}
.footer-logo-container {
    text-align: center; /* Center the content */
    margin-bottom: 20px; /* Space below the logo */
}

.footer-logo {
    max-width: 100%; /* Ensure it doesn't exceed the container width */
    height: auto; /* Maintain aspect ratio */
}

@media (max-width: 768px){
    .footer-logo {
        
        margin-top: 10px; /* Add some space above the logo */
        max-width: 80%; /* Ensure it doesn't exceed the container width */
        height: auto; /* Maintain aspect ratio */
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: black;
}

.social-links {
    display: flex;
    gap: 1rem;
   
}

.social-links a {
    font-size: 30px; /* Increase the size of the icons */
    margin: 0 10px; /* Space between icons */
    color: #000; /* Change color if needed */
    transition: transform 0.3s; /* Add a transition for hover effect */
}

.social-links a:hover {
    transform: scale(1.2); /* Slightly increase size on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-left, .nav-right {
        display: none;
    }

    .nav-center {
        flex: 1;
        font-size: 0.8rem; /* Adjusted for smaller screens */
    }

    .nav-center h1 {
        font-size: 1.8rem; /* Adjusted for smaller screens */
        margin-bottom: 0.2rem;
    }

    .nav-center p {
        font-size: 0.7rem; /* Adjusted for smaller screens */
        letter-spacing: 1px;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu.active {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background-color: #fff;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background-color: #fff;
    }

    .product-track {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 0 1rem;
    }

    .admin-header h1 {
        font-size: 1.8rem; /* Adjusted for smaller screens */
    }

    .admin-header p {
        font-size: 0.9rem; /* Adjusted for smaller screens */
    }

    .admin-tabs {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Stretch buttons to full width */
        padding: 0 10px; /* Add some horizontal padding */
    }

    .tab-button {
        width: 100%; /* Full width for stacked buttons */
        margin-bottom: 8px; /* Add space between stacked buttons */
        font-size: 0.9rem; /* Adjust font size */
        padding: 10px 15px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .nav-center h1 {
        font-size: 1.4rem;
    }

    .nav-center p {
        font-size: 0.7rem;
    }

    .product-track {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 300px;
    }
    
    .hamburger {
        padding: 10px;
    }
    
    .hamburger span {
        width: 24px;
        height: 2px;
    }
    
    body {
        padding-top: 70px; /* Réduire le padding pour les petits écrans */
    }
    
    .navbar {
        padding: 8px 10px;
    }

    .admin-header h1 {
        font-size: 1.5rem; /* Further adjustment for very small screens */
    }

    .admin-header p {
        font-size: 0.8rem; /* Further adjustment for very small screens */
    }

    .tab-button {
        font-size: 0.85rem; /* Further adjustment for very small screens */
        padding: 8px 12px; /* Further adjustment for very small screens */
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Featured Products Section */
@keyframes shine-animation {
    0% {
        left: -50%; /* Commence le reflet loin à gauche */
    }
    100% {
        left: 150%; /* Termine le reflet loin à droite */
    }
}

.featured-products {
    position: relative;
    padding: 5px 10px; /* Réduction du padding vertical pour rendre le conteneur plus court */
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 50px auto;
    max-width: 90%;
    text-align: center;
    z-index: 2;
    transition: all 0.4s ease-in-out, box-shadow 0.6s ease-in-out;
    overflow: hidden;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%; /* Position de départ pour l'animation */
    width: 60%; /* Largeur du reflet, légèrement plus grande */
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg); /* Angle du reflet */
    pointer-events: none;
    z-index: 3;
    animation: shine-animation 4s linear infinite; /* Animation automatique et en boucle */
}

.featured-products:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
                0 0 30px rgba(255, 255, 255, 0.8) inset;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.featured-products h2 {
    font-size: 4rem;
    margin-bottom: 20px; /* Ajuster la marge pour le nouveau padding */
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.featured-products .product-grid {
    display: flex; /* Utiliser flexbox pour centrer */
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    gap: 0; /* Pas de gap si un seul produit */
    margin: 0 auto; /* Centrer le grid lui-même */
    max-width: 800px; /* Limiter la largeur pour un meilleur contrôle */
    padding: 20px;
    /* background-color: rgba(255,255,255,0.8); /* Optionnel: ajouter un fond léger pour le conteneur */
    /* border-radius: 15px; */
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
}

.featured-products .product-item {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2); /* Fond blanc translucide */
    backdrop-filter: blur(10px) saturate(180%); /* Effet de verre dépoli */
    -webkit-backdrop-filter: blur(10px) saturate(180%); /* Pour compatibilité WebKit */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Bordure translucide */
    border-radius: 15px; /* Arrondir les coins un peu plus */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: all 0.4s ease-in-out; /* Transition plus fluide pour tous les effets */
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-item:hover {
    transform: translateY(-10px) scale(1.03); /* Mouvement plus prononcé au survol */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), /* Ombre plus intense */
                0 0 20px rgba(255, 255, 255, 0.7) inset; /* Lueur intérieure pour l'effet liquide */
    background: rgba(255, 255, 255, 0.3); /* Légèrement plus opaque au survol */
}

.logo-background {
    position: relative;
    width: 100%;
    height: 200px; /* Définir une hauteur fixe pour le conteneur du logo */
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8) rotate(0deg); /* Taille initiale et rotation */
    width: 100%; /* Permettre au logo de prendre plus de place */
    height: 100%; /* Assurer qu'il s'adapte à la hauteur du conteneur */
    object-fit: contain; /* Empêcher la déformation */
    opacity: 0; /* Initialement transparent */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition plus longue pour l'animation */
    z-index: 0; /* Assurer qu'il est en arrière-plan */
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease; /* Harmoniser la transition avec le logo */
}

.product-item:hover .background-logo {
    opacity: 0.15; /* Opacité légèrement plus visible au survol */
    transform: translate(-50%, -50%) scale(1) rotate(5deg); /* Agrandir et faire pivoter au survol */
}

.logo-background:hover .product-image {
    transform: scale(0.95); /* Réduire légèrement l'image du produit au survol */
}

.featured-products h3 {
    font-size: 1.8rem;
    color: #000000; /* Black color for product name */
    margin: 15px 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
}

.featured-products .price {
    font-size: 1.5rem;
    color: #e74c3c; /* Red color for price */
    font-weight: bold;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .featured-products .product-grid {
        flex-direction: column;
        align-items: center;
    }
    .featured-products .product-item {
        width: 90%;
        /* Assurer que l'effet verre liquide est appliqué sur tablette */
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .logo-background {
        height: 150px; /* Ajuster la hauteur sur tablette */
    }
    .featured-products h2 {
        font-size: 8px; /* Réduire la taille de la police pour mobile */
        line-height: 1.1; /* Réduire l'espacement entre les lignes */
        margin-bottom: 5px; /* Ajuster la marge */
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding: 20px 0;
        /* Réappliquer les propriétés de l'effet verre liquide sur mobile */
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px) saturate(150%);
        -webkit-backdrop-filter: blur(8px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        margin: 20px auto; /* Ajuster la marge pour le mobile */
        max-width: 95%; /* Assurer une bonne largeur sur mobile */
    }
    .featured-products h2 {
        font-size: 13px; /* Taille de police spécifiée pour les mobiles */
        line-height: 1; /* Encore plus compact */
        margin-bottom: 0px;
    }
    .featured-products .product-grid {
        gap: 20px;
    }
    .featured-products .product-item {
        width: 100%;
        /* Assurer que l'effet verre liquide est appliqué sur mobile */
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .logo-background {
        height: 120px; /* Ajuster la hauteur sur mobile */
    }
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Commence hors de l'écran */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transition: right 0.3s ease-in-out; /* Animation pour glisser */
}

.cart-panel.active {
    right: 0; /* Affiche le panier */
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible; /* Affiche l'overlay */
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    cursor: pointer;
    width: 60px;
}

.cart-items {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid #eee;
}

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

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #444;
}

/* Mobile Responsive Cart */
@media (max-width: 480px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    display: none;
}

.cart-count.active {
    display: block;
}

/* Hamburger Menu */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    
    .nav-left, .nav-right {
        display: none;
    }
    
    .nav-center {
        flex: 1;
    }
}

/* Product Details Page */
.product-details {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px; /* Reduced space for fixed navbar */
}

.product-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.product-images {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 120px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-image,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain for better product visibility */
    display: block;
    max-width: 100%;
    max-height: 100%;
    /* S'assurer qu'aucune transition ou transformation ne se produit */
    transition: none !important;
    transform: none !important;
}

/* Suppression de tout effet hover résiduel sur les images de product-detail */
.main-image:hover,
.product-image:hover {
    transform: none !important;
    box-shadow: none !important;
}

.product-info {
    flex: 1;
    padding: 1rem;
    max-width: 500px;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.price-info {
    margin-bottom: 2rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.tax-info {
    font-size: 0.9rem;
    color: #666;
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

#quantity {
    width: 60px;
    text-align: center;
    border: 3px solid black;
    padding: 0.8rem;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 2rem;
}

.add-to-cart-btn:hover {
    background: #444;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #666;
}

.shipping-info {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.delivery-time {
    margin-bottom: 1rem;
    color: #666;
}

.shipping-countries {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-details {
        padding: 1rem;
        margin-top: 10px;
    }
    
    .product-container {
        flex-direction: column;
        gap: 2rem;
    }

    .product-images {
        max-width: 100%;
        width: 100%; /* Ensure it takes full width */
        position: static;
    }
    
    .main-image-container {
        aspect-ratio: auto;
        min-height: 300px;
        max-height: 400px;
        width: 100%; /* Ensure it takes full width */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-image,
    .product-image {
        max-height: 350px;
        width: auto; /* Allow image to size naturally within flex container */
        height: auto;
        object-fit: contain;
    }
    
    .product-info {
        max-width: 100%;
        padding: 0;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        min-height: 250px;
        max-height: 300px;
        width: 100%; /* Ensure it takes full width */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-image,
    .product-image {
        max-height: 280px;
        width: auto; /* Allow image to size naturally within flex container */
        height: auto;
        object-fit: contain;
    }
}

/* Base button styles */
button, 
.checkout-btn,
.newsletter-form button,
.add-to-cart-btn{
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 3px;
    border: 1px solid #000;
    background-color: transparent;
    box-shadow: 4px 4px 0px #000000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-nav {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid #000;
    background-color: transparent;
    box-shadow: 4px 4px 0px #000000;
    
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
button:hover,
.checkout-btn:hover,
.newsletter-form button:hover,
.add-to-cart-btn:hover,

.slider-nav:hover {
   
    transform: translate(2px, 2px);
    box-shadow: none;
    background: transparent;
}

/* Active effect */


/* Newsletter form button specific */
.newsletter-form button {
    padding: 12px 32px;
}

/* Close cart button exception */
.close-cart {
    background: none;
    box-shadow: none;
    color: #333;
    padding: 0;
}

.close-cart:hover {
    background: none;
    box-shadow: none;
    transform: scale(1.1);
}

.close-cart:active {
    transform: scale(0.9);
}

/* Quantity buttons exception */


/* Mobile adjustments */
@media (max-width: 768px) {
    button,
    .checkout-btn,
    .newsletter-form button,
    .add-to-cart-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .slider-nav i {
        font-size: 1.2rem;
    }
}

/* Supprimer la décoration des liens */
a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Utilise la couleur du texte par défaut */
}

.video-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Optimisation de la hauteur de la vidéo */
    overflow: hidden;
   
}

.video-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1; /* Ensure video is behind other content */
}

@media (max-width: 480px) {
    .video-section {
        height: 40vh; /* Ajuster la hauteur de la vidéo pour les très petits mobiles */
    }
}

.overlay-content {
    position: relative;
    z-index: 1; /* Ensure content is above the video */
    color: white; /* Change text color for visibility */
    text-align: center; /* Center the text */
    padding: 20px; /* Add some padding */
}

.size-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.size-button {
    padding: 10px 20px;
    border: 1px solid #000; /* Border color */
    background-color: #fff; /* Background color */
    cursor: pointer;
    transition: background-color 0.3s;
}

.size-button:hover {
    background-color: #f0f0f0; /* Change background on hover */
}

.size-button.active {
    background-color: #000; /* Active button color */
    color: #fff; /* Active text color */
}

/* Size Selection Styles */
.size-selection {
    margin: 20px 0;
}

.size-selection h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.size-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.size-button {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 50px;
}

.size-button:hover {
    border-color: #000;
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.size-button.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.selected-size {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.selected-size span {
    font-weight: bold;
    color: #000;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.add-to-cart-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading-spinner i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.loading-spinner p {
    margin: 0;
    font-weight: 500;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 16px;
}

.error-message i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Product Grid Loading State */
.product-grid.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Track Loading State */
.product-track.loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Amélioration pour mobile */
@media (max-width: 768px) {
    .product-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        max-height: 300px;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .logo-background {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 250px;
        background: transparent;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .background-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
        opacity: 0.1;
        z-index: 0;
    }
}

@media (max-width: 480px) {
    .product-image {
        max-height: 250px;
    }
    
    .logo-background {
        min-height: 200px;
        padding: 0.5rem;
    }
}

/* Image Gallery Styles for Product Detail */
/* Main image container */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Navigation buttons for multiple images */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 4px 4px 0px #000000;
    font-weight: bold;
}

.image-nav-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.image-nav-btn:active {
    background: #000;
    color: #fff;
    transform: translateY(-50%) translate(4px, 4px);
    box-shadow: none;
}

.image-nav-btn.prev-btn {
    left: 15px;
}

.image-nav-btn.next-btn {
    right: 15px;
}

.image-nav-btn i {
    font-size: 18px;
    font-weight: bold;
}

/* Image counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #000000;
}

/* Thumbnail gallery */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

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

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    border-color: #333;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .main-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 20px;
        display: flex; /* Utilisation de flexbox pour centrer */
        justify-content: center; /* Centrer horizontalement */
        align-items: center; /* Centrer verticalement */
    }
    
    .product-image {
        max-width: 100%;
        height: auto;
        object-fit: contain; /* Assure que l'image s'adapte sans être coupée */
    }

    .image-nav-btn {
        width: 45px;
        height: 45px;
        border-width: 2px;
        box-shadow: 3px 3px 0px #000000;
        display: flex !important; /* Force l'affichage sur mobile */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .image-nav-btn:hover {
        background: #000;
        color: #fff;
        transform: translateY(-50%) translate(1px, 1px);
        box-shadow: 2px 2px 0px #000000;
    }
    
    .image-nav-btn:active {
        background: #000;
        color: #fff;
        transform: translateY(-50%) translate(3px, 3px);
        box-shadow: none;
    }
    
    .image-nav-btn i {
        font-size: 16px;
    }
    
    .image-nav-btn.prev-btn {
        left: 8px;
    }
    
    .image-nav-btn.next-btn {
        right: 8px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
        border-width: 2px;
        box-shadow: 2px 2px 0px #000000;
        display: block !important; /* Force l'affichage sur mobile */
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-gallery {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 20px;
        display: flex; /* Utilisation de flexbox pour centrer */
        justify-content: center; /* Centrer horizontalement */
        align-items: center; /* Centrer verticalement */
    }
    
    .product-image {
        max-width: 100%;
        height: auto;
        object-fit: contain; /* Assure que l'image s'adapte sans être coupée */
    }

    .image-nav-btn {
        width: 40px;
        height: 40px;
        border-width: 2px;
        box-shadow: 2px 2px 0px #000000;
        display: flex !important; /* Force l'affichage sur mobile */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .image-nav-btn:hover {
        background: #000;
        color: #fff;
        transform: translateY(-50%) translate(1px, 1px);
        box-shadow: 1px 1px 0px #000000;
    }
    
    .image-nav-btn:active {
        background: #000;
        color: #fff;
        transform: translateY(-50%) translate(2px, 2px);
        box-shadow: none;
    }
    
    .image-nav-btn i {
        font-size: 14px;
    }
    
    .image-nav-btn.prev-btn {
        left: 5px;
    }
    
    .image-nav-btn.next-btn {
        right: 5px;
    }
    
    .image-counter {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 11px;
        border-width: 2px;
        box-shadow: 2px 2px 0px #000000;
        display: block !important; /* Force l'affichage sur mobile */
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .thumbnail-gallery {
        gap: 6px;
    }
}

/* Base button styles */


/* Admin Styles - Commandes et Statuts */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.orders-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.orders-filters select,
.orders-filters input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.order-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-customer-info {
    margin-bottom: 1rem;
}

.customer-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.customer-email,
.customer-phone {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-size {
    color: #666;
    font-size: 0.9rem;
}

.item-quantity {
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    font-weight: bold;
    color: #333;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-weight: bold;
    font-size: 1.1rem;
}

.order-status {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem; /* Réduit l'espace entre le texte et les boutons */
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur les petits écrans */
}

.status-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.status-button:hover {
    background: #f8f9fa;
}

.status-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.status-button.confirmed {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.status-button.shipped {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.status-button.delivered {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.status-button.cancelled {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.status-button.pending {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.shipped {
    background: #fff3cd;
    color: #856404;
}

.status-badge.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.pending {
    background: #e2e3e5;
    color: #383d41;
}

/* Enhanced Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card:nth-child(6) .stat-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard Details */
.dashboard-details {
    margin-bottom: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-content {
    max-height: 300px;
    overflow-y: auto;
}

.order-item,
.product-item,
.period-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child,
.product-item:last-child,
.period-item:last-child {
    border-bottom: none;
}

.order-amount,
.product-sales,
.period-amount {
    font-weight: bold;
    color: #333;
}

.product-name,
.period-name {
    color: #666;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading i {
    margin-right: 0.5rem;
}

/* Responsive Design for Admin */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .orders-filters {
        flex-direction: column;
    }
    
    .status-selector {
        flex-wrap: wrap;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }
    
    .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .admin-container {
        padding: 1rem;
    }

    .admin-tabs {
        gap: 0.25rem;
    }

    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack form fields vertically on smaller screens */
        gap: 1rem;
    }

    .stock-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .admin-header h1 {
        font-size: 2rem;
    }
    
    .admin-header p {
        font-size: 1rem;
    }

    .admin-tabs {
        gap: 0.25rem;
        padding: 3px;
    }

    .tab-button {
        flex: 1;
        min-width: unset;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px;
    }

    .nav-center h1 {
        font-size: 1.2rem;
    }

    .nav-center p {
        font-size: 0.7rem;
    }

    .admin-container {
        padding: 0.5rem;
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .admin-header p {
        font-size: 0.8rem;
    }

    .tab-button {
        flex: 1; /* Assure une distribution égale de l'espace */
        min-width: unset; /* Annule le min-width par défaut pour permettre le rétrécissement */
        padding: 0.2rem 0.3rem; /* Réduit le padding pour plus d'espace */
        font-size: 0.65rem;
        white-space: normal;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .detail-grid,
    .orders-grid,
    .admin-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 0.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .stat-icon i {
        font-size: 0.9rem;
    }

    .order-card,
    .admin-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }

    .stat-label {
        font-size: 0.5rem;
        line-height: 1;
        overflow-wrap: break-word;
    }

    .detail-section h3 {
        font-size: 1rem;
    }

    .order-header,
    .order-customer-info,
    .order-items,
    .order-total {
        font-size: 0.9rem;
    }

    .status-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .admin-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem;
    }

    .detail-content {
        max-height: 200px; /* Réduire la hauteur maximale pour les petits écrans */
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.4rem 0;
    }

    .item-details {
        width: 100%;
    }

    .item-price {
        text-align: right;
        width: 100%;
    }

    .status-selector {
        flex-direction: column;
        gap: 0.3rem;
    }

    .status-button {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .admin-header p {
        font-size: 0.7rem;
    }

    .tab-button {
        padding: 0.2rem 0.3rem;
        font-size: 0.6rem;
        white-space: normal;
    }
}

/* Admin Card Styles */
.admin-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.admin-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.stock-info {
    margin-bottom: 15px;
    font-size: 1rem;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

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

.total-stock {
    font-weight: bold;
    margin-top: 10px;
    color: #007bff;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.admin-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.admin-button.success {
    background-color: #28a745;
}

.admin-button.success:hover {
    background-color: #218838;
}

.admin-button.danger {
    background-color: #dc3545;
}

.admin-button.danger:hover {
    background-color: #c82333;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.file-upload {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

.file-upload-label:before {
    content: 'Glisser-déposer ou cliquer pour sélectionner des images';
}

.file-upload-label:hover {
    color: #007bff;
}

.file-upload-label i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 10px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stock-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
}

.stock-input label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.stock-input input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
}

.status-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    font-size: 0.85rem;
}

.status-indicator.status-instock {
    background-color: #28a745;
}

.status-indicator.status-lowstock {
    background-color: #ffc107;
}

.status-indicator.status-outofstock {
    background-color: #dc3545;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-header h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tab-button.active {
    background-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

