/* Mobile Styles - Enhanced for Small Screens */

/* CRITICAL: Remove any body/html constraints that could limit full-width elements */
html, body {
    overflow-x: hidden !important;
}

@media (max-width: 768px) {

    /* ========================================
       CRITICAL MOBILE NAVIGATION OVERRIDE
       Force navigation menu to be visible inline on all pages
       ======================================== */
    
    /* Allow dropdown menu to work properly on mobile */
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.open {
        display: flex !important;
    }
    
    /* Show mobile menu button on mobile */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Force navigation actions (cart) to be hidden on small screens */
    body .nav-actions,
    .nav-actions {
        display: none !important;
    }

    /* ========================================
       COMPREHENSIVE MOBILE LAYOUT FIX
       Ensure proper centering and spacing
       ======================================== */
    
    /* Base Layout - COMPREHENSIVE OVERRIDE */
    html, body {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        /* CRITICAL: Override all conflicting container rules */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Main content area - ensure proper flow */
    main, .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Navigation container - ensure proper alignment */
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* FULL WIDTH FIXES - CRITICAL OVERRIDES */
    
    /* Target announcement bar with maximum specificity */
    body div.announcement-bar,
    .announcement-bar {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Target footer with maximum specificity */
    body footer.footer,
    footer.footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Content containers - force full width */
    .announcement-bar .announcement-content,
    body div.announcement-content,
    .announcement-content {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .footer .footer-content,
    body div.footer-content,
    .footer-content {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Override any container max-width constraints */
    .container .announcement-bar,
    .container .footer,
    .container .announcement-content,
    .container .footer-content {
        max-width: none !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    /* Emergency overrides - ensure no max-width anywhere */
    * {
        /* This ensures all elements don't have max-width constraints */
    }
    
    .announcement-bar, 
    .announcement-content,
    .footer,
    .footer-content {
        max-width: 100vw !important;
    }

    /* Navigation Improvements - Compact menu to fit on mobile */
    .nav-logo h1 {
        font-size: 16px !important;
        margin: 0 !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
    }

    .nav-link {
        padding: 6px 8px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        border-radius: 4px !important;
    }

    .nav-container {
        padding: 8px 12px !important;
    }
    
    /* Navigation bar compact layout */
    .navbar {
        padding: 8px 0 !important;
    }
    
    /* Ensure navigation items fit properly */
    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 0;
        justify-items: center;
        width: 100%;
    }

    .hero-text {
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 8px;
    }

    .product-showcase {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 8px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 16px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.5;
        padding: 0 8px;
        margin-bottom: 20px;
    }

    /* Enhanced Product Card */
    .product-card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .product-image {
        padding: 16px;
    }

    .carousel-slide {
        height: 220px;
        border-radius: 8px;
    }

    /* Buttons - Enhanced Touch Targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 8px;
        font-weight: 600;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .btn-outline {
        border: 2px solid #667eea;
        background: transparent;
        color: #667eea;
    }

    /* Free Badge */
    .free-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin: 16px 0;
    }

    .save-100 {
        background: #ef4444;
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .free-label {
        background: #10b981;
        color: white;
        padding: 6px 16px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 700;
    }

    /* Footer Improvements */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 0;
    }

    .footer-left {
        flex-direction: column;
        gap: 20px;
    }

    .payment-methods {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Cart Enhancements */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* Enhanced Typography */
    h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    h4 {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    /* Better spacing for all elements */
    p {
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* Form Improvements */
    input, textarea, select {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        transition: border-color 0.2s ease;
    }

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    /* Cards and content blocks */
    .card {
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
    }

    /* Feature cards */
    .feature-card {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
        border-radius: 12px;
        margin: 0 8px;
    }

    /* FAQ */
    .faq-item {
        margin-bottom: 8px;
        border-radius: 8px;
        overflow: hidden;
    }

    .faq-question {
        padding: 16px;
        font-size: 16px;
        font-weight: 600;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 15px;
        line-height: 1.6;
    }
}

/* iPhone XR and Similar Devices (375px - 428px) - Optimized Navigation */
@media (min-width: 375px) and (max-width: 428px) {
    /* Compact navigation for iPhone XR */
    .nav-logo h1 {
        font-size: 15px !important;
    }
    
    .nav-menu {
        gap: 7px !important;
    }
    
    .nav-link {
        padding: 5px 7px !important;
        font-size: 12px !important;
    }
    
    .nav-container {
        padding: 8px 10px !important;
    }
    /* Use consistent container rules from base mobile section */
    
    /* SPECIFIC IPHONE XR CENTERING FIXES */
    
    /* Ensure body and html are perfectly centered */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Main content and container - critical centering */
    .main-content,
    body .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .container,
    body .container,
    .main-content .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
    }

    /* Hero section specific fixes */
    .hero-section,
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
    }

    .hero-title {
        font-size: 34px;
        text-align: center !important;
        margin: 0 auto !important;
        display: block !important;
        width: 100% !important;
        line-height: 1.2 !important;
    }

    .hero-description {
        text-align: center !important;
        margin: 16px auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
    }

    .hero-text {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
        line-height: 1.1;
    }

    .hero-description {
        font-size: 16px;
        padding: 0 12px;
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-text {
        padding: 0 12px;
    }

    /* Slightly larger touch targets for better usability */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Better spacing for content */
    .feature-card,
    .testimonial-card {
        padding: 24px;
    }
}

/* Small Mobile Devices (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
    /* Use consistent container rules from base mobile section */

    .hero-title {
        font-size: 28px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 15px;
        padding: 0 8px;
        line-height: 1.5;
    }

    .current-price {
        font-size: 32px;
    }

    .announcement-bar {
        font-size: 13px;
        padding: 10px 12px;
        line-height: 1.3;
    }

    .product-card {
        border-radius: 8px;
    }

    .carousel-slide {
        height: 200px;
    }

    /* Compact spacing for small screens */
    .feature-card,
    .testimonial-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .card {
        padding: 16px;
        margin-bottom: 12px;
    }

    /* Smaller icons for small screens */
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    /* FAQ improvements */
    .faq-question {
        padding: 14px 12px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 12px 14px;
        font-size: 14px;
    }
}

/* Very Small Devices (iPhone SE, older phones) */
@media (max-width: 319px) {
    /* Use consistent container rules from base mobile section */
    /* Reduce padding for very small screens */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 14px;
        padding: 0 4px;
        line-height: 1.4;
    }

    .current-price {
        font-size: 28px;
    }

    .announcement-bar {
        font-size: 12px;
        padding: 8px;
        line-height: 1.2;
    }

    /* Ultra-compact layout */
    .hero-content {
        gap: 16px;
    }

    .product-card {
        border-radius: 6px;
    }

    .carousel-slide {
        height: 180px;
    }

    .feature-card,
    .testimonial-card,
    .card {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    /* Smaller buttons but still touch-friendly */
    .btn {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 6px;
    }

    /* Compact FAQ */
    .faq-question {
        padding: 12px 8px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 8px 12px;
        font-size: 13px;
        line-height: 1.4;
    }

    /* Compact footer */
    .footer-content {
        gap: 16px;
        padding: 24px 0;
    }

    .payment-methods {
        gap: 6px;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content {
        gap: 16px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .carousel-slide {
        height: 160px;
    }
}

/* High DPI displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text and images on Retina displays */
    .hero-title,
    .btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
    /* Enhanced mobile navigation menu */
    
    /* Enhanced mobile navigation menu - COMPACT for very small screens */
    @media (max-width: 480px) {
        .nav-logo h1 {
            font-size: 14px !important;
            letter-spacing: -0.5px !important;
        }
        
        .nav-menu {
            gap: 6px !important;
        }
        
        .nav-link {
            padding: 4px 6px !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            border-radius: 3px !important;
        }
    }

    .nav-link {
        padding: 14px 16px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #374151 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f3f4f6 !important;
        color: #667eea !important;
    }

    /* Enhanced mobile menu button */
    .mobile-menu-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: black !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .mobile-menu-btn:active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.98) !important;
    }
    
    /* Ensure text wraps properly on small screens */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Better button spacing on mobile */
    .btn {
        margin: 4px 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Enhanced cart drawer for mobile */
    .cart-drawer {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: white !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15) !important;
        z-index: 1001 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
        overflow-y: auto !important;
    }

    .cart-drawer.open {
        transform: translateY(0) !important;
    }

    .cart-header {
        padding: 20px 16px 16px !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .cart-items {
        padding: 16px !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
    }

    .cart-item {
        padding: 12px !important;
        border-radius: 8px !important;
        background: #f9fafb !important;
        margin-bottom: 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .cart-total {
        padding: 16px !important;
        border-top: 1px solid #e5e7eb !important;
        background: #f9fafb !important;
    }
}

/* ========================================
   HERO CONTENT CENTERING FIX
   Specific fixes for hero section alignment
   ======================================== */
@media (max-width: 768px) {
    /* Hero section text alignment */
    .hero-section .hero-text,
    .hero-text,
    body .hero-section .hero-text {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    .hero-title,
    body .hero-section .hero-title {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }

    .hero-description,
    body .hero-section .hero-description {
        text-align: center !important;
        margin: 16px auto !important;
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure all main content is centered */
    .hero-content {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Products and feature sections */
    .features-grid,
    .products-grid {
        display: block !important;
        text-align: center !important;
    }

    .product-card,
    .feature-card {
        text-align: left !important;
        width: 100% !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        display: block !important;
    }
}

/* ========================================
   FINAL FULL-WIDTH OVERRIDES
   These rules ensure full-width announcement bar and footer on mobile
   ======================================== */
@media (max-width: 768px) {
    /* Force full width with maximum CSS specificity */
    body div.announcement-bar,
    body footer.footer,
    div.announcement-bar,
    footer.footer,
    .announcement-bar,
    .footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Content areas - ensure they span full width */
    .announcement-bar .announcement-content,
    .footer .footer-content {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Override any container constraints */
    .container .announcement-bar,
    .container .footer,
    .container .announcement-content,
    .container .footer-content {
        max-width: none !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
}

/* ========================================
   FINAL MOBILE CENTERING FIX - ENHANCED
   Ensure perfect body and content alignment
   ======================================== */
@media (max-width: 768px) {
    /* Force body and html to full width with proper centering */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    /* COMPREHENSIVE CONTAINER OVERRIDE */
    body .container,
    .container,
    .main-content .container,
    main .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
    }

    /* Navigation container alignment */
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    /* Main content area - CRITICAL FOR CENTERING */
    main, 
    .main-content,
    body main,
    body .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        float: none !important;
        clear: both !important;
    }

    /* Hero and content sections - ensure they use container width */
    .hero-section,
    .hero, 
    .hero-content,
    .features, 
    .features-grid,
    .testimonials, 
    .testimonials-grid,
    .pricing, 
    .pricing-grid,
    .products-grid, 
    .product-grid,
    body .hero-section,
    body .hero,
    body .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        float: none !important;
        clear: both !important;
    }

    /* Emergency centering fix - reset all possible conflicts */
    * {
        box-sizing: border-box !important;
    }
    
    html > * {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    body > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* IPHONE XR SPECIFIC FIX - EXTRA STRONG */
@media (min-width: 375px) and (max-width: 428px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        height: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Super specific iPhone XR container fix */
    main.main-content,
    body main.main-content {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        overflow: hidden !important;
    }
    
    .main-content .container {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
}