.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.horizontal-scroll .row {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 0;
}

.horizontal-scroll .col-md-6,
.horizontal-scroll .col-lg-4,
.horizontal-scroll .col-xl-3 {
    display: inline-block;
    white-space: normal;
    vertical-align: top;
}



/* Scrolling input search */

.input-container {
    position: relative;
}

.scrolling-placeholder {
    animation: scrollPlaceholder 10s linear infinite;
}

@keyframes scrollPlaceholder {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.scrolling-placeholder::placeholder {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: scrollPlaceholder 10s linear infinite;
}

.scrolling-placeholder::-webkit-input-placeholder {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: scrollPlaceholder 10s linear infinite;
}

.scrolling-placeholder:-moz-placeholder {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: scrollPlaceholder 10s linear infinite;
}

.scrolling-placeholder::-moz-placeholder {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: scrollPlaceholder 10s linear infinite;
}

.scrolling-placeholder:-ms-input-placeholder {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: scrollPlaceholder 10s linear infinite;
}

/*****************/

/*** 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: #8fd2cb !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 ***/
.fruite-img {
    width: 100%;
    /* Atur sesuai kebutuhan */
    height: 0;
    padding-top: 100%;
    /* Mengatur rasio 1:1 */
    position: relative;
}


.fruite-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Memastikan gambar menutupi area kontainer */
}

/*** Hero Header ***/
.hero-header {
    height: 100vh;
    /* Atur tinggi sesuai kebutuhan */
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item {
    position: relative;
}

.carousel-caption {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.3rem;
    color: #fff;
    width: 80%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    /* Gaya untuk tombol navigasi */
    border-radius: 10%;
}

.img-profile {
    height: 6rem;
}

.img-logo {
    max-width: 100%;
    /* Membuat gambar responsif */
    height: auto;
    /* Mempertahankan aspek rasio */
    width: 130px;
    /* Atur ukuran lebar sesuai kebutuhan */
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-imgs.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {

    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}

@media (max-width: 992px) {

    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}

@media (max-width: 768px) {
    .hero-header {
        height: auto;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .img-logo {
        height: auto;
        width: 100px;
    }

    .hero-header img {
        height: auto;
        object-fit: contain;
    }

    .carousel-caption {
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0.2rem;
        width: 90%;
        /* Atur lebar lebih besar */
        max-width: 100%;
        /* Membatasi lebar maksimal */
        font-size: 1rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
        /* Ukuran font yang lebih kecil untuk layar kecil */
    }

    .carousel-caption h6 {
        font-size: 1rem;
        /* Ukuran font yang lebih kecil untuk layar kecil */
    }
}

@media (max-width: 576px) {
    .carousel-caption h2 {
        font-size: 1.2rem;
        /* Ukuran font lebih kecil lagi untuk layar yang lebih kecil */
    }

    .carousel-caption h6 {
        font-size: 0.6rem;
        /* Ukuran font lebih kecil lagi untuk layar yang lebih kecil */
    }
}

.hero-header img {
    width: 50%;
    height: 10vh;
    object-fit: cover;
}


/*** 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 ***/

.kategori-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.kategori-item {
    flex: 0 0 auto;
    width: 250px;
    /* Adjust the width as needed */
    margin-right: 20px;
    scroll-snap-align: start;
}

.fruite-item {
    transition: transform 0.3s ease;
}

.fruite-item:hover {
    transform: scale(1.05);
}

/* Optional: Add custom scroll bar styles */
.kategori-container::-webkit-scrollbar {
    height: 8px;
}

.kategori-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.kategori-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 85px;
    height: 85px;
    z-index: 999;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: glow 2s infinite ease-in-out;
}

.chatbot-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Efek glowing */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px #00f0ff;
    }

    50% {
        box-shadow: 0 0 20px #00f0ff;
    }

    100% {
        box-shadow: 0 0 5px #00f0ff;
    }
}

.chatbot-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.chatbot-header {
    background-color: #00f0ff;
    padding: 10px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.chatbot-body {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.close-chat {
    cursor: pointer;
}

.alert-float {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: fadein 0.5s, fadeout 0.5s 3s;
    text-align: center;
}
@keyframes fadein {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeout {
    from { opacity: 1; transform: translate(-50%, 0); }
    to   { opacity: 0; transform: translate(-50%, -10px); }
}