/* Commerce shelf: the price gets its own row; every action keeps a readable target. */
body[data-typography="madge"] .shop-first .store-product-card footer {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:8px;
  width:100%;
  min-width:0;
}
body[data-typography="madge"] .shop-first .store-product-card .product-card-actions {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px;
  width:100%;
  min-width:0;
  margin:0;
}
body[data-typography="madge"] .shop-first .store-product-card .product-card-actions :is(a,button) {
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:8px 5px;
  border:1px solid var(--skin-surface-text);
  background:transparent;
  color:var(--skin-surface-text)!important;
  font:650 1rem/1.25 var(--font-reading)!important;
  text-align:center;
  white-space:normal;
  overflow-wrap:normal;
  text-decoration:none;
}
body[data-typography="madge"] .shop-first .store-product-card .product-card-actions :is(a,button):hover {
  background:var(--skin-canvas)!important;
}
/* The display mat separates the listing artwork from the shop skin. Never filter the art. */
body[data-typography="madge"] .shop-first .precise-showcase {
  box-sizing:border-box;
  padding:8px;
  background:#E8EDF2;
  box-shadow:inset 0 0 0 1px #52656E;
}
body[data-typography="madge"] .shop-first .precise-showcase .catalog-picture {
  min-height:0;
  filter:drop-shadow(0 2px 2px #193B4026);
}
@media(min-width:761px) and (max-width:1179px) {
  body[data-typography="madge"] .shop-first .product-list {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px) {
  /* Keep the requested six-position contact sheet, with one usable purchase summary. */
  body[data-typography="madge"] .shop-first .product-list[data-compact-gallery=true] .precise-showcase {
    box-sizing:border-box;
    padding:2px;
  }
  body[data-typography="madge"] .shop-first .shop-type-nav a {
    padding:7px 4px;
    min-height:44px;
  }
  .mobile-choice-panel:not([hidden]) {
    grid-template-columns:minmax(80px,100px) minmax(0,1fr);
    gap:9px;
    padding:9px;
    align-items:start;
  }
  .mobile-choice-photo {
    box-sizing:border-box;
    padding:5px;
    background:#E8EDF2!important;
    border:1px solid #52656E;
  }
  .mobile-choice-photo img {
    height:100%;
    max-height:165px;
    object-fit:contain;
  }
  body[data-typography="madge"] .mobile-choice-panel h3 {
    font-size:18px;
    margin:0 0 4px;
  }
  .mobile-choice-facts { margin:0 0 4px; line-height:1.25; }
  .mobile-choice-price { font-size:22px; margin:0 0 5px; }
  .mobile-choice-panel .stock-notice { margin:2px 0 4px; }
  .mobile-choice-actions { gap:5px; }
  .mobile-choice-actions :is(a,button) { padding:6px 2px; }
  .mobile-choice-panel .bundle-savings { margin:3px 0; }
}
@media(max-width:359px) {
  .mobile-choice-panel:not([hidden]) { grid-template-columns:76px minmax(0,1fr); gap:7px; padding:7px; }
}
