/**
 * CHEERCITY.shop — Search-Widget Dropdown Styles
 */

/* ── Dropdown Container ──────────────────────────── */
.cc-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: 2px solid #e2007a;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 0;
}

/* ── Einzelnes Ergebnis ──────────────────────────── */
.cc-search-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.cc-search-item:hover,
.cc-search-item.cc-search-active {
    background: #fef0f5;
    text-decoration: none !important;
}

.cc-search-item:last-of-type {
    border-bottom: none;
}

/* ── Produktbild ─────────────────────────────────── */
.cc-search-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 10px;
    background: #f9f9f9;
    border-radius: 3px;
}

/* ── Info-Block (Name + Kategorie) ───────────────── */
.cc-search-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cc-search-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-search-name strong {
    font-weight: 700;
    color: #e2007a;
}

.cc-search-cat {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Preis ───────────────────────────────────────── */
.cc-search-price {
    font-size: 13px;
    font-weight: 600;
    color: #e2007a;
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}

/* ── "Alle Ergebnisse" Link ──────────────────────── */
.cc-search-all {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    color: #e2007a !important;
    text-decoration: none !important;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-radius: 0 0 4px 4px;
    transition: background 0.15s;
}

.cc-search-all:hover {
    background: #fef0f5;
}

/* ── Keine Treffer ───────────────────────────────── */
.cc-search-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 767px) {
    .cc-search-dropdown {
        width: calc(100vw - 30px);
        left: -10px;
        max-height: 60vh;
    }

    .cc-search-img {
        width: 40px;
        height: 40px;
    }
}
