/* =====================================
   Grundlayout: Wrapper & Suchfeld
   ===================================== */

.ddz-shop-search-wrapper {
    margin: 1.5rem 0;
}

.ddz-shop-search-block {
    margin-bottom: 1.5rem;
}

.ddz-shop-search-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ddz-shop-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ddz-shop-search-input:focus {
    outline: none;
    border-color: #ff4136;
    box-shadow: 0 0 0 1px rgba(255, 65, 54, 0.2);
}

.ddz-shop-search-results {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Statusmeldungen */

.ddz-loading {
    font-style: italic;
}

.ddz-error {
    color: #c00;
    font-size: 0.85rem;
}

.ddz-no-results {
    font-style: italic;
}

/* =====================================
   Ergebnisblöcke: Sektionen & Überschriften
   ===================================== */

.ddz-results-section {
    margin-bottom: 1.25rem;
}

.ddz-results-heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

/* =====================================
   Ergebnisliste: Kartenlayout
   ===================================== */

.ddz-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ddz-result-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Bild / Logo links */

.ddz-result-thumb img {
    display: block;
    width: 64px;          /* Logo / Produktbild-Größe */
    height: 64px;
    object-fit: contain;  /* Logos/Produkte nicht beschneiden */
    border-radius: 4px;
}

/* Inhalt rechts */

.ddz-result-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* Titelzeile */

.ddz-result-title {
    margin: 0;
    font-size: 0.95rem;
}

.ddz-result-title a {
    display: flex;
    justify-content: space-between;  /* Titel links, Preis rechts */
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.ddz-result-title a:hover .ddz-result-title-text {
    text-decoration: underline;
}

.ddz-result-title-text {
    flex: 1 1 auto;
}

/* Preis am rechten Rand (nur bei Produkten relevant) */

.ddz-result-price {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Excerpt / Kurzbeschreibung */

.ddz-result-excerpt {
    margin-top: 0.15rem;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =====================================
   Mobile-Feintuning
   ===================================== */

@media (max-width: 480px) {
    .ddz-result-item {
        gap: 0.5rem;
    }

    .ddz-result-thumb img {
        width: 56px;
        height: 56px;
    }

    .ddz-result-title a {
        flex-direction: column;
        align-items: flex-start;
    }

    .ddz-result-price {
        margin-top: 0.1rem;
    }
}
