/* Restore the compact, left-aligned V30 card layout in every showcase.
   No changes to product detail, cart, checkout, badges or gallery controls. */
.card-product[data-heyzen-product-url] > .card-product-inner > a.c-p-i-link > .title {
    /* Reserve only two title lines; price/ribbon keep their compact V35 rows. */
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px;
    line-height: 18px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 5px !important;
    text-align: left;
}

.card-product[data-heyzen-product-url] > .card-product-inner .price-group {
    align-items: stretch !important;
    min-height: 0;
    text-align: left;
}

.card-product[data-heyzen-product-url] .price-group > .heyzen-card-primary-price {
    justify-content: flex-start;
    flex: 0 0 auto;
    height: auto;
    min-height: 24px;
}

.card-product[data-heyzen-product-url] .heyzen-card-primary-price .prices {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline !important;
    gap: 3px 8px;
    height: auto;
    min-height: 24px;
    padding: 0;
}

.card-product[data-heyzen-product-url] > .card-product-inner .price-group .prices .sale-price {
    order: 1;
    color: #171513;
    font: 600 14px/22px var(--heyzen-font);
    white-space: nowrap;
}

.card-product[data-heyzen-product-url] .heyzen-card-primary-price .prices .heyzen-reference-price {
    order: 0;
    font: 400 11px/22px var(--heyzen-font);
    white-space: nowrap;
    text-decoration-thickness: 1px;
}

/* The dark label takes the remaining width; the amount never gets squeezed. */
.card-product[data-heyzen-product-url] .price-group > .sale-price-basket {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 32px;
    margin: 7px 0 0;
}

.card-product[data-heyzen-product-url] .sale-price-basket > .heyzen-basket-discount-label {
    min-height: 30px;
    padding: 4px 6px;
    font: 600 10px/1.25 var(--heyzen-font);
    letter-spacing: 0;
}

.card-product[data-heyzen-product-url] .sale-price-basket > .sale-price {
    padding: 4px 9px;
    font: 600 12px/1.3 var(--heyzen-font);
}

@media (max-width: 991px) {
    .card-product[data-heyzen-product-url] .sale-price-basket > .heyzen-basket-discount-label {
        padding: 4px 3px;
        font-size: 8px;
    }
    .card-product[data-heyzen-product-url] .sale-price-basket > .sale-price {
        padding: 4px 5px;
        font-size: 10px;
    }
}

@media (max-width: 359px) {
    .card-product[data-heyzen-product-url] .heyzen-card-primary-price .prices {
        column-gap: 6px;
    }
    .card-product[data-heyzen-product-url] > .card-product-inner .price-group .prices .sale-price {
        font-size: 12px;
    }
    .card-product[data-heyzen-product-url] .heyzen-card-primary-price .prices .heyzen-reference-price {
        font-size: 10px;
    }
}

/* Keep the existing filter layout and spacing, only remove its grey surface. */
.categories-body .p-g-mod-breadcrumb,
.categories-body .p-g-mod-breadcrumb > .p-g-mod-body,
.categories-body .breadcrumb-wrapper,
.categories-body .heyzen-subcategory-section {
    background: #fff;
}
