/*
 * Category-Coupons: hochwertige Shop-Karten mit aufklappbarer Gutschein-Unterliste.
 * Content-Breite: global base-layout-content-container (briefing/design.md Kapitel 005).
 */

.base-category-coupons-results-table {
    border: none;
    background: transparent;
}

.base-category-coupons-results-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.base-category-coupons-results-row {
    border: none;
    background: transparent;
}

.base-category-coupons-results-row:hover {
    background: transparent;
}

.base-category-coupons-results-cell {
    padding: 0;
    border: none;
    background: transparent;
}

.base-category-coupons-shop-card {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 0.85rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.base-category-coupons-shop-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--color-primary-rgb), 0.22);
}

.base-category-coupons-shop-details {
    width: 100%;
}

.base-category-coupons-shop-summary {
    cursor: pointer;
    list-style: none;
    display: block;
    padding: 1rem 1.15rem;
    transition: background-color 0.2s ease;
}

.base-category-coupons-shop-summary:hover {
    background: var(--color-surface-hover);
}

.base-category-coupons-shop-details[open] .base-category-coupons-shop-summary {
    background: var(--color-surface-hover);
    border-bottom: 1px solid var(--color-border);
}

.base-category-coupons-shop-summary::-webkit-details-marker {
    display: none;
}

.base-category-coupons-shop-summary-grid {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    width: 100%;
}

.base-category-coupons-shop-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb), 0.08);
    flex-shrink: 0;
}

.base-category-coupons-shop-chevron::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.base-category-coupons-shop-details[open] .base-category-coupons-shop-chevron::before {
    transform: rotate(45deg) translateY(-1px);
}

.base-category-coupons-shop-media {
    float: none;
    width: 96px;
    max-width: 96px;
    margin: 0;
}

.base-category-coupons-shop-media-placeholder {
    display: block;
    width: 96px;
    height: 96px;
}

.base-category-coupons-shop-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding: 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-sizing: border-box;
}

.base-category-coupons-shop-logo-wrap .base-shop-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.base-category-coupons-shop-content {
    min-width: 0;
}

.base-category-coupons-shop-title {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-tight);
}

.base-category-coupons-voucher-count-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

/* Änderungsprotokoll: 2026-06-04 | agent | @skill-css-rules | Toggle „Gutscheine anzeigen“ als Primary-Button */
.base-category-coupons-toggle-button {
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 0;
    user-select: none;
}

.base-category-coupons-shop-summary .base-category-coupons-toggle-button {
    position: relative;
    z-index: 2;
}

.base-category-coupons-shop-summary .base-link-shop-name-near-logo {
    position: relative;
    z-index: 1;
}

.base-category-coupons-shop-vouchers {
    margin: 0;
    padding: 0.85rem 1.15rem 1.1rem 3.35rem;
    background: linear-gradient(
        180deg,
        rgba(var(--color-primary-rgb), 0.03) 0%,
        transparent 100%
    );
}

.base-category-coupons-voucher-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.base-category-coupons-voucher-row:first-child {
    padding-top: 0.15rem;
}

.base-category-coupons-voucher-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.base-category-coupons-voucher-row .base-suche-description-line {
    margin-bottom: 0.45rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.base-category-coupons-voucher-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .base-category-coupons-shop-summary-grid {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "chevron content"
            "media content"
            "button button";
    }

    .base-category-coupons-shop-chevron {
        grid-area: chevron;
        align-self: start;
        margin-top: 0.15rem;
    }

    .base-category-coupons-shop-media,
    .base-category-coupons-shop-media-placeholder {
        grid-area: media;
    }

    .base-category-coupons-shop-content {
        grid-area: content;
    }

    .base-category-coupons-toggle-button {
        grid-area: button;
        width: 100%;
        margin-top: 0.35rem;
    }

    .base-category-coupons-shop-vouchers {
        padding-left: 1.15rem;
    }
}

@media (max-width: 576px) {
    .base-category-coupons-results-cell::before {
        display: none;
    }

    .base-category-coupons-shop-media {
        width: 72px;
        max-width: 72px;
    }

    .base-category-coupons-shop-media-placeholder {
        width: 72px;
        height: 72px;
    }

    .base-category-coupons-shop-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .base-category-coupons-shop-title {
        font-size: var(--font-size-base);
    }
}
