/**
 * Tour archive layout. Loaded on the shop and product taxonomies only.
 * Markup: woocommerce/layouts/category.php, layouts/headers/category-title.php and content-product-custom.php.
 * Filters come from the Filter Everything plugin, so only its look is changed here.
 */
/* ===== Đầu trang ===== */
.category-page-title, .shop-page-title.category-page-title {
  background: #fff;
}
.category-page-title .page-title-inner {
  max-width: 1240px;
  padding-block: 32px 16px;
}
.category-page-title h1.shop-page-title {
  color: var(--vmt-ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-transform: none;
}
.category-page-title .woocommerce-result-count {
  color: var(--vmt-ink-2);
  font-size: 16px;
}
.category-page-title .woocommerce-ordering select {
  margin: 0;
  border: 0;
  border-radius: var(--vmt-radius-sm);
  background-color: var(--vmt-tint);
  box-shadow: none;
  color: var(--vmt-ink);
  font-size: 15px;
}

/* ===== Hai cột ===== */
.tax-product_cat #main, .tax-product_cat #wrapper, .post-type-archive-product #main, .post-type-archive-product #wrapper {
  background: #fff;
}
.vmt-cat.row {
  max-width: 1240px;
}
.vmt-cat > .col.large-3 {
  flex: 0 0 296px;
  max-width: 296px;
}
.vmt-cat > .col.large-9 {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* ===== Mô tả danh mục ===== */
.vmt-cat .term-description {
  margin-bottom: 24px;
  color: var(--vmt-ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.vmt-cat .term-description h2 {
  margin-bottom: 8px;
  color: var(--vmt-ink) !important;
  font-size: 22px;
  font-weight: 600;
  text-align: left !important;
}
.vmt-cat .term-description h2 *, .vmt-cat .term-description p, .vmt-cat .term-description p * {
  color: inherit !important;
  text-align: left !important;
}

/* ===== Danh sách tour dạng hàng ngang ===== */
.vmt-cat .products {
  display: block;
  margin: 0 !important;
}
.vmt-cat .products .product-custom {
  flex: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-bottom: 20px;
}
.vmt-cat .products .col-inner {
  box-shadow: none;
  background: none;
}
.vmt-cat .box-product {
  display: grid;
  border: 0;
  box-shadow: var(--vmt-shadow-sm);
}
.vmt-cat .box-product .box-image > div:first-child, .vmt-cat .box-product .box-image a {
  display: block;
  height: 100%;
}
.vmt-cat .box-product .box-image img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vmt-cat .box-product .box-text-inner {
  grid-template-columns: minmax(0, 1fr) 196px;
}
.vmt-cat .box-text-inner > * {
  grid-column: 1;
}
.vmt-cat .box-text-inner > .vmt-card-buy {
  grid-column: 2;
  grid-row: 1 / span 6;
  padding-left: 28px;
}
.vmt-cat .box-product .name a {
  color: var(--vmt-ink);
}
.vmt-cat .vm-kk-stars {
  font-size: 14px;
}
.vmt-cat .thoi-diem {
  gap: 4px 24px;
  color: var(--vmt-ink);
  font-size: 16px;
}
.vmt-cat .thoi-diem i {
  color: var(--vmt-accent);
}
.vmt-card-price {
  color: var(--vmt-price-color, #dc2626);
  font-size: 18px;
  line-height: 1.3;
}
.vmt-cat .vmt-card-price del, .vmt-cat .vmt-card-price del .amount {
  color: var(--vmt-ink-2);
  font-size: 14px;
  font-weight: 400;
}
.vmt-cat .vmt-card-price .amount {
  font-size: 22px;
  font-weight: 600;
}
.vmt-cat .vmt-card-buy .button {
  border-radius: var(--vmt-radius-sm);
}
#shop-sidebar .is-divider {
  display: none;
}
.wpc-filters-section:last-of-type {
  box-shadow: none;
}
.wpc-filter-header .wpc-filter-title {
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 600;
}
.wpc-filters-section select, .wpc-filters-section input[type="number"], .wpc-filters-section input[type="text"], .wpc-filters-section .select2-selection {
  border: 0;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  font-size: 15px;
}
.wpc-filter-layout-labels ul, .wpc-filters-section .wpc-filters-ul-list {
  gap: 8px;
}
.wpc-filters-section .wpc-label-item, .wpc-filters-section .wpc-filter-label-wrapper, .wpc-filters-section .wpc-term-item-content-wrapper {
  border-radius: var(--vmt-radius-sm);
  font-size: 15px;
}
.wpc-filter-layout-labels .wpc-term-item-content-wrapper {
  border: 0;
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  transition: background-color .2s;
}
.wpc-filter-layout-labels .wpc-term-item-content-wrapper:hover {
  background: #ececec;
}
.wpc-filter-layout-labels .wpc-term-selected .wpc-term-item-content-wrapper {
  background: var(--vmt-accent);
  color: #fff;
}
.wpc-filter-chip a {
  border: 0;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  font-size: 14px;
}
.wpc-filter-chip a:hover {
  background: #ececec;
}
.wpc-filters-open-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.wpc-filters-open-widget:hover {
  background: var(--vmt-ink);
  color: #fff;
}

/* ===== Phân trang ===== */
.vmt-cat .woocommerce-pagination .page-number {
  border: 0;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  font-weight: 500;
}
.vmt-cat .woocommerce-pagination .page-number.current {
  background: var(--vmt-accent);
  color: #fff;
}

/* ===== Tablet và điện thoại ===== */
@media (max-width: 849px) {
  .vmt-cat > .col.large-9 {
    max-width: 100%;
    flex-basis: 100%;
  }
  .vmt-cat .box-product .box-image {
    height: auto;
  }
  .vmt-cat .box-product .box-text-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .vmt-cat .box-text-inner > .vmt-card-buy {
    padding: 12px 0 0;
    box-shadow: inset 0 1px 0 rgba(35, 32, 29, .1);
  }
}

.vmt-cat .box-product .box-image {
  min-height: 210px;
}
.vmt-cat .box-product .box-image > .image-zoom, .vmt-cat .box-product .box-image > div:first-child {
  position: absolute;
  inset: 0;
}
.vmt-cat .box-product .box-image .image-tools {
  display: none;
}
.vmt-cat .box-product .box-text {
  display: flex;
}

/* ===== Mô tả danh mục: nội dung cũ dùng h1 đỏ căn giữa ===== */
.vmt-cat .term-description h1 {
  margin-bottom: 8px;
  color: var(--vmt-ink) !important;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left !important;
}
.vmt-cat .term-description h1 * {
  color: inherit !important;
  font-weight: inherit;
}

/* ===== Bộ lọc thành một khối nền xám ===== */
.vmt-cat > .col.large-3 {
  padding-right: 24px;
}

/* ===== Bộ lọc ===== */
#shop-sidebar {
  border: 0;
  box-shadow: none;
  padding: 20px;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
}
.wpc-filters-section select, .wpc-filters-section input[type="number"], .wpc-filters-section input[type="text"], .wpc-filters-section .select2-selection {
  height: 44px;
  box-shadow: none;
  background: #fff !important;
}
.wpc-filters-section .wpc-filters-ul-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.wpc-filters-section .wpc-label-item {
  margin: 0;
}
.wpc-filters-section .wpc-label-item, .wpc-filters-section .wpc-label-item * {
  border: 0 !important;
  box-shadow: none !important;
}
.wpc-filters-section .wpc-label-item label, .wpc-filters-section .wpc-label-item .wpc-term-item-content-wrapper {
  border-radius: var(--vmt-radius-sm);
  background: #fff;
}
.wpc-filters-range-slider-control .ui-slider-range, .wpc-filters-range-slider-control .noUi-connect {
  background: var(--vmt-accent) !important;
}
.wpc-filters-range-slider-control .ui-slider-handle, .wpc-filters-range-slider-control .noUi-handle {
  border-color: var(--vmt-accent) !important;
}
.wpc-see-more-control, .wpc-toggle-a {
  color: var(--vmt-accent-strong);
  font-size: 14px;
}

@media (max-width: 849px) {
  .vmt-cat .box-product .box-text {
    padding: 16px;
    display: block;
  }
}

/* Flatsome đặt margin auto cho box-image, làm ô ảnh co về 0 trong grid */
.vmt-cat .box-product .box-image {
  width: auto;
  position: relative;
  height: auto;
  padding-top: 0 !important;
  overflow: hidden;
  width: 100% !important;
  margin: 0;
}
.wpc-filters-section .wpc-filter-chip a, .wpc-filters-section .wpc-filter-label-wrapper {
  background: #fff;
}

/* Số tour nằm ngoài vùng AJAX của bộ lọc nên sẽ sai sau khi lọc */
.category-page-title .woocommerce-result-count {
  margin: 0 16px 0 0;
  display: none;
}
.wpc-filters-range-inputs input[type="number"] {
  width: 100%;
  padding-inline: 8px;
  font-size: 13px;
  -moz-appearance: textfield;
}
.wpc-filters-range-inputs input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

/* ===== Bộ lọc: gọn khoảng cách, giá trị dễ đọc ===== */
#shop-sidebar .widget-title.shop-sidebar {
  color: var(--vmt-ink);
  font-weight: 600;
  text-transform: none;
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}
.wpc-filters-section {
  border: 0;
  box-shadow: inset 0 -1px 0 rgba(35, 32, 29, .1);
  margin-bottom: 0;
  padding: 14px 0;
}
.wpc-filter-header .wpc-filter-title {
  text-transform: none;
  margin-bottom: 8px;
}
.wpc-filter-content, .wpc-filter-content .wpc-filter-range-form, .wpc-filters-range-inputs {
  margin: 0;
  padding: 0;
}
.wpc-filters-section select, .wpc-filters-section .select2-container {
  margin-bottom: 0;
}
.wpc-filters-section .select2-selection {
  display: flex;
  align-items: center;
}
.wpc-filters-section .select2-selection__arrow {
  display: block;
  top: 50%;
  transform: translateY(-50%);
}
.vmt-range-value {
  display: block;
  margin-bottom: 14px;
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 500;
}
.vmt-range-ready .wpc-filters-range-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wpc-filters-range-slider-wrapper {
  margin: 0;
  padding: 0 9px 8px;
}
.wpc-filters-range-slider-control.ui-slider {
  height: 4px;
  border: 0;
  background: #e2e0dd;
}
.wpc-filters-range-slider-control .ui-slider-handle {
  top: -8px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 2px solid var(--vmt-accent) !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: grab;
}
.wpc-filters-range-slider-control .ui-slider-handle:focus-visible {
  outline: 2px solid var(--vmt-accent-strong);
  outline-offset: 2px;
}
.wpc-filter-layout-checkboxes .wpc-filters-ul-list, .wpc-filter-diem-khoi-hanh .wpc-filters-ul-list {
  gap: 8px 20px;
}
.wpc-filter-diem-khoi-hanh input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  accent-color: var(--vmt-accent);
}
.wpc-filter-diem-khoi-hanh label, .wpc-filter-diem-khoi-hanh a {
  color: var(--vmt-ink);
  font-size: 15px;
}

