/* 3Grafik 2.0 — finishing layer for Puca/WooCommerce single-product pages.
   Existing quantity + add-to-cart DOM grouping from v4 is preserved.
   No checkout/cart/PayPal iframe rules, and no text or data mutation. */
body.single-product.woocommerce div.product .summary,
body.single-product.woocommerce div.product .summary.entry-summary {
  box-sizing: border-box;
  min-width: 0;
}
/* Product names are long and descriptive. Reduce their visual dominance. */
body.single-product.woocommerce div.product .summary h1.product_title,
body.single-product.woocommerce div.product .summary h1.entry-title,
body.single-product.woocommerce div.product .summary .product_title.entry-title {
  font-size: 26px !important;
  line-height: 1.24 !important;
  letter-spacing: -0.025em !important;
  font-weight: 700 !important;
  overflow-wrap: break-word;
  word-break: normal;
  margin: 0 0 16px !important;
}
body.single-product.woocommerce div.product .summary > .price,
body.single-product.woocommerce div.product .summary > p.price {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 0 0 20px !important;
}
/* Make actual form occupy entire available summary width; the v4 row is already inside it. */
body.single-product.woocommerce div.product .summary form.cart:not(.variations_form):not(.grouped_form) {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 16px !important;
}
body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 {
  display: flex !important;
  align-items: stretch !important;
  flex-flow: row nowrap !important;
  width: 100% !important;
  max-width: none !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}
body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > .quantity {
  flex: 0 0 118px !important;
  width: 118px !important;
  max-width: 118px !important;
  height: 52px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}
body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > button.single_add_to_cart_button,
body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > .single_add_to_cart_button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: 0 !important; /* flex item stretches into the remaining space */
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: #e64d87 !important;
  border-color: #e64d87 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > button.single_add_to_cart_button:hover {
  background: #d63875 !important;
  border-color: #d63875 !important;
}
/* Brief synopsis in a calm box, once the original v2 Read more control is present. */
body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description {
  margin: 14px 0 12px !important;
  padding: 16px 18px !important;
  border: 1px solid #f1dfe8 !important;
  border-radius: 12px !important;
  background: #fff9fc !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #4a434b !important;
  box-sizing: border-box !important;
}
body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description p {
  margin: 0 0 9px !important;
}
body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description p:last-child {margin-bottom: 0 !important;}
/* Desktop / tablet typography adapts without truncating actual product names. */
@media (min-width: 1280px) {
  body.single-product.woocommerce div.product .summary h1.product_title,
  body.single-product.woocommerce div.product .summary h1.entry-title {font-size: 27px !important;}
}
@media (max-width: 767px) {
  body.single-product.woocommerce div.product .summary h1.product_title,
  body.single-product.woocommerce div.product .summary h1.entry-title {
    font-size: 22px !important; line-height: 1.28 !important; margin-bottom: 12px !important;
  }
  body.single-product.woocommerce div.product .summary > .price,
  body.single-product.woocommerce div.product .summary > p.price {font-size: 20px !important; margin-bottom: 16px !important;}
  body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 {gap: 8px !important;}
  body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > .quantity {
    flex: 0 0 104px !important; width: 104px !important; max-width: 104px !important;
  }
  body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > button.single_add_to_cart_button {
    min-width: 0 !important; font-size: 14px !important; padding: 0 10px !important;
  }
  body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description {
    padding: 13px 14px !important; font-size: 13px !important;
  }
}
@media (max-width: 360px) {
  body.single-product.woocommerce div.product .summary form.cart .tg3-purchase-row-v4 > .quantity {
    flex-basis: 94px !important; width: 94px !important; max-width: 94px !important;
  }
}
