/* Native horizontal list: no slider boot, hidden first paint or cloned cards. */
html body.single-product.elenpriv-store .site .related ul.products li.product{background:#fff!important;border:1px solid rgba(85,85,85,.14)!important;border-radius:8px!important;box-shadow:0 3px 10px rgba(0,0,0,.08)!important}
html body.single-product.elenpriv-store .site .related ul.products li.product .elenpriv-product-media{border-radius:8px 8px 0 0!important}
html body.single-product.elenpriv-store .site .related ul.products li.product .price{color:#777!important;font-size:18px!important;line-height:1.2!important}
html body.single-product.elenpriv-store .site .related ul.products li.product .price del{color:#ff5b5b!important;opacity:1!important;font-weight:400!important}
.related .elenpriv-related-stock{margin:4px 8px 6px;color:#000;font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.related .elenpriv-related-stock.is-low,.related .elenpriv-related-stock.is-out{color:#e3221d}
@media(min-width:850px){
  html body.single-product .related ul.products{--ep-related-columns:4;grid-template-columns:repeat(var(--ep-related-columns),minmax(0,1fr))!important}
  html body.single-product .related ul.products.columns-1{--ep-related-columns:1}
  html body.single-product .related ul.products.columns-2{--ep-related-columns:2}
  html body.single-product .related ul.products.columns-3{--ep-related-columns:3}
  html body.single-product .related ul.products.columns-4{--ep-related-columns:4}
  html body.single-product .related ul.products.columns-5{--ep-related-columns:5}
  html body.single-product .related ul.products.columns-6{--ep-related-columns:6}
}
@media(max-width:849px){
  html body.single-product.elenpriv-store .site div.product > .related{
    padding-inline:6px!important;
  }
  html body.single-product.elenpriv-store .site .related ul.products li.product .woocommerce-loop-product__title{height:49.92px!important;min-height:49.92px!important;max-height:49.92px!important;font-size:13px!important;line-height:16.64px!important;-webkit-line-clamp:3!important;line-clamp:3!important}
  html body.single-product.elenpriv-store .site .related ul.products li.product .price{display:flex!important;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 4px;font-size:16px!important;line-height:1.15!important;white-space:nowrap}
  html body.single-product.elenpriv-store .site .related ul.products li.product .price del,
  html body.single-product.elenpriv-store .site .related ul.products li.product .price ins,
  html body.single-product.elenpriv-store .site .related ul.products li.product .price .amount{font-size:16px!important;line-height:1.15!important;white-space:nowrap}
  html body.single-product.elenpriv-store .site .related ul.products li.product .elenpriv-badge{top:-8px!important;left:-4px!important}
  html body.single-product.elenpriv-store .site .related ul.products{
    display:flex!important;flex-wrap:nowrap;align-items:stretch;
    gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding:10px 4px 14px!important;margin:0;max-width:100%;
    scroll-snap-type:x proximity;scroll-padding-inline:4px;
    overscroll-behavior-x:contain;scrollbar-width:thin;
  }
  html body.single-product .related ul.products::before,
  html body.single-product .related ul.products::after{display:none}
  html body.single-product .related ul.products>li.product{
    --ep-related-card-width:calc((100% - 8px) / 2);
    flex:0 0 var(--ep-related-card-width)!important;
    width:var(--ep-related-card-width)!important;
    max-width:var(--ep-related-card-width)!important;
    min-width:0;margin:0!important;scroll-snap-align:start;
  }
  html body.single-product .related ul.products:focus-visible{outline:2px solid #a9502e;outline-offset:2px}
}

/* Align product cards and their actions within each related-products row. */
html body.single-product.elenpriv-store .site .related ul.products > li.product {
    height: auto !important;
    align-self: stretch;
}

html body.single-product.elenpriv-store .site .related ul.products > li.product > .woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column;
}

.related ul.products > li.product > .woocommerce-loop-product__link > .elenpriv-related-stock {
    margin-top: auto;
    padding-top: 4px;
}
