/* ==========================================================================
   main-product.css
   Section-level layout only.
   Block-level styles live in each component's own style.css file and are
   loaded on-demand only when that block is present on the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section shell & two-column layout
   -------------------------------------------------------------------------- */
.MainProduct .details-wrap,
.fluid-main-product .fluid-main-product__shell {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.MainProduct .product-details,
.fluid-main-product .fluid-main-product__layout {
  display: grid;
  grid-template-rows: 1fr;
  padding: 1.5rem;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .MainProduct .product-details,
  .fluid-main-product .fluid-main-product__layout {
    grid-template-columns: 1.3fr 1fr;
    padding: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Quantity + Add to Cart inline row
   -------------------------------------------------------------------------- */
.product-buy-row,
.fluid-main-product__buy-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.product-buy-row .MainProductBlock--add_to_cart,
.fluid-main-product__buy-row .MainProductBlock--add_to_cart,
.fluid-main-product__buy-row .fluid-add-to-cart-section {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Product title (rendered inline in the section, not a separate component)
   -------------------------------------------------------------------------- */
.MainProduct .product-title,
.fluid-main-product .product-title {
  line-height: 1.2;
}
