*{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

#addProductBtn{
    background-color: #da7b3f;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: auto;
    margin-top: 10px;
}

#logoutBtn{
    background-color: #ce1111;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: auto;
    margin-top: 10px;
    margin-left: 20px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Adjusted to a fixed width for better control */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.input-field, #dropZone, button {
    width: 100%; /* Full width of the modal content */
    padding: 10px;
    margin-bottom: 10px; /* Uniform spacing */
    box-sizing: border-box; /* Include padding in width */
}

.input-field {
    border: 1px solid #ccc; /* Add a border */
    border-radius: 4px; /* Rounded corners */
}

#dropZone {
    border: 2px dashed #ccc;
    height: 100px;
    text-align: center;
    line-height: 100px;
}

#dropZone.hover {
    background-color: #e9e9e9;
}

#imagePreview {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 50px;
}

.image-thumb {
    display: inline-block;
    margin: 5px;
    position: relative;
}

.image-thumb img {
    width: 100px; /* Fixed size */
    height: auto;
}

.remove-img {
    position: absolute;
    top: 0;
    right: 0;
    color: red;
    cursor: pointer;
}

.input-file-hidden {
    position: absolute;
    left: -9999px;
}


html{
    min-height: 100vh;
    position: relative;
}

header{
    display: flex;
    flex-direction: row;
    position: relative;
    background-color: #462812;
    width: 100%;
}

.headerDiv1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 15%;
    margin-left: 20px;
    /*background-color: #701414;*/
}

.headerDiv1 a{
    text-decoration: none;
    color: #000;
}

.cart-icon-container{
    position: absolute;
    display: flex;
    justify-content: right;
    width: 15%;
    right: 25px;
    /*background-color: #28a745;*/
}

.headerDiv1 .image-cart{
    height: 35px;
    width: 35px;
}

.headerDiv1 .image-logo{
    margin-left: 40px;
    width: 170px;
    text-align: center;
    margin-top: 10px;
    /*margin-bottom: 50px;*/
    /*position: absolute;*/
    /*left: 2%;*/
}

.headerDiv1 img:hover{
    cursor: pointer;
}

.headerDiv2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 70%;
    /*position: absolute;*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    gap: 70px;
    /*background-color: #28a745;*/
}

.cart-counter {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 100%;
    font-size: 15px;
    width: 20px;
    height: 20px;
}

.headerDiv2 a{
    text-decoration: none;
    color: #FF5303;
    font-size: 16px;
}

@media screen and (max-width: 950px) {
    header{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 125px;
        /*background-color: #701414;*/
    }
    .headerDiv1{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 125px;
        width: 100%;
        /*background-color: #701414;*/
    }
    .headerDiv1 .image-logo{
        margin-left: 0;
        width: 170px;
        text-align: center;
        margin-top: 10px;
        /*margin-bottom: 50px;*/
        /*position: absolute;*/
        /*left: 2%;*/
    }
    .headerDiv2{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 125px;
        width: 100%;
        /*background-color: #701414;*/
        gap: 25px;
    }
    .headerDiv2 a{
        text-decoration: none;
        color: #FF5303;
        font-size: 14px;
        text-align: center;
    }
}

@media screen and (max-width: 550px) {
    .cart-icon-container{
        right: 15px;
    }
    .headerDiv1 .image-cart{
        height: 25px;
        width: 25px;
    }
}

/*===================================================================================================================================*/
body{
    background-color: #f5ede4;
}
/*===================================================================================================================================*/

.bodySection1{
    width: 100%;
    height: 100px;
    display: flex; /* Ajout de cette ligne */
    flex-direction: row;
    justify-content: start;
    align-items: center;
    /*background-color: #da7b3f;*/
}

.bodySection1 h1{
    font-size: 20px;
    font-weight: 500;
    margin-left: 50px;
    /*background-color: #cccccc;*/
}

/*================================================================================================================*/
.sold-banner {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ef3d3d;
    color: white;
    padding: 5px;
    z-index: 1;
}

/*===================================================================================================================================*/

.bodySecion2{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.bodySecion2Container{
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap;
    gap: 20px;
    width: 95%;
    /*background-color: #da7b3f;*/
    margin-bottom: 125px;
    padding-bottom: 50px;
}

.objectContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    gap: 10px;
    width: 330px;
    /*background-color: #a63737;*/
    cursor: pointer;
}

.objectContainer h3{
    font-size: 20px;
    font-weight: 100;
}

.objectContainer p{
    font-size: 15px;
    font-weight: 100;
    margin-top: -10px;
}

.img{
    height: 450px;
    width: 330px;
    transition: transform 0.5s ease; /* Ajoute une transition pour un effet fluide */
}

.img:hover {
    transform: scale(1.02); /* Zoom de 10% sur l'image */
}

/*en dessous de 740px*/

@media screen and (max-width: 740px) {
    .bodySecion2Container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 95%;
        /*background-color: #da7b3f;*/
        margin-bottom: 125px;
        padding-bottom: 50px;
    }
}
/*======================================================================================================*/

