/* ============================================================
   MOBILE FOOD APP STYLE - Farcol.space
   Author: Antigravity
   ============================================================ */

@media (max-width: 991px) {
    body {
        padding-bottom: 70px !important;
        /* Space for bottom nav */
    }

    /* --- App Header Style --- */
    .mobile-header {
        padding: 10px 0 !important;
        background: var(--color-yellow) !important;
        /* Example vibrant color */
        border-bottom: none !important;
    }

    .mobile-header__container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-app-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }

    .user-greeting {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .user-greeting img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid white !important;
    }

    .user-greeting .greeting-text {
        color: var(--color-balck);
    }

    .user-greeting .greeting-text h6 {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        opacity: 0.8;
    }

    .user-greeting .greeting-text h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .mobile-app-search {
        padding: 0 15px;
        margin-bottom: 5px;
    }

    .mobile-app-search .search-box {
        background: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        padding: 12px 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .mobile-app-search .search-box input {
        border: none !important;
        padding: 0 10px !important;
        flex: 1;
        font-size: 14px;
        background: transparent !important;
    }

    .mobile-app-search .search-box svg {
        color: var(--color-slate-600);
    }

    /* --- Bottom Navigation --- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 70px;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
        border-radius: 20px 20px 0 0;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: var(--color-slate-600);
        position: relative;
        flex: 1;
        transition: all 0.3s ease;
    }

    .nav-item.active {
        color: var(--color-red);
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        transition: transform 0.3s ease;
    }

    .nav-item.active svg {
        transform: translateY(-5px);
    }

    .nav-item span {
        font-size: 10px;
        font-weight: 600;
    }

    .nav-item .badge {
        position: absolute;
        top: -5px;
        right: 25%;
        background: var(--color-red);
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }

    /* --- Scrollable Categories --- */
    .categories_slick.categories_mb {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 10px 15px 20px !important;
        scrollbar-width: none;
        /* Firefox */
    }

    .categories_slick.categories_mb::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .categories_slick.categories_mb .col-xxl-2 {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important;
    }

    .categories_item {
        width: 90px !important;
        height: 110px !important;
        padding: 10px !important;
        margin: 0 !important;
        background: #f8f9fa !important;
        border: 1px solid #eee !important;
        transition: all 0.3s ease;
    }

    .categories_item:hover,
    .categories_item.active {
        background: white !important;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05) !important;
        border-color: var(--color-red) !important;
    }

    .categories_item .icon {
        width: 50px !important;
        height: 50px !important;
        background: white;
        border-radius: 12px;
        margin-bottom: 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .categories_item .text {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--color-balck) !important;
    }

    /* Hide redundant elements on mobile */
    .mobile-header .p-right ul,
    #nav-opn-btn {
        display: none !important;
    }

    /* --- Featured Restaurants Horizontal Scroll --- */
    .featured_restaurants_row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 25px !important;
        scrollbar-width: none;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .featured_restaurants_row::-webkit-scrollbar {
        display: none;
    }

    .featured_restaurants_row>div[class*="col-"] {
        flex: 0 0 auto;
        width: 310px !important;
        /* Fixed width to maintain design and enable scroll */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* --- Cuisines Horizontal Scroll --- */
    .cuisines_row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px !important;
        scrollbar-width: none;
        gap: 15px;
        padding: 0 15px 20px !important;
    }

    .cuisines_row::-webkit-scrollbar {
        display: none;
    }

    .cuisines_row .cuisine_item {
        flex: 0 0 auto;
        width: 200px !important;
        /* Adjust based on original design */
        margin: 0 !important;
    }

    /* --- Banner Polishing --- */
    .banner_slick_main_item_box {
        width: 95% !important;
        margin: 20px auto 0 !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .banner_slick_main_item_box_main {
        padding: 0 10px !important;
    }

    /* Fix Distorted Dots (Circles) */
    .banner_slick .slick-dots {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .banner_slick .slick-dots li {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        flex: 0 0 12px !important;
    }

    .banner_slick .slick-dots li button {
        width: 12px !important;
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
        min-width: 12px !important;
        max-width: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #e94222 !important;
        border-radius: 50% !important;
        border: none !important;
        opacity: 0.3;
        transition: all 0.3s ease;
        display: block !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
    }

    .banner_slick .slick-dots li button:before,
    .banner_slick .slick-dots li button:after {
        display: none !important;
    }

    .banner_slick .slick-dots li.slick-active button {
        opacity: 1 !important;
        transform: scale(1.3) !important;
        background: #e94222 !important;
    }
}