/* Search Overlay Redesign */
.vyro-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vyro-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.vyro-search-overlay__inner {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
    height: 100%;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vyro-search-overlay.is-active .vyro-search-overlay__inner {
    transform: translateY(0);
}

.vyro-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
    border-radius: 32px;
    padding: 0 24px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.vyro-search-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(138, 43, 226, 0.4);
}

.vyro-search-input-wrap svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.vyro-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    padding: 0 16px;
    height: 100%;
    outline: none;
    width: 100%;
}

.vyro-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.vyro-search-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.vyro-search-clear:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.vyro-search-close-overlay {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.vyro-search-close-overlay:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.vyro-search-section-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin: 24px 0 12px;
    font-weight: 600;
}

/* Chips */
.vyro-search-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vyro-search-categories::-webkit-scrollbar {
    display: none;
}

.vyro-search-chip,
.vyro-search-recent-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.vyro-search-chip:hover,
.vyro-search-recent-chip:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.2);
}

.vyro-search-recent-chip .remove-recent {
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.vyro-search-recent-chip .remove-recent:hover {
    color: #ff4757;
}

/* Autocomplete Results */
.vyro-search-autocomplete-results {
    background: rgba(25, 27, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-top: 16px;
    max-height: 480px;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar for results */
.vyro-search-autocomplete-results::-webkit-scrollbar {
    width: 6px;
}
.vyro-search-autocomplete-results::-webkit-scrollbar-track {
    background: transparent;
}
.vyro-search-autocomplete-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.vyro-search-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Product Match Card */
.vyro-search-product-match {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    gap: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.vyro-search-product-match:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vyro-search-product-match__thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.vyro-search-product-match__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.vyro-search-product-match__title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.vyro-search-product-match__price {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

/* Zero Results */
.vyro-search-zero-results {
    text-align: center;
    padding: 40px 20px;
}

.vyro-search-zero-results h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 8px;
}

.vyro-search-zero-results p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 24px;
}

/* Shimmer Loading Skeleton */
.vyro-search-skeleton {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 16px;
}
.vyro-search-skeleton__thumb,
.vyro-search-skeleton__text {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}
.vyro-search-skeleton__thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}
.vyro-search-skeleton__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vyro-search-skeleton__text.title {
    height: 16px;
    width: 60%;
}
.vyro-search-skeleton__text.price {
    height: 12px;
    width: 30%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vyro-search-keyboard-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vyro-search-overlay__inner {
        padding: 60px 16px 20px;
    }
    .vyro-search-input-wrap {
        height: 56px;
    }
    .vyro-search-input {
        font-size: 16px;
    }
    .vyro-search-categories {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .vyro-search-close-overlay {
        top: 12px;
        right: 12px;
    }
}