/* ===== "Chọn điểm cần đến" dạng dropdown có tìm kiếm ===== */


/* ===== Sửa ảnh trong thẻ: Flatsome tạo tỉ lệ bằng padding-top ===== */
/* ===== Thẻ tour: mã, ngày khởi hành, Xem nhanh, giá ở dưới ===== */
.vmt-cat .box-product {
  min-height: 210px;
  grid-template-columns: 300px minmax(0, 1fr);
}
.vmt-cat .box-product .box-text-inner {
  column-gap: 28px;
  align-content: start;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.vmt-cat .box-product .category {
  margin-bottom: 4px;
  color: var(--vmt-ink-2);
  font-size: 13px;
  text-transform: none;
  display: none;
}
.vmt-cat .box-product .name {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.vmt-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.vmt-card-meta li {
  margin: 0;
  color: var(--vmt-ink-2);
  font-size: 15px;
  line-height: 1.4;
}
.vmt-card-meta b {
  color: var(--vmt-ink);
  font-weight: 500;
}
.vmt-card-meta i, .vmt-card-dates i {
  width: 22px;
  color: var(--vmt-accent);
}
.vmt-card-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--vmt-ink-2);
  font-size: 15px;
}
.vmt-card-dates span {
  margin-right: 4px;
}
/* Chip bộ lọc đang chọn: cùng một màu cam với thanh trượt, ô tick và ngày khởi hành.
   Stylesheet của plugin nạp sau và có selector mạnh, nên phải viết dài hơn. */
