/* Soukhin Shaharanji - Modern Responsive Stylesheet */

@media (max-width: 1200px) {
    .container { width: 94%; }
}

@media (max-width: 991px) {
    /* Fixed Header Height for Mobile Menu Offset */
    header {
        height: 70px;
        padding: 0.8rem 0;
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--accent-color);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: var(--transition);
        z-index: 999;
        gap: 1rem;
    }

    .nav-links.active { left: 0; }

    .nav-links a {
        font-size: 1.3rem;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        color: var(--white);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Grid Overrides for Legacy Layouts */
    .dashboard-grid, .cart-grid, .checkout-grid, .order-details-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    
    /* Touch Optimized Navigation for User Panel */
    .dashboard-nav {
        display: flex !important;
        overflow-x: auto !important;
        padding: 0.5rem !important;
        background: var(--white);
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #eee;
        margin-bottom: 1.5rem;
    }

    .dashboard-nav li { flex: 0 0 auto; }

    .dashboard-nav a {
        padding: 0.8rem 1.2rem !important;
        white-space: nowrap;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        font-size: 0.9rem;
    }

    .dashboard-nav a.active {
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
    }

    /* Legacy Table Cleanup (moved to responsive-stack-table in style.css) */
    .text-right-desktop {
        text-align: left !important;
        padding-top: 1rem !important;
        font-weight: 700;
        color: var(--medium-gray);
    }
}

@media (max-width: 575px) {
    .category-card { height: 280px; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .nav-icons { gap: 0.8rem; }
    .nav-icons a i { font-size: 1.1rem; }

    .btn { width: 100%; } /* Full width buttons on small phones */
}
