/**
 * Responsive Styles
 * LEDHD Vietnam
 */

/* ===== Mobile First Approach ===== */

/* Mobile: < 576px */
@media (max-width: 575.98px) {
    :root {
        --font-size-base: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        display: flex;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Navigation */
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        margin-top: 0;
    }
    
    .main-menu.active {
        display: block;
    }
    
    .menu-list {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .menu-item > a {
        width: 100%;
        padding: 12px 16px;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: var(--spacing-xs);
        margin-left: var(--spacing-md);
    }
    
    /* Hero */
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Newsletter */
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Tablet: 576px - 991px */
@media (min-width: 576px) and (max-width: 991.98px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Desktop: 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop: >= 1200px */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .product-actions {
        opacity: 1;
    }
    
    .product-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .menu-item > a {
        min-height: 44px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .product-actions,
    .hero-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .main-content {
        padding: 0;
    }
}


