
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

 .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Spinner End ***/

/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Owl carousel item styles */
.owl-carousel .item {
    background: #fff;
    border: 2px solid #9ed18a;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.owl-carousel .item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.owl-carousel .item h4 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.owl-carousel .item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.owl-carousel .item .price {
    font-size: 1rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.owl-carousel .item .badge {
    background-color: #28a745;
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.owl-carousel .item .btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #28a745;
    border-radius: 25px;
    background-color: #f8fafc;
    color: #28a745;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.owl-carousel .item .btn:hover {
    background-color: #28a745;
    color: #fff;
}

.owl-carousel .item .btn i {
    margin-right: 5px;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/*** Topbar Start ***/
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
}

.topbar {
    padding: 20px;
    border-radius: 230px 100px;
}

.topbar .top-info {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
}

.navbar {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}
/*** Navbar End ***/

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(248, 223, 173, 0.1), rgba(248, 223, 173, 0.1)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    background: linear-gradient(rgba(255, 181, 36, 0.7), rgba(255, 181, 36, 0.7));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 152px !important;
    }
}

@media (max-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}
/*** Hero Header end ***/


/*** featurs Start ***/
.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 120px;
    height: 120px;
}

.featurs .featurs-item .featurs-icon::after {
    content: "";
    width: 35px;
    height: 35px;
    background: var(--bs-secondary);
    position: absolute;
    bottom: -10px;
    transform: translate(-50%);
    transform: rotate(45deg);
    background: var(--bs-secondary);
    
}
/*** featurs End ***/


/*** service Start ***/
.service .service-item .service-content {
    position: relative;
    width: 250px; 
    height: 130px; 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/*** service End ***/


/*** Fruits Start ***/
.fruite .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: var(--bs-white) !important; 
}

.fruite .fruite-categorie .fruite-name {
    line-height: 40px;
}

.fruite .fruite-categorie .fruite-name a {
    transition: 0.5s;
}

.fruite .fruite-categorie .fruite-name a:hover {
    color: var(--bs-secondary);
}

.fruite .fruite-item {
    height: 100%;
    transition: 0.5s;
}
.fruite .fruite-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: 0.5s;
}

.fruite .fruite-item .fruite-img img:hover {
    transform: scale(1.3);
}
/*** Fruits End ***/


/*** vesitable Start ***/
.vesitable .vesitable-item {
    height: 100%;
    transition: 0.5s;
}

.vesitable .vesitable-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: 0.5s;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.2);
}

