/* MPS Shop: listing */
/* ===== 7. mps-pagination.css ===== */
/* ---------- HikaShop listings: pagination like the rest of the site ---------- */
.mps-pag-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 30px; clear: both; }
.mps-pag-wrap .mps-pag { margin: 0; order: 1; }
.mps-pag-wrap .mps-pag-limit { order: 2; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #6b6f6b; white-space: nowrap; }
.mps-pag-wrap .mps-pag-limit select { width: auto; min-width: 80px; }
.mps-pag-wrap .pagination-toolbar, .mps-pag-wrap .list-footer { display: contents; }
.mps-pag svg { display: block; }

/* ===== 9. mps-legacy.css ===== */
/* ---------- Kept from the old HikaShop "custom" CSS (MPS Mods), tidied ---------- */
/* category pages: hide "Results 1 - 21 of 28" and the per-page drop-down, as before */
.hikashop_results_counter { display: none; }
.hikashop_products_pagination .mps-pag-limit, .hikashop_products_pagination div.limit { display: none !important; }
/* category pages: 2 products across on tablets, 1 on phones (the old rules had unclosed brackets) */
@media (max-width: 1024px) {
  .hikashop_product, .hikashop_category { width: 49% !important; float: left !important; }
}
@media (max-width: 520px) {
  .hikashop_product, .hikashop_category { width: 100% !important; float: left !important; }
}

/* ---------- product cards: equal heights in each row, button at the foot of the card ----------
   HikaShop's own row layout (widths, columns) is left alone; each card just fills its cell top to bottom */
.hikashop_products.mps-cards .hikashop_product { align-self: stretch !important; }
.hikashop_products.mps-cards .hikashop_product > .hikashop_container { height: 100% !important; display: flex; flex-direction: column; }
.hikashop_products.mps-cards .hikashop_subcontainer { flex: 1 1 auto; height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; }
.hikashop_products.mps-cards .hikashop_listing_img_title { flex: 1 1 auto; display: flex; flex-direction: column; }
.hikashop_products.mps-cards .hikashop_listing_img_title > .mps-card-btn { padding-top: 10px; }
.hikashop_listing_img_title .mps-card-stock, .hikashop_listing_img_title .hikashop_product_stock_count { display: none !important; }
