.c4mulo5-last-viewed { padding: 60px 0; }

.c4mulo5-last-viewed::before,
.c4mulo5-last-viewed::after,
.c4m5-lvp-list::before,
.c4m5-lvp-list::after,
.c4m5-lvp-card::before,
.c4m5-lvp-card::after {
    display: none !important;
    content: none !important;
}

.c4mulo5-last-viewed.c4m5-lvp-empty {
    /* Section bleibt sichtbar mit Fallback-Text */
}

.c4mulo5-last-viewed.c4m5-lvp-hidden {
    display: none !important;
}

.c4mulo5-last-viewed .c4m5-lvp-headline {
    margin: 0 0 8px;
    color: #1d2327;
    font-weight: 700;
}
.c4mulo5-last-viewed .c4m5-lvp-subheadline {
    margin: 0 0 32px;
    color: #6b7280;
}

.c4m5-lvp-fallback-msg {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
    font-style: italic;
}

/* List Grid */
.c4m5-lvp-list {
    display: grid;
    gap: 18px;
}
.c4mulo5-last-viewed[data-columns="2"] .c4m5-lvp-list { grid-template-columns: repeat(2, 1fr); }
.c4mulo5-last-viewed[data-columns="3"] .c4m5-lvp-list { grid-template-columns: repeat(3, 1fr); }
.c4mulo5-last-viewed[data-columns="4"] .c4m5-lvp-list { grid-template-columns: repeat(4, 1fr); }
.c4mulo5-last-viewed[data-columns="5"] .c4m5-lvp-list { grid-template-columns: repeat(5, 1fr); }
.c4mulo5-last-viewed[data-columns="6"] .c4m5-lvp-list { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
    .c4m5-lvp-list { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
    .c4m5-lvp-list { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Card */
.c4m5-lvp-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    position: relative;
}
.c4m5-lvp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #c8a84b;
}

.c4m5-lvp-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f7fa;
    overflow: hidden;
}
.c4m5-lvp-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.c4m5-lvp-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.c4m5-lvp-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    z-index: 2;
}
.c4m5-lvp-card:hover .c4m5-lvp-card__remove {
    opacity: 1;
}
.c4m5-lvp-card__remove:hover {
    color: #dc2626;
    background: #ffffff;
}

.c4m5-lvp-card__body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.c4m5-lvp-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1d2327;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c4m5-lvp-card__price {
    font-weight: 700;
    color: #1a5490;
    font-size: 0.95rem;
    margin-top: auto;
}
.c4m5-lvp-card__price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.78rem;
    margin-right: 4px;
}
.c4m5-lvp-card__price ins {
    text-decoration: none;
    color: #dc2626;
}

.c4m5-lvp-card__out {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 4px;
}

/* Stil-Variante: Minimal */
.c4mulo5-last-viewed.c4m5-lvp-style-minimal .c4m5-lvp-card {
    background: transparent;
    border: none;
}
.c4mulo5-last-viewed.c4m5-lvp-style-minimal .c4m5-lvp-card:hover {
    transform: none;
    box-shadow: none;
}
.c4mulo5-last-viewed.c4m5-lvp-style-minimal .c4m5-lvp-card__body {
    padding: 8px 0;
}

/* Empty/Loading */
.c4m5-lvp-empty-msg,
.c4m5-lvp-loading {
    text-align: center;
    padding: 30px 20px;
    background: #f5f7fa;
    border: 1px dashed #c8a84b;
    border-radius: 8px;
    color: #50575e;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* "Liste leeren"-Button */
.c4m5-lvp-clear {
    text-align: center;
    margin-top: 24px;
}
.c4m5-lvp-clear button {
    background: transparent;
    border: 1px solid #e5ebf0;
    color: #6b7280;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.c4m5-lvp-clear button:hover {
    border-color: #dc2626;
    color: #dc2626;
}
