/* Match the all-products top row to the product page, without changing navigation. */
body.woocommerce-shop .pc-catalog { padding-top:6px !important; }
body.woocommerce-shop .pc-catalog .pc-catalog-topbar { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:16px; margin:4px 0 12px !important; }
body.woocommerce-shop .pc-catalog .pc-back-btn-catalog { flex:0 0 auto; height:50px !important; min-height:50px !important; padding:0 24px 0 18px !important; gap:10px !important; font-size:15.5px !important; }
body.woocommerce-shop .pc-catalog .pc-back-btn-catalog .pc-back-arrow { width:30px; height:30px; flex:0 0 30px; font-size:18px; }
body.woocommerce-shop .pc-catalog .pc-catalog-crumb { min-width:0; overflow-wrap:anywhere; }
@media (max-width:820px) {
  body.woocommerce-shop .pc-catalog { padding-top:4px !important; }
  body.woocommerce-shop .pc-catalog .pc-catalog-topbar { margin-top:2px !important; }
}
@media (max-width:600px) {
  body.woocommerce-shop .pc-catalog .pc-catalog-topbar { gap:8px !important; }
  body.woocommerce-shop .pc-catalog .pc-catalog-crumb { width:100%; }
}
/* The hero remains in normal flow: the longest of gallery and summary sets its height.
   Replace the legacy 46px margin + 28px gap on larger screens with 12px. */
@media (min-width:821px) {
  body.single-product .pc-pdp-page .pc-pdp { gap:12px !important; }
  body.single-product .pc-pdp-page .pc-pdp > .pc-pdp-details { margin-top:0 !important; }
  body.single-product .pc-pdp-page .pc-pdp > .pc-related.pc-related-bottom { margin-top:24px; }
}
