/* fix31 — list view must NOT use 6-col grid; show prices/names/actions */

/* Undo accidental grid on Magento list mode (ol.products.list) */
@media (min-width: 1366px) {
  body.catalog-category-view .column.main ol.products.list.items.product-items,
  body.catalog-category-view .column.main .products.wrapper.list .product-items,
  body.catalogsearch-result-index .column.main ol.products.list.items.product-items,
  body.catalogsearch-result-index .column.main .products.wrapper.list .product-items {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  body.catalog-category-view .column.main .products.wrapper.list .product-item,
  body.catalog-category-view .column.main ol.products.list .product-item,
  body.catalogsearch-result-index .column.main .products.wrapper.list .product-item {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
  }
}

/* All breakpoints: restore readable list rows */
html body .products.wrapper.list .product-items,
html body ol.products.list.items.product-items {
  display: block !important;
  width: 100% !important;
}

html body .products.wrapper.list .product-item,
html body ol.products.list .product-item {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body .products.wrapper.list .product-item-info,
html body ol.products.list .product-item-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

html body .products.wrapper.list .product-item-photo,
html body ol.products.list .product-item-photo {
  flex: 0 0 180px !important;
  width: 180px !important;
  max-width: 40% !important;
  margin: 0 !important;
}

html body .products.wrapper.list .product-item-details,
html body ol.products.list .product-item-details {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}

html body .products.wrapper.list .product-item-name,
html body .products.wrapper.list .product-item-name a,
html body ol.products.list .product-item-name,
html body ol.products.list .product-item-name a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #333333 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 0 10px !important;
}

html body .products.wrapper.list .price-box,
html body .products.wrapper.list .price-box .price,
html body ol.products.list .price-box,
html body ol.products.list .price-box .price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  color: #043E89 !important;
  margin: 0 0 12px !important;
}

html body .products.wrapper.list .product-item-actions,
html body .products.wrapper.list .actions-primary,
html body ol.products.list .product-item-actions,
html body ol.products.list .actions-primary {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: 280px !important;
  margin-top: 8px !important;
}

html body .products.wrapper.list .action.tocart,
html body ol.products.list .action.tocart {
  display: inline-flex !important;
  width: auto !important;
  min-width: 160px !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  html body .products.wrapper.list .product-item-info,
  html body ol.products.list .product-item-info {
    flex-direction: column !important;
  }
  html body .products.wrapper.list .product-item-photo,
  html body ol.products.list .product-item-photo {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
  }
}

/* Equal side gutters ≥30px — single source of truth */
@media (min-width: 768px) {
  html body .page-wrapper {
    --gzs-side: 30px;
  }
  html body .page-wrapper > .porto-block-html-top,
  html body .gzs-topbar,
  html body .page-header.type23 .header.content,
  html body .nav-sections .navigation,
  html body .breadcrumbs,
  html body .page-main,
  html body .page-footer .footer.content,
  html body .gzs-footer .footer.content {
    padding-left: var(--gzs-side) !important;
    padding-right: var(--gzs-side) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  /* Avoid nested double padding making sides look uneven */
  html body .page-main .column.main,
  html body .page-main .columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body .page-header.type23 .logo {
    margin-left: 0 !important;
  }
}
