/* DM24 Product Columns v1.0.0 — only original desktop column sizing.
 * Do NOT alter display, positioning, DOM order, sticky JS, tabs or Description Guard.
 * Target: ~65% gallery/description vs ~35% purchase, within existing 1360px page.
 */
@media (min-width: 1100px) {
  /* Existing two-column grid in DM24 Core. Change ONLY track proportions. */
  body.single-product .woocommerce div.product:has(> .woocommerce-product-gallery):has(> .summary):has(> :is(.woocommerce-tabs,.wc-tabs-wrapper)),
  body.single-product .woocommerce div.product.dm24-product-flow-grid {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr) !important;
    column-gap: 24px !important;
  }
  /* Theme/native float layout fallback, when Core's grid is not active.
   * Never target the JS-fixed panel: its pixel width/left are managed by Core. */
  body.single-product .woocommerce div.product:not(.dm24-product-flow-grid):not(:has(> .woocommerce-tabs)):not(:has(> .wc-tabs-wrapper)) > .woocommerce-product-gallery {
    width: 63% !important;
    max-width: 63% !important;
    box-sizing: border-box !important;
  }
  body.single-product .woocommerce div.product:not(.dm24-product-flow-grid):not(:has(> .woocommerce-tabs)):not(:has(> .wc-tabs-wrapper)) > .summary:not(.dm24-buy-follow-panel) {
    width: 35% !important;
    max-width: 35% !important;
    box-sizing: border-box !important;
  }
  /* Prevent oversized media from expanding the gallery track. */
  body.single-product .woocommerce div.product > .woocommerce-product-gallery,
  body.single-product .woocommerce div.product > .dm24-product-flow-left,
  body.single-product .woocommerce div.product > .summary:not(.dm24-buy-follow-panel) {
    min-width: 0 !important;
  }
}
