/* Navigasi app-like (bottom-nav) storefront — CSS murni, hanya tampil di HP (≤767.98px).
   Satu URL/satu canonical: ini hanya lapisan tampilan, tidak mengubah konten/HTML per-URL. */
.app-bottom-nav { display: none; }

@media (max-width: 767.98px) {
    .app-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040; /* di atas konten, di bawah modal (1050) */
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, .08);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
        padding-bottom: env(safe-area-inset-bottom, 0); /* notch iPhone */
    }

    .app-bottom-nav .app-nav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 56px;
        padding: 6px 2px 8px;
        text-decoration: none;
        color: var(--ink, #1C2E49);
        opacity: .68;
        font-weight: 500;
        transition: opacity .15s ease, color .15s ease;
    }

    .app-bottom-nav .app-nav-item i { font-size: 1.15rem; line-height: 1; }
    .app-bottom-nav .app-nav-item span:not(.app-nav-badge) { font-size: .68rem; line-height: 1; }

    .app-bottom-nav .app-nav-item:active { opacity: 1; }
    .app-bottom-nav .app-nav-item.active { opacity: 1; color: var(--color-primary, #00B9AE); }

    /* Ikon + badge jumlah (keranjang/wishlist) */
    .app-bottom-nav .app-nav-icon { position: relative; display: inline-flex; }
    .app-bottom-nav .app-nav-badge {
        position: absolute;
        top: -6px;
        left: 100%;
        transform: translateX(-55%);
        min-width: 16px;
        padding: 0 4px;
        height: 16px;
        border-radius: 999px;
        background: #e23744;
        color: #fff;
        font-size: .6rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    /* Beri ruang agar konten & footer tidak tertutup bar */
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
}
