:root {
    --primary-color: #67b31b;
    --background-color: #f0f3f7;
    --secon-color: #9da2ad;
    --grey: #7a7a7b;
    --white: #ffffff;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: unset;
    text-decoration: none;
}

body,
html {
    background-color: var(--background-color);
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: var(--background-color);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.menu-wrap {
    max-width: 1366px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item {
    margin-left: 1rem;
    padding: .5rem 1.5rem;
    font-weight: 600;
    color: var(--grey);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 1rem;
}

/* Hamburger Menu - Hidden on desktop */
.hamburger-menu {
    display: none; /* Hidden on desktop */
}

.mobile-menu-dropdown {
    display: none; /* Hidden on desktop */
}

.cart-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: .5s ease-in-out;
}

.cart-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 1rem;
}

.fullheight {
    height: 100vh;
}

.align-items-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-img-fixed {
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
}


section {
    padding: 9rem 0;
}

#home {
    padding-top: 24rem;
}

.hero-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.hero-left-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-right-half {
    flex: 1;
    position: relative;
}

.hero-content {
    padding: 2rem;
    text-align: left;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 7rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.slogan {
    text-align: left;
}

.slogan h1 {
    font-size: 7rem;
    color: var(--primary-color);
}

.hero-logo {
    height: 26rem;
    width: auto;
    max-width: 100%;
}

.slogan button {
    padding: 1rem 5rem;
    outline: none;
    border: none;
    background-color: var(--background-color);
    border: .125rem solid var(--primary-color);
    border-radius: 2rem;
    color: var(--primary-color);
    margin: 3rem 0;
    cursor: pointer;
    font-weight: 600;
    transition: .5s ease-in-out;
}

.slogan button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.fullwidth {
    width: 100%;
}

#about img {
    border-radius: 2rem;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px,
        rgba(17, 17, 26, 0.1) 0px 16px 56px,
        rgba(17, 17, 26, 0.1) 0px 24px 80px;
}


.about-slogan {
    padding: 4rem;
    background-color: var(--white);
    border-radius: 2rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}

.about-slogan.start {
    transform: translateX(-10rem) !important;
}

.about-slogan h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--grey);
}

.primary-color {
    color: var(--primary-color);
}

