/* Live search dropdown — form styling comes from theme .search-widget rules */
.penny-header-search {
    position: relative;
}

.penny-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: min(420px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(18, 18, 18, 0.14);
    z-index: 1400;
    overflow: hidden;
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
}

.penny-search-dropdown[hidden] {
    display: none !important;
}

.penny-search-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.penny-search-dropdown-body {
    overflow-y: auto;
    flex: 1;
}

.penny-search-group + .penny-search-group {
    border-top: 1px solid #f0f0f0;
}

.penny-search-group-label {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.penny-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #121212;
    transition: background 0.12s ease;
}

.penny-search-result:hover,
.penny-search-result.is-active {
    background: #faf6f2;
}

.penny-search-result-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.penny-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.penny-search-result-thumb i {
    font-size: 18px;
    color: #aaa;
}

.penny-search-result-body {
    flex: 1;
    min-width: 0;
}

.penny-search-result-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.penny-search-result-meta {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.penny-search-result-price {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #121212;
}

.penny-search-empty,
.penny-search-loading {
    padding: 28px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.penny-search-dropdown-foot {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.penny-search-view-all {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--theme, #ff914d);
    color: #121212;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.penny-search-view-all:hover {
    filter: brightness(0.96);
    color: #121212;
}
