/* New Header Layout */
.desktop-header-layout {
    display: none;
}

@media (min-width: 992px) {

    .desktop-logo,
    .main-navigation,
    .desktop-icons {
        display: none !important;
    }

    .desktop-header-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    /* Left Group (Logo + Search) */
    .header-left-group {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    /* Middle Group (Categories + Links) */
    .header-middle-group {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }

    /* Right Group (Icons) */
    .header-right-group {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    /* Logo */
    .header-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        flex-shrink: 0;
    }

    .header-logo img {
        height: 50px;
        width: auto;
        border-radius: 4px;
    }

    .header-logo .logo-text {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--dark-color);
        letter-spacing: -0.5px;
    }

    /* Search Bar */
    .header-search {
        flex: 1;
        max-width: 350px;
        /* Reduced width */
        display: flex;
        align-items: center;
        background: #f3f4f6;
        border-radius: 2rem;
        padding: 0.6rem 1.25rem;
        border: 1px solid transparent;
        transition: all 0.3s;
    }

    .header-search:focus-within {
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .header-search input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 0.95rem;
        color: var(--dark-color);
    }

    .header-search input::placeholder {
        color: #9ca3af;
    }

    .header-search button {
        border: none;
        background: transparent;
        color: var(--primary-color);
        cursor: pointer;
        font-size: 1.1rem;
        padding: 0.25rem 0.5rem;
        transition: transform 0.2s;
    }

    .header-search button:hover {
        transform: scale(1.1);
    }

    /* Category Dropdown */
    .header-category-dropdown {
        position: relative;
        flex-shrink: 0;
    }

    .category-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 0.5rem;
        background: transparent;
        color: var(--dark-color);
        border: none;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }

    .category-btn:hover {
        color: var(--primary-color);
        background: transparent;
        transform: translateY(-1px);
    }

    .category-btn i:last-child {
        font-size: 0.75rem;
        transition: transform 0.3s;
    }

    .category-btn:hover i:last-child {
        transform: rotate(180deg);
    }

    .category-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        background: white;
        border-radius: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        min-width: 220px;
        padding: 0.75rem;
        display: none;
        z-index: 1000;
    }

    .category-dropdown-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .category-dropdown-menu a {
        display: block;
        padding: 0.65rem 0.9rem;
        color: var(--dark-color);
        text-decoration: none;
        border-radius: 0.5rem;
        font-size: 0.9rem;
        transition: all 0.2s;
    }

    .category-dropdown-menu a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateX(5px);
    }

    /* Header Menu Links */
    .header-menu-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .menu-link {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--dark-color);
        text-decoration: none;
        transition: color 0.3s;
        white-space: nowrap;
    }

    .menu-link:hover {
        color: var(--primary-color);
    }

    /* Header Icons */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        flex-shrink: 0;
    }

    .icon-link {
        position: relative;
        color: var(--dark-color);
        font-size: 1.3rem;
        text-decoration: none;
        transition: all 0.3s;
    }

    .icon-link:hover {
        color: var(--primary-color);
        transform: translateY(-2px);
    }

    .icon-link .badge {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #ef4444;
        color: white;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.15rem 0.4rem;
        border-radius: 1rem;
        min-width: 18px;
        text-align: center;
    }
}