/* Desktop Override CSS - Force proper desktop layout */
/* This file specifically overrides mobile-first constraints */

/* Critical desktop layout fixes */
@media (min-width: 992px) {
    /* Force hide mobile header on all desktops */
    .modern-header {
        display: none !important;
    }
    
    /* Force show desktop navigation */
    .navbar {
        display: block !important;
    }
    
    /* Force show enhanced header */
    .enhanced-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Large Desktop Specific Overrides */
@media (min-width: 1200px) {
    /* Override any mobile constraints on large screens */
    .mobile-app-container {
        display: block !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    /* Ensure proper header positioning */
    .enhanced-header {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background: white !important;
        border-bottom: 1px solid #eee !important;
    }
    
    /* Top contact banner positioning */
    .top-contact-banner {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        height: 32px !important;
    }
}

@media (min-width: 992px) {
    /* Remove ALL mobile container constraints for sidebar layout */
    body {
        background: #f8f9fa !important;
        display: block !important;
        min-height: 100vh !important;
        flex-direction: unset !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        line-height: 1.6 !important;
        color: #333 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Force remove mobile app styling */
    .mobile-app-container {
        background: none !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        min-height: auto !important;
        display: block !important;
        flex: none !important;
        flex-direction: unset !important;
    }
    
    /* Main content adjusted for horizontal navigation layout */
    .main-content {
        margin-top: 0 !important;
        margin-right: 0 !important;
        min-height: calc(100vh) !important;
        padding: 0 !important;
        background: #f8f9fa !important;
        width: auto !important;
        border: none !important;
        box-shadow: none !important;
        flex: none !important;
        padding-bottom: 0 !important;
    }
    
    /* Header fixes - Hide mobile header completely on desktop */
    .modern-header {
        display: none !important;
    }
    
    /* Show desktop navigation */
    .navbar {
        display: block !important;
    }
    
    /* Force show enhanced header */
    .enhanced-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force show desktop navigation */
    .enhanced-header nav.d-none.d-lg-flex {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Desktop navigation styling */
    .enhanced-header nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.5rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .enhanced-header nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        color: #333 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: all 0.3s ease !important;
        border-radius: 8px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        white-space: nowrap !important;
        position: relative !important;
        border: 2px solid transparent !important;
    }
    
    .enhanced-header nav .nav-link i {
        font-size: 1.1rem !important;
        width: 20px !important;
        text-align: center !important;
    }
    
    .enhanced-header nav .nav-link:hover {
        background-color: rgba(255, 107, 53, 0.1) !important;
        color: #D4AF37 !important;
        transform: translateY(-2px) !important;
        border-color: rgba(255, 107, 53, 0.3) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2) !important;
    }
    
    .enhanced-header nav .nav-link:active {
        transform: translateY(0) !important;
    }
    
    /* Special styling for Sign In link */
    .enhanced-header nav .nav-link[href*="signin"] {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border-color: #D4AF37 !important;
    }
    
    .enhanced-header nav .nav-link[href*="signin"]:hover {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border-color: #D4AF37 !important;
    }
    
    /* Special Cart Badge Styling for Desktop */
    .enhanced-header nav .nav-link .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 50px !important;
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
        animation: pulse 2s infinite !important;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* Desktop Auth Button Styling */
    .auth-btn-desktop {
        padding: 0.75rem 1.5rem !important;
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        text-decoration: none !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
        border: 2px solid transparent !important;
    }
    
    .auth-btn-desktop:hover {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
        color: white !important;
        text-decoration: none !important;
    }
    
    .auth-btn-desktop:active {
        transform: translateY(0) !important;
    }
    
    .bg-orange {
        background-color: #D4AF37 !important;
    }
    
    .text-orange {
        color: #D4AF37 !important;
    }
    
    /* Force show desktop search */
    .desktop-search-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Footer adjustments */
    footer {
        margin-right: 0 !important;
        margin-top: 0 !important;
    }
}

/* Mobile Footer Visibility Fix */
@media (max-width: 991px) {
    /* Ensure footer is visible on mobile */
    footer.bg-dark {
        display: block !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Reset main content for mobile */
    .main-content {
        margin-right: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: white !important;
        min-height: auto !important;
    }
    
    /* Hide desktop sidebar on mobile */
    .desktop-layout {
        display: none !important;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search-section {
        display: none !important;
    }
}