/* ===================================
   ROADREADY SUPPLY - MOBILE RESPONSIVE FIXES V2
   =================================== */

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Container padding */
    .nav-container {
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    /* Logo - make smaller on mobile */
    .logo {
        flex: 1;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* Move hamburger menu to the left, before logo */
    .mobile-menu-btn {
        display: block;
        order: -1; /* Move to left */
        padding: 0.5rem;
        margin-right: 0.75rem;
    }
    
    /* Hide nav menu by default */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-out;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 300px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .nav-menu a {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    .nav-menu a:hover {
        background: var(--light-gray);
    }
    
    /* Cart button - position to the right */
    .nav-actions {
        order: 2; /* Move to right */
        margin-left: auto;
        position: static;
        transform: none;
    }
    
    .btn-cart {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Logo text can be hidden on very small screens if needed */
    @media (max-width: 380px) {
        .logo-text {
            display: none;
        }
        
        .logo-icon {
            font-size: 2rem;
        }
    }
    
    /* Hero adjustments */
    .hero {
        height: auto;
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Trust badges - side by side on mobile */
    .trust-badges {
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
    }
    
    .trust-badge {
        flex: 0 0 40%;
    }
    
    /* Product showcase */
    .product-showcase {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .product-image img {
        width: 100%;
        height: auto;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-card img {
        width: 100%;
        height: auto;
    }
    
    /* Bundles */
    .bundles-grid {
        grid-template-columns: 1fr;
    }
    
    .bundle-card {
        padding: 1.5rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding: 1.5rem 0;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .product-grid,
    .bundles-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large mobile (landscape) adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        max-height: none;
        box-shadow: none;
        gap: 1rem;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .logo-text {
        display: none;
    }
}

/* Fix for very large screens */
@media (min-width: 1600px) {
    .nav-container {
        max-width: 1800px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
}
