/* MarketLink - Responsive & Mobile App Styles */

/* Mobile Bottom Navigation Bar (Matching mobile mockup in screenshot) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--ml-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ml-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.mobile-nav-item i {
    font-size: 1.15rem;
}

.mobile-nav-item.active {
    color: var(--ml-primary);
}

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 14px;
    background-color: var(--ml-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .header-nav-links {
        display: none;
    }
    
    .header-search-wrap {
        max-width: 220px;
    }

    .sidebar-nav-card {
        margin-bottom: 20px;
        position: static;
    }

    .hero-headline {
        font-size: 2.4rem;
    }

    .hero-farmer-card {
        margin-top: 30px;
    }

    .hero-farmer-img {
        height: 320px;
    }

    .hero-composition-wrap {
        margin: 32px auto 0 auto;
        max-width: 500px;
        height: 480px;
    }

    .hero-master-showcase {
        margin: 30px auto 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px; /* Space for mobile bottom bar */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .hero-headline,
    .hero-reference-headline {
        font-size: 2rem;
    }

    .hero-subtitle,
    .hero-reference-desc {
        font-size: 1rem;
    }

    .hero-cta-btns,
    .hero-reference-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-gold,
    .btn-hero-forest {
        width: 100%;
        justify-content: center;
    }

    .hero-collage-artwork {
        max-height: 320px;
    }

    .hero-master-banner-wrap {
        padding: 0;
    }

    .hero-master-full-img {
        max-height: none;
    }

    .header-search-wrap {
        display: none; /* Accessible in dashboard or mobile search */
    }

    .cart-drawer-panel {
        max-width: 100%;
    }

    .checkout-stepper-wrap {
        gap: 6px;
    }

    .checkout-step-pill {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .product-detail-hero-img {
        height: 280px;
    }

    .product-detail-card {
        padding: 20px;
    }

    /* Hero Composition on Mobile (<= 767px) */
    .hero-composition-wrap {
        margin: 24px auto 16px auto;
        width: 100%;
        max-width: 440px;
        height: 400px;
    }

    .hero-composition-wrap .leaf-petal-tl {
        width: 200px;
        height: 200px;
        top: 10px;
        left: 10px;
        border-radius: 100px 24px 100px 24px;
    }

    .hero-composition-wrap .leaf-petal-tr {
        width: 205px;
        height: 205px;
        top: 0px;
        right: 10px;
        border-radius: 24px 105px 24px 105px;
    }

    .hero-composition-wrap .leaf-petal-bl {
        width: 195px;
        height: 175px;
        bottom: 20px;
        left: 10px;
        border-radius: 24px 90px 24px 90px;
    }

    .hero-composition-wrap .leaf-petal-br {
        width: 210px;
        height: 180px;
        bottom: 25px;
        right: 5px;
        border-radius: 90px 24px 90px 24px;
    }

    .hero-composition-wrap .wax-seal-badge {
        width: 88px;
        height: 88px;
    }

    .hero-composition-wrap .seal-percent {
        font-size: 0.85rem;
    }

    .hero-composition-wrap .seal-label {
        font-size: 0.55rem;
    }

    .hero-composition-wrap .seal-sub {
        font-size: 0.5rem;
    }

    .hero-composition-wrap .ribbon-3d-card {
        padding: 8px 16px;
    }

    .hero-composition-wrap .ribbon-script-headline {
        font-size: 1.05rem;
    }

    .hero-composition-wrap .ribbon-cities-sub {
        font-size: 0.68rem;
    }

    .hero-master-showcase {
        margin: 22px auto 0 auto;
        max-width: 440px;
    }
}

@media (max-width: 575.98px) {
    .hero-composition-wrap {
        width: 100%;
        max-width: 330px;
        height: 310px;
        margin: 20px auto 10px auto;
    }

    .hero-composition-wrap .leaf-petal-tl {
        width: 150px;
        height: 150px;
        top: 5px;
        left: 5px;
        border-radius: 75px 18px 75px 18px;
        border-width: 2.5px;
    }

    .hero-composition-wrap .leaf-petal-tr {
        width: 155px;
        height: 155px;
        top: 0px;
        right: 5px;
        border-radius: 18px 80px 18px 80px;
        border-width: 2.5px;
    }

    .hero-composition-wrap .leaf-petal-bl {
        width: 145px;
        height: 135px;
        bottom: 15px;
        left: 5px;
        border-radius: 18px 70px 18px 70px;
        border-width: 2.5px;
    }

    .hero-composition-wrap .leaf-petal-br {
        width: 155px;
        height: 140px;
        bottom: 18px;
        right: 5px;
        border-radius: 70px 18px 70px 18px;
        border-width: 2.5px;
    }

    .hero-composition-wrap .farmer-tag-pill {
        padding: 3px 10px;
        font-size: 0.68rem;
        bottom: 8px;
        left: 8px;
    }

    .hero-composition-wrap .wax-seal-badge {
        width: 72px;
        height: 72px;
        border-width: 2.5px;
    }

    .hero-composition-wrap .wax-seal-badge i {
        font-size: 0.7rem !important;
    }

    .hero-composition-wrap .seal-percent {
        font-size: 0.72rem;
    }

    .hero-composition-wrap .seal-label {
        font-size: 0.46rem;
    }

    .hero-composition-wrap .seal-sub {
        font-size: 0.42rem;
    }

    .hero-composition-wrap .hero-floating-ribbon-wrap {
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
        width: 92%;
    }

    .hero-composition-wrap .ribbon-3d-card {
        text-align: center;
        padding: 6px 10px;
    }

    .hero-composition-wrap .ribbon-script-headline {
        font-size: 0.88rem;
    }

    .hero-composition-wrap .ribbon-cities-sub {
        font-size: 0.6rem;
    }

    .hero-master-showcase {
        margin: 16px auto 0 auto;
        max-width: 340px;
    }
}
