/* ── Dropdown container ───────────────────────────────────────────── */
.tt-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    z-index: 10000;
    display: none;
    flex-direction: row;
    box-sizing: border-box;
    border-radius: 0 0 6px 6px;
}

.tt-menu.tt-open {
    display: flex;
}

/* ── Left column (suggestions + categories) ──────────────────────── */
.tt-col-left {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #f0f0f0;
    padding: 16px 0;
    flex-shrink: 0;
}

.tt-col-left-title,
.tt-col-right-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    padding: 0 16px 8px;
}

.tt-suggestion-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-suggestion-text:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.tt-suggestion-text svg {
    flex-shrink: 0;
    color: #aaa;
}

.tt-categories-section {
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* ── Right column (products) ─────────────────────────────────────── */
.tt-col-right {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 480px;
}

.tt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.tt-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.tt-product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    border-color: #ccc;
}

.tt-product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fafafa;
    padding: 8px;
    box-sizing: border-box;
}

.tt-card-name {
    font-size: 12px;
    padding: 6px 8px 2px;
    line-height: 1.3;
    flex: 1;
}

.tt-card-sku {
    font-size: 10px;
    color: #999;
    padding: 0 8px;
}

.tt-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #e00;
    padding: 4px 8px 8px;
    display: block;
}

.tt-card-price-old {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    padding: 4px 8px 0;
    display: block;
}

.tt-see-all {
    display: block;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
    grid-column: 1 / -1;
}

.tt-see-all:hover {
    background: #e8f0fe;
}

.tt-empty-state {
    color: #999;
    font-size: 13px;
    padding: 16px 0;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tt-menu.tt-open {
        flex-direction: column;
    }

    .tt-col-left {
        display: none;
    }

    .tt-col-right {
        max-height: 60vh;
        padding: 12px;
    }

    .tt-products-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tt-product-card {
        flex-direction: row;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .tt-product-card img {
        width: 64px;
        min-width: 64px;
        aspect-ratio: 1;
        padding: 6px;
    }

    .tt-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 8px;
    }

    .tt-card-name {
        padding: 0 0 2px;
        font-size: 13px;
    }

    .tt-card-sku {
        padding: 0;
    }

    .tt-card-price {
        padding: 2px 0 0;
        font-size: 13px;
    }

    .tt-card-price-old {
        padding: 0;
        font-size: 11px;
    }

    .tt-card-arrow {
        display: flex;
        align-items: center;
        padding-right: 12px;
        color: #ccc;
        font-size: 20px;
    }
}

/* ── Voice button ─────────────────────────────────────────────────── */
#bvs-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: #888;
    vertical-align: middle;
    line-height: 1;
}

#bvs-btn:hover {
    color: #333;
}

#bvs-btn.bvs-listening {
    color: #e00;
    animation: bvs-pulse 1s infinite;
}

@keyframes bvs-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ── Image search button ──────────────────────────────────────────── */
#bis-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: #888;
    vertical-align: middle;
    line-height: 1;
}

#bis-btn:hover {
    color: #333;
}

#bis-btn:disabled {
    cursor: wait;
}