body ul.wpc-filter-chips-list li.wpc-filter-chip a {
  /* !important: một rule của plugin đặt viền xanh cho chip thường mà selector thường không thắng được */
  border-color: var(--vmt-accent) !important;
  background: #fff;
  color: var(--vmt-ink);
}
body ul.wpc-filter-chips-list li.wpc-filter-chip a:hover {
  background: #fff1ed;
  color: var(--vmt-ink);
}
body ul.wpc-filter-chips-list li.wpc-filter-chip .wpc-chip-content,
body ul.wpc-filter-chips-list li.wpc-filter-chip .wpc-filter-chip-name {
  color: inherit;
}
body ul.wpc-filter-chips-list li.wpc-filter-chip .wpc-chip-remove-icon {
  color: var(--vmt-accent);
}
body ul.wpc-filter-chips-list li.wpc-filter-chip.wpc-chip-reset-all a {
  background: #fff1ed;
  color: var(--vmt-accent-strong);
  font-weight: 500;
}
body ul.wpc-filter-chips-list li.wpc-filter-chip.wpc-chip-reset-all a:hover {
  background: var(--vmt-accent);
  color: #fff;
}
body ul.wpc-filter-chips-list li.wpc-filter-chip.wpc-chip-reset-all a:hover .wpc-chip-remove-icon {
  color: #fff;
}

