/* ═══════════════════════════════════════════════════
   FEROZZI LIVE SEARCH — Dropdown Style
   Opens below header, page stays in place
   ═══════════════════════════════════════════════════ */

/* Overlay — just the dropdown panel below header */
.fz-search-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 998;
    background: #fff;
    border-top: 1px solid var(--fz-divider, rgba(0,0,0,.08));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    max-height: 70vh;
    overflow-y: auto;
}
.fz-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fz-search-overlay__inner {
    padding: 24px 0 32px;
}

/* Search Form */
.fz-search-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.fz-search-form__row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--fz-text, #1a1a1a);
    padding-bottom: 10px;
}
.fz-search-form__icon {
    flex-shrink: 0;
    opacity: 0.35;
}
.fz-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--fz-font-sans, 'DM Sans', sans-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--fz-text, #1a1a1a);
    padding: 0;
}
.fz-search-form__input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}
.fz-search-form__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.fz-search-form__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--fz-muted, #6b6b6b);
    transition: color 0.15s ease;
}
.fz-search-form__close:hover {
    color: var(--fz-text, #1a1a1a);
}

/* Results */
.fz-search-results {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding-top: 20px;
}

/* Loading */
.fz-search-results__loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.fz-search-results__loading span {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--fz-text, #1a1a1a);
    border-radius: 50%;
    animation: fzSearchSpin 0.6s linear infinite;
}
@keyframes fzSearchSpin {
    to { transform: rotate(360deg); }
}

/* Product Items */
.fz-search-results__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.15s ease;
}
.fz-search-results__item:hover {
    padding-left: 6px;
}
.fz-search-results__item:last-child {
    border-bottom: none;
}
.fz-search-results__item-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f7f6f4;
    overflow: hidden;
}
.fz-search-results__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fz-search-results__item-placeholder {
    width: 100%;
    height: 100%;
    background: #f0ede8;
}
.fz-search-results__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.fz-search-results__item-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fz-text, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fz-search-results__item-price {
    font-size: 0.6875rem;
    color: var(--fz-muted, #6b6b6b);
}

/* View All */
.fz-search-results__view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fz-text, #1a1a1a);
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: gap 0.2s ease;
}
.fz-search-results__view-all:hover {
    gap: 10px;
}
.fz-search-results__view-all[hidden] {
    display: none !important;
}

/* Empty */
.fz-search-results__empty {
    text-align: center;
    padding: 32px 0;
}
.fz-search-results__empty p {
    font-size: 0.875rem;
    color: var(--fz-text, #1a1a1a);
    margin-bottom: 4px;
}
.fz-search-results__empty span {
    font-size: 0.75rem;
    color: var(--fz-muted, #6b6b6b);
}

/* Mobile */
@media (max-width: 768px) {
    .fz-search-overlay {
        max-height: 60vh;
    }
    .fz-search-overlay__inner {
        padding: 16px 0 24px;
    }
    .fz-search-form__input {
        font-size: 1rem;
    }
    .fz-search-results__item-img {
        width: 40px;
        height: 40px;
    }
}
