/*
 * ChamaeleonStyle V5 – Product lists
 * ===================================
 * Category/search lists use .cs-product-grid. Homepage special offers still
 * come from the legacy .floating-box-angebote_main markup and are styled as a
 * separate grid-compatible card below.
 */
.cs-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    margin: 26px 0 42px;
    clear: both;
    background: var(--cs-border);
    border: 1px solid var(--cs-border);
}

.cs-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.18s ease;
}

.cs-product-card:hover {
    background: #fbfbfb;
}

.cs-product-card__image-link {
    display: block;
    color: inherit;
}

.cs-product-card__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    padding: clamp(14px, 2vw, 26px);
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--cs-border);
}

.cs-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.24s ease;
}

.cs-product-card:hover .cs-product-card__image {
    transform: scale(1.025);
}

.cs-product-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 10px;
    background: var(--cs-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cs-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.cs-product-card__brand {
    margin-bottom: 4px;
    color: var(--cs-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cs-product-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.cs-product-card__title a:hover {
    color: var(--cs-red);
}

.cs-product-card__meta {
    min-height: 19px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cs-product-card__colors {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    margin-top: 10px;
}

.cs-product-card__colors img {
    width: 19px;
    height: 19px;
    border: 1px solid var(--cs-border-dark);
    border-radius: 50%;
    object-fit: cover;
}

.cs-product-card__more-colors {
    color: var(--cs-muted);
    font-size: 11px;
    font-weight: 700;
}

.cs-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--cs-border);
}

.cs-product-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-product-card__price {
    color: var(--cs-black);
    font-size: 18px;
    font-weight: 800;
}

.cs-product-card__rrp {
    color: var(--cs-muted);
    font-size: 11px;
    text-decoration: line-through;
}

.cs-product-card__cta {
    color: var(--cs-red);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cs-product-card__cta:hover {
    color: var(--cs-black);
}

/* Homepage legacy product cards. */
.cs-home-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--cs-border);
    border: 1px solid var(--cs-border);
}

.floating-box-angebote_main {
    display: flex;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    flex-direction: column;
    vertical-align: top;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.floating-box-angebote_main > div:first-child {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    margin: 0;
    padding: 18px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--cs-border);
}

.floating-box-angebote_main > div:first-child center,
.floating-box-angebote_main > div:first-child a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.floating-box-angebote_main img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: auto;
    object-fit: contain;
    transition: transform 0.24s ease;
}

.floating-box-angebote_main:hover img {
    transform: scale(1.025);
}

.floating-box-angebote_main .artikelsub {
    display: block;
    padding-inline: 18px;
    color: var(--cs-text);
    font-size: 13px;
    line-height: 1.45;
}

.floating-box-angebote_main .artikelsub:first-of-type {
    padding-top: 16px;
}

.floating-box-angebote_main .artikelsub:last-of-type {
    margin-top: auto;
    padding-bottom: 18px;
}

.floating-box-angebote_main .artikelsub strong {
    display: block;
    color: var(--cs-black);
    font-size: 16px;
    line-height: 1.3;
}

.floating-box-angebote_main .productspotprice {
    color: var(--cs-black);
    font-size: 18px;
    font-weight: 800;
}

.floating-box-angebote_main strike {
    color: var(--cs-muted);
    font-size: 12px;
}
