/* Mobile App Experience Styles */

/* Only apply these styles on screens smaller than 992px (Tablets and Phones) */
@media (max-width: 991px) {

    /* --- Bottom Navigation Bar --- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 10px 0;
        z-index: 9999;
        height: 65px;
        border-top: 1px solid #eee;
    }

    .mobile-bottom-nav__item {
        flex-grow: 1;
        text-align: center;
        color: #555;
        text-decoration: none;
        font-size: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .mobile-bottom-nav__item:hover, 
    .mobile-bottom-nav__item.active {
        color: #2b70fa; /* Primary color */
    }

    .mobile-bottom-nav__item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .mobile-bottom-nav__item-content {
        display: flex;
        flex-direction: column;
    }

    /* Cart badge */
    .mobile-nav-cart-badge {
        position: absolute;
        top: 5px;
        right: 25%;
        background: #ff4d4d;
        color: #fff;
        border-radius: 50%;
        padding: 2px 5px;
        font-size: 10px;
        line-height: 1;
    }
    
    .mobile-bottom-nav__item {
        position: relative;
    }

    /* Add padding to body so content isn't hidden behind nav */
    body {
        padding-bottom: 70px !important; 
    }

    /* --- Adjustments for Existing Elements --- */

    /* Move "Up to Top" button up so it doesn't overlap with bottom nav */
    .wsus__scroll_btn {
        bottom: 80px !important;
        right: 15px !important;
        z-index: 9990 !important;
    }

    /* Top Bar Crowding Fix */
    .wsus__topbar .wsus__topbar_language {
        justify-content: center;
    }

    .wsus__topbar .wsus__multi_language {
        justify-content: center;
        gap: 10px;
    }
    
    /* Hide some less critical top bar items on very small screens if needed */
    @media (max-width: 400px) {
        .wsus__topbar_language .user_droap_menu {
            right: -50px; /* Adjust dropdown position */
        }
    }

    /* Hero Section Fixes */
    .wsus__banner_text h1 {
        font-size: 28px !important; /* Resize huge headings */
        line-height: 1.3;
    }

    /* Footer Balance */
    .wsus__footer_content {
        text-align: center;
        margin-bottom: 30px;
    }

    .wsus__footer_content ul li a {
        justify-content: center;
    }
    
    .footer_counter {
        justify-content: center !important;
    }
    
    .wsus__footer_copyright p {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    
    .wsus__footer_payment {
        justify-content: center !important;
        margin-top: 15px;
    }
}

/* Hide bottom nav on larger screens */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}
