.pb-related-products-carousel{
    direction: rtl;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.pb-related-products-carousel *{ box-sizing: border-box; }
.pb-related-products-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.pb-related-products-heading{
    margin:0;
    font-size:20px;
    line-height:1.5;
    font-weight:800;
    color:inherit;
}
.pb-related-products-arrows{
    display:inline-flex;
    gap:8px;
    align-items:center;
    flex:0 0 auto;
}
.pb-related-products-btn{
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid rgba(15,23,42,.14);
    background:#fff;
    color:#0f172a;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    line-height:1;
    transition:transform .15s ease, opacity .15s ease, background .15s ease;
}
.pb-related-products-btn:hover{ background:rgba(15,23,42,.06); }
.pb-related-products-btn:active{ transform:scale(.96); }
.pb-related-products-btn:disabled{ opacity:.45; cursor:not-allowed; }
.pb-related-products-viewport{
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    width:100%;
}
.pb-related-products-viewport::-webkit-scrollbar{ display:none; }
.pb-related-products-track{
    display:grid;
    grid-auto-flow:column;
    grid-template-rows:repeat(var(--pb-rp-rows, 1), auto);
    grid-auto-columns:calc((100% - (var(--pb-rp-gap, 16px) * (var(--pb-rp-columns, 4) - 1))) / var(--pb-rp-columns, 4));
    gap:var(--pb-rp-gap, 16px);
    align-items:stretch;
}
.pb-related-products-item{
    min-width:0;
    scroll-snap-align:start;
}
.pb-related-products-card{
    height:100%;
    display:flex;
    flex-direction:column;
    gap:calc(10px * var(--pb-rp-card-scale, 1));
    padding:calc(12px * var(--pb-rp-card-scale, 1));
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 26px rgba(15,23,42,.08);
    border:1px solid rgba(15,23,42,.06);
    overflow:hidden;
}
.pb-related-products-thumb{
    display:block;
    width:100%;
    aspect-ratio:2 / 3;
    aspect-ratio:2 / calc(3 * var(--pb-rp-card-scale, 1));
    border-radius:14px;
    overflow:hidden;
    background:rgba(15,23,42,.05);
    text-decoration:none !important;
}
.pb-related-products-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .25s ease, filter .25s ease;
}
.pb-related-products-card:hover .pb-related-products-thumb img{
    transform:scale(1.035);
    filter:brightness(.94);
}
.pb-related-products-content{
    display:flex;
    flex-direction:column;
    gap:calc(6px * var(--pb-rp-card-scale, 1));
    min-height:0;
}
.pb-related-products-title{
    font-size:calc(14px * var(--pb-rp-card-scale, 1));
    line-height:1.65;
    font-weight:800;
    color:#111827;
    text-decoration:none !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.pb-related-products-title:hover{ color:inherit; opacity:.85; }
.pb-related-products-meta{
    font-size:calc(12px * var(--pb-rp-card-scale, 1));
    line-height:1.6;
    color:rgba(15,23,42,.68);
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.pb-related-products-price{
    font-size:calc(13px * var(--pb-rp-card-scale, 1));
    line-height:1.55;
    color:rgba(15,23,42,.86);
    font-weight:800;
    margin-top:2px;
}
.pb-related-products-cart{ margin-top:auto; padding-top:calc(6px * var(--pb-rp-card-scale, 1)); }
.pb-related-products-cart .button,
.pb-related-products-cart a.button{
    width:100%;
    text-align:center;
    border-radius:12px;
    padding:calc(8px * var(--pb-rp-card-scale, 1)) calc(10px * var(--pb-rp-card-scale, 1));
    line-height:1.5;
}
.pb-related-products-dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:14px;
}
.pb-related-products-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    border:0;
    padding:0;
    background:rgba(15,23,42,.22);
    cursor:pointer;
    transition:width .2s ease, background .2s ease;
}
.pb-related-products-dot.is-active{
    width:22px;
    background:rgba(15,23,42,.7);
}
.pb-related-products-empty{
    padding:16px;
    border:1px dashed rgba(15,23,42,.2);
    border-radius:14px;
    text-align:center;
    color:rgba(15,23,42,.72);
    background:rgba(255,255,255,.65);
}
@media (max-width:1024px){
    .pb-related-products-carousel{ --pb-rp-columns:var(--pb-rp-columns-tablet, 3); }
}
@media (max-width:640px){
    .pb-related-products-carousel{ --pb-rp-columns:var(--pb-rp-columns-mobile, 2); --pb-rp-card-scale:1; }
    .pb-related-products-heading{ font-size:18px; }
    .pb-related-products-btn{ width:34px; height:34px; font-size:24px; }
}
