/* ===== Trang chi tiết sản phẩm / dịch vụ (Figma 41:1998) ===== */
.tq-pd__top {
  display: grid;
  grid-template-columns: 592px 592px;
  gap: 16px;
  align-items: start;
}
.tq-pd__gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tq-pd__thumbs-wrap {
  position: relative;
  flex: 0 0 85px;
  width: 85px;
  height: 385px;
}
.tq-pd__thumbs {
  width: 85px;
  height: 385px;
  overflow: hidden;
}
.tq-pd__thumbs .swiper-slide {
  width: 85px;
  height: 67px;
}
.tq-pd__thumbs-nav {
  display: none;
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 85px;
  height: 22px;
  margin-left: -42.5px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.tq-pd__thumbs-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid #2c2c2c;
  border-width: 2px 2px 0 0;
}
.tq-pd__thumbs-nav--prev {
  top: 0;
  border-radius: 8px 8px 0 0;
}
.tq-pd__thumbs-nav--prev::after {
  transform: translate(-50%, -30%) rotate(-45deg);
}
.tq-pd__thumbs-nav--next {
  bottom: 0;
  border-radius: 0 0 8px 8px;
}
.tq-pd__thumbs-nav--next::after {
  transform: translate(-50%, -70%) rotate(135deg);
}
.tq-pd__thumbs-wrap.has-more .tq-pd__thumbs-nav {
  display: block;
}
.tq-pd__thumbs-nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.tq-pd__thumb {
  width: 85px;
  height: 67px;
  padding: 0;
  border: 0.8px solid #d2d2d2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tq-pd__thumb:hover,
.tq-pd__thumb.is-active {
  border-color: var(--color-primary);
}
.tq-pd__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tq-pd__main {
  cursor: zoom-in;
  flex: 0 0 491px;
  width: 491px;
  height: 385px;
  border: 1px solid var(--color-primary);
  border-radius: 16.6px;
  background: #fff;
  overflow: hidden;
}
.tq-pd__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tq-pd__info {
  min-width: 0;
  font-family: var(--tq-font);
}
.tq-pd__title {
  margin: 0 0 12px;
  color: #000;
  font: 600 22px/normal var(--tq-font);
}
.tq-pd__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 30px;
}
.tq-pd__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 16px/normal var(--tq-font);
}
.tq-pd__tag i {
  display: inline-block;
  flex: 0 0 auto;
  background: no-repeat center / contain;
}
.tq-pd__tag--a {
  color: transparent;
  background: linear-gradient(#ff0014, #c20000) text;
  -webkit-background-clip: text;
  background-clip: text;
}
.tq-pd__tag--a i {
  width: 24px;
  height: 24px;
  background-image: url(../images/detail/icon-bolt.svg);
}
.tq-pd__tag--b {
  color: #1cb25b;
}
.tq-pd__tag--b i {
  width: 16px;
  height: 19px;
  background-image: url(../images/detail/icon-shield.svg);
}
hr.tq-pd__line {
  height: 0;
  margin: 12px 0;
  border: 0;
  border-top: 0.5px solid #d0d0d0;
  background: none;
  opacity: 1;
}
.tq-pd__price {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 14px 0 16px;
}
.tq-pd__price-main {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.tq-pd__price-label {
  color: #000;
  font: 500 16px/normal var(--tq-font);
}
.tq-pd__prices {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.tq-pd__now {
  color: red;
}
.tq-pd__now b {
  font: 700 28px/30px var(--tq-font);
}
.tq-pd__now small {
  font: 400 20.64px/18px var(--tq-font);
  vertical-align: top;
}
.tq-pd__old {
  color: #c8c8c8;
  font: 500 16px/22px var(--tq-font);
}
.tq-pd__old del {
  text-decoration: line-through;
}
.tq-pd__old small {
  font: 400 14.19px/18px var(--tq-font);
  vertical-align: top;
}
.tq-pd__off {
  flex: 0 0 auto;
  width: 49px;
  height: 18px;
  background: url(../images/detail/ribbon-off.svg) 0 0 / 100% 100% no-repeat;
  color: #fff;
  font: 700 12px/16px var(--tq-font);
  text-align: left;
  padding: 1px 0 0 8px;
  white-space: nowrap;
}
.tq-pd__note {
  margin: 0 0 16px;
  color: #797979;
  font: italic 600 12px/16px var(--tq-font);
  text-transform: uppercase;
}
.tq-pd__promo {
  padding: 16px 14px;
  border: 1px solid var(--color-primary);
  border-radius: 14px;
  background: #fff;
}
.tq-pd__promo p {
  margin: 0 0 10px;
  color: #000;
  font: 500 16px/normal var(--tq-font);
}
.tq-pd__promo ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tq-pd__promo li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tq-muted);
  font: 500 16px/normal var(--tq-font);
}
.tq-pd__promo li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  background: url(../images/detail/icon-promo.svg) 0 0 / 100% 100% no-repeat;
}
.tq-pd__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.tq-pd__btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: 600 18px/normal var(--tq-font);
  text-decoration: none;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.tq-pd__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.tq-pd__btn--yellow {
  background: var(--color-primary);
  color: #000;
}
.tq-pd__btn--red {
  background: linear-gradient(#ff0014, #c20000);
  color: #fff;
}
.tq-pd__btn--red:hover {
  color: #fff;
}
.tq-pd__refund {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 288px;
  height: 24px;
  padding: 0 0 0 32px;
  border-radius: 50px;
  background: linear-gradient(90deg, #666, #000);
  color: #fff;
  font: 500 12px/14px var(--tq-font);
}
.tq-pd__mid {
  display: grid;
  grid-template-columns: 693px 491px;
  gap: 16px;
  align-items: start;
}
.tq-pd__left,
.tq-pd__right {
  display: flex;
  flex-direction: column;
  min-width: 0;
} /* khoảng cách giữa các khối: class gap-* trên thẻ */
.tq-pd__commit {
  padding: 20px;
  border: 1px solid #ffd552;
  border-radius: 14px;
  background: #fffdf8;
}
.tq-pd__commit-title {
  margin: 0 0 20px;
  color: #000;
  font: 600 18px/normal var(--tq-font);
}
.tq-pd__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tq-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0.6px solid transparent;
  border-radius: 100px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #ffc718, #fd9f11) border-box;
  color: var(--tq-muted);
  font: 500 14px/18px var(--tq-font);
  white-space: nowrap;
}
.tq-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.tq-pd__tabbar {
  display: flex;
}
.tq-pd__tab {
  padding: 9px 40px;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: transparent;
  color: #000;
  font: 500 18px/normal var(--tq-font);
  cursor: pointer;
}
.tq-pd__tab.is-active {
  background: #ffd552;
  font-weight: 600;
}
.tq-pd__panel {
  display: none;
  padding: 20px 20px 14px;
  border: 1px solid #ffd552;
  border-radius: 0 10px 10px 10px;
  background: #fff;
}
.tq-pd__panel.is-active {
  display: block;
}
.tq-pd__seo .tq-cat__seo-body {
  max-height: 560px;
}
/* Overlay + nút "Xem thêm bài viết" theo Figma 41:2146: overlay cao 50px (trong suốt -> trắng), nút 46px nằm gọn trong overlay, sát đáy */
.tq-pd__seo .tq-cat__seo-fade {
  left: -7px;
  right: -7px;
  bottom: 0;
  height: 50px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 7.2%, #fff 77%);
}
.tq-pd__seo .tq-cat__seo-btn {
  margin-top: -46px;
  z-index: 2;
}
.tq-pd__faq {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font: 500 16px/24px var(--tq-font);
}
.tq-pd__faq summary {
  color: #2c2c2c;
  font-weight: 700;
  cursor: pointer;
}
.tq-pd__faq div {
  margin-top: 8px;
  color: var(--tq-muted);
}
.tq-pd__box {
  padding: 20px;
  border-radius: 10px;
  background: #f7f7f7;
}
.tq-pd__box-title {
  margin: 0 0 10px;
  color: #000;
  font: 600 18px/normal var(--tq-font);
}
.tq-pd__box-sub {
  margin: 0 0 20px;
  color: var(--tq-muted);
  font: 500 14px/normal var(--tq-font);
}
.tq-pd__store {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}
.tq-pd__store:last-child {
  margin-bottom: 0;
}
.tq-pd__store strong {
  color: #2c2c2c;
  font: 500 16px/normal var(--tq-font);
}
.tq-pd__store span {
  color: var(--tq-muted);
  font: 500 14px/normal var(--tq-font);
}
.tq-pd__store a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #fc9f10;
  font: 500 14px/normal var(--tq-font);
  text-decoration: none;
}
/* .tq-pd__news { padding: 30px 20px } */
.tq-pd__news .tq-sec__title {
  margin-bottom: 16px;
}
.tq-pd__news-swiper .swiper-slide {
  width: 288px;
  height: auto;
}
.tq-pd__news-swiper .tq-post {
  min-height: 243px;
  margin-bottom: 14px;
}
.tq-pd__modal-sub {
  margin: -6px 0 14px;
  color: var(--tq-muted);
  font: 500 14px/20px var(--tq-font);
  text-align: center;
}
#booking-modal .modal-dialog {
  max-width: 480px;
}
#booking-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1199.98px) {
  .tq-pd__top,
  .tq-pd__mid {
    grid-template-columns: 1fr;
  }
  .tq-pd__gallery {
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .tq-pd__gallery {
    flex-direction: column-reverse;
  }
  .tq-pd__thumbs-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
  .tq-pd__thumbs {
    width: 100%;
    height: auto;
  }
  .tq-pd__thumbs-nav {
    display: none !important;
  }
  .tq-pd__main {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 491 / 385;
  }
  .tq-pd__actions {
    flex-direction: column;
  }
  .tq-pd__refund {
    width: 100%;
  }
  .tq-pd__tab {
    padding: 9px 18px;
    font-size: 16px;
  }
  .tq-pd__news-swiper .swiper-slide {
    width: 260px;
  }
}

