
html, body {
    margin: 0;
    padding: 0;
    /* height: 100%; */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
}



/* Sticky mobile category */
.category-menu-mobile-container {
    position: sticky;
    top: 50px;
    z-index: 999;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* margin-bottom: 50px; */
    background: white;
}

.category-menu-mobile {
    /* display: flex; */
    /* overflow-x: auto; */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 65px;
    max-width: 80px;
    text-align: -webkit-center !important;
    color: #333;
}

.category-item .rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-menu, .product-grid {
    height: auto !important;
    overflow: visible !important;
}

.category-menu {
    position: sticky;
    top: 80px;
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}


.product-card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 1em;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    overflow: hidden;
    padding: 10px;
}

.card-title {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1em;
}

.card-text {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.card-body .btn {
    margin-top: auto;
}

/* Mobile adjustments */
@media (max-width: 992px) {
   
    #footer-bar {
        top: calc(100% - 104px);
    }
    .website-footer {
        display: none;
    }
    .testsearchbar {
        width: 100%;
        height: 50px;
    }
    .app-search {
        padding: 0 !important;
    }
    .custom-search {
        margin-top: -7px;
    }
    .card.product-card {
        min-height: 250px;
    }
    .card-img-top {
        height: 150px;
    }
    .img-food {
        height: 200px;
    }
    .ardiv {
        margin-bottom: 125px !important;
    }
    #mobileCategoryMenu {
        transition: all 0.3s ease;
        transform: translateY(0);
        opacity: 1;
        will-change: transform;
    }

    #mobileCategoryMenu.is-sticky {
        position: fixed;
        top: 56px; /* Adjust if your nav is taller */
        left: 0;
        right: 0;
        background: #fff;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    body.sticky-category-visible {
        padding-top: 60px; /* Optional */
    }
    .category-menu-mobile::-webkit-scrollbar{
        height: 0;
        width: 0;
    }
    .category-menu-mobile {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }

    .category-item {
        flex: 0 0 auto;
        text-align: -webkit-center !important;
        scroll-snap-align: start;
    }

    .category-item img {
        width: 60px;
        height: 45px;
        border-radius: 50%;
    }

}

@media (min-width: 992px) {
     .sticky-sidebar {
        position: sticky;
        top: 110px; /* adjust this based on your navbar+slider height */
        z-index: 999;
    }
    .category-menu {
        height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .product-grid {
        height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

/* Utility classes */
.text-dgreen {
    color: #006400;
}

.bg-dgreen {
    background-color: #dc3545;
}
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: #fff !important;
}
.bg-light {
    background-color: #fff !important;
}

.btn-outline-success:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-primary {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-primary:hover {
    background-color: #dc3545;
    color: #fff;
}

.hover-red:hover,
.hover-red:hover i {
    color: #dc3545 !important;
}

.navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.mobile-bottom-nav i {
    font-size: 1.2rem !important;
    line-height: 1.2rem !important;
}

.mobile-bottom-nav small {
    font-size: 0.7rem !important;
    margin-top: -2px;
}

.mobile-bottom-nav .py-2 {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.testsearchbar input {
    height: 35px !important;
    font-size: 0.9rem;
}
.list-group-item.active-category {
    background-color: #e0f7ef;
    font-weight: 600;
    color: var(--dgreen);
}
.nav-item {
    padding: 0px 19px 0 19px;
}
.product-img {
    height: auto;
    object-fit: contain;
    width: 100%;
    margin-bottom: 1em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.img-food {
    display: block;
    width: 100%;
    height: 250px; 
    object-fit: contain;
    object-position: center;
    
}
.navbar-nav .nav-link.active {
    color: #dc3545 !important;
    /* Bootstrap red */
    font-weight: 600;
    border-bottom: 2px solid #dc3545 !important;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}
/* On focus - red border */
.custom-search:focus {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
    outline: none;
}


/* On focus, change icon color too */
.custom-search:focus+.search-icon {
    color: #dc3545;
}

/* General navbar height reduction */
.navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

/* Optional: shrink offcanvas header */
.offcanvas-header {
    padding: 0.5rem 1rem;
}

/* Search bar height adjustment */
.testsearchbar input {
    height: 35px !important;
    font-size: 0.9rem;
}

.fixed-bottom {
    height: 50px;
    /* bottom : 2px !important */
}