.vesitable .owl-stage {
    margin: 50px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev {
    position: absolute;
    top: -8px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;

}

.vesitable .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.vesitable .owl-nav .owl-next {
    position: absolute;
    top: -8px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.vesitable .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** vesitable End ***/


/*** Banner Section Start ***/
.banner .banner-btn:hover {
    background: var(--bs-primary);
}
/*** Banner Section End ***/


/*** Facts Start ***/
.counter {
    height: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.counter i {
    font-size: 60px;
    margin-bottom: 25px;
}

.counter h4 {
    color: var(--bs-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter h1 {
    margin-bottom: 0;
}
/*** Facts End ***/


/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** testimonial End ***/


/*** Single Page Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {background-color: var(--bs-primary)}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Single Page End ***/


/*** Footer Start ***/
.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}
/*** Footer End ***/
@media (max-width: 576px) {
    .owl-carousel .item {
        flex: 0 0 calc(50% - 10px); /* Chaque produit occupe 50% de la largeur */
        max-width: calc(50% - 10px);
        margin: 5px; /* Espace entre les produits */
        box-sizing: border-box; /* Inclut les marges/paddings dans la largeur */
    }

    .owl-carousel {
        display: flex; /* Utilise flexbox pour organiser les items */
        flex-wrap: wrap; /* Permet aux produits de passer à la ligne */
        justify-content: space-between; /* Ajoute un espace équilibré entre les produits */
    }
}
/* Style de la sidebar */
/* Animation pour l'ouverture du panier */



.cart-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -100%; /* Initialement masqué sur la droite */
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.5s ease; /* Animation fluide pour l'ouverture */
}

/* Quand le panier est visible */
.cart-sidebar.show {
    right: 0; /* Affichage du panier en glissant vers la gauche */
}

/* Style du bouton du panier */
/* Style du bouton avec fond blanc, cadre vert et coins arrondis */
.cart-button {
    background-color: white;
    border: 2px solid #28a745; /* Bordure verte */
    color: #28a745; /* Texte vert */
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px; /* Coins arrondis */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Effet de survol du bouton */
.cart-button:hover {
    background-color: #28a745; /* Fond vert lors du survol */
    color: white; /* Texte blanc */
    border: 2px solid #28a745;
}


/* Panier avec contenu */
.sidebar-content {
    display: flex;
    flex-direction: column;
}

#cart-item {
    margin-bottom: 20px;
}

/* Animation pour afficher le panier avec un fond transparent */
.cart-sidebar .sidebar-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cart-sidebar.show .sidebar-content {
    opacity: 1;
}




.sidebar-content {
    display: flex;
    flex-direction: column;
}

#cart-item {
    margin-bottom: 20px;
}

button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}
.sidebar {
    width: 50%; /* Prend toute la largeur de l'écran */
    height: 100%; /* Prend toute la hauteur de l'écran */
    position: fixed; /* Positionne la sidebar de manière fixe */
    top: 0;
    right: -100%; /* Initialement masquée sur la droite */
    background-color: rgb(255, 255, 255); /* Fond semi-transparent */
    color: rgb(0, 0, 0);
    padding: 20px;
    transition: right 0.3s ease; /* Animation pour l'ouverture */
    z-index: 9999; /* Assure que la sidebar est au-dessus des autres éléments */
    overflow-y: auto; /* Permet de faire défiler le contenu si nécessaire */
}

.sidebar.open {
    right: 0; /* Affiche la sidebar */
}

button {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    background-color: #45a049;
    color: white;
    border: none;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}


/* Style du bouton panier */

/* Style du bouton avec fond blanc, cadre vert et coins arrondis */
.cart-button {
    background-color: white;
    border: 2px solid #ffb524b3; /* Bordure verte */
    color: #28a745; /* Texte vert */
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px; /* Coins arrondis */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; /* Utilisation de flex pour aligner l'icône et le texte */
    align-items: center; /* Centrer l'icône et le texte verticalement */
    text-align: center; /* Centrer le texte */
}

/* Effet de survol du bouton */
.cart-button:hover {
    background-color: #ffb524b3; /* Fond vert lors du survol */
    color: white; /* Texte blanc */
    border: 2px solid #ffb524b3;
}

/* Espacement entre l'icône et le texte */
.cart-button i {
    margin-right: 8px; /* Espacement entre l'icône et le texte */
}


/* Style du cercle vert pour fermer la sidebar */
#closeSidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
}

#closeSidebar:hover {
    background-color: #9e9e9e;
}

/* Style des éléments du panier dans la sidebar */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 5px;
}

.product-details {
    flex-grow: 1;
    font-size: 14px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-button {
    background-color: #cdcbc9;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    
}

.quantity-button:hover {
    background-color: #ec971f;
}

.quantity-display {
    font-size: 14px;
}

.remove-button {
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.remove-button:hover {
    background-color: #b5b5b5;
}

/* Style pour les boutons - et + (cercles) */
.quantity-circle {
    background-color: #f0ad4e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-circle:hover {
    background-color: #ec971f;
}

/* Style pour le bouton X (cercle rouge pour supprimer) */
.remove-circle {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-circle:hover {
    background-color: #c82333;
}

/* Style de l'élément du panier */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Image du produit */
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

/* Détails du produit */
.product-details {
    flex-grow: 1;
    font-size: 14px;
}

/* Wrapper pour la quantité */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Affichage de la quantité */
.quantity-display {
    font-size: 14px;
}
/* Style des icônes dans des cercles */
.icon-circle {
    background-color: #cfcfcf;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 18px; /* Taille de l'icône */
}

.icon-circle:hover {
    background-color: #cfcfcf;
}

/* Style pour le bouton X (cercle rouge pour supprimer) */
.icon-circle.remove {
    background-color: #dc3545;
}

.icon-circle.remove:hover {
    background-color: #c82333;
}

/* Style de l'élément du panier */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

/* Image du produit */
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

/* Détails du produit */
.product-details {
    flex-grow: 1;
    font-size: 14px;
}

/* Wrapper pour la quantité */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 90px; /* Fixer la largeur minimale pour éviter les déplacements */
}

/* Affichage de la quantité */
.quantity-display {
    font-size: 14px;
    width: 30px; /* Fixer une largeur fixe pour éviter les déplacements */
    text-align: center; /* Centrer le nombre */
}

/* Ajuster l'espace entre les boutons et la quantité */
.quantity-wrapper .icon-circle {
    width: 30px;
    height: 30px;
    font-size: 18px; /* Garder une taille d'icône fixe */
}
.icon-circle-rm {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 18px; /* Taille de l'icône */
}

.icon-circle-rm:hover {
    background-color: #cfcfcf;
}
