
/* HOMETECH UA — product card readability / mobile shopping fix, 2026-10-22.
   Presentation only. No changes to product/price/order scripts. */
.productGrid,
#hitsGrid.productGrid,
#catalogGrid.productGrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
}
.product-card,
.hits-grid .product-card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #162333 !important;
  border: 1px solid #dce4ec !important;
  border-radius: 17px !important;
  box-shadow: 0 5px 17px rgba(0, 0, 0, .10) !important;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,.14) !important;
}
.product-card .product-media,
.hits-grid .product-card .product-media {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  height: 235px !important;
  min-height: 235px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  overflow: hidden !important;
  background: #f6f8fb !important;
  border-bottom: 1px solid #e9eef3 !important;
}
.product-card .product-media img,
.hits-grid .product-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 5px !important;
}
.product-card .product-media > .badge,
.product-card .product-category {
  display: none !important;
}
.product-card .card-tools { right: 12px !important; top: 12px !important; z-index: 5 !important; }
.product-card .fav {
  min-width: 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid #dae2ea !important;
  background: rgba(255,255,255,.96) !important;
  color: #243447 !important;
  font-size: 23px !important;
  cursor: pointer;
}
.product-card .fav.on { background: #ffe3a0 !important; }
.product-card .product-body,
.hits-grid .product-card .product-body {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 16px !important;
}
.product-card .product-body h3,
.hits-grid .product-card .product-body h3 {
  font-size: 16px !important;
  font-weight: 760 !important;
  line-height: 1.36 !important;
  letter-spacing: 0 !important;
  color: #132437 !important;
  margin: 0 0 9px !important;
  min-height: 0 !important;
  overflow-wrap: anywhere !important;
}
.product-card .product-benefit,
.hits-grid .product-card .product-benefit {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
  font-weight: 400 !important;
  color: #596777 !important;
  min-height: 0 !important;
  max-height: 58px !important;
  margin: 0 0 12px !important;
}
.product-card .buy-trust {
  color: #237250 !important;
  font-weight: 650 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.product-card .product-bottom,
.hits-grid .product-card .product-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 11px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
}
.product-card .price,
.hits-grid .product-card .price {
  font-size: 23px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  color: #14293d !important;
  white-space: nowrap !important;
}
.product-card .product-actions,
.hits-grid .product-card .product-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) !important;
  align-items: stretch !important;
  gap: 8px !important;
}
.product-card .add-cart,
.product-card .buy,
.hits-grid .product-card .add-cart,
.hits-grid .product-card .buy {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 10px 8px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  white-space: normal !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer;
}
.product-card .add-cart {
  background: #edf3f8 !important;
  color: #19374f !important;
  border: 1px solid #cbd8e5 !important;
}
.product-card .buy {
  background: #ffd156 !important;
  color: #1d2530 !important;
  border: 1px solid #e4b945 !important;
}
.product-card .add-cart:focus-visible,
.product-card .buy:focus-visible,
.product-card .fav:focus-visible {
  outline: 3px solid #2878bd !important;
  outline-offset: 2px !important;
}
.catalog-dark .product-card, .catalog-light .product-card { isolation: isolate; }
@media (min-width: 1050px) and (max-width: 1400px) {
  .productGrid, #hitsGrid.productGrid, #catalogGrid.productGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 620px) and (max-width: 1049px) {
  .productGrid, #hitsGrid.productGrid, #catalogGrid.productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .product-card .product-media, .hits-grid .product-card .product-media {
    height: 230px !important; min-height: 230px !important;
  }
}
@media (max-width: 619px) {
  .productGrid, #hitsGrid.productGrid, #catalogGrid.productGrid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .catalog-light, .catalog-dark { padding-left: 14px !important; padding-right: 14px !important; }
  .product-card .product-media, .hits-grid .product-card .product-media {
    height: 250px !important; min-height: 250px !important;
  }
  .product-card .product-body, .hits-grid .product-card .product-body { padding: 17px !important; }
  .product-card .product-body h3, .hits-grid .product-card .product-body h3 { font-size: 17px !important; }
  .product-card .product-benefit, .hits-grid .product-card .product-benefit { font-size: 13.5px !important; max-height: 62px !important; }
  .product-card .buy, .product-card .add-cart { font-size: 14px !important; min-height: 46px !important; }
  .catalog-dark .section-title h2, .catalog-light .section-title h2 { font-size: 22px !important; line-height: 1.3 !important; }
  .catalog-dark .section-title p, .catalog-light .section-title p { font-size: 14px !important; line-height: 1.5 !important; }
}


/* 2026-10-22: eliminate unrelated legacy blackout assistant on the panels storefront. */
body.ht-catalog-storefront #ht-sales-assistant {
  display: none !important;
}
/* Section headings must not squeeze next to long descriptions on a phone. */
@media (max-width: 619px) {
  .catalog-light .section-title,
  .catalog-dark .section-title,
  .section-title.hits-title {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  .catalog-light .section-title > h2,
  .catalog-dark .section-title > h2,
  .catalog-light .section-title > div > h2,
  .catalog-dark .section-title > div > h2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    font-size: 22px !important;
    line-height: 1.26 !important;
  }
  .catalog-light .section-title > p,
  .catalog-dark .section-title > p,
  .catalog-light .section-title > div > p,
  .catalog-dark .section-title > div > p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
  }
}
