/* ============================================================
   UAT — /alle-motive/ Motif Marketplace Grid
   Scope: .product-list-page only (no bleed to other listing pages)
   Brand: warm neutrals (#ece2d9, #f7f2ed), warm ink (#2c2b28 / #4b372d),
          amber-gold hover accent (#c19a4a), burgundy focus accent
          (var(--color-accent) from style.css).
   Grid: Bootstrap cols (col-6 / col-sm-6 / col-md-4 / col-xl-3) —
         2 cols mobile, 3 cols tablet, 4 cols xl/xxl.
   ============================================================ */

/* ── Card foundation ─────────────────────────────────────────── */

.product-list-page .product-card {
    border: 1px solid #e7e2dc;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.product-list-page .product-card:hover {
    transform: translateY(-4px);
    border-color: #c19a4a;
    box-shadow: 0 14px 30px rgba(26, 26, 46, 0.12);
}

.product-list-page .product-card:focus-within {
    border-color: #c19a4a;
    box-shadow: 0 0 0 3px rgba(193, 154, 74, 0.28);
}

/* ── Media: fixed 1:1 container, refined zoom, zero CLS ─────── */

.product-list-page .motif-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f2ed;
}

.product-list-page .motif-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.product-list-page .product-card:hover .motif-card-img,
.product-list-page .product-card:focus-within .motif-card-img {
    transform: scale(1.05);
}

/* ── Title / meta hierarchy ──────────────────────────────────── */

.product-list-page .product-card .card-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c2b28;
}

.product-list-page .product-card .card-title a {
    color: inherit;
    transition: color 200ms ease;
}

.product-list-page .product-card .card-title a:hover {
    color: var(--color-accent);
}

.product-list-page .motif-card-meta {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f6b66;
}

.product-list-page .motif-card-sku {
    font-size: 0.72rem;
    color: #6f6b66;
}

.product-list-page .badge.motif-badge {
    background: #f3ebe4;
    border-color: #e7ddd3;
    color: #4b372d;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ── Actions: favorite toggle + details button ───────────────── */

.product-list-page .product-card .favorite-toggle {
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    transition: box-shadow 200ms ease, color 200ms ease;
}

.product-list-page .product-card .favorite-toggle:hover {
    color: #a65d58;
}

.product-list-page .product-card .product-detail-btn {
    color: #4b372d;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.product-list-page .product-card .product-detail-btn:hover {
    background: #4b372d;
    border-color: #4b372d;
    color: #fff;
}

/* ── Accessible focus ────────────────────────────────────────── */

.product-list-page .product-card .motif-card-media:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -3px;
}

.product-list-page .product-card .card-title a:focus-visible,
.product-list-page .product-card .product-detail-btn:focus-visible,
.product-list-page .product-card .favorite-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ── Empty state — clean & premium, German copy unchanged ────── */

.product-list-page .motif-empty-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: #fbf9f6;
    border: 1px solid #ece2d9;
    border-radius: 14px;
    color: #4b372d;
    font-size: 0.95rem;
}

.product-list-page .motif-empty-state i {
    font-size: 1.4rem;
    color: #c19a4a;
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .product-list-page .product-card,
    .product-list-page .motif-card-img,
    .product-list-page .product-card .card-title a,
    .product-list-page .product-card .product-detail-btn,
    .product-list-page .product-card .favorite-toggle {
        transition: none !important;
    }

    .product-list-page .product-card:hover {
        transform: none;
    }

    .product-list-page .product-card:hover .motif-card-img,
    .product-list-page .product-card:focus-within .motif-card-img {
        transform: none;
    }
}