.food-menu {
    padding: 4rem;
    background-color: var(--white);
    border-radius: 2rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.food-menu h1 {
    color: var(--grey);
}

.food-menu p {
    margin: 2rem 0;
}

.food-category {
    display: flex;
}

.food-category button {
    padding: .5rem 2.5rem;
    margin: 0 1rem;
    outline: none;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.food-category button:hover,
.food-category button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.food-item-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 3rem;
}

.food-item {
    width: 25%;
    height: 30rem;
    padding: 1rem;
}

.item-wrap {
    height: 100%;
    transition: .4s ease-in-out;
    cursor: pointer;
    border-radius: 2rem;
}

.item-wrap:hover {
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
        rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.item-img {
    height: 60%;
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.img-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .5s ease-in-out;
    border-radius: 2rem;
}

.img-holder:hover {
    transform: scale(2) rotate(45deg);
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.item-info h3 {
    color: var(--grey);
}

.item-info>div:first-child {
    text-align: left;
}

.review-wrap {
    width: 100%;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 3rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.review-wrap.active {
    transform: scale(1.2) !important;
}

.review-content {
    padding: 3rem;
    border-bottom: .125rem solid var(--grey);
    position: relative;
    text-align: center;
}

.review-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2.5rem;
    width: 5rem;
    height: 5rem;
    border-radius: 2rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.review-info {
    padding: 3rem;
    text-align: center;
}

.rating {
    margin-top: 2rem;
}

.rating i {
    color: var(--primary-color);
}

.footer {
    color: var(--white);
    position: relative;
}

/* Black overlay for footer on all devices */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h1 {
    color: var(--primary-color);
}

.input-group {
    padding: 1rem;
    border: .125rem solid var(--primary-color);
    border-radius: 2rem;
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.input-group input {
    flex: auto;
    outline: none;
    border: none;
    color: var(--primary-color);
    background-color: transparent;
}

.input-group button {
    padding: .5rem 1rem;
    outline: none;
    border: none;
    background-color: var(--primary-color);
    border-radius: 1rem;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 70px;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding: .5rem;
    z-index: 99;
    display: none;
}

.food-item-wrap>div {
    display: none;
}

.food-item-wrap.all>div {
    display: block;
}

.food-item-wrap.fresh-produce>div.fresh-produce-type {
    display: block;
}

.food-item-wrap.nuts-seeds>div.nuts-seeds-type {
    display: block;
}

.food-item-wrap.flours>div.flours-type {
    display: block;
}

.food-item-wrap.oils>div.oils-type {
    display: block;
}

.food-item-wrap.seafood>div.seafood-type {
    display: block;
}

/* ANIMATION */

.left-to-right {
    transform: translateX(-150%);
    transition: 1s ease-in-out;
}

.left-to-right.start {
    transform: translateX(0);
}

.right-to-left {
    transform: translateX(150%);
    transition: 1s ease-in-out;
}

.right-to-left.start {
    transform: translateX(0);
}

.zoom {
    transform: scale(0);
    transition: .6s ease-in-out;
}

.zoom.start {
    transform: unset;
}

.bottom-up {
    transform: translateY(30%);
    transition: .8s ease-in-out;
}

.bottom-up.start {
    transform: translateY(0);
}

.delay-2 {
    transition-delay: .2s;
}

.delay-4 {
    transition-delay: .4s;
}

.delay-6 {
    transition-delay: .6s;
}

.delay-8 {
    transition-delay: .8s;
}

.delay-10 {
    transition-delay: .10s;
}

.delay-12 {
    transition-delay: .12s;
}






/* GRID SYSTEM */

.row {
    display: flex;
    flex-wrap: wrap;
}

[class*="col-"] {
    padding: 1rem;
}

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

.mb-nav {
    display: none;
}

/* Extra small devices (phones, 600px and down) - Mobile optimizations */
@media only screen and (max-width: 600px) {

    * {
        font-size: 14px;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    span {
        font-size: inherit;
    }

    /* Navigation */
    .nav {
        padding: 0.5rem 0;
    }

    .menu-wrap {
        padding: 0.5rem 1rem;
        position: relative;
    }

    .logo {
        font-size: 1.1rem; /* Smaller to fit on one line */
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Hamburger menu on left */
    .hamburger-menu {
        order: -1; /* Move to left */
        margin-right: 0.5rem;
    }

    .menu {
        display: none !important; /* Hide desktop menu on mobile */
    }

    .menu-item {
        display: none;
    }

    .search-btn {
        display: flex !important; /* Show search button on mobile */
        align-items: center;
        justify-content: center;
    }

    /* Hamburger Menu - Left Side */
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2.2rem; /* Slightly bigger icon */
        color: var(--primary-color);
        cursor: pointer;
        transition: 0.3s;
        margin-right: 1rem;
        z-index: 101; /* Above other elements */
        position: relative;
        pointer-events: auto; /* Ensure clicks work */
        -webkit-tap-highlight-color: rgba(103, 179, 27, 0.3);
    }

    .hamburger-menu:hover,
    .hamburger-menu:active {
        background-color: var(--primary-color);
        color: var(--white);
        border-radius: 0.5rem;
    }

    .hamburger-menu i {
        pointer-events: none; /* Allow clicks to pass through icon to button */
    }

    .mobile-menu-dropdown {
        display: block !important; /* Explicitly show on mobile */
        position: fixed;
        top: 60px;
        left: 0;
        width: 280px;
        max-width: 85%;
        background-color: var(--white);
        box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .mobile-menu-dropdown.active {
        max-height: 500px;
    }

    .mobile-menu-dropdown a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: var(--grey);
        text-decoration: none;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        transition: 0.3s;
        gap: 0.75rem;
        white-space: nowrap; /* Prevent text wrapping */
    }

    .mobile-menu-dropdown a i {
        font-size: 1.3rem;
        color: var(--primary-color);
    }

    .mobile-menu-dropdown a:hover,
    .mobile-menu-dropdown a:active {
        background-color: var(--primary-color);
        color: var(--white);
    }

    .mobile-menu-dropdown a:hover i,
    .mobile-menu-dropdown a:active i {
        color: var(--white);
    }

    .right-menu {
        gap: 0.25rem;
    }

    .cart-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .cart-btn i {
        font-size: 1.5rem;
    }

    .profile-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    /* Hero Section - Show only logo, hide text on mobile */
    .hero-left-half {
        display: none !important; /* Hide text/description */
    }

    .hero-right-half {
        display: flex !important; /* Show logo */
        justify-content: center;
        align-items: center;
        padding: 0 !important; /* No padding - eliminate white space */
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .hero-split-container {
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0 !important; /* No padding anywhere */
        margin: 0 !important;
    }

    .hero-logo-container {
        padding: 0 !important; /* No padding */
        margin: 0 !important;
    }

    .hero-logo {
        height: 18rem !important; /* Triple the size (was 6rem) */
        max-width: 90% !important;
        margin: 0 !important;
    }

    #home {
        padding-top: 4rem !important; /* Only space for nav banner */
        padding-bottom: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    /* Remove fullheight class spacing on mobile */
    .fullheight {
        height: auto !important;
        min-height: auto !important;
    }

    #home.fullheight {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
    }

    /* Next section immediately after logo - no white space */
    #about,
    #food-menu-section {
        margin-top: 0 !important;
        padding-top: 0 !important; /* No top padding */
    }

    /* Remove any section spacing */
    section {
        margin-top: 0 !important;
    }

    #food-menu-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* About Section - Hide on mobile */
    .about {
        display: none !important;
    }

    .about-slogan.start {
        transform: translateX(0) !important;
    }

    .about-slogan h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-slogan p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Food Menu */
    .food-menu {
        padding: 0.5rem 1rem !important; /* Minimal padding, no top padding */
        margin: 0 !important; /* No margin - immediately after logo */
        box-sizing: border-box;
        overflow: hidden; /* Prevent content from spilling out */
        width: 100%;
    }

    .food-menu h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .food-menu p {
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    .food-item {
        width: calc(50% - 0.5rem) !important; /* 2 per row on mobile */
        height: auto;
        min-height: 22rem;
        max-height: none;
        padding: 0.5rem;
        margin-bottom: 1rem;
        display: inline-block;
        vertical-align: top;
        box-sizing: border-box;
        max-width: calc(50% - 0.5rem); /* Ensure it doesn't exceed container */
    }

    .food-item-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent items from spilling out */
    }

    .food-category {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .food-category::-webkit-scrollbar {
        height: 4px;
    }

    .food-category button {
        width: max-content;
        padding: 0.5rem 1.5rem;
        margin: 0 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
        min-width: fit-content;
    }

    .food-item-wrap {
        margin-top: 1.5rem;
    }

    /* Product Cards - Image top, Name middle, Price/Cart bottom */
    .item-wrap {
        padding: 0.75rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* Image at top */
    .item-img {
        height: 45% !important;
        min-height: 110px;
        flex-shrink: 0;
        margin: 0 0 0.75rem 0 !important;
        order: 0;
    }

    /* Item info - use grid to restructure */
    .item-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1fr auto;
        flex: 1;
        margin-top: 0 !important;
        padding: 0 !important;
        order: 1;
        gap: 0;
        min-height: 80px;
    }

    /* Flatten wrapper div so h3 and span become direct grid children */
    .item-info > div:first-child {
        display: contents; /* Flatten so h3 and span can be positioned independently */
    }

    /* Product name - visible, full width, in first row */
    .item-info h3 {
        font-size: 1rem !important;
        margin: 0 0 0.75rem 0 !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        font-weight: 600;
        display: block !important;
        color: var(--grey);
        padding: 0;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Price at bottom left */
    .item-info span {
        display: block !important;
        font-size: 1rem !important;
        font-weight: 600;
        color: var(--primary-color);
        grid-column: 1;
        grid-row: 2;
        padding-top: 0.75rem;
        border-top: 1px solid #eee;
        margin: 0;
        align-self: start;
    }

    /* Cart button at bottom right */
    .item-info .cart-btn {
        flex-shrink: 0;
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem;
        min-height: 2.5rem;
        font-size: 1.5rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        grid-column: 2;
        grid-row: 2;
        padding-top: 0.75rem;
        border-top: 1px solid #eee;
        margin: 0;
        align-self: start;
    }

    .item-info .cart-btn i {
        font-size: 1.5rem !important;
    }

    /* Ensure all product cards have consistent styling */
    .food-item .item-wrap {
        background-color: var(--white);
        border-radius: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    /* Make product names bigger and readable - no ellipsis */
    .item-info h3 {
        font-size: 0.9rem !important; /* Bigger font for readability */
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block;
        overflow: visible; /* Show full text */
        text-overflow: clip; /* No ellipsis */
        max-height: none; /* Allow full height */
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    /* Ensure price fits - make bigger for readability */
    .item-info span {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.95rem; /* Bigger price for readability */
        font-weight: 600;
    }

    /* Sections - remove all padding/margins */
    section {
        padding: 0 !important;
        margin: 0 !important;
    }

    #food-menu-section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Remove align-items-center spacing */
    .align-items-center {
        padding: 0 !important;
        margin: 0 !important;
    }

    #food-menu-section.align-items-center {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Remove bg-img-fixed spacing */
    .bg-img-fixed {
        padding: 0 !important;
        margin: 0 !important;
    }

    .container {
        padding: 0 1rem !important; /* Only horizontal padding */
    }

    /* Remove all padding from food menu section container */
    #food-menu-section .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Cart Modal */
    .cart-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0;
        margin: 0;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .cart-header {
        padding: 1rem;
        flex-shrink: 0;
        background: white;
        z-index: 2;
        border-bottom: 1px solid #eee;
    }

    .cart-header h3 {
        font-size: 1.25rem;
    }

    .close-cart {
        font-size: 2rem !important; /* Bigger X button on mobile */
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .close-cart:hover {
        background: #f0f0f0;
    }

    .cart-items {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        padding-bottom: 1.5rem; /* Extra padding at bottom to prevent overlap */
        min-height: 0; /* Important for flexbox scrolling */
    }

    .cart-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details h4 {
        font-size: 0.9rem;
    }

    .cart-item-details p {
        font-size: 0.85rem;
    }

    .quantity-controls button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .cart-footer {
        padding: 1rem;
        flex-shrink: 0;
        background: white;
        border-top: 2px solid #eee;
        z-index: 2;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        position: relative; /* Ensure it stays at bottom */
    }

    .cart-summary {
        margin-bottom: 1rem;
    }

    .cart-subtotal,
    .cart-delivery-fee-row {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .cart-total {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .checkout-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px; /* Better touch target */
    }

    /* Checkout Modal */
    .checkout-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0;
        margin: 0;
    }

    .checkout-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .checkout-header h3 {
        font-size: 1.25rem;
    }

    .form-group {
        padding: 0 1rem;
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Better touch target */
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .checkbox-group {
        padding: 0 1rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    .order-summary {
        margin: 1rem;
        padding: 1rem;
    }

    .order-summary h3 {
        font-size: 1.1rem;
    }

    .order-item {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .order-subtotal,
    .order-delivery-fee {
        font-size: 0.9rem;
    }

    .order-total {
        font-size: 1.1rem;
    }

    /* Auth Modals */
    .auth-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .auth-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .auth-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Profile Modal */
    .profile-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem 1rem;
    }

    /* Product Detail Modal */
    .product-detail-modal {
        padding: 0;
    }

    .product-detail-content {
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0;
    }

    .product-detail-body {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .product-detail-header h2 {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 1.5rem;
    }

    .add-to-cart-btn-detail {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Variant Modal */
    .variant-modal-content {
        width: 95% !important;
        padding: 1.5rem 1rem;
    }

    .variant-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .variant-option {
        padding: 1rem;
        min-height: 60px;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
        /* Show left portion of background image on mobile */
        background-position: left center !important;
    }

    .footer .col-6 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer h3 {
        font-size: 1.25rem;
    }

    .footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Buttons */
    button {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Back to top */
    .back-to-top {
        bottom: 6rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .review-wrap.active {
        transform: unset !important;
    }

    /* Reduce Testimonial Sizes on Mobile */
    .review-wrap {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .review-content {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }

    .review-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .review-info {
        padding: 1.5rem 1rem;
    }

    .review-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .rating {
        margin-top: 0.75rem;
    }

    .rating i {
        font-size: 1rem;
    }

    /* Search */
    .search-input-container {
        padding: 1rem;
    }

    .search-input-container input {
        padding: 0.875rem 1rem; /* Reduced right padding since icon is removed */
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .search-input-container i {
        display: none !important; /* Hide search icon on mobile */
    }

    .close-search {
        font-size: 2rem !important; /* Bigger X button on mobile */
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .close-search:hover {
        background: #f0f0f0;
    }

    /* Order Summary in Checkout */
    .order-summary-breakdown {
        font-size: 0.9rem;
    }

    /* Cart Summary Breakdown */
    .cart-summary-breakdown {
        font-size: 0.9rem;
    }

    /* Search results grid - mobile */
    .search-results-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 0.75rem;
    }

    .search-results-grid .food-item {
        min-width: 100%;
        height: 120px; /* Slightly shorter on mobile */
        min-height: 120px;
        max-height: 120px;
    }

    .search-results-grid .food-item .item-img {
        width: 100px;
        min-width: 100px;
    }

    .search-results-grid .food-item .item-info h3 {
        font-size: 0.9rem;
    }

    .search-results-grid .food-item .item-info span {
        font-size: 1rem;
    }

    .search-results-grid .food-item .item-info .cart-btn {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .search-results-grid .food-item .item-info .cart-btn i {
        font-size: 1.1rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    /* Better touch targets */
    a, button {
        -webkit-tap-highlight-color: rgba(103, 179, 27, 0.2);
    }

    /* Smooth scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text size adjustment */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* MOBILE NAV - HIDDEN */
    .mb-nav {
        display: none !important; /* Remove bottom navigation banner */
    }

    .mb-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 25%;
        padding: 1rem 0;
    }

    .mb-nav-item i,
    .mb-nav-item a {
        font-size: 2rem;
        color: var(--secon-color);
        z-index: 2;
        transition: .5s ease-in-out;
    }

    .mb-nav-item.active i {
        color: var(--white);
    }

    .mb-move-item {
        position: absolute;
        left: 0;
        width: 25%;
        height: 100%;
        background-color: var(--primary-color);
        transition: .5s ease-in-out;
    }

    /* END MOBILE NAV */

    .col-xs-1 {
        width: 8.33%;
    }

    .col-xs-2 {
        width: 16.66%;
    }

    .col-xs-3 {
        width: 25%;
    }

    .col-xs-4 {
        width: 33.33%;
    }

    .col-xs-5 {
        width: 41.66%;
    }

    .col-xs-6 {
        width: 50%;
    }

    .col-xs-7 {
        width: 58.33%;
    }

    .col-xs-8 {
        width: 66.66%;
    }

    .col-xs-9 {
        width: 75%;
    }

    .col-xs-10 {
        width: 83.33%;
    }

    .col-xs-11 {
        width: 91.66%;
    }

    .col-xs-12 {
        width: 100%;
    }

    .h-xs {
        display: none;
    }
}

/* Tablet devices (601px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem !important;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .food-item {
        width: 50% !important;
    }

    .cart-modal-content,
    .checkout-modal-content {
        width: 90% !important;
        max-width: 500px;
    }

    .menu {
        display: flex;
    }

    .mb-nav {
        display: none;
    }
}

/* Small tablets and large phones (769px to 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem !important;
    }

    .food-item {
        width: 33.33% !important;
    }

    .menu {
        display: flex;
    }

    .mb-nav {
        display: none;
    }
}

/* Variant Modal Styles */
.variant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.variant-modal.active {
    opacity: 1;
}

.variant-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.variant-modal.active .variant-modal-content {
    transform: scale(1);
}

.variant-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.variant-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.variant-option {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.variant-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.variant-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.variant-weight {
    color: #666;
    font-size: 0.9rem;
}

.variant-cancel {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.variant-cancel:hover {
    background: #c82333;
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-modal-content {
    transform: scale(1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem; /* Bigger X button */
    cursor: pointer;
    color: #666;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: #f0f0f0;
    color: #333;
}

.cart-items {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-details p {
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.quantity-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 1rem;
}

.cart-subtotal,
.cart-delivery-fee {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

.cart-delivery-fee {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.cart-total {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #5a9a16;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.checkout-modal.active .checkout-modal-content {
    transform: scale(1);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.checkout-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.order-summary {
    padding: 1.5rem;
    background: #f8f9fa;
    margin: 1rem 1.5rem;
    border-radius: 5px;
}

.order-summary h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-summary-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.order-subtotal,
.order-delivery-fee {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

.order-delivery-fee {
    color: #555;
    font-weight: 500;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
    font-size: 1.1rem;
}

.pay-btn {
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pay-btn:hover {
    background: #5a9a16;
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: scale(1);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.search-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-search {
    background: none;
    border: none;
    font-size: 2rem; /* Bigger X button */
    cursor: pointer;
    color: #666;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: #f0f0f0;
    color: #333;
}

.search-input-container {
    position: relative;
    padding: 1.5rem;
}

.search-input-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-container input:focus {
    border-color: var(--primary-color);
}

.search-input-container i {
    position: absolute;
    right: 1rem; /* Closer to the right edge */
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.search-results {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Search results grid - horizontal rectangular cards */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* Search result items - horizontal rectangular cards */
.search-results-grid .food-item {
    width: 100% !important;
    min-width: 280px;
    max-width: 100%;
    height: 140px; /* Horizontal rectangle - wider than tall */
    min-height: 140px;
    max-height: 140px;
    padding: 0.75rem;
    margin: 0;
    display: flex;
    box-sizing: border-box;
}

.search-results-grid .food-item .item-wrap {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    gap: 1rem;
}

.search-results-grid .food-item .item-img {
    width: 120px;
    height: 100%;
    min-width: 120px;
    flex-shrink: 0;
    margin: 0;
    order: 0;
}

.search-results-grid .food-item .item-img .img-holder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.search-results-grid .food-item .item-info {
    flex: 1;
    display: flex;
    flex-direction: row; /* Change to row for horizontal layout */
    justify-content: space-between;
    align-items: center; /* Center vertically */
    height: 100%;
    padding: 0.5rem 0;
    order: 1;
    position: relative; /* For absolute positioning of cart button */
}

.search-results-grid .food-item .item-info > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1; /* Take available space */
}

.search-results-grid .food-item .item-info h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    color: var(--grey);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results-grid .food-item .item-info span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.search-results-grid .food-item .item-info .cart-btn {
    position: absolute; /* Position absolutely */
    right: 0; /* Center right */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0; /* Remove margin */
}

.search-results-grid .food-item .item-info .cart-btn:hover {
    background: #5a9a15;
    transform: translateY(-50%) scale(1.1); /* Maintain vertical centering while scaling */
}

.search-results-grid .food-item .item-info .cart-btn i {
    font-size: 1.3rem;
    line-height: 1; /* Ensure icon is centered */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.search-suggestions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.search-suggestions h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.suggestion-tags {
    display: flex;
    flex-wrap: gap: 0.5rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 10004;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media only screen and (max-width: 600px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