/* Số tour tìm được, dưới hàng chip */
/* Plugin ẩn .wpc-posts-found trên điện thoại; riêng cột nội dung thì giữ lại */
body .vmt-cat > .col.large-9 .wpc-posts-found {
  display: block;
}
.vmt-cat .wpc-posts-found {
  margin: 4px 0 16px;
  color: var(--vmt-ink-2);
  font-size: 15px;
}
.vmt-cat .wpc-posts-found p {
  margin: 0;
}
.vmt-cat .wpc-posts-found .wpc-posts-found-number {
  color: var(--vmt-ink);
  font-weight: 600;
}

/* Hàng ngày khởi hành kéo ngang khi không đủ chỗ */
.vmt-card-dates-list {
  display: flex;
  flex: 1 1 100%;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.vmt-card-dates-list::-webkit-scrollbar {
  display: none;
}
.vmt-card-dates-list.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.vmt-card-dates a {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--vmt-accent);
  border-radius: 6px;
  color: var(--vmt-accent-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .2s;
}
.vmt-card-dates a:hover {
  background: #fff1ed;
}
.vmt-cat .box-text-inner > .vmt-card-buy {
  display: flex;
  align-self: stretch;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(35, 32, 29, .1);
}
.vmt-card-buy > .flex {
  flex: none;
  margin: 0;
}
.vmt-card-from {
  display: block;
  color: var(--vmt-ink-2);
  font-size: 14px;
  font-weight: 400;
}
.vmt-cat .vmt-card-price del, .vmt-cat .vmt-card-price del .amount {
  display: inline;
  margin-right: 6px;
}
.vmt-cat .vmt-card-price ins {
  text-decoration: none;
  display: inline;
}
.vmt-cat .vmt-card-buy .button {
  width: auto;
  min-width: 140px;
  white-space: nowrap;
}

/* Nút Xem nhanh luôn hiện trên ảnh */
.vmt-cat .box-product .box-image .image-tools.grid-tools {
  position: absolute;
  top: auto;
  right: 12px;
  bottom: 12px;
  left: auto;
  z-index: 2;
  display: block !important;
  width: auto;
  padding: 0;
  background: none;
  opacity: 1;
  transform: none;
  visibility: visible;
}

@media (max-width: 849px) {
  .vmt-card-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .vmt-cat .box-product {
    grid-template-columns: minmax(0, 1fr);
  }
}


@media (max-width: 849px) {
  .vmt-cat .box-text-inner > .vmt-card-buy {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .vmt-card-buy > .vmt-card-price {
    flex: 1 1 100%;
  }
  .vmt-card-buy > .flex, .vmt-cat .vmt-card-buy .button {
    width: 100%;
  }
}

/* Tiêu đề, thông tin và ngày khởi hành chung một lề trái */
.vmt-cat .box-text-inner ul.vmt-card-meta {
  margin-left: 0;
  padding-left: 0;
}
.vmt-cat .box-text-inner ul.vmt-card-meta li {
  margin-left: 0;
  padding-left: 0;
}
.vmt-cat .vmt-card-meta i, .vmt-cat .vmt-card-dates i {
  display: inline-block;
  width: 22px;
  margin: 0;
  text-align: left;
}
.vmt-cat .vmt-card-dates span {
  margin: 0 4px 0 0;
  padding: 0;
}

/* flatsome.css và style.css nạp sau file này, nên selector cần mạnh hơn */
#shop-sidebar.sidebar-inner {
  background: var(--vmt-tint);
  padding: 20px;
}

/* Nút mở bộ lọc trên điện thoại: CSS của plugin nạp sau nên phải viết selector mạnh hơn */
body .wpc-filters-open-button-container a.wpc-filters-open-widget.wpc-filters-open-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--vmt-ink);
  border-radius: var(--vmt-radius-sm);
  background: #fff;
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
.wpc-filters-open-widget .wpc-button-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.wpc-filters-open-widget .wpc-filters-button-text {
  display: block;
  line-height: 1.2;
}
.wpc-filters-open-widget .wpc-icon-html-wrapper {
  flex: none;
  margin: 0;
  top: 0;
  height: 12px;
}

