.list-news-wrapper {
  padding: 0;
  margin-bottom: 20px;
}

.news-images {
  outline: 0 !important;
  position: relative;
  display: block;
}

.news-images::after {
  content: "";
  padding-bottom: 56.25%;
  display: block;
}

.news-images img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}

.news-title {
  font-size: 20px;
  outline: 0;
  line-height: 1.3;
  color: var(--black);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-desc {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-desc span {
    color: #919191;
}
.time-post {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-category {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.new-category-item {
  display: flex;
  padding: 6px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  background: #fff;
  color: #8cb630;
  font-size: 16px;
  font-weight: 600;
}

.news-on-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 30px;
  grid-gap: 24px;
}

.news-item {
  display: flex;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.news-item:hover {
    box-shadow: 0 2px 3px -1px rgb(200 200 200 / 20%), 0 3px 6px 1px rgb(200 200 200 / 14%), 0 1px 7px 2px rgb(200 200 200 / 10%);
}

.news-item:first-child {
  flex-direction: column;
  grid-row-start: span 3;
}

.news-content {
  flex: 1;
  padding: 8px 12px;
  gap: 6px;
  display: flex;
  flex-direction: column;
}

.news-item:not(:first-child) .news-images {
  width: 232px;
  box-shadow: none;
}

/* Dai cam ket duoi banner #e63d6613 */
.home-trust-strip {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.home-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e3ecd2;
  border-radius: 8px;
}

.home-trust-icon {
  flex: 0 0 32px;
  color: #75a012;
}

.home-trust-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f6b35;
}

.home-trust-text a {
  color: #1f6b35;
  white-space: nowrap;
}

/* Dai voucher trang chu #e63d6613 */
.home-voucher-strip {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
}

.home-voucher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-voucher-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f6b35;
}

.home-voucher-all {
  font-size: 14px;
  color: #75a012;
}

.home-voucher-list {
  display: flex;
  gap: 12px;
}

.home-voucher-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #75a012;
  border-left: 6px solid #75a012;
  border-radius: 6px;
  background: #f6faee;
}

.home-voucher-info {
  flex: 1;
  min-width: 0;
}

.home-voucher-discount {
  font-size: 16px;
  font-weight: 700;
  color: #1f6b35;
}

.home-voucher-note,
.home-voucher-exp {
  font-size: 12px;
  color: #666;
}

.home-voucher-code-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 4px;
}

.home-voucher-code {
  display: block;
  max-width: 100%;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  color: #333;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.home-voucher-exp {
  display: block;
  font-size: 11px;
  color: #888;
}

.home-voucher-copy {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: #75a012;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.home-voucher-copy:hover,
.home-voucher-copy.copied {
  background: #1f6b35;
}

/* Khoi "Gia soc hom nay" (thay flash sale khi khong co dot nao) #e63d6613 */
.home-deal-strip {
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff4ec;
}

.home-deal-head {
  padding: 10px 14px;
  background: linear-gradient(90deg, #ff5a1f, #ff8a00);
}

.home-deal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.home-deal-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.home-deal-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  min-width: 0;
}

.home-deal-link,
.home-deal-link:hover {
  color: #333;
  text-decoration: none;
}

.home-deal-img {
  position: relative;
  display: block;
  padding-bottom: 100%;
}

.home-deal-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-deal-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #ff3b1f;
  border-radius: 0 0 0 8px;
}

.home-deal-name {
  display: -webkit-box;
  margin: 6px 0 4px;
  height: 36px;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-deal-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}

.home-deal-new {
  font-size: 16px;
  font-weight: 700;
  color: #ff3b1f;
}

.home-deal-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.home-deal-sold {
  margin: 6px 0 8px;
}

.home-deal-bar {
  display: block;
  height: 6px;
  background: #ffe1cc;
  border-radius: 3px;
  overflow: hidden;
}

.home-deal-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff5a1f, #ff8a00);
}

.home-deal-sold-text {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #666;
}

.home-deal-item .home-deal-cart {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #ff5a1f;
  border: 0;
  border-radius: 6px;
}

.home-deal-item a.home-deal-cart {
  text-align: center;
}

@media (max-width: 1199px) {
  .home-deal-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mua theo danh muc / Goi y cho ban / khoi theo danh muc – the kieu san #e63d6613 */
.hp-box {
  margin: 0 0 16px;
  padding: 12px 14px 14px;
  background: #fff;
  border-radius: 8px;
}

.hp-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hp-box-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
}

.hp-box-more,
.hp-box-more:hover {
  font-size: 14px;
  color: #2199c4;
  text-decoration: none;
}

.hp-cat-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.hp-cat-item,
.hp-cat-item:hover {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  color: #333;
  text-decoration: none;
  border: 1px solid #eef1f4;
  border-radius: 8px;
}

.hp-cat-item:hover {
  border-color: #2199c4;
  box-shadow: 0 2px 8px rgba(33, 153, 196, .15);
}

.hp-cat-img {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #f3f8fb;
  border-radius: 50%;
}

.hp-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-cat-name {
  display: -webkit-box;
  margin-top: 8px;
  height: 36px;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hp-grid,
.hp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hp-row .hp-card:nth-child(n+7),
.hp-card.hp-card-more {
  display: none;
}

.hp-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  min-width: 0;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 8px;
}

.hp-card:hover {
  border-color: #2199c4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.hp-card-link,
.hp-card-link:hover {
  color: #333;
  text-decoration: none;
}

.hp-card-img {
  position: relative;
  display: block;
  padding-bottom: 100%;
}

.hp-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #ff3b1f;
  border-radius: 0 0 0 8px;
}

.hp-card-name {
  display: -webkit-box;
  margin: 6px 0 4px;
  height: 36px;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hp-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-height: 22px;
}

.hp-card-new {
  font-size: 16px;
  font-weight: 700;
  color: #ff3b1f;
}

.hp-card-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.hp-card-sold {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #777;
}

.hp-card .hp-card-cart {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: #2199c4;
  border: 0;
  border-radius: 6px;
}

.hp-card a.hp-card-cart {
  color: #2199c4;
  background: #fff;
  border: 1px solid #2199c4;
}

.hp-more-wrap {
  margin-top: 14px;
  text-align: center;
}

.hp-more-btn {
  padding: 8px 48px;
  font-size: 14px;
  font-weight: 600;
  color: #2199c4;
  background: #fff;
  border: 1px solid #2199c4;
  border-radius: 6px;
}

.hp-more-btn:hover {
  color: #fff;
  background: #2199c4;
}

@media (max-width: 1199px) {
  .hp-cat-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .hp-grid,
  .hp-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hp-row .hp-card:nth-child(n+6) {
    display: none;
  }
}
