/* ========================================
   Search Autocomplete Dropdown — v1.0
   ======================================== */

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

.v25-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-top: none;
}

.v25-sd-section {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.v25-sd-section:last-child {
    border-bottom: none;
}

.v25-sd-heading {
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

/* Product item */
.v25-sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    text-decoration: none;
    color: #1C1917;
    cursor: pointer;
    transition: background 0.15s;
}
.v25-sd-item:hover,
.v25-sd-item.v25-sd-active {
    background: #f5f5f4;
}

.v25-sd-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.v25-sd-img-placeholder {
    background: #e5e5e5;
}

.v25-sd-info {
    flex: 1;
    min-width: 0;
}

.v25-sd-name {
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.v25-sd-name mark {
    background: rgba(166, 90, 60, 0.15);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.v25-sd-price {
    font-size: 14px;
    font-weight: 600;
    color: #A65A3C;
    margin-top: 2px;
}

/* Category item */
.v25-sd-category {
    gap: 8px;
    font-size: 14px;
}
.v25-sd-cat-icon {
    flex-shrink: 0;
    color: #999;
}
.v25-sd-cat-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Fuzzy / "did you mean" */
.v25-sd-suggest {
    font-size: 14px;
    gap: 8px;
    color: #A65A3C;
}
.v25-sd-suggest-icon {
    flex-shrink: 0;
    color: #A65A3C;
}

/* Synonyms hint */
.v25-sd-synonyms {
    padding: 6px 16px;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #f0f0f0;
}
.v25-sd-synonyms a {
    color: #A65A3C;
    text-decoration: none;
}
.v25-sd-synonyms a:hover {
    text-decoration: underline;
}

/* "All results" link */
.v25-sd-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: #A65A3C;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    font-weight: 500;
}
.v25-sd-all:hover {
    background: #faf8f7;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .v25-search-dropdown {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        max-height: 60vh;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
    }
    .v25-sd-img {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   "No Results" Block — search.html
   ======================================== */
.v25-no-results {
    text-align: center;
    padding: 48px 24px;
    max-width: 600px;
    margin: 0 auto;
}
.v25-no-results-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ccc;
}
.v25-no-results h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1C1917;
    margin: 0 0 8px;
}
.v25-no-results p {
    font-size: 15px;
    color: #777;
    margin: 0 0 24px;
    line-height: 1.5;
}
.v25-no-results-tips {
    text-align: left;
    background: #f5f5f4;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.v25-no-results-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.v25-no-results-tips li {
    padding: 4px 0;
    font-size: 14px;
    color: #555;
}
.v25-no-results-tips li::before {
    content: "\2022";
    color: #A65A3C;
    margin-right: 8px;
}
.v25-no-results-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.v25-no-results-categories a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f4;
    border-radius: 20px;
    font-size: 13px;
    color: #1C1917;
    text-decoration: none;
    transition: background 0.15s;
}
.v25-no-results-categories a:hover {
    background: #ece9e6;
}
