.search-box-wrapper {
    position: relative;
}

#searchDropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 480px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    margin-top: 4px;
}

#searchDropdown.show {
    display: block;
}

.search-section {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-section:last-of-type {
    border-bottom: none;
}

.search-section-title {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    gap: 12px;
}

.search-item:hover {
    background: #f8f8f8;
}

.search-item img,
.search-no-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.search-category img,
.search-category .search-no-img {
    width: 36px;
    height: 36px;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-item-name mark {
    background: #fff3cd;
    padding: 0;
}

.search-item-price {
    margin-top: 4px;
    font-size: 14px;
}

.search-item-price .old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 12px;
}

.search-item-price .current-price {
    font-weight: 600;
    color: #0da487;
}

.search-view-all {
    display: block;
    text-align: center;
    padding: 14px;
    background: #f8f8f8;
    color: #0da487;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}

.search-view-all:hover {
    background: #0da487;
    color: #fff;
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: #888;
}
