/* ==========================================================================
   Vatlieuso — resale.css
   Xả kho · Thanh lý page (page-templates/resale.php)
   Tông SÁNG + điểm nhấn VÀNG/NAVY đồng bộ site.
   ========================================================================== */

/* -- Body: nền sáng, header/footer giữ mặc định (navy) ------------- */
body.is-resale { background: #F7F6F2; color: var(--fg-1, #26251F); }

/* ====== Hero Banner ====== */
.vls-resale-hero {
  padding: 40px 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border, #E9E5DC);
  background: linear-gradient(180deg, #FFF8E6 0%, #F7F6F2 100%);
}
.vls-resale-hero__kicker {
  font-family: var(--font-body); font-size: var(--fs-11); font-weight: 700;
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: #B8860B; display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4);
}
.vls-resale-hero__title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 50px); font-weight: 700;
  color: var(--fg-1, #26251F); letter-spacing: var(--ls-tight); line-height: 1.08;
  margin: 0 0 var(--sp-4); max-width: 760px;
}
.vls-resale-hero__sub {
  font-family: var(--font-body); font-size: var(--fs-15); color: var(--fg-2, #5A5650);
  line-height: var(--lh-relaxed); max-width: 560px; margin: 0 0 var(--sp-7);
}

/* ====== Filter strip ====== */
.vls-resale-filter-strip { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-4); }
.vls-resale-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff; color: var(--fg-1, #26251F); border: 1px solid var(--border, #E9E5DC);
  font-family: var(--font-body); font-size: var(--fs-13); font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.vls-resale-chip:hover { background: #FFF8E6; border-color: #F1D173; }
.vls-resale-chip.is-active { background: #F7C948; border-color: #F7C948; color: #1F3355; }
.vls-resale-chip--sm { padding: 5px 11px; font-size: var(--fs-12); }
.vls-resale-chip__count { font-family: var(--font-mono); font-size: 10px; opacity: .65; }
.vls-resale-chip.is-active .vls-resale-chip__count { opacity: .9; }

.vls-resale-radius { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-3, #8A857C); }
.vls-resale-sort select {
  background: #fff; border: 1px solid var(--border, #E9E5DC); color: var(--fg-1, #26251F);
  font-family: var(--font-body); font-size: var(--fs-13); padding: 8px 12px; border-radius: 999px; cursor: pointer;
}

/* Stats bar */
.vls-resale-stats { display: flex; gap: var(--sp-3); align-items: center; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-3, #8A857C); flex-wrap: wrap; }
.vls-resale-stats b { color: var(--fg-1, #26251F); font-weight: 700; }

/* ====== Grid of 3 ====== */
.vls-resale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); padding-bottom: var(--sp-10); }

/* ====== Resale card ====== */
.vls-resale-card {
  background: #fff; border: 1px solid var(--border, #E9E5DC); border-radius: var(--r-3);
  overflow: hidden; transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.vls-resale-card:hover { border-color: #F1D173; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,51,85,.12); }

/* Card image */
.vls-resale-card__img-wrap {
  display: block; position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-bottom: 1px solid var(--border, #E9E5DC);
  background: repeating-linear-gradient(45deg, #F0EBE2 0 3px, #F7F4EE 3px 10px);
}
.vls-resale-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
.vls-resale-card:hover .vls-resale-card__img { transform: scale(1.04); }
.vls-resale-card__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #C9C0B2; }

/* Condition tag (màu trạng thái, giữ đa sắc để phân biệt) */
.vls-resale-ctag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.ctag--new     { background: #FFC107; color: #3A2A00; }
.ctag--good    { background: #E9B62E; color: #3A2A00; }
.ctag--used    { background: #F1EEE8; color: #5A5650; border: 1px solid var(--border,#E9E5DC); }
.ctag--warranty{ background: #0E8F4A; color: #fff; }
.ctag--display { background: #1F3355; color: #fff; }

.vls-resale-dist { position: absolute; bottom: 10px; right: 10px; background: rgba(13,24,50,.78); color: #fff; font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; }

/* Card body */
.vls-resale-card__body { padding: var(--sp-4); }
.vls-resale-card__cat { font-family: var(--font-body); font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--fg-3, #8A857C); margin-bottom: var(--sp-1); }
.vls-resale-card__title { font-family: var(--font-display); font-size: var(--fs-16); font-weight: 600; color: var(--fg-1, #26251F); margin: 0 0 var(--sp-2); line-height: var(--lh-snug); }
.vls-resale-card__title a { color: inherit; text-decoration: none; transition: color var(--dur-fast); }
.vls-resale-card__title a:hover { color: #B8860B; }
.vls-resale-card__meta { display: flex; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-11); color: var(--fg-3, #8A857C); margin-bottom: var(--sp-3); flex-wrap: wrap; }

.vls-resale-card__price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--border, #E9E5DC); padding-top: var(--sp-3); }
.vls-resale-card__price { font-family: var(--font-mono); font-size: var(--fs-18); font-weight: 700; color: var(--accent,#1F3355); font-feature-settings: "tnum" 1; }
.vls-resale-card__strike { font-family: var(--font-mono); font-size: var(--fs-12); color: #B6AEA2; text-decoration: line-through; margin-left: var(--sp-2); }
.vls-resale-card__cta { background: transparent; color: #B8860B; border: 1px solid #F7C948; font-family: var(--font-body); font-size: var(--fs-12); font-weight: 600; padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); white-space: nowrap; }
.vls-resale-card__cta:hover { background: #F7C948; color: #1F3355; }

/* ====== Empty state ====== */
.vls-resale-empty { text-align: center; padding: var(--sp-16) 0; color: #C9C0B2; }
.vls-resale-empty h3 { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; color: var(--fg-2, #5A5650); margin-top: var(--sp-4); }
.vls-resale-empty p { font-family: var(--font-body); font-size: var(--fs-14); color: var(--fg-3, #8A857C); }

/* ====== Sticky CTA bar ====== */
.vls-resale-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--border, #E9E5DC); backdrop-filter: blur(8px); z-index: 90; transform: translateY(100%); transition: transform .3s var(--ease-out); padding: var(--sp-3) 0; box-shadow: 0 -6px 24px rgba(31,51,85,.08); }
.vls-resale-sticky-cta.is-visible { transform: translateY(0); }
.vls-resale-sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.vls-resale-sticky-cta__text { font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600; color: var(--fg-1, #26251F); display: flex; align-items: center; gap: var(--sp-2); }
.vls-resale-sticky-cta__text svg { color: #B8860B; }
.vls-resale-sticky-cta__btn { display: inline-flex; align-items: center; gap: var(--sp-2); background: #F7C948; color: #1F3355; border: none; font-family: var(--font-display); font-size: var(--fs-14); font-weight: 700; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-2); text-decoration: none; cursor: pointer; transition: background var(--dur-fast); white-space: nowrap; }
.vls-resale-sticky-cta__btn:hover { background: #E9B62E; }

/* ====== Responsive ====== */
@media (max-width: 1024px) { .vls-resale-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .vls-resale-grid { grid-template-columns: 1fr; }
  .vls-resale-hero__title { font-size: 28px; }
  .vls-resale-filter-strip { gap: var(--sp-2); }
  .vls-resale-radius { margin-left: 0; width: 100%; }
}

/* ======================================================================
   Single tin thanh lý — chi tiết (single-tin_thanh_ly.php)
   ====================================================================== */
.vls-resale-single { padding-bottom: var(--sp-10); }
.vls-resale-single__grid { display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr); gap: var(--sp-12); align-items: start; }

/* ---- Cột ảnh (dính theo cuộn trên desktop) ---- */
.vls-resale-single__media-col { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--sp-4); }

/* Media */
.vls-resale-single__media { position: relative; background: repeating-linear-gradient(45deg, #F0EBE2 0 3px, #F7F4EE 3px 10px); border: 1px solid var(--border, #E9E5DC); border-radius: var(--r-4); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); }
.vls-resale-single__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.vls-resale-single__placeholder { color: #C9C0B2; }
.vls-resale-single__ctag { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; }
.vls-resale-single__deal { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2; background: linear-gradient(135deg,#FFD75E,#F5A623); color: #3A2E12; font-family: var(--font-mono); font-size: var(--fs-13); font-weight: 800; padding: 6px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(245,166,35,.42); }

/* Trust strip dưới ảnh */
.vls-resale-single__trust { list-style: none; margin: 0; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); background: #fff; border: 1px solid var(--border, #E9E5DC); border-radius: var(--r-3); }
.vls-resale-single__trust li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-13); color: var(--fg-2, #5A5650); }
.vls-resale-single__trust svg { color: #0E8F4A; flex-shrink: 0; }

/* Nút phóng to ảnh: rê chuột zoom nhẹ, click mở lightbox */
.vls-resale-single__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.vls-resale-single__zoom:hover .vls-resale-single__img,
.vls-resale-single__zoom:focus-visible .vls-resale-single__img { transform: scale(1.12); }
.vls-resale-single__zoom-hint { position: absolute; bottom: var(--sp-3); right: var(--sp-3); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(26,22,18,.72); color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.vls-resale-single__media:hover .vls-resale-single__zoom-hint { opacity: 1; transform: translateY(0); }
/* Lightbox dùng chung — xem components.css (.vls-lightbox) */

/* ---- Cột thông tin ---- */
.vls-resale-single__info { min-width: 0; }
.vls-resale-single__head { margin-bottom: var(--sp-5); }
.vls-resale-single__cat { display: inline-block; font-size: var(--fs-12); font-weight: 700; color: #B8860B; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; background: #FFF8E6; border: 1px solid #F1D173; padding: 4px 11px; border-radius: 999px; margin-bottom: var(--sp-3); transition: background var(--dur-fast), color var(--dur-fast); }
.vls-resale-single__cat:hover { background: #F7C948; color: #1F3355; }
.vls-resale-single__title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 33px); line-height: 1.18; letter-spacing: var(--ls-tight); color: var(--fg-1, #26251F); margin: 0 0 var(--sp-3); }
.vls-resale-single__subline { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.vls-resale-single__subline span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-3, #8A857C); }
.vls-resale-single__subline svg { color: #B8A98C; }

/* Khối giá nổi bật */
.vls-resale-single__price-block { background: linear-gradient(135deg,#FFFBF0,#FFF3D8); border: 1px solid #F1D173; border-radius: var(--r-4); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.vls-resale-single__price-label { display: block; font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #B8860B; margin-bottom: var(--sp-2); }
.vls-resale-single__price-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.vls-resale-single__price { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; color: var(--accent,#1F3355); line-height: 1; }
.vls-resale-single__unit { font-size: var(--fs-16); font-weight: 600; color: var(--fg-2, #5A5650); }
.vls-resale-single__discount { font-family: var(--font-mono); font-size: var(--fs-14); font-weight: 800; color: #fff; background: #E5484D; padding: 5px 11px; border-radius: 999px; }
.vls-resale-single__price-sub { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed #EAD8A0; }
.vls-resale-single__strike { font-size: var(--fs-15); color: #B6AEA2; text-decoration: line-through; }
.vls-resale-single__save { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-13); font-weight: 700; color: #0E8F4A; }
.vls-resale-single__save svg { color: #0E8F4A; }

/* Lưới thông số */
.vls-resale-single__specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.vls-spec { display: flex; align-items: center; gap: var(--sp-3); background: #fff; border: 1px solid var(--border, #E9E5DC); border-radius: var(--r-3); padding: var(--sp-3) var(--sp-4); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.vls-spec:hover { border-color: #F1D173; box-shadow: var(--shadow-1); }
.vls-spec__ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #FFF8E6; color: #B8860B; display: inline-flex; align-items: center; justify-content: center; }
.vls-spec__body { display: flex; flex-direction: column; min-width: 0; }
.vls-spec__label { font-size: var(--fs-11); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3, #8A857C); }
.vls-spec__value { font-size: var(--fs-14); font-weight: 700; color: var(--fg-1, #26251F); line-height: 1.3; }

/* CTA */
.vls-resale-single__cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.vls-resale-single__cta-primary { flex: 1 1 240px; box-shadow: 0 8px 22px rgba(245,166,35,.30); background: #F7C948; border-color: #E9B62E; color: #1F3355; transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); }
.vls-resale-single__cta-primary:hover { background: #E9B62E; border-color: #E9B62E; color: #1F3355; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(245,166,35,.38); }
.vls-resale-single__cta-ghost { background: #fff; border-color: var(--border, #E9E5DC); color: var(--fg-1, #26251F); }
.vls-resale-single__cta-ghost:hover { border-color: #F7C948; color: #B8860B; }

.vls-resale-single__note { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-13); color: var(--fg-2, #5A5650); background: #F4FAF6; border: 1px solid #CDEAD9; border-radius: var(--r-3); padding: var(--sp-3) var(--sp-4); margin: 0; line-height: 1.55; }
.vls-resale-single__note svg { color: #0E8F4A; flex-shrink: 0; margin-top: 2px; }

/* Mô tả */
.vls-resale-single__desc { margin-top: var(--sp-10); border-top: 1px solid var(--border, #E9E5DC); padding-top: var(--sp-7); }
.vls-resale-single__desc h2 { position: relative; font-family: var(--font-display); font-size: var(--fs-22); color: var(--fg-1, #26251F); margin: 0 0 var(--sp-4); padding-left: 14px; }
.vls-resale-single__desc h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(#F7C948,#E9B62E); }
.vls-resale-single__desc-body { color: var(--fg-2, #5A5650); font-size: var(--fs-15); line-height: 1.75; max-width: 820px; }
.vls-resale-single__desc-body p { margin: 0 0 var(--sp-4); }

@media (max-width: 860px) {
  .vls-resale-single__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .vls-resale-single__media-col { position: static; }
}
@media (max-width: 480px) {
  .vls-resale-single__specs { grid-template-columns: 1fr; }
  .vls-resale-single__cta-row { flex-direction: column; }
  .vls-resale-single__cta-primary { flex: 1 1 auto; }
}

/* ── Nút "Xem thêm" (canh giữa, nền sáng) ── */
.vls-loadmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px 0 16px; }
.vls-loadmore__btn { min-width: 240px; justify-content: center; gap: 8px; }
.vls-loadmore__btn.vls-btn--outline { color: var(--fg-1, #26251F); border-color: var(--border, #E0DACE); background: #fff; }
.vls-loadmore__btn.vls-btn--outline:hover { background: #F7C948; border-color: #F7C948; color: #1F3355; }
.vls-loadmore__btn.is-loading { pointer-events: none; opacity: .75; }
.vls-loadmore__spin svg { animation: vls-spin .8s linear infinite; }
@keyframes vls-spin { to { transform: rotate(360deg); } }
.vls-loadmore__count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3, #8A857C); margin: 0; }
.vls-loadmore__count b { color: var(--fg-1, #26251F); }
.vls-loadmore.is-done { display: none; }

/* ── Nội dung SEO / FAQ (nền sáng, 2 cột) ── */
.vls-resale-seo { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; align-items: start; margin: 48px 0 80px; padding-top: 32px; border-top: 1px solid var(--border, #E9E5DC); }
.vls-resale-seo__main { min-width: 0; }
.vls-resale-seo__lead { margin-bottom: 8px; }
.vls-resale-seo__lead h2, .vls-resale-seo__h { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg-1, #26251F); margin: 0 0 14px; }
.vls-resale-seo__lead p { font-family: var(--font-body); font-size: 15px; line-height: 1.75; color: var(--fg-2, #5A5650); margin: 0; }
.vls-resale-seo__h { display: flex; align-items: center; gap: 8px; margin: 34px 0 16px; }
.vls-resale-seo__h svg { color: #B8860B; }
.vls-resale-faq { display: flex; flex-direction: column; gap: 10px; }
.vls-resale-faq__item { border: 1px solid var(--border, #E9E5DC); border-radius: 12px; background: #fff; overflow: hidden; }
.vls-resale-faq__item[open] { border-color: #F1D173; box-shadow: 0 6px 18px rgba(31,51,85,.07); }
.vls-resale-faq__item summary { list-style: none; cursor: pointer; padding: 15px 46px 15px 18px; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--fg-1, #26251F); line-height: 1.5; }
.vls-resale-faq__item summary::-webkit-details-marker { display: none; }
.vls-resale-faq__item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-sunken, #F1EEE8); color: #B8860B; font-size: 18px; font-weight: 700; transition: background var(--dur-fast); }
.vls-resale-faq__item[open] summary::after { content: '−'; background: #F7C948; color: #4A3A00; }
.vls-resale-faq__a { padding: 0 18px 16px; }
.vls-resale-faq__a p { margin: 0; color: var(--fg-2, #5A5650); line-height: 1.7; font-size: 14px; }

/* Sidebar CTA (navy + nút vàng, dính theo cuộn) */
.vls-resale-seo__side { position: sticky; top: 88px; }
.vls-resale-sidecta { background: linear-gradient(155deg,#23395f,#0D1832); border-radius: 18px; padding: 24px 22px; box-shadow: 0 16px 40px rgba(13,24,50,.28); }
.vls-resale-sidecta h3 { font-family: var(--font-display); color: #fff; font-size: 19px; margin: 0 0 8px; }
.vls-resale-sidecta p { font-family: var(--font-body); color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.vls-resale-sidecta .vls-btn { width: 100%; justify-content: center; }
.vls-resale-sidecta__list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 11px; }
.vls-resale-sidecta__list li { display: flex; align-items: flex-start; gap: 9px; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.92); }
.vls-resale-sidecta__list svg { color: #F7C948; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) { .vls-resale-seo { grid-template-columns: 1fr; gap: 24px; } .vls-resale-seo__side { position: static; } }
