/* fix34b — Porto wraps photo+details in .porto-section row; force column stack */

html body.catalog-category-view .products-grid .product-item-info > .porto-section,
html body.catalogsearch-result-index .products-grid .product-item-info > .porto-section,
html body .products.wrapper.products-grid .product-item-info.type1 > .porto-section,
html body .products-grid .product-item-info.porto-tb-item > .porto-section,
html body .products-grid .porto-tb-item > .porto-section.p-0 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body .products-grid .product-item-info .product-item-photo,
html body .products-grid .product-item-info > .porto-section > .product-item-photo,
html body .products-grid .porto-tb-item .product-item-photo {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px !important;
}

html body .products-grid .product-item-info .product-item-details,
html body .products-grid .product-item-info > .porto-section > .product-item-details,
html body .products-grid .porto-tb-item .product-item-details {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

html body .products-grid .product-item-name a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  overflow: hidden !important;
  max-height: 3.9em !important;
  min-height: 3.6em !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  color: #333 !important;
  white-space: normal !important;
}

html body .products-grid .product-item-actions,
html body .products-grid .product-item-actions form,
html body .products-grid .actions-primary,
html body .products-grid .action.tocart {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body .products-grid .action.tocart {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 6px !important;
  background: #043E89 !important;
  color: #fff !important;
  border-color: #043E89 !important;
  font-size: 12px !important;
  white-space: normal !important;
}
