/* Scoped to the two WoodMart header search forms (desktop + mobile nav). */
.wd-search-form { position: relative; }

.stal-header-preview-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100;
    margin-top: 4px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stal-header-preview-dropdown.is-open { display: block; }

.stal-header-preview-state { padding: 14px 16px; }

.stal-header-preview-status {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.stal-header-preview-group + .stal-header-preview-group {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stal-header-preview-group-label {
    margin: 0;
    padding: 10px 16px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.stal-header-preview-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
}

.stal-header-preview-product:hover,
.stal-header-preview-product:focus,
.stal-header-preview-product.is-active {
    background: rgba(0, 0, 0, 0.04);
}

.stal-header-preview-showall {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: none;
    color: #ef183c;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.stal-header-preview-showall:hover,
.stal-header-preview-showall:focus,
.stal-header-preview-showall.is-active {
    background: rgba(239, 24, 60, 0.06);
}

.stal-header-preview-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stal-header-preview-thumb img { max-width: 100%; max-height: 100%; }

.stal-header-preview-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stal-header-preview-name {
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stal-header-preview-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.stal-header-preview-stock.is-out { color: #c0392b; }

.stal-header-preview-price {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.mobile-nav .stal-header-preview-dropdown {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 0;
    max-height: none;
}

/* Prefix suggestions are compact selectable tiles; scoped to the STAL header dropdown. */
.stal-header-preview-similar-title { margin: 0 0 3px; color: #222; font-size: 13px; font-weight: 600; }
.stal-header-preview-similar-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stal-header-preview-similar { max-width: 100%; padding: 7px 9px; border: 1px solid rgba(0,0,0,.12); border-radius: 3px; background: #fff; color: #333; font: inherit; font-size: 12px; line-height: 1.25; text-align: left; cursor: pointer; }
.stal-header-preview-similar:hover, .stal-header-preview-similar:focus, .stal-header-preview-similar.is-active { border-color: #ef183c; background: rgba(239,24,60,.05); color: #c8102e; outline: 0; }
