/* ============================================
   DESKTOP SEARCH MODAL (centered overlay)
   ============================================ */
.desktop-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.desktop-search-overlay.open {
    display: flex;
}

.desktop-search-modal {
    width: 580px;
    max-width: 90vw;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: desktopSearchFadeIn 0.2s ease;
}

@keyframes desktopSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.desktop-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.desktop-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 24px;
    padding: 0 16px;
    height: 46px;
    gap: 10px;
}

.desktop-search-input-icon {
    flex-shrink: 0;
}

.desktop-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    height: 100%;
}

.desktop-search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.desktop-search-clear {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.desktop-search-clear:hover {
    background-color: #e5e7eb;
}

.desktop-search-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.desktop-search-close:hover {
    background-color: #f3f4f6;
}

.desktop-search-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.desktop-search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 12px;
    text-align: center;
}

.desktop-search-placeholder p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Desktop search result items — reuse mobile styling patterns */
.desktop-sr-list {
    padding: 2px 0;
}

.desktop-sr-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.desktop-sr-item:hover {
    background-color: #f5f5f7;
}

.desktop-sr-item + .desktop-sr-item {
    border-top: 1px solid #eeeff1;
}

.desktop-sr-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.desktop-sr-item-icon svg {
    width: 22px;
    height: 22px;
}

.desktop-sr-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.desktop-sr-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.desktop-sr-item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.desktop-sr-item-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #63687a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 3px;
}

.desktop-sr-item-desc svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.desktop-sr-item-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.desktop-sr-item-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
}

.desktop-sr-item-rating svg {
    width: 13px;
    height: 13px;
}

.desktop-sr-item-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

.desktop-sr-item-price span {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

.desktop-sr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid #eeeff1;
    cursor: pointer;
    transition: background-color 0.15s;
}

.desktop-sr-footer:hover {
    background-color: #f5f5f7;
}

.desktop-sr-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.desktop-sr-footer-left svg {
    flex-shrink: 0;
}

.desktop-sr-footer-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f4f6;
}

.desktop-sr-no-results {
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.desktop-sr-no-results-text {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.desktop-sr-no-results-sub {
    font-size: 13px;
    color: #9ca3af;
}

#desktopSearchInput {
  border: none;
}

#desktopSearchInput:focus {
  outline: none;
  box-shadow: none;
  border: none;
}