/* Scoped related-product cards: independent of the home page layout. */
.public-related { font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif; min-width:0; margin:42px 0; padding:0; }
.public-related > h2 { margin:0 0 20px; color:#172033; font-size:clamp(24px,2.2vw,30px); font-weight:800; letter-spacing:-.035em; line-height:1.2; }
.public-related__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; min-width:0; padding:3px 3px 8px; }
.public-related-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #e0e5ed; border-radius:18px; color:#172033; background:#fff; text-decoration:none; transition:border-color .15s,box-shadow .15s; }
.public-related-card:hover { border-color:#b5121b; box-shadow:0 6px 20px #1720330c; }
.public-related-card:focus-visible { outline:3px solid #b5121b; outline-offset:3px; }
.public-related-card__image { display:grid; place-items:center; height:176px; flex-shrink:0; padding:18px; border-bottom:1px solid #f0f2f6; background:#fff; }
.public-related-card__image img { display:block; width:100%; height:100%; min-height:0; max-height:140px; object-fit:contain; }
.public-related-card__image > span { display:grid; place-items:center; width:64px; height:64px; border-radius:16px; color:#b5121b; background:#fff2f2; font-size:19px; font-weight:800; letter-spacing:-.04em; }
.public-related-card__body { display:flex; flex:1; flex-direction:column; gap:20px; min-width:0; padding:18px; }
.public-related-card h3 { font-family:inherit; display:block; margin:0; overflow:visible; color:#172033; font-size:15px; font-weight:700; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.public-related-card__footer { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:10px; min-height:46px; margin-top:auto; }
.public-related-card__price { display:flex; flex-direction:column; gap:2px; }
.public-related-card__unit { min-height:16px; color:#667085; font-size:11px; line-height:16px; }
.public-related-card__amount { color:#b5121b; font-size:23px; font-weight:800; letter-spacing:-.035em; line-height:1.25; white-space:nowrap; }
.public-related-card__open { display:inline-flex; align-items:center; gap:6px; margin-left:auto; padding-bottom:3px; color:#b5121b; font-size:12px; font-weight:700; line-height:1.3; }
.public-related-card__open > span { display:grid; flex-shrink:0; place-items:center; width:26px; height:26px; border:1px solid #e6c8cb; border-radius:50%; font-size:16px; }
@media (min-width:641px) and (max-width:1050px) { .public-related__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
    .public-related { margin:30px 0; }
    .public-related > h2 { margin-bottom:16px; font-size:24px; }
    .public-related__grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(240px,82%); gap:14px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scroll-padding-inline:3px; scrollbar-width:thin; }
    .public-related-card { scroll-snap-align:start; }
    .public-related-card__image { height:160px; }
    .public-related-card__image img { max-height:124px; }
    .public-related-card__body { gap:16px; padding:16px; }
}
@media (prefers-reduced-motion:reduce) { .public-related-card { transition:none; } }
