/* 
   bins-boxes.com Responsive Overrides 
   V1.0 - Focused on Mobile & Tablet without breaking Desktop V13 Standard
*/

/* 1. Base Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 6px 0;
    transition: 0.3s;
}

/* Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* 2. Tablet Adjustments (769px - 1024px) */
@media screen and (max-width: 1024px) {
    header { padding: 12px 3%; }
    nav { margin-left: 20px; }
    nav a { margin-left: 15px; font-size: 0.7rem; }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
    
    .section { padding: 60px 3%; }
}

/* 3. Mobile Adjustments (max-width: 768px) */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 4%;
        justify-content: space-between;
        flex-wrap: wrap;
        height: auto;
    }

    .header-brand {
        margin-right: 0;
        gap: 8px;
    }

    .logo img { 
        height: 50px !important; 
    }

    .company-name { 
        font-size: 0.7rem; 
        white-space: normal; 
        line-height: 1.2; 
        max-width: 140px; 
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Navigation Overlay */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        margin-left: 0 !important;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0 !important;
        padding: 15px 5%;
        width: 100%;
        font-size: 0.85rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }

    /* Mobile Dropdown */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: rgba(255,255,255,0.05) !important;
        min-width: 100% !important;
        padding: 0 !important;
        border-top: none !important;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        padding-left: 10% !important;
        background: none !important;
    }

    .lang-switch {
        margin-left: 0 !important;
        padding: 15px 0 !important;
        border-left: none !important;
        width: 100%;
        justify-content: center;
        background-color: rgba(255,255,255,0.03);
    }

    /* Content Layouts */
    .hero-carousel { height: 45vh; }
    .slide h1 { font-size: 1.6rem !important; }
    .slide p { font-size: 0.8rem !important; margin: 10px 0; }
    .btn-red { padding: 12px 25px; font-size: 0.8rem; }

    .section { padding: 40px 5%; }
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: 1.6rem; }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .category-card { padding: 15px; }
    .category-card img { height: 120px; }
    .category-card h3 { font-size: 0.75rem; }

    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .solution-card { padding: 25px !important; }
    .solution-card h3 { font-size: 1.4rem; }
    .solution-card p { font-size: 0.95rem; }

    /* About Modules */
    .about-module { padding: 40px 5%; }
    .module-header h2 { font-size: 1.6rem; }
    .module-text { font-size: 1rem; }
    
    /* Product Details (for individual pages) */
    .product-container {
        flex-direction: column !important;
    }
    
    .product-image, .product-info {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .product-info { margin-top: 30px; }
    .spec-grid { grid-template-columns: 1fr !important; }

    /* Footer */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-brand, .footer-nav, .footer-contact {
        width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-qr { margin: 20px auto; }
}
