/* Product page additions (kept out of the compiled product.css). */

/* Related products, right under the product. Same margins as .product-benefits. */
.product-related {
  clear: both;
  margin: 0 15px 24px;
  width: calc(100% - 30px);
}
.product-related__title {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e5e5e5;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.product-related__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-related__item {
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  text-align: left;
}
.product-related__img {
  display: block;
  height: 130px;
  margin-bottom: 10px;
}
.product-related__img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 130px;
  margin: 0 auto;
  object-fit: contain;
}
.product-related__name {
  margin: 0;
  min-height: 38px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.product-related__name a {
  display: -webkit-box;
  overflow: hidden;
  color: #333;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-related__name a:hover {
  color: #d61510;
}
.product-related__price {
  margin: 6px 0 0;
}
.product-related__price b {
  color: #d61510;
  font-size: 16px;
}
.product-related__price del {
  display: block;
  color: #999;
  font-size: 13px;
}
@media (max-width: 1023px) {
  /* .details-top is a flex column here (see product.css): keep the block under the gallery/summary (order 1). */
  .product-related {
    order: 1;
  }
}
@media (max-width: 991px) {
  .product-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .product-related {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .product-related__grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Product tabs are not links any more (no href): keep the pointer cursor. */
.product .content_chitiet .nav-tabs > li > a[data-toggle="tab"] {
  cursor: pointer;
}
.product .content_chitiet .nav-tabs > li > a[data-toggle="tab"]:focus-visible {
  outline: 2px solid #d61510;
  outline-offset: 2px;
}