.carouselContainer {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carouselContainer img {
    max-width: 100%;
    transition: transform 0.5s ease;
    display: block; /* ou inline-block selon votre mise en page existante */
}
/* ... Votre CSS existant ... */

/* Mettez à jour le CSS pour vos flèches */
.leftArrow, .rightArrow {
    z-index: 999; /* Assurez-vous que la flèche a une valeur z-index suffisamment élevée */
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    background-color: rgba(159, 159, 159, 0.5);
    color: white;
    padding: 10px;
    user-select: none; /* Empêche la sélection du texte sur les flèches */
}

/* Position spécifique pour les flèches */
.leftArrow {
    z-index: 999;
    left: 0;
}
.rightArrow {
    z-index: 999;
    right: 0;
}

.leftArrow:hover, .rightArrow:hover {
    background-color: rgba(159, 159, 159, 0.8);
}

/* Ajoutez du style pour le conteneur du carrousel pour gérer la position des flèches */
.objectContainer {
    position: relative; /* Position relative pour le conteneur d'objet pour positionner les flèches absolument par rapport à cela */
}

/* ... Le reste de votre CSS ... */

/* Keyframes pour l'animation de défilement vers la gauche */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 1;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyframes pour l'animation de défilement vers la droite */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 1;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Appliquer l'animation lors du changement de l'image */
.img-enter-from-left {
    animation: slideInFromLeft 0.7s forwards;
}

.img-enter-from-right {
    animation: slideInFromRight 0.7s forwards;
}



/*===================================================================================================================================*/

.popup-container {
    z-index: 9999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.4); /* Fond noir transparent */
}

.popup-content {
    width: 350px;
    height: auto;
    padding: 15px;
    background-color: #fefefe;
    /*margin: 15% auto; !* 15% du haut et centré horizontalement *!*/
    border: 1px solid #888;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /*margin-bottom: 500px;*/
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-img {
    margin-top: 15px;
    width: 100%; /* Ajustez selon vos besoins */
    height: auto;
}

/* Style pour le bouton 'Ajouter au panier' */
.button {
    margin-top: 20px;
    width: 100%;
    height: 50px;
    background-color: #da7b3f;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.button:hover {
    background-color: #d36b28;
}

input[type=number] {
    width: 50%; /* Ajustez selon la largeur désirée */
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Taille de la police */
    background-color: white;
    transition: border .3s, box-shadow .3s;
}

input[type=number]:hover {
    border-color: #888;
}

input[type=number]:focus {
    border-color: #333;
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
}

/*===================================================================================================================================*/



/* Style pour le panier déroulant */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Position de départ hors de l'écran */
    width: 400px;
    height: 100%;
    background-color: #f5ede4;
    box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s;
    z-index: 1000;
}

/*en dessous 425px*/
@media screen and (max-width: 400px) {
    .cart-drawer{
        width: 100%;
    }
}

.cart-drawer.open {
    right: 0; /* Position finale pour montrer le panier */
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #e3e3e3;
}

.close-cart-drawer {
    cursor: pointer;
    float: right;
    font-size: 24px;
}

.cart-items {
    overflow-y: auto;
    max-height: calc(100% - 160px); /* Ajuster en fonction de la hauteur du header/footer */
    padding: 20px;
}

.cart-drawer-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #e3e3e3;
    padding: 20px;
    background-color: #f5ede4;
}

/* Style pour le bouton du panier */
#cartButton {
    position: fixed;
    right: 10px;
    bottom: 10px;
    padding: 10px 20px;
    background-color: #da7b3f;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#cartButton:hover {
    background-color: #d36b28;
}

/*===================================================================================================================================*/

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #e3e3e3;
}

.cart-item-image img {
    width: 115px;
    height: 150px;
    margin-right: 20px;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-title {
    font-weight: bold;
}

.cart-item-price {
    font-size: 1.2em;
    color: #333;
}

.cart-item-quantity {
    display: flex;
    align-items: center; /* Cela centre verticalement les éléments enfants */
    /*background-color: #da7b3f;*/
}


.cart-item-quantity button {
    border: 1px solid #333;
    color: #000000; /* Pour un meilleur contraste du texte */
    height: 20px; /* Une hauteur fixe pour les boutons */
    width: 20px;
    display: flex;
    align-items: center; /* Centrer le contenu du bouton verticalement */
    justify-content: center; /* Centrer le contenu du bouton horizontalement */
    cursor: pointer;
}

.cart-item-quantity span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* Assurez-vous que la hauteur correspond à celle des boutons */
    margin: 0 10px;
}


.cart-item-remove {
    background: #d21616;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    padding: 10px 15px;
}

.cart-drawer-footer {
    margin-top: 20px;
}

.cart-drawer-footer button {
    /*width: 100%;*/
    /*padding: 20px 20px;*/
    /*background-color: #da7b3f;*/
    /*color: white;*/
    /*border: none;*/
    /*cursor: pointer;*/
    margin-top: 20px;
    width: 100%;
    height: 50px;
    background-color: #da7b3f;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.cart-drawer-footer button:hover {
    background-color: #d0631c;
}

.cart-total {
    position: absolute;
    top: 23px;
    right: 60px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}



/*===================================================================================================================================*/

footer{
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 125px;
    border-top: 1px solid #e3e3e3;
    bottom: 0;
    /*background-color: #da7b3f;*/
    /*background-color: #3d0f0f;*/
    background-color: #462812;
    color: #FF5303;
}

.leftSection{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    margin-left: 50px;
    /*background-color: #da7b3f;*/
}

.rightSection{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    margin-right: 25px;
    /*background-color: #da7b3f;*/
}

.rightSection img{
    margin-top: 5px;
    margin-left: 20px;
}

.rightSection img:hover{
    cursor: pointer;
}

@media screen and (max-width: 500px) {
    footer{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 125px;
        border-top: 1px solid #e3e3e3;
        /*background-color: #3d0f0f;*/
        gap: 25px;
    }
    .rightSection{
        margin-right: 0;
    }
    .leftSection{
        margin-left: 0;
    }
    .leftSection p{
        font-size: 12px;
    }
    .rightSection img{
        margin-left: 0;
    }
}

/*=================================================================================================================*/
