/* Keep the product summary below the image; detailed sections retain full width. */
body .product-top {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:min-content 1fr;
  grid-template-areas:"gallery purchase" "details purchase";
  align-items:start;
  gap:28px 40px;
}
.product-top > .product-gallery { grid-area:gallery; }
.product-top > .product-info { grid-area:purchase; }
.product-top > .product-details {
  grid-area:details;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:32px;
}
@media(max-width:900px) {
  body .product-top {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    grid-template-areas:"gallery" "purchase" "details";
    gap:28px;
  }
}
/* Mobile buy bar (partials in pages/product.html, js/product-mbar.js) */
.mbar { position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(16,40,32,.12); }
.mbar[hidden] { display:none; }
.mbar-info { display:flex; flex-direction:column; min-width:0; }
.mbar-pn { font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbar-price { font-size:13px; color:var(--body); }
.mbar .btn { flex:none; min-height:44px; }
body.has-mbar { padding-bottom:72px; }
@media (min-width:901px) { .mbar { display:none !important; } }
