.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--theme-white, #ffffff);
    backdrop-filter: blur(10px);
    border: 1px solid var(--theme-border-color, #BA947066);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    max-height: 450px;
    overflow-y: auto;
    margin-top: 1px;
}

/* Ensure parent has relative positioning */
.search-bar form, .search-form {
    position: relative;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--theme-border-color, #f0f0f0);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--theme-body-color, #333) !important;
}

.search-suggestion-item:hover {
    background: var(--theme-secondary-color, #fff8f2);
    padding-left: 20px;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 6px;
    border: 1px solid var(--theme-border-color, #eee);
}

.search-suggestion-info {
    flex: 1;
}

.search-suggestion-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    line-height: 1.2;
    color: var(--theme-primary-color, #000);
}

.search-suggestion-price {
    font-size: 14px;
    color: var(--theme-wishlist-color, #f7941d);
    font-weight: 700;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--theme-body-color, #666);
    font-style: italic;
    font-size: 14px;
}

.search-loading {
    padding: 15px;
    text-align: center;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid var(--theme-secondary-color, #f3f3f3);
    border-top: 3px solid var(--theme-primary-color, #f7941d);
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes search-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
.search-suggestions-container::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions-container::-webkit-scrollbar-track {
    background: var(--theme-bg-color, #f1f1f1);
}
.search-suggestions-container::-webkit-scrollbar-thumb {
    background: var(--theme-primary-color, #ccc);
    border-radius: 3px;
    opacity: 0.5;
}
.search-suggestions-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-color);
}


/* Full-Screen Search Overlay */
.search-fullscreen-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-overlay-bg {
    transition: backdrop-filter 0.5s ease;
    background: var(--theme-black, #000000);
    opacity: 0.86;
}

.search-fullscreen-overlay #fullScreenSearchInput {
    font-size: 30px;
    border-bottom: 2px solid var(--theme-border-color, rgba(255, 255, 255, 0.2));
    transition: all 0.4s ease;
    caret-color: var(--theme-primary-color, #f7941d);
    color: var(--theme-white, #ffffff);
}

.search-fullscreen-overlay #fullScreenSearchInput:focus {
    border-color: var(--theme-primary-color, #f7941d);
}

/* Full-Screen Suggestions Container */
#searchFullScreenOverlay .search-suggestions-container {
    position: relative;
    top: 0;
    margin-top: 30px;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: 55vh;
    backdrop-filter: none;
    display: none;
    padding-bottom: 20px;
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

#searchFullScreenOverlay .search-suggestion-item {
    background: rgba(255, 255, 255, 0.05); /* Keep small glass effect or use var with opacity if possible */
    border: 1px solid var(--theme-border-color, rgba(255, 255, 255, 0.08));
    border-radius: 15px;
    margin-bottom: 12px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--theme-white, #ffffff) !important;
    width: 49%;
}

#searchFullScreenOverlay .search-suggestion-item:hover {
    background: var(--theme-primary-color);
    opacity: 0.9;
    /* transform: translateX(10px); */
    border-color: var(--theme-secondary-color);
}

#searchFullScreenOverlay .search-suggestion-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    margin-right: 20px;
    border: none;
}

#searchFullScreenOverlay .search-suggestion-title {
    color: var(--theme-white, #ffffff);
    font-size: 1.1rem;
    font-weight: 500;
}

#searchFullScreenOverlay .search-suggestion-price {
    color: var(--theme-secondary-color, #f7941d);
    font-size: 1rem;
    font-weight: 600;
}

#searchFullScreenOverlay .search-no-results {
    color: var(--theme-white, rgba(255, 255, 255, 0.6));
    opacity: 0.6;
    font-size: 1.25rem;
    padding: 40px;
}

/* Close Button Animation */
#closeSearchBtn svg {
    transition: transform 0.4s ease;
    color: var(--theme-white, #ffffff);
}

#closeSearchBtn:hover svg {
    transform: rotate(90deg) scale(1.1);
    color: var(--theme-secondary-color);
}

/* Hide legacy inline search field if open */
.search-fullscreen-overlay.active ~ .search-field {
    display: none !important;
}


@media (max-width: 600px) {
    #searchFullScreenOverlay .search-suggestion-item {
        width: 96%;
    }
}