/* Trang danh sách Sản phẩm / Danh mục cáp / Công trình / Catalogue (inc/tpl-listing.php). */
:root { --tct-ease: cubic-bezier(.22,.61,.36,1); }
.tct-list-hero .vs-blog-count__l { text-transform: uppercase; }
.tct-list-h2.tct-list-h2 { margin: 0 0 18px; font-size: clamp(20px, 2.2vw, 26px); color: var(--vs-primary); }

/* Lưới danh mục */
.tct-list-cats { padding: 44px 0 8px; }
.tct-catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tct-catcard {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 40px 10px 10px;
  background: #fff; border: 1px solid var(--vs-border); border-radius: 16px; text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--tct-ease);
}
.tct-catcard:hover { border-color: rgba(226,113,29,.55); transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15,53,87,.4); }
.tct-catcard__img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--vs-bg-light); border: 1px solid var(--vs-border); }
.tct-catcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.tct-catcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tct-catcard__name { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--vs-primary); }
.tct-catcard__n { font-size: 12.5px; font-weight: 600; color: var(--vs-accent); }
.tct-catcard__go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9aa6b2; transition: color .2s, transform .2s; }
.tct-catcard__go svg { width: 18px; height: 18px; }
.tct-catcard:hover .tct-catcard__go { color: var(--vs-accent); transform: translate(3px, -50%); }

/* Thanh lọc + tìm kiếm */
.tct-list-body { padding: 36px 0 64px; }
.tct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tct-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--vs-border); background: #fff; color: var(--vs-primary); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.tct-chip:hover { border-color: var(--vs-accent); color: var(--vs-accent); }
.tct-chip.is-active { background: var(--vs-primary); border-color: var(--vs-primary); color: #fff; }
.tct-list-search { display: flex; gap: 10px; margin-bottom: 28px; }
.tct-list-search input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--vs-border); border-radius: 12px; font: inherit; font-size: 15px; background: #fff;
}
.tct-list-search input[type="search"]:focus { outline: none; border-color: var(--vs-accent); box-shadow: 0 0 0 3px rgba(226,113,29,.15); }
.tct-list-search .vs-btn { min-height: 48px; }

/* Lưới sản phẩm (cùng kiểu thẻ với trang chủ) */
.tct-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tct-list-grid > * { min-width: 0; }
.tct-product-card { display: flex; flex-direction: column; border: 1px solid var(--vs-border); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .3s, transform .3s var(--tct-ease); }
.tct-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(15,53,87,.35); }
.tct-product-card__img { display: block; overflow: hidden; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--vs-border); }
.tct-product-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .6s var(--tct-ease); }
.tct-list-grid--cover .tct-product-card__img img { object-fit: cover; padding: 0; }
.tct-product-card:hover .tct-product-card__img img { transform: scale(1.06); }
.tct-product-card__noimg { display: block; width: 100%; height: 100%; background: var(--vs-bg-light); }
.tct-product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.tct-product-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--vs-accent); }
.tct-product-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.tct-product-card h3 a { color: var(--vs-primary); text-decoration: none; }
.tct-product-card h3 a:hover { color: var(--vs-accent); }
.tct-product-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.tct-product-card__actions .vs-btn { flex: 1; justify-content: center; min-height: 40px; }

/* Lời kêu gọi cuối trang */
.tct-list-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 24px 28px; border-radius: 18px;
  background: linear-gradient(135deg, var(--vs-primary), #1b4f7c); color: #fff;
}
.tct-list-cta__t { margin: 0; font-size: 19px; font-weight: 800; color: #fff; }
.tct-list-cta__s { margin: 4px 0 0; font-size: 14.5px; color: rgba(255,255,255,.78); }
.tct-list-cta__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.tct-list-cta__call { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.tct-list-cta__call:hover { background: #fff; color: var(--vs-primary); }
.tct-list-cta__call svg { width: 18px; height: 18px; }

@media (max-width: 1080px) {
  .tct-catgrid { grid-template-columns: repeat(3, 1fr); }
  .tct-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .tct-catgrid, .tct-list-grid { grid-template-columns: repeat(2, 1fr); }
  .tct-list-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .tct-list-cta__btns { flex-direction: column; }
  .tct-list-cta__btns .vs-btn { justify-content: center; }
}
@media (max-width: 560px) {
  .tct-list-cats { padding-top: 32px; }
  .tct-catgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tct-catcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .tct-catcard__img { width: 52px; height: 52px; }
  .tct-catcard__name { font-size: 14px; }
  .tct-catcard__go { display: none; }
  .tct-list-grid { gap: 12px; }
  .tct-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tct-chips::-webkit-scrollbar { display: none; }
  .tct-chip { flex: 0 0 auto; }
  .tct-list-search { flex-direction: column; }
  .tct-product-card__body { padding: 12px; }
  .tct-product-card h3 { font-size: 14px; }
  .tct-product-card__actions { flex-direction: column; }
  .tct-list-cta { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tct-catcard, .tct-product-card, .tct-product-card__img img { transition: none; }
  .tct-catcard:hover, .tct-product-card:hover { transform: none; }
  .tct-product-card:hover .tct-product-card__img img { transform: none; }
}
