/* ==============================================================
   DIVYA COSMETICS – MOBILE OPTIMIZATIONS & RESPONSIVE TWEAKS
   Clean mobile layouts, touch gestures, and responsive grids
   ============================================================== */

/* Strictly hide mobile nav on Desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    /* Mobile header tweaks */
    .royal-search-box {
        max-width: 100%;
        margin-top: 10px;
    }

    /* Product grid responsive gap */
    .product-card-royal {
        margin-bottom: 8px;
    }

    /* Filter sidebar on mobile */
    .position-sticky {
        position: static !important;
    }

    /* Clean padding on small displays */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Royal Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1045;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-gold, rgba(197, 154, 69, 0.3));
        box-shadow: 0 -4px 20px rgba(15, 64, 36, 0.08);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom, 6px));
        height: auto;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--muted, #57685D);
        font-size: 0.68rem;
        font-family: var(--font-secondary, 'DM Sans', sans-serif);
        font-weight: 500;
        padding: 4px 0;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
    }

    .mobile-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 2px;
        line-height: 1;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--primary, #0F4024) !important;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-nav-item.active i {
        color: var(--accent, #C59A45) !important;
        transform: translateY(-2px);
    }

    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 18px;
        height: 2.5px;
        background: var(--accent-gold-gradient, linear-gradient(135deg, #C59A45, #F5E3BD));
        border-radius: 3px;
    }

    /* Prevent bottom bar from covering content on mobile */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 575.98px) {
    /* Full-width touch cards on small phones */
    .product-card-title {
        font-size: 0.95rem;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
}
