/* Shared tile cards. Catalog list view and comparison tables keep their own layout. */
.product-cards .product-item .product-title {
    height: auto; max-height: none; overflow: visible; overflow-wrap: anywhere;
}
:not(.list-style-list) > .product-cards { --product-columns: 5; margin-left: 0; margin-right: 0; }
:not(.list-style-list) > .product-cards--catalog { --product-columns: 4; }
:not(.list-style-list) > .product-cards > .product-row,
:not(.list-style-list) > .product-cards > .actions-slider:not(.slick-initialized) {
    display: grid; grid-template-columns: repeat(var(--product-columns), minmax(0, 1fr));
    grid-template-rows: repeat(6, auto); gap: 0 12px; background: #fff;
}
:not(.list-style-list) > .product-cards .product-item {
    display: grid !important; grid-row: span 6; grid-template-rows: subgrid;
    min-width: 0; width: 100%; float: none; box-sizing: border-box;
    padding: 50px 12px 24px; border-right: 0; text-align: center;
}
:not(.list-style-list) > .product-cards .product-item-inner,
:not(.list-style-list) > .product-cards .product-item > .clearfix,
:not(.list-style-list) > .product-cards .product-info { display: contents; }
:not(.list-style-list) > .product-cards .product-row::before,
:not(.list-style-list) > .product-cards .product-row::after,
:not(.list-style-list) > .product-cards .product-item > .clearfix::before,
:not(.list-style-list) > .product-cards .product-item > .clearfix::after { display: none; }
:not(.list-style-list) > .product-cards .product-image {
    grid-row: 1; display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%;
}
:not(.list-style-list) > .product-cards .product-image img { max-width: 100%; height: auto; }
:not(.list-style-list) > .product-cards .product-title {
    grid-row: 2; height: auto; max-height: none; overflow: visible;
    min-width: 0; overflow-wrap: anywhere; margin: 0 0 12px; padding: 9px 0 0;
}
:not(.list-style-list) > .product-cards .charact-list { grid-row: 3; min-width: 0; overflow-wrap: anywhere; }
:not(.list-style-list) > .product-cards .price { grid-row: 4; min-width: 0; }
:not(.list-style-list) > .product-cards .buy-btn { grid-row: 5; }
:not(.list-style-list) > .product-cards .buy1click-btn {
    grid-row: 6; display: flex; align-items: center; justify-content: center;
    height: auto; min-height: 31px; padding: 7px 6px; line-height: 1.35;
    white-space: normal; overflow-wrap: anywhere;
}
:not(.list-style-list) > .product-cards .buy-btn,
:not(.list-style-list) > .product-cards .buy1click-btn { justify-self: center; align-self: start; box-sizing: border-box; max-width: 100%; min-width: 0; }
/* Slick retains its measured column widths and transform; subgrid shares content rows across slides. */
.product-cards .actions-slider.slick-initialized .slick-track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); }
.product-cards .actions-slider .slick-track::before,
.product-cards .actions-slider .slick-track::after { display: none; }
.product-cards .actions-slider .slick-slide { display: grid !important; grid-row: span 6; grid-template-rows: subgrid; height: auto; min-width: 0; }
.product-cards .actions-slider .slick-slide > div { display: contents; }
@media (max-width: 990px) {
    :not(.list-style-list) > .product-cards { --product-columns: 3; }
    :not(.list-style-list) > .product-cards .buy-btn,
    :not(.list-style-list) > .product-cards .buy1click-btn {
        display: flex; align-items: center; justify-content: center; width: 100%;
        height: auto; min-height: 36px; padding: 7px 4px; margin: 0;
        font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; background-image: none;
    }
    :not(.list-style-list) > .product-cards .buy1click-btn { margin-top: 8px; }
}
@media (max-width: 767px) {
    :not(.list-style-list) > .product-cards { --product-columns: 2; }
    :not(.list-style-list) > .product-cards .product-item { padding: 45px 8px 20px; }
    :not(.list-style-list) > .product-cards .product-title a { font-size: 14px; line-height: 1.4; }
}
