/* ARCTIC BULK SUPPLY - MOBILE-FIRST OPTIMIZATIONS */

/* FORCE MOBILE MENU RESET */
.mobile-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* MOBILE HEADER SPACING FIXES - Account for Fixed Header */
@media (max-width: 768px) {
    
    /* Fixed Header Height Compensation */
    body {
        padding-top: 0 !important;
    }
    
    /* Hero Section - Mobile Optimized (Homepage) */
    .hero {
        margin-top: 80px !important;
        padding-top: 1rem !important;
    }
    
    /* Page Hero Section - Other Pages */
    .page-hero {
        margin-top: 100px !important;
        padding-top: 2rem !important;
    }
    
    /* Page Header Section - Account for Fixed Header */
    .page-header {
        margin-top: 100px !important;
        padding-top: 2rem !important;
    }
    
    /* Cart Container - Account for Fixed Header */
    .cart-container {
        margin-top: 80px !important;
        padding-top: 1rem !important;
    }
    
    /* Main Content Areas */
    main {
        margin-top: 80px !important;
        padding-top: 1rem !important;
    }
    
    /* Any first section that might be getting cut off */
    section:first-of-type {
        margin-top: 100px !important;
        padding-top: 2rem !important;
    }
    
    /* Page titles need extra breathing room */
    .page-title {
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure proper spacing on all pages */
    .container {
        padding: 0 1rem !important;
    }
    
    .page-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        color: #00d4ff !important;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
    }
    
    .page-hero .subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        color: #ccc !important;
        padding: 0 1rem !important;
    }
    
    .hero-badge {
        display: inline-block !important;
        background: linear-gradient(135deg, #f7931a, #ff6b35) !important;
        color: white !important;
        padding: 0.7rem 1.5rem !important;
        border-radius: 25px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin-bottom: 2rem !important;
        border: 2px solid rgba(247, 147, 26, 0.3) !important;
        box-shadow: 0 4px 15px rgba(247, 147, 26, 0.2) !important;
    }
    
    /* Stats Grid - Mobile Layout */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        padding: 2rem 1rem !important;
        margin: 2rem 0 !important;
    }
    
    .stat-item {
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 1.5rem 1rem !important;
        border-radius: 15px !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
        text-align: center !important;
    }
    
    .stat-item h3 {
        font-size: 2.2rem !important;
        margin-bottom: 0.3rem !important;
        color: #00d4ff !important;
        font-weight: 800 !important;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
    }
    
    .stat-item p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        color: #ccc !important;
        margin: 0 !important;
        font-weight: 600 !important;
    }
    
    /* Product Cards - Mobile Optimized */
    .product-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .product-name {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
    
    .bulk-price {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .retail-price {
        font-size: 1rem !important;
    }
    
    /* Product Page - Quantity Selection */
    .quantity-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .quantity-option {
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
        text-align: center !important;
        border-radius: 12px !important;
        border: 2px solid rgba(0, 212, 255, 0.3) !important;
        background: rgba(0, 212, 255, 0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    .quantity-option.selected {
        border-color: #00d4ff !important;
        background: rgba(0, 212, 255, 0.2) !important;
        transform: scale(1.02) !important;
    }
    
    /* Add to Cart Button - Mobile Optimized */
    .add-to-cart-btn {
        padding: 18px 24px !important;
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin: 2rem 0 !important;
        border-radius: 12px !important;
        min-height: 60px !important;
    }
    
    /* Pricing Tiers - Mobile Layout */
    .product-pricing {
        margin: 2rem 0 !important;
        padding: 1.5rem !important;
        border-radius: 12px !important;
        background: rgba(0, 212, 255, 0.05) !important;
        border: 1px solid rgba(0, 212, 255, 0.2) !important;
    }
    
    .pricing-title {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        color: #00d4ff !important;
        font-weight: 700 !important;
    }
    
    .product-pricing > div[style*="margin-bottom"] {
        margin-bottom: 1rem !important;
        padding: 1.2rem !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 10px !important;
        text-align: left !important;
        border-left: 4px solid transparent !important;
    }
    
    /* Tier-specific styling */
    .product-pricing > div:nth-child(2) {
        border-left-color: #ff6b35 !important; /* Bronze tier */
    }
    
    .product-pricing > div:nth-child(3) {
        border-left-color: #f7931a !important; /* Silver tier */
    }
    
    .product-pricing > div:nth-child(4) {
        border-left-color: #00d4ff !important; /* Gold tier */
    }
    
    .product-pricing span[style*="color: #ff6b35"],
    .product-pricing span[style*="color: #f7931a"],
    .product-pricing span[style*="color: #00d4ff"] {
        font-size: 1.4rem !important;
        display: block !important;
        margin: 0.8rem 0 !important;
        font-weight: 800 !important;
    }
    
    .product-pricing small {
        display: block !important;
        margin-top: 0.6rem !important;
        font-size: 0.85rem !important;
        opacity: 0.9 !important;
    }
    
    .price-note {
        text-align: center !important;
        font-size: 0.9rem !important;
        color: #aaa !important;
        margin-top: 1rem !important;
        font-style: italic !important;
    }
    
    /* MOBILE NAVIGATION - CART + MENU LAYOUT */
    .nav-links {
        display: none !important;
    }
    
    .mobile-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .mobile-cart-icon {
        display: flex !important;
        align-items: center !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 1.3rem !important;
        padding: 0.6rem !important;
        border-radius: 8px !important;
        background: rgba(0, 212, 255, 0.15) !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
        min-height: 44px !important;
        gap: 0.3rem !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-cart-icon:hover,
    .mobile-cart-icon:active {
        background: rgba(0, 212, 255, 0.25) !important;
        border-color: #00d4ff !important;
        color: #00d4ff !important;
        transform: scale(1.05) !important;
    }
    
    .mobile-cart-icon .cart-count {
        background: #f7931a !important;
        color: white !important;
        border-radius: 50% !important;
        padding: 0.15rem 0.4rem !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        min-width: 20px !important;
        text-align: center !important;
        line-height: 1 !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: #fff !important;
        font-size: 1.3rem !important;
        cursor: pointer !important;
        padding: 0.6rem !important;
        margin: 0 !important;
        min-height: 44px !important;
        min-width: 44px !important;
        line-height: 1 !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        border-color: #00d4ff !important;
        background: rgba(0, 212, 255, 0.1) !important;
        color: #00d4ff !important;
        transform: scale(1.05) !important;
    }
    
    /* Header Layout - Cart + Menu Mobile */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
    }
    
    nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem 1rem !important;
        position: relative !important;
        min-height: 60px !important;
    }
    
    .logo {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        z-index: 1001 !important;
        flex: 1 !important;
        margin-right: 1rem !important;
    }
    
    /* Mobile Menu Overlay - ENSURE HIDDEN BY DEFAULT */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.98) !important;
        z-index: 2000 !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        backdrop-filter: blur(20px) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-menu-close {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        background: rgba(255, 107, 107, 0.2) !important;
        border: 2px solid #ff6b6b !important;
        color: #fff !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        z-index: 2001 !important;
        padding: 12px !important;
        min-height: 48px !important;
        min-width: 48px !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        font-weight: bold !important;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 107, 107, 0.4) !important;
        transform: rotate(90deg) scale(1.1) !important;
    }
    
    .mobile-menu-links {
        list-style: none !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        max-width: 400px !important;
        width: 90% !important;
    }
    
    .mobile-menu-links li {
        margin: 1.2rem 0 !important;
    }
    
    .mobile-menu-links a {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 1.2rem 1.5rem !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(247, 147, 26, 0.05)) !important;
        border: 2px solid rgba(0, 212, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        gap: 1rem !important;
    }
    
    .mobile-menu-links a:hover,
    .mobile-menu-links a:active {
        color: #00d4ff !important;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(247, 147, 26, 0.1)) !important;
        border-color: #00d4ff !important;
        transform: translateX(10px) scale(1.02) !important;
        box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3) !important;
    }
    
    /* Clean mobile menu - no extra branding needed */
    
    /* Contact Page - Mobile Forms */
    .contact-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .contact-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-card input,
    .contact-card select,
    .contact-card textarea {
        padding: 14px !important;
        font-size: 1rem !important;
        margin: 0.75rem 0 !important;
        border-radius: 8px !important;
        min-height: 48px !important;
    }
    
    .contact-card button {
        padding: 16px !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
        border-radius: 10px !important;
    }
    
    /* Improved Mobile Spacing */
    .container {
        padding: 0 16px !important;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    /* Mobile-Optimized Background */
    .page-hero {
        padding: 4rem 0 3rem !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    /* Product Images - Mobile Optimized */
    .product-image img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        border-radius: 15px !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }
    
    .product-batch {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        padding: 0.8rem !important;
        background: rgba(0, 212, 255, 0.1) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
    }
    
    .product-category {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center !important;
        color: #f7931a !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
    
    .product-title, .product-name {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        color: #fff !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }
    
    /* Better Mobile Readability */
    p, .product-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }
    
    /* Mobile Footer */
    footer {
        padding: 2rem 0 !important;
        text-align: center !important;
    }
    
    footer p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .page-hero h1 {
        font-size: 1.9rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stat-item h3 {
        font-size: 2.2rem !important;
    }
    
    .container {
        padding: 0 12px !important;
    }
    
    .quantity-option {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .add-to-cart-btn {
        font-size: 1rem !important;
        padding: 16px 20px !important;
    }
}

/* Landscape Mobile - Better Use of Width */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .quantity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .page-hero {
        padding: 2rem 0 !important;
    }
    
    .page-hero h1 {
        font-size: 2rem !important;
    }
}