/* One grid track per part of the card, shared across the horizontal rail. */
@supports (grid-template-rows: subgrid) {
  body .xc-recent-products ul.products.xc-rail {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: clamp(180px, 22%, 260px);
    grid-template-rows: repeat(7, auto);
    row-gap: 0;
    align-items: stretch;
  }
  body .xc-recent-products ul.products.xc-rail > li.product {
    display: grid !important;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
    width: auto !important;
    min-width: 0;
    align-content: start;
  }
  body .xc-recent-products li.product > a.woocommerce-loop-product__link {
    display: grid !important;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  body .xc-recent-products .woocommerce-loop-product__link > img {grid-row: 1}
  body .xc-recent-products .woocommerce-loop-product__link > .woocommerce-loop-product__title {grid-row: 2}
  body .xc-recent-products .woocommerce-loop-product__link > .xc-loop-code {grid-row: 3}
  body .xc-recent-products li.product > .xc-card-facts {grid-row: 4}
  body .xc-recent-products li.product > .xc-card-price-link {grid-row: 5}
  body .xc-recent-products li.product > .button {grid-row: 6;align-self: end}
  body .xc-recent-products li.product > .xcwl-card-actions,
  body .xc-recent-products li.product > .xc-cmp-btn {grid-row: 7;align-self: end}
}
body .xc-recent-products {max-width: 100%;min-width: 0}
body .xc-recent-products .xc-rail {scrollbar-width: none}
body .xc-recent-products .xc-rail::-webkit-scrollbar {display: none}
body .xc-recent-products .xc-recent-controls button {min-height: 44px;min-width: 44px}
body.home .xc-split__txt p.xc-btns {
  display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: none;
}
body.home .xc-split__txt p.xc-btns > a {
  margin: 0; padding-inline: clamp(12px,1.15vw,18px); min-height: 44px;
}
@media (max-width: 480px) {
  body.home .xc-split__txt p.xc-btns > a {flex: 1 1 100%;text-align: center}
  body .xc-recent-products ul.products.xc-rail {grid-auto-columns: min(78vw,260px)}
}
@supports (grid-template-rows: subgrid) {
  body .xc-recent-products ul.products.xc-rail {grid-template-columns: none !important}
}
body.home .xc-split__txt p.xc-btns > a {box-sizing:border-box;font-size:14px;padding:12px;min-height:44px;line-height:1.4}
