/* =============================================
   مستر اير - Responsive CSS (Premium)
   ============================================= */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .mega-menu-inner { grid-template-columns: repeat(3, 1fr); }
    .mega-menu { min-width: 600px; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .capacity-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .topbar { display: none; }
    .main-header { display: none; }
    .main-nav { display: none; }
    .mobile-header { display: block; }
    .bottom-nav { display: flex; }

    body { padding-bottom: 60px; }
    .whatsapp-float { bottom: 80px; }
    .scroll-top { bottom: 145px; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .capacity-grid { grid-template-columns: repeat(3, 1fr); }

    .section { padding: 2rem 0; }
    .section-title { font-size: 1.3rem; }

    .mini-cart { width: 100%; left: -100%; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
}

/* Mobile */
@media (max-width: 767px) {
    :root { --container-padding: 0.75rem; }

    .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .capacity-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* Product cards — compact mobile */
    .pc-body { padding: 0.5rem 0.65rem 0.65rem; }
    .pc-name { font-size: 0.8rem; }
    .pc-price-current { font-size: 0.95rem; }
    .pc-hover-specs { display: none; }
    .pc-cart-btn { padding: 0.5rem; font-size: 0.8rem; border-radius: 6px; }

    /* Legacy compat */
    .product-card-body { padding: 0.5rem 0.75rem 0.75rem; }
    .product-card-name { font-size: 0.8rem; }
    .product-card-price .current { font-size: 0.95rem; }
    .product-card-specs { display: none; }
    .add-to-cart-btn { padding: 0.5rem; font-size: 0.8rem; }
    .buy-now-btn { display: none; }

    .section { padding: 1.5rem 0; }
    .section-title { font-size: 1.15rem; }
    .section-subtitle { font-size: var(--font-size-sm); }

    .pagination a, .pagination span { width: 35px; height: 35px; font-size: var(--font-size-sm); }
}

/* Small Mobile */
@media (max-width: 374px) {
    .grid-4, .grid-3, .grid-2 { gap: 0.5rem; }
    .pc-name, .product-card-name { font-size: 0.75rem; }
    .capacity-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .topbar, .main-header, .main-nav, .mobile-header, .bottom-nav,
    .whatsapp-float, .scroll-top, .cookie-bar, .toast-container,
    .site-footer, .brand-rail, .brand-trigger, .brand-drawer,
    .brand-drawer-overlay { display: none !important; }
    body { padding: 0 !important; }
}

/* Brand trigger above WhatsApp on mobile */
@media (max-width: 991px) {
    .brand-trigger { bottom: calc(var(--bottom-nav-height) + 200px); top: auto; transform: none; }
}
