/* HaiSan.org / Product cards V4 - desktop only. CSS scoped to product listings. */
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 9px;
  row-gap: 9px;
  align-content: start;
  padding: 0 12px 11px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #e7eaef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 35, 48, .045);
  color: #303744;
  font-family: Arial, Helvetica, sans-serif;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)):hover {
  border-color: #efd0d2;
  box-shadow: 0 12px 28px rgba(28, 40, 54, .1);
  transform: translateY(-2px);
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-img {
  grid-column: 1 / -1;
  margin: 0 -12px 0;
  padding: 10px;
  box-sizing: border-box;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-bottom: 1px solid #f0f1f3;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-img > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-img:hover img {
  transform: scale(1.025);
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) h3 {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 78px;
  padding: 4px 2px 11px;
  box-sizing: border-box;
  border-bottom: 1px solid #f0f1f4;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) h3 a {
  color: #26313e;
  text-decoration: none;
  display: block;
  line-height: inherit;
  white-space: normal;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) h3 a:hover {color: #da1722;}
/* Disable old full-card black hover overlay so title stays legible. */
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) h3 a:before,
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)):hover h3 a:before {
  display: none !important;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-gia {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 9px 10px;
  box-sizing: border-box;
  border: 1px solid #edf0f2;
  border-radius: 9px;
  background: #f7f9fa;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  color: #697481;
  white-space: normal;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-gia span {
  display: block;
  max-width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #e51a24;
  white-space: nowrap;
  letter-spacing: -.2px;
}
:is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-lm {
  grid-column: 1 / -1;
  position: static;
  justify-self: end;
  align-self: end;
  min-height: 19px;
  margin-top: 1px;
  color: #8a929c;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 1280px) {
  :is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-gia {
    padding: 8px 6px;
  }
  :is(.sanpham .box-sp, #product-list .box-sp, .content .w-flex .box-sp:has(> .box-sp-gia)) .box-sp-gia span {
    font-size: 12px;
  }
}
