/* Storefront alignment: keep desktop headings and controls out of card type rules. */
#view-shop .search-bar { padding-left: 0 !important; }
#view-shop #searchInput { padding-left: 40px !important; min-width: 0; }
.ms-discovery .fk-swipe-title {
  display: block !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
  margin: 0;
  overflow: visible !important;
}
body #shopSections .ms-discovery .fk-swipe-body {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: 42px 24px minmax(32px, auto);
  align-content: start;
  align-items: center;
  gap: 10px 8px !important;
  padding: 14px !important;
}
body #shopSections .ms-discovery .fk-swipe-card-title {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0 !important;
}
.ms-discovery .fk-swipe-body > .fk-rating-pill { grid-column: 1; grid-row: 2; margin: 0; }
.ms-discovery .fk-swipe-body > .fk-rating-count { grid-row: 2; margin: 0; }
.ms-discovery .fk-swipe-price-row { grid-column: 1 / -1; grid-row: 3; align-self: start; margin: 0 !important; }
body #shopSections .ms-discovery .fk-swipe-card { min-height: 320px !important; cursor: pointer; }
@media (min-width: 1024px) {
  #view-shop .topbar {
    padding: 12px max(24px, calc((100% - 1320px) / 2)) !important;
    gap: 16px !important;
  }
  #view-shop .topbar > .brand { flex-shrink: 0; }
  #view-shop .search-bar { flex: 1 1 280px !important; max-width: none !important; min-width: 160px; }
  #view-shop .topbar-right { gap: 10px !important; margin-left: 0 !important; }
  #view-shop .loc-btn { flex: 0 1 180px; min-width: 0; padding: 4px !important; }
  #view-shop .topbar-right > button, #view-shop .more-btn { min-height: 44px; }
  .ms-discovery-head { align-items: center; }
  .ms-discovery .fk-swipe-sub { margin-top: 6px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  #view-shop .loc-btn { max-width: 140px; }
  #view-shop .header-utility-label { display: none; }
}