@media (max-width: 849px) {
  .vmt-cat .box-product .box-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Flatsome equalize-box ép 3 thẻ liền nhau cao bằng nhau; danh sách hàng ngang không cần */
.vmt-cat .box-product .box-text {
  align-items: stretch;
  padding: 16px 20px;
  height: auto !important;
  min-height: 0 !important;
}

/* Ảnh luôn đúng 4:3 trong thẻ, dù thẻ cao hơn */
@media (min-width: 850px) {
  .vmt-cat .box-product {
    grid-template-columns: 344px minmax(0, 1fr);
    min-height: 0;
  }
  .vmt-cat .box-product .box-image.box-image {
    align-self: center;
    width: calc(100% - 14px) !important;
    min-height: 0;
    margin: 14px 0 14px 14px;
    aspect-ratio: 4 / 3;
    border-radius: var(--vmt-radius-sm);
  }
}

/* Tiêu đề dài không đè lên hàng sao; sao và số đánh giá chung một dòng */
.vmt-cat .box-product .name.name {
  height: auto;
}
.vmt-cat .vm-kk-stars {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vmt-cat .vm-kk-stars .star-rating {
  margin: 0;
}

/* ===== Nút chuyển Danh sách / Lưới (chỉ desktop, điện thoại thẻ vốn đã dọc) ===== */
.vmt-view-switch {
  display: none;
}

@media (min-width: 850px) {
  .vmt-view-switch {
    display: inline-flex;
    gap: 2px;
    margin-right: 12px;
    padding: 3px;
    border-radius: var(--vmt-radius-sm);
    background: var(--vmt-tint);
    vertical-align: middle;
  }
  .vmt-view-switch .vmt-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: none;
    box-shadow: none;
    color: var(--vmt-ink-3);
    cursor: pointer;
    transition: background-color .2s, color .2s;
  }
  .vmt-view-switch .vmt-view-btn:hover {
    color: var(--vmt-ink);
  }
  .vmt-view-switch .vmt-view-btn[aria-pressed="true"] {
    background: #fff;
    box-shadow: var(--vmt-shadow-sm);
    color: var(--vmt-accent);
  }
  .vmt-view-btn:focus-visible {
    outline: 2px solid var(--vmt-accent);
    outline-offset: 1px;
  }

  /* Chế độ lưới */
  .vmt-view-grid .vmt-cat .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .vmt-view-grid .vmt-cat .products .product-custom {
    margin-bottom: 0;
  }
  .vmt-view-grid .vmt-cat .products .col-inner {
    height: 100%;
  }
  .vmt-view-grid .vmt-cat .box-product.box-product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    height: 100%;
  }
  .vmt-view-grid .vmt-cat .box-product .box-image.box-image {
    align-self: start;
    width: 100% !important;
    margin: 0;
    border-radius: 0;
  }
  .vmt-view-grid .vmt-cat .box-product .box-text {
    padding: 14px 16px 16px;
  }

  /* Chừa đủ 2 dòng tiêu đề để các dòng thông tin thẳng hàng giữa các thẻ */
  .vmt-view-grid .vmt-cat .box-product .name.name {
    min-height: 47px;
    font-size: 18px;
  }
  /* Danh sách: nhãn và ngày chung một hàng. Lưới hẹp: nhãn nằm hàng riêng */
  html:not(.vmt-view-grid) .vmt-card-dates {
    flex-wrap: nowrap;
  }
  html:not(.vmt-view-grid) .vmt-card-dates span {
    flex: none;
  }
  .vmt-view-grid .vmt-cat .vmt-card-dates span {
    flex: 1 1 100%;
  }
  .vmt-view-grid .vmt-card-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .vmt-view-grid .vmt-card-meta li, .vmt-view-grid .vmt-card-dates {
    font-size: 14px;
  }
  .vmt-view-grid .vmt-cat .box-text-inner > .vmt-card-buy {
    flex-wrap: wrap;
    gap: 10px;
  }
  .vmt-view-grid .vmt-card-buy > .vmt-card-price, .vmt-view-grid .vmt-card-buy > .flex, .vmt-view-grid .vmt-cat .vmt-card-buy .button {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
  }
}


@media (min-width: 1200px) {
  .vmt-view-grid .vmt-cat .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
