/* Final Desktop Layout Fixes - Comprehensive Solution */

/* Force proper desktop display for screens 1200px and above */
@media (min-width: 1200px) {
    /* Reset any mobile-first constraints */
    * {
        box-sizing: border-box;
    }
    
    /* Body layout for desktop */
    body {
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: #333;
        overflow-x: hidden;
    }
    
    /* Remove mobile app constraints completely */
    .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;
    }
    
    /* Top Contact Banner - Static positioning */
    .top-contact-banner {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 1rem !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    /* Enhanced Header - Static positioning */
    .enhanced-header {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        border-bottom: 2px solid rgba(255, 107, 53, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        display: block !important;
        width: 100% !important;
        transition: all 0.3s ease !important;
    }
    
    /* Enhanced Header Container */
    .enhanced-header .container {
        max-width: 1400px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
        height: 100% !important;
    }
    
    /* Header Content */
    .enhanced-header .header-content {
        height: 80px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Main flex container inside header */
    .enhanced-header .d-flex.justify-content-between {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2rem !important;
    }
    
    /* Brand Section - Left aligned */
    .enhanced-header .brand-section {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        flex-shrink: 0 !important;
        min-width: 300px !important;
        max-width: 350px !important;
    }
    
    .enhanced-header .brand-section a {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .enhanced-header .logo-container {
        width: 55px !important;
        height: 55px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
    }
    
    .enhanced-header .logo-image {
        width: 55px !important;
        height: 55px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
    
    .enhanced-header .brand-text {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px !important;
    }
    
    /* Desktop Navigation - Center aligned */
    .enhanced-header nav.d-none.d-lg-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.2rem !important;
        flex: 1 !important;
        max-width: 900px !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        height: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .enhanced-header nav .nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 10px 14px !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        color: #333 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        border: 2px solid transparent !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        white-space: nowrap !important;
        position: relative !important;
        height: 40px !important;
        min-width: 90px !important;
        max-width: 120px !important;
        justify-content: center !important;
        background: rgba(255, 107, 53, 0.05) !important;
        flex-shrink: 0 !important;
    }
    
    .enhanced-header nav .nav-link i {
        font-size: 1.1rem !important;
        width: 20px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .enhanced-header nav .nav-link span {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
    }
    
    /* Navigation hover effects */
    .enhanced-header nav .nav-link:hover {
        background: rgba(255, 107, 53, 0.15) !important;
        color: #D4AF37 !important;
        transform: translateY(-3px) !important;
        border-color: rgba(255, 107, 53, 0.4) !important;
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25) !important;
        text-decoration: none !important;
    }
    
    .enhanced-header nav .nav-link:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2) !important;
    }
    
    /* Special Sign In button styling */
    .enhanced-header nav .nav-link-signin,
    .enhanced-header nav .nav-link[href*="signin"] {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border: 2px solid #D4AF37 !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .enhanced-header nav .nav-link-signin::before,
    .enhanced-header nav .nav-link[href*="signin"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .enhanced-header nav .nav-link-signin:hover,
    .enhanced-header nav .nav-link[href*="signin"]:hover {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border-color: #D4AF37 !important;
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4) !important;
    }
    
    .enhanced-header nav .nav-link-signin:hover::before,
    .enhanced-header nav .nav-link[href*="signin"]:hover::before {
        left: 100%;
    }
    
    /* Cart badge styling */
    .enhanced-header nav .nav-link .badge {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, #dc3545, #c82333) !important;
        color: white !important;
        border: 3px solid white !important;
        box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4) !important;
        min-width: 22px !important;
        height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        animation: cartPulse 2s ease-in-out infinite !important;
    }
    
    /* Header Actions - Right aligned */
    .enhanced-header .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        flex-shrink: 0 !important;
        min-width: 250px !important;
        justify-content: flex-end !important;
        height: 100% !important;
    }
    
    /* Cart link in header actions */
    .enhanced-header .cart-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 10px !important;
        background: rgba(255, 107, 53, 0.1) !important;
        color: #D4AF37 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        border: 2px solid transparent !important;
    }
    
    .enhanced-header .cart-link:hover {
        background: #D4AF37 !important;
        color: white !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3) !important;
        border-color: #D4AF37 !important;
    }
    
    .enhanced-header .cart-link i {
        font-size: 1.3rem !important;
    }
    
    /* Search toggle button */
    .enhanced-header .search-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 10px !important;
        background: rgba(255, 107, 53, 0.1) !important;
        color: #D4AF37 !important;
        border: 2px solid transparent !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    .enhanced-header .search-toggle:hover {
        background: #D4AF37 !important;
        color: white !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3) !important;
        border-color: #D4AF37 !important;
    }
    
    /* Hide mobile elements on desktop */
    .enhanced-header .search-input-group,
    .enhanced-header .hamburger-toggle {
        display: none !important;
    }
    
    /* Main content adjustment */
    .main-content {
        margin-top: 0 !important; /* No gap between header and hero */
        padding: 0 !important;
        background: #f8f9fa !important;
        min-height: calc(100vh) !important;
        width: 100% !important;
    }
    
    /* Animation for cart badge */
    @keyframes cartPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
}

/* Extra large screens adjustments */
@media (min-width: 1400px) {
    .enhanced-header .container {
        max-width: 1600px !important;
        padding: 0 3rem !important;
    }
    
    .enhanced-header .brand-section {
        min-width: 350px !important;
        max-width: 400px !important;
    }
    
    .enhanced-header .brand-text {
        font-size: 2rem !important;
    }
    
    .enhanced-header nav.d-none.d-lg-flex {
        max-width: 800px !important;
        gap: 2.5rem !important;
    }
    
    .enhanced-header nav .nav-link {
        padding: 16px 24px !important;
        font-size: 1rem !important;
        min-width: 120px !important;
    }
    
    .enhanced-header .header-actions {
        min-width: 280px !important;
        gap: 2rem !important;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .enhanced-header .container {
        max-width: 1800px !important;
        padding: 0 4rem !important;
    }
    
    .enhanced-header nav.d-none.d-lg-flex {
        max-width: 900px !important;
        gap: 3rem !important;
    }
}