/* Desktop Header Comprehensive Fix for Large Screens */
/* This file specifically targets desktop header layout issues */

@media (min-width: 1200px) {
    /* Enhanced Header Container Fixes */
    .enhanced-header {
        background: #ffffff !important;
        box-shadow: 0 2px 20px rgba(255, 107, 53, 0.15) !important;
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        width: 100% !important;
        min-height: 70px !important;
        max-height: 70px !important;
        display: block !important;
    }

    /* Header Content Layout */
    .enhanced-header .container {
        max-width: 1400px !important;
        padding: 0 2rem !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .enhanced-header .header-content {
        padding: 0 !important;
        min-height: 70px !important;
        max-height: 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    .enhanced-header .d-flex.justify-content-between {
        width: 100% !important;
        height: 70px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2rem !important;
    }

    /* Brand Section Optimization */
    .enhanced-header .brand-section {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-shrink: 0 !important;
        min-width: 280px !important;
        max-width: 350px !important;
    }

    .enhanced-header .brand-section a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
    }

    .enhanced-header .logo-container {
        flex-shrink: 0 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .enhanced-header .logo-image {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .enhanced-header .brand-text {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

    /* Desktop Navigation Optimization */
    .enhanced-header nav.d-none.d-lg-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        flex: 1 !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .enhanced-header nav .nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        color: #333 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        border: 2px solid transparent !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        position: relative !important;
        min-height: 45px !important;
        justify-content: center !important;
    }

    .enhanced-header nav .nav-link i {
        font-size: 1rem !important;
        width: 18px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    .enhanced-header nav .nav-link span {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    /* Navigation Hover Effects */
    .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;
        text-decoration: none !important;
    }

    .enhanced-header nav .nav-link:active {
        transform: translateY(0) !important;
    }

    /* Special Sign In Button Styling */
    .enhanced-header nav .nav-link[href*="signin"] {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border-color: #D4AF37 !important;
        font-weight: 700 !important;
    }

    .enhanced-header nav .nav-link[href*="signin"]:hover {
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border-color: #D4AF37 !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    }

    /* Cart Badge Styling */
    .enhanced-header nav .nav-link .badge {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 50px !important;
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        color: white !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
        min-width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
    }

    /* Header Actions Section */
    .enhanced-header .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-shrink: 0 !important;
        min-width: 200px !important;
        justify-content: flex-end !important;
    }

    /* Sign In Icon Button */
    .enhanced-header .header-signin-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 8px !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;
    }

    .enhanced-header .header-signin-icon:hover {
        background: #D4AF37 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    }

    .enhanced-header .header-signin-icon i {
        font-size: 1.2rem !important;
    }

    .enhanced-header .cart-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 8px !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;
    }

    .enhanced-header .cart-link:hover {
        background: #D4AF37 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    }

    .enhanced-header .cart-link i {
        font-size: 1.2rem !important;
    }

    .enhanced-header .cart-link .badge {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 50px !important;
        background: #dc3545 !important;
        color: white !important;
        border: 2px solid white !important;
        min-width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
    }

    /* Search Toggle Button */
    .enhanced-header .search-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 8px !important;
        background: rgba(255, 107, 53, 0.1) !important;
        color: #D4AF37 !important;
        border: none !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    .enhanced-header .search-toggle:hover {
        background: #D4AF37 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    }

    .enhanced-header .search-toggle i {
        font-size: 1.1rem !important;
    }

    /* Hamburger Toggle */
    .enhanced-header .hamburger-toggle {
        display: none !important; /* Hide hamburger on desktop */
    }

    /* Hide mobile search on desktop */
    .enhanced-header .search-input-group {
        display: none !important;
    }

    /* Ensure top contact banner doesn't interfere */
    .top-contact-banner {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: linear-gradient(135deg, #D4AF37, #D4AF37) !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Main content adjustment */
    .main-content {
        padding-top: 0 !important; /* No gap between header and hero */
        margin: 0 !important;
        width: 100% !important;
    }
}

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .enhanced-header .container {
        max-width: 1600px !important;
        padding: 0 3rem !important;
    }

    .enhanced-header .brand-section {
        min-width: 320px !important;
        max-width: 400px !important;
    }

    .enhanced-header .brand-text {
        font-size: 1.9rem !important;
    }

    .enhanced-header nav.d-none.d-lg-flex {
        max-width: 700px !important;
        gap: 2rem !important;
    }

    .enhanced-header nav .nav-link {
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    .enhanced-header .header-actions {
        min-width: 250px !important;
        gap: 1.5rem !important;
    }
}

/* Ultra Wide Screens (1600px+) */
@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: 800px !important;
        gap: 2.5rem !important;
    }
}