/* ==========================================================================
   RESPONSIVE.CSS - Global OEM Solution UK Limited
   Media Queries & Overrides
   ========================================================================== */

/* 1. Large Laptops & Desktops (Under 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .category-grid,
    .products-grid,
    .catalog-grid-wrapper .products-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2. Tablets & Small Laptops (Under 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .about-summary {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .products-page-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* 3. Tablets & Small Laptops (Under 1024px) */
@media (max-width: 1024px) {
    header {
        height: 70px;
    }
    
    header.sticky {
        height: 65px;
    }
    
    /* Hamburger Menu Trigger show */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Slide out Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        padding: 0.5rem 0 0 1rem;
        border-top: none;
        border-left: 2px solid var(--border-color);
        min-width: 100%;
        margin-top: 0.5rem;
    }
    
    .dropdown:hover .dropdown-menu {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 0.4rem 1rem;
    }
    
    /* Hero Banner Slide Text */
    .slide-content {
        text-align: left;
    }
    
    .slide-content h2 {
        font-size: 2.25rem;
        text-align: left;
    }
    
    .slide-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .category-grid,
    .products-grid,
    .catalog-grid-wrapper .products-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
    
    .oem-process-flow {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
    
    .newsletter-inputs {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        padding: 0.85rem 2rem;
    }
    
    /* Form grids stack */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .tech-spec-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .main-image-view {
        height: 380px;
    }
    
    .thumb {
        height: 80px;
    }
    
    /* Sticky Header quote action hide on small tablet */
    header .header-actions .btn {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-slider {
        height: 52vh;
        min-height: 360px;
        max-height: 520px;
    }

    .services-grid--home,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-section-header h2,
    .brand-section-header--row h2 {
        font-size: 1.5rem;
    }

    .slider-prev {
        left: 0.75rem;
    }

    .slider-next {
        right: 0.75rem;
    }
}

/* 4. Large Mobiles (Under 576px) */
@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }

    :root {
        --section-pad: 3rem;
    }

    .hero-slider {
        height: auto;
        min-height: 420px;
        max-height: none;
        padding: 3.5rem 0 4rem;
    }

    .hero-brand {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.15rem;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }

    .slider-control {
        display: none;
    }

    .home-section-intro {
        margin-bottom: 1.5rem;
    }

    .home-section-intro h2 {
        font-size: 1.45rem;
    }

    .product-slider-section {
        padding: 2.25rem 0;
    }

    .home-section-header {
        margin-bottom: 1.1rem;
    }

    .home-section-header h2 {
        font-size: 1.35rem;
    }

    .stats-section {
        padding: 2.75rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1rem;
    }

    .stat-number {
        font-size: 2.1rem;
    }

    .services-grid--home,
    .services-grid,
    .category-grid,
    .products-grid,
    .catalog-grid-wrapper .products-grid,
    .oem-process-flow,
    .why-choose-grid,
    .industries-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-card {
        padding: 1.75rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .product-meta-table td {
        font-size: 0.85rem;
    }
}

/* 5. Extra Small Mobiles (Under 375px) */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
    
    .main-image-view {
        height: 280px;
    }
}

/* iPhone LCD Wholesale & Top Bar Responsive Adjustments */
@media (max-width: 768px) {
    .top-bar-info {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
    
    .lcd-hero h1 {
        font-size: 2rem;
    }
    
    .lcd-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
@media (max-width: 992px) {
    .brand-grid-table {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-grid-table {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .brand-grid-table {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-grid-cell {
        min-height: 90px;
        padding: 0.85rem 0.5rem;
    }
}
    .search-input-wrapper {
        min-width: 100%;
    }
}

