/* Only applies to search result product grid in the test design. */
.modules.m-productlist > .row.fg-rank-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}
.modules.m-productlist > .row.fg-rank-row::before,
.modules.m-productlist > .row.fg-rank-row::after { display: none !important; }
.modules.m-productlist > .row.fg-rank-row > .productItem {
  float: none !important;
  flex-shrink: 0;
}
/* Supplementary TG-7 recommendations below the native result grid. */
.fg-related-search { margin:36px 0 44px; padding:23px; background:#f5f9fa; border:1px solid #dbe8eb; border-radius:5px; }
.fg-related-search h2 { margin:0 0 8px; color:#25363b; font-size:22px; font-weight:600; }
.fg-related-search > p { color:#5c6a70; font-size:13px; margin:0 0 20px; }
.fg-related-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.fg-related-card { display:flex; flex-direction:column; align-items:stretch; gap:7px; padding:12px; border:1px solid #dce3e5; border-radius:5px; background:#fff; color:#25363b!important; text-decoration:none!important; }
.fg-related-card:hover { border-color:#087fa2; box-shadow:0 3px 10px rgba(0,0,0,.07); }
.fg-related-card img { display:block; width:100%; height:145px; object-fit:contain; }
.fg-related-name { font-size:13px; line-height:1.35; font-weight:600; }
.fg-related-sku { font-size:11px; color:#69767d; }
.fg-related-price { margin-top:auto; padding-top:8px; font-size:14px; font-weight:600; }
@media(max-width:850px) { .fg-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .fg-related-search { padding:12px; } .fg-related-grid { gap:8px; } .fg-related-card { padding:9px; } .fg-related-card img { height:100px; } }