/**
 * Nút mở & Popup Xem nhanh. Markup: woocommerce/content-single-product-lightbox.php.
 * Popup được dựng bằng AJAX ở mọi trang có thẻ tour, nên file này nạp toàn site.
 */

/* Nút "Xem nhanh" trên các thẻ tour (Trang chủ, Danh mục, Tour liên quan) */
#wrapper .box-product a.quick-view.quick-view,
#wrapper .product-custom a.quick-view.quick-view,
.quick-view.quick-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

#wrapper .box-product a.quick-view.quick-view:hover,
#wrapper .product-custom a.quick-view.quick-view:hover,
.quick-view.quick-view:hover {
  background: var(--vmt-accent);
  color: #fff;
}

.vmt-qv.product-quick-view-container {
  overflow: hidden;
  border-radius: var(--vmt-radius);
  background: #fff;
}
.vmt-qv > .product {
  display: flex;
  align-items: stretch;
  margin: 0;
}

/* ===== Ảnh: khung xám, ảnh giữ đúng tỷ lệ 4:3 không bị cắt ===== */
.vmt-qv .product-gallery.col {
  display: flex;
  flex: 0 0 52%;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  max-width: 52%;
  padding: 0;
  background: var(--vmt-tint);
}
.vmt-qv .product-gallery-slider {
  width: 100%;
  margin: 0;
}
.vmt-qv .product-gallery-slider .slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dải ảnh nhỏ thu nhỏ bên dưới ảnh to */
.vmt-qv-thumbnails {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  background: rgba(35, 32, 29, .03);
}
.vmt-qv-thumbnails::-webkit-scrollbar {
  height: 4px;
}
.vmt-qv-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(35, 32, 29, .2);
  border-radius: 4px;
}
.vmt-qv-thumb-btn {
  flex: 0 0 60px;
  width: 60px;
  height: 45px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.vmt-qv-thumb-btn:hover {
  opacity: .95;
  transform: translateY(-1px);
}
.vmt-qv-thumb-btn.is-active {
  border-color: var(--vmt-accent);
  opacity: 1;
}
.vmt-qv-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Thông tin ===== */
.vmt-qv .product-info.col {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  padding: 28px 28px 24px;
  font-size: 15px;
}
.vmt-qv .product-lightbox-inner h1 {
  margin: 0 0 10px;
  color: var(--vmt-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-transform: none;
}
.vmt-qv-rating.vm-kk-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--vmt-ink-2);
  font-size: 14px;
}
.vmt-qv-rating .star-rating {
  margin: 0;
}

.vmt-qv .vmt-qv-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.vmt-qv .vmt-qv-facts > li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--vmt-ink-2);
}
.vmt-qv-facts svg {
  flex: none;
  color: var(--vmt-accent);
}
.vmt-qv-facts b {
  color: var(--vmt-ink);
  font-weight: 500;
}

.vmt-qv-block {
  margin-bottom: 18px;
}
.vmt-qv-label {
  margin: 0 0 8px;
  color: var(--vmt-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Hành trình: cùng kiểu chip cam với ngày khởi hành */
.vmt-qv .vmt-qv-route {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vmt-qv .vmt-qv-route > li {
  margin: 0;
}
.vmt-qv-route a {
  display: block;
  padding: 2px 10px;
  border: 1px solid var(--vmt-accent);
  border-radius: 999px;
  color: var(--vmt-ink);
  font-size: 14px;
  line-height: 1.5;
  transition: background-color .2s;
}
.vmt-qv-route a:hover {
  background: #fff1ed;
  color: var(--vmt-accent-strong);
}

/* Bảng lịch khởi hành */
.vmt-qv-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.vmt-qv-table th {
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid rgba(35, 32, 29, .15);
  color: var(--vmt-ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.vmt-qv-table td {
  padding: 8px;
  border: 0;
  border-bottom: 1px solid rgba(35, 32, 29, .08);
  color: var(--vmt-ink);
  text-align: left;
}
.vmt-qv-table th:not(:first-child),
.vmt-qv-table td:not(:first-child) {
  text-align: right;
}
.vmt-qv-table tr:last-child td {
  border-bottom: 0;
}
.vmt-qv-table .vmt-qv-price,
.vmt-qv-table .vmt-qv-price .amount {
  color: var(--vmt-accent-strong);
  font-weight: 600;
}

/* Giá và nút xem chi tiết */
.vmt-qv-buy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 rgba(35, 32, 29, .1);
}
.vmt-qv-from > span {
  display: block;
  color: var(--vmt-ink-2);
  font-size: 13px;
}
/* Chỉ giữ giá; mô tả ngắn, nút mua và meta của Flatsome không cần ở đây */
.vmt-qv-from > :not(span):not(.price-wrapper) {
  display: none;
}
.vmt-qv-from .price {
  margin: 0;
  color: var(--vmt-price-color, #dc2626);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.vmt-qv-from .price del {
  margin-right: 6px;
  color: var(--vmt-ink-3);
  font-size: 15px;
  font-weight: 400;
}
.vmt-qv-from .price ins {
  text-decoration: none;
}
.vmt-qv-from .price .amount {
  color: inherit;
}
.vmt-qv-from .price del .amount {
  font-size: inherit;
  font-weight: inherit;
}
.vmt-qv-more.vmt-qv-more {
  flex: none;
  min-width: 140px;
  margin: 0;
  border-radius: var(--vmt-radius-sm);
  white-space: nowrap;
}

/* ===== Điện thoại ===== */
@media (max-width: 849px) {
  .vmt-qv > .product {
    flex-direction: column;
  }
  .vmt-qv .product-gallery.col {
    flex-basis: auto;
    max-width: 100%;
  }
  .vmt-qv .product-info.col {
    padding: 20px 16px 18px;
  }
  .vmt-qv-buy {
    flex-direction: column;
    align-items: stretch;
  }
  .vmt-qv-more.vmt-qv-more {
    width: 100%;
  }
}
