
/*** Company Color Palette Override ***/
:root {
    --bs-primary:       #1b3b23;
    --bs-primary-rgb:   27, 59, 35;
    --bs-secondary:     #6c451c;
    --bs-secondary-rgb: 108, 69, 28;
    --bs-light:         #eddcb0;
    --bs-light-rgb:     237, 220, 176;
    --bs-dark:          #1a1a1a;
    --bs-dark-rgb:      26, 26, 26;
    --rmdn-cream:       #eddcb0;
    --rmdn-brown:       #6c451c;
    --rmdn-green:       #1b3b23;
}

/* Primary utility overrides */
.bg-primary        { background-color: #1b3b23 !important; }
.text-primary      { color: #1b3b23 !important; }
.border-primary    { border-color: #1b3b23 !important; }
.btn-primary       { background-color: #1b3b23 !important; border-color: #1b3b23 !important; color: #eddcb0 !important; }
.btn-primary:hover { background-color: #6c451c !important; border-color: #6c451c !important; color: #eddcb0 !important; }

/* Secondary utility overrides */
.bg-secondary        { background-color: #6c451c !important; }
.text-secondary      { color: #6c451c !important; }
.border-secondary    { border-color: #6c451c !important; }
.btn-secondary       { background-color: #6c451c !important; border-color: #6c451c !important; color: #eddcb0 !important; }
.btn-secondary:hover { background-color: #1b3b23 !important; border-color: #1b3b23 !important; color: #eddcb0 !important; }

/* Light utility overrides */
.bg-light   { background-color: #f7f0e0 !important; }
.text-light { color: #eddcb0 !important; }

/* Outline secondary button */
.btn-outline-secondary         { border-color: #6c451c !important; color: #6c451c !important; }
.btn-outline-secondary:hover   { background-color: #6c451c !important; color: #eddcb0 !important; }

/* Navbar active/hover link color */
.nav-link.active, .nav-link:hover { color: #1b3b23 !important; }

/* Topbar background */
.topbar { background-color: #1b3b23 !important; }

/* Footer dark background */
.footer.bg-dark, .copyright.bg-dark, .bg-dark { background-color: #111a0f !important; }

/* Hero header gradient tinted with cream */
.hero-header {
    background: linear-gradient(rgba(237, 220, 176, 0.15), rgba(237, 220, 176, 0.15)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Carousel button overlay color */
.carousel-item a {
    background: linear-gradient(rgba(108, 69, 28, 0.7), rgba(108, 69, 28, 0.7));
}

/* Banner section */
.container-fluid.banner.bg-secondary { background-color: #6c451c !important; }

/* Dropdown menu items hover */
.dropdown .dropdown-menu a:hover { background: #6c451c; color: #eddcb0; }

/* Nav pill active tab */
.fruite .tab-class .nav-item a.active { background: #6c451c !important; }
.fruite .tab-class .nav-item a.active span { color: #eddcb0 !important; }

/* Footer link hover */
.footer .footer-item .btn-link:hover { color: #eddcb0 !important; }

/* btn border-secondary hover */
.btn.border-secondary:hover { background: #6c451c !important; color: #eddcb0 !important; }

/* Counter headings */
.counter h4 { color: #1b3b23; }

/* Testimonial & vegetable owl-nav */
.testimonial .owl-nav .owl-prev:hover,
.testimonial .owl-nav .owl-next:hover,
.vesitable .owl-nav .owl-prev:hover,
.vesitable .owl-nav .owl-next:hover { background: #6c451c; color: #eddcb0; }
/* Text visibility fixes */

/* Service promo cards: h3 on green or brown bg must be white */
.service-content h3,
.service-content h5 { color: #ffffff !important; }
/* Exception: bg-light card (cream bg) gets dark text */
.service-content.bg-light h3,
.service-content.bg-light h5 { color: #1b3b23 !important; }

/* Stats counters: on cream bg-light wrapper, text must be dark */
.counter h4 { color: #1b3b23 !important; }
.counter h1 { color: #1a1a1a !important; }

/* Product cards: h4 name & p description on white/cream cards */
.fruite-item .p-4 h4,
.fruite-item .p-4 p,
.vesitable-item .p-4 h4,
.vesitable-item .p-4 p { color: #1a1a1a !important; }

/* Bestseller product name links */
.col-6 a.h5,
.text-center a.h5 { color: #1b3b23 !important; }

/* Bestseller h4 price on cream bg */
.col-6 h4.mb-3,
.text-center h4.mb-3 { color: #1a1a1a !important; }

/* Testimonial client name on cream bg */
.testimonial-item h4.text-dark { color: #1a1a1a !important; }
.testimonial-item p { color: #444 !important; }

/* Topbar text */
.topbar .top-info a,
.topbar small { color: #eddcb0 !important; }

/* Navbar brand */
.navbar-brand h1 { color: #1b3b23 !important; }

/*** Company Color Palette Override End ***/


/*** 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 ***/


/*** 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 ***/


/*** Mobile Responsive — index.php ***/

/* ---- General ---- */
@media (max-width: 767px) {

    /* Navbar: reduce height, hide topbar pill shape overflow */
    .navbar { height: auto; min-height: 64px; }
    .topbar { border-radius: 0 !important; padding: 10px 16px; font-size: 12px; }
    .topbar .top-info, .topbar .top-link { font-size: 11px; }

    /* Auth buttons in navbar: smaller on mobile */
    .d-flex.gap-2.my-auto a.btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }

    /* Hero section */
    .hero-header { padding-top: 100px !important; }
    .hero-header .display-3 { font-size: 1.8rem !important; line-height: 1.2; }
    .hero-header h4 { font-size: 0.95rem; }

    /* Hero search bar: full width, button inside repositioned */
    .hero-header .position-relative { width: 100% !important; }
    .hero-header .form-control { width: 100% !important; padding-right: 130px !important; }
    .hero-header .btn.position-absolute {
        right: 0 !important;
        top: 0 !important;
        height: 100% !important;
        border-radius: 0 50px 50px 0 !important;
        padding: 0 16px !important;
        font-size: 0.85rem;
    }

    /* Carousel */
    .carousel-item img { max-height: 220px; object-fit: cover; }
    .carousel-control-prev { margin-left: 4px; }
    .carousel-control-next { margin-right: 4px; }

    /* Features bar: 1 column */
    .featurs .featurs-item { padding: 20px 16px !important; }
    .featurs .featurs-icon { width: 80px !important; height: 80px !important; margin-bottom: 20px !important; }

    /* Products section heading */
    .fruite h1.display-4, .vesitable h1, .py-5 h1.display-4 { font-size: 1.5rem !important; }

    /* Product tabs: wrap and shrink */
    .fruite .tab-class .nav-item a { padding: 6px 10px !important; margin: 4px 2px !important; }
    .fruite .tab-class .nav-item a span { width: auto !important; font-size: 0.8rem; }

    /* Product cards: ensure full width on small screens */
    .fruite-item, .vesitable-item { margin-bottom: 16px; }
    .fruite-item .p-4, .vesitable-item .p-4 { padding: 12px !important; }
    .fruite-item .p-4 h4, .vesitable-item .p-4 h4 { font-size: 1rem; }
    .fruite-item .p-4 p, .vesitable-item .p-4 p { font-size: 0.82rem; margin-bottom: 8px; }

    /* "Ajouter au panier" button: shrink */
    .fruite-item .btn, .vesitable-item .btn { font-size: 0.75rem !important; padding: 6px 10px !important; }

    /* Promo service cards */
    .service .service-item { margin-bottom: 16px; }
    .service-content { width: 90% !important; }

    /* Banner section */
    .banner .display-3 { font-size: 1.6rem !important; }
    .banner .py-4 { padding: 16px 0 !important; }
    .banner .btn { font-size: 0.85rem !important; padding: 10px 24px !important; }

    /* Bestseller cards */
    .col-6 a.h5 { font-size: 0.9rem; }
    .col-6 h4.mb-3 { font-size: 1rem; }

    /* Stats counters */
    .counter { padding: 20px 10px !important; }
    .counter i { font-size: 40px; margin-bottom: 12px; }
    .counter h1 { font-size: 1.8rem; }
    .counter h4 { font-size: 0.85rem; }

    /* Testimonials */
    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next { padding: 4px 14px; font-size: 0.8rem; }

    /* Footer columns: stack */
    .footer .col-lg-3, .footer .col-md-6 { margin-bottom: 24px; }
    .footer .d-flex.justify-content-end { justify-content: flex-start !important; }

    /* Copyright: stack */
    .copyright .row > div { text-align: center !important; margin-bottom: 6px; }

    /* Back to top button */
    .back-to-top { right: 16px; bottom: 16px; width: 38px; height: 38px; }
}

/* ---- Tablet (768px – 991px) ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-header .display-3 { font-size: 2.2rem !important; }
    .hero-header .form-control { width: 90% !important; }
    .hero-header .btn.position-absolute { right: 10% !important; }
    .banner .display-3 { font-size: 2rem !important; }
    .fruite .tab-class .nav-item a span { width: 100px !important; }
}

/* ---- Extra small (below 480px) ---- */
@media (max-width: 480px) {
    .hero-header .display-3 { font-size: 1.4rem !important; }
    .hero-header h4 { font-size: 0.85rem; }
    .hero-header .btn.position-absolute { font-size: 0.75rem; padding: 0 10px !important; }
    .banner .display-3 { font-size: 1.3rem !important; }
    .navbar-brand h1 { font-size: 1.2rem !important; }

    /* Auth buttons: icon-only hint on very small screens */
    .d-flex.gap-2.my-auto a.btn { padding: 5px 8px !important; font-size: 0.7rem !important; }
}

/*** Mobile Responsive End ***/