/* Trang danh sách Hệ thống cửa hàng */
.tq-storepage {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tq-storepage__map {
  position: sticky;
  top: 140px;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
}
.tq-storepage__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tq-stores {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.tq-stores__item {
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: #f7f7f7;
  color: #2c2c2c;
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.tq-stores__item:hover {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  color: #2c2c2c;
}
.tq-stores__item strong {
  font: 500 16px/22px var(--tq-font);
}
.tq-stores__item.is-active {
  border-color: #ffc718;
  background: #fff9ce;
}
.tq-stores__item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fc9f10;
  font: 500 14px/normal var(--tq-font);
}
@media (max-width: 991.98px) {
  .tq-storepage {
    grid-template-columns: minmax(0, 1fr);
  }
  .tq-storepage__map {
    position: static;
    order: -1;
    height: 320px;
  }
}

/* Nội dung HTML (sản phẩm/danh mục) hiển thị đúng style site cũ: Roboto 14px, Bootstrap reboot + .baonoidung */
.tq-old {
  color: #212529;
  font:
    400 14px/1.5 "Roboto",
    sans-serif;
  text-align: left;
}
.tq-old * {
  max-width: 100%;
}
.tq-old h1,
.tq-old h2,
.tq-old h3,
.tq-old h4,
.tq-old h5,
.tq-old h6 {
  margin: 0 0 0.5rem;
  color: #212529;
  font-weight: 500;
  line-height: 1.2;
}
.tq-old h1,
.tq-old .is-h1 {
  font-size: 40px;
}
.tq-old h2 {
  font-size: 32px;
}
.tq-old h3 {
  font-size: 28px;
}
.tq-old h4 {
  font-size: 24px;
}
.tq-old h5 {
  font-size: 20px;
}
.tq-old h6 {
  font-size: 16px;
}
.tq-old p {
  margin: 0 0 1rem;
}
.tq-old b,
.tq-old strong {
  font-weight: bolder;
}
.tq-old a {
  color: #0d6efd;
  text-decoration: none;
}
.tq-old ul,
.tq-old ol {
  margin: 0 0 1rem;
  padding-left: 2rem;
}
.tq-old ul li {
  margin-bottom: 0.75rem;
  list-style-type: disc;
}
.tq-old ol li {
  margin-bottom: 0.75rem;
  list-style-type: decimal;
}
.tq-old img {
  display: inline-block;
  max-width: 100%;
  height: auto !important;
  border-radius: 0;
  margin: 0;
}
.tq-old iframe {
  max-width: 100% !important;
}
.tq-old table {
  display: block;
  overflow-y: auto;
}

/* Popup ảnh sản phẩm: ảnh hiển thị tối đa 640x502, có lề quanh */
.tq-pd-popup .fancybox__slide {
  padding: 70px 90px;
}
.tq-pd-popup .f-panzoom__content {
  max-width: 640px;
  max-height: 502px;
  margin: auto;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
@media (max-width: 767.98px) {
  .tq-pd-popup .fancybox__slide {
    padding: 60px 12px;
  }
}

/* Hover thẻ cửa hàng: đổi màu địa chỉ */
.tq-pd__store,
.tq-stores__item {
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.tq-pd__store strong,
.tq-stores__item strong {
  transition: color 0.2s;
}
.tq-pd__store:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}
.tq-pd__store:hover strong,
.tq-stores__item:hover strong {
  color: #fc9f10;
}

/* Hover "Chỉ đường": đậm màu + gạch chân, mũi tên nhích chéo */
.tq-pd__store a,
.tq-stores__item a {
  transition: color 0.2s;
}
.tq-pd__store a img,
.tq-stores__item a img {
  transition: transform 0.2s;
}
.tq-pd__store a:hover,
.tq-stores__item a:hover {
  color: #e08600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tq-pd__store a:hover img,
.tq-stores__item a:hover img {
  transform: translate(2px, -2px);
}
.tq-pd__faq-body {
  color: var(--tq-muted);
  font: 500 16px/24px var(--tq-font);
}
.tq-pd__faq-body img {
  max-width: 100%;
  height: auto;
}

/* Sản phẩm/dịch vụ liên quan: lưới. Từ 992px trở lên 3 hàng (5 cột = 15 thẻ, 6 cột = 18 thẻ); dưới 992px (tablet, mobile) luôn 8 thẻ, xuống dòng tự do.
   Template xuất tối đa 18 thẻ, thẻ vượt mức được ẩn theo từng mốc */
.tq-pd__rel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tq-pd__rel-item {
  min-width: 0;
}
.tq-pd__rel-item:nth-child(n + 9) {
  display: none;
}
.tq-pd__rel .tq-card {
  width: 100%;
  height: 100%;
}
@media (min-width: 576px) {
  .tq-pd__rel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 768px) {
  .tq-pd__rel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 992px) {
  .tq-pd__rel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tq-pd__rel-item:nth-child(n + 9) {
    display: block;
  }
  .tq-pd__rel-item:nth-child(n + 16) {
    display: none;
  }
}
@media (min-width: 1200px) {
  .tq-pd__rel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tq-pd__rel-item:nth-child(n + 16) {
    display: block;
  }
}

/* Mobile: hộp tin công nghệ / cửa hàng gọn lại, thẻ tin cao theo nội dung (không để trống) */
@media (max-width: 767.98px) {
  .tq-pd__box {
    padding: 14px 12px;
  }
  .tq-pd__news {
    padding: 16px 12px;
  }
  .tq-pd__news-swiper .tq-post {
    height: auto;
    margin-bottom: 0;
  }
  .tq-pd__news-swiper .swiper-slide {
    width: 240px;
  }
  .tq-pd__news .tq-sec__title {
    margin-bottom: 12px;
  }
}

/* Mobile: 2 nút xếp dọc giữ đúng chiều cao (flex:1 làm nút xẹp khi container xếp cột) */
@media (max-width: 767.98px) {
    .tq-pd__actions { gap: 10px }
    .tq-pd__btn { flex: 0 0 auto; width: 100% }
}

/* Nhãn cam kết: chữ dài thì xuống dòng trong viền, không tràn ra ngoài khung */
.tq-pill { max-width: 100%; white-space: normal }
@media (max-width: 575.98px) {
    .tq-pill { padding: 8px 14px; gap: 8px; font-size: 13px; line-height: 18px; border-radius: 24px }
    .tq-pill img { flex: 0 0 auto; width: 20px; height: 20px }
}

/* Loại (biến thể có giá riêng): nhãn + chip, chip chọn nền vàng; mobile/tablet 1 hàng vuốt ngang */
.tq-pd__opts { display: flex; align-items: center; gap: 12px; margin: 16px 0 }
[data-pd-variants] .tq-pd__opts + .tq-pd__opts { margin-top: -4px }
.tq-pd__swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 50%; vertical-align: -1px }
.tq-pd__opts-label { flex: 0 0 auto; color: #000; font: 500 16px/normal var(--tq-font) }
.tq-pd__opts-list { display: flex; flex-wrap: wrap; gap: 8px }
.tq-pd__opt { padding: 8px 16px; border: .6px solid #DDD; border-radius: 100px; background: #fff; color: #2C2C2C; font: 500 13px/16px var(--tq-font); white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s }
.tq-pd__opt:hover { border-color: var(--color-primary) }
.tq-pd__opt.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #000 }
.tq-pd__off[hidden] { display: none }
@media (max-width: 991.98px) {
  .tq-pd__opts-list { flex-wrap: nowrap; min-width: 0; margin-right: -15px; padding-right: 15px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
  .tq-pd__opts-list::-webkit-scrollbar { display: none }
}
@media (max-width: 575.98px) {
  .tq-pd__opts-label { font-size: 14px }
  .tq-pd__opt { padding: 7px 14px; font-size: 12px; line-height: 14px }
}
