/* ==========================================================================
   Đồ cũ Thanh Ngọc — CSS riêng của theme con.
   Dùng lại biến màu của theme cha (--vs-primary, --vs-accent…). Màu thương hiệu
   đặt ở Customizer → "VinaSite – Màu sắc & Phông chữ".
   Mọi class mới có tiền tố .tn- để không đụng CSS theme cha.
   ========================================================================== */

/* ---- Tông nền theo màu xanh thương hiệu (theme cha mặc định tông nâu/kem).
   Màu chính/nhấn vẫn đặt ở Customizer; ở đây chỉ đổi các màu nền phụ. ---- */
:root {
  --vs-bg-light: #f3f8fc;
  --vs-bg-soft: #e4f0f9;
  --vs-border: #d6e4ef;
  --vs-lotus: #0278be;
  --vs-lotus-soft: #e4f0f9;
  --vs-text: #1b2733;
  --vs-muted: #5b6875;
  --vs-shadow-sm: 0 1px 3px rgba(2, 60, 95, .08), 0 1px 2px rgba(2, 60, 95, .06);
  --vs-shadow-md: 0 6px 22px rgba(2, 60, 95, .10);
  --vs-shadow-lg: 0 18px 48px rgba(2, 60, 95, .16);
}

/* ---- Nút: chữ trắng trên nền cam (màu nhấn) để đủ tương phản ---- */
.thanhngoc .vs-btn { --_fg: #fff; }
.thanhngoc .vs-btn:hover { color: #fff; }
.thanhngoc .vs-btn--outline { --_fg: var(--vs-primary); }
.thanhngoc .vs-btn--outline:hover { color: var(--vs-primary); }
.vs-btn--accent { --_bg: var(--vs-accent); --_fg: #fff; }
.vs-btn--accent:hover { background: var(--vs-accent-hover); color: #fff; }
.vs-btn--light { --_bg: #fff; --_fg: var(--vs-primary-dark); border-color: #fff; }
.thanhngoc .vs-btn--light,
.thanhngoc .vs-btn--light:hover { color: var(--vs-primary-dark); }
.vs-btn--light:hover { background: #eef6fc; }
.tn-btn-lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1.02rem; }
/* Nút đặt trong .entry-content (trang Giới thiệu) bị CSS link bài viết của theme cha
   gạch chân + đổi màu chữ → trả về đúng kiểu nút. */
.thanhngoc .entry-content a.vs-btn,
.thanhngoc .entry-content a.vs-btn:hover { color: var(--_fg); text-decoration: none; }
.thanhngoc .vs-mobilebar a.is-primary { background: var(--vs-accent); color: #fff; }
/* Thanh liên hệ di động: số cột theo số nút thật (chưa có Zalo thì chỉ 2 nút). */
.thanhngoc .vs-mobilebar { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* ---- Khung chung ---- */
.tn-section { padding-block: var(--vs-section-y); }
.tn-section--soft { background: var(--vs-bg-light); }
.tn-head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.tn-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; text-align: left; }
.tn-head__lead { color: var(--vs-muted); margin: .6rem 0 0; }
.tn-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vs-accent);
}
.tn-eyebrow .vs-ico { width: 16px; height: 16px; }
/* Tiêu đề: thêm tiền tố .thanhngoc để thắng quy tắc ".vs-scope h1/h2/h3" của theme cha. */
.thanhngoc .tn-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: .35rem 0 0; color: var(--vs-primary-dark); }
.thanhngoc .tn-h3 { font-size: 1.35rem; margin: 0 0 .5rem; color: var(--vs-primary-dark); }
.tn-muted { color: var(--vs-muted); }
.tn-lead { font-size: 1.12rem; }

/* ---- Hero ---- */
.tn-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--vs-primary-dark) 0%, var(--vs-primary) 60%, var(--vs-secondary) 100%);
  color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.tn-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); pointer-events: none;
}
.tn-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tn-hero .tn-eyebrow { color: #ffd8a8; }
.thanhngoc .tn-hero__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.15; margin: .6rem 0 1rem; color: #fff; }
.tn-hero__title span { display: block; color: #ffd8a8; }
.tn-hero__lead { font-size: 1.08rem; max-width: 560px; color: rgba(255, 255, 255, .92); margin: 0 0 1.6rem; }
.tn-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.tn-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.5rem 0 0; padding: 0; font-weight: 600; font-size: .95rem; }
.tn-hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.tn-hero__trust .vs-ico { width: 18px; height: 18px; color: #ffd8a8; }
.tn-hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.tn-hero__ph { margin: 0; border-radius: var(--vs-radius-md); overflow: hidden; background: #fff; box-shadow: var(--vs-shadow-lg); aspect-ratio: 4 / 3; }
.tn-hero__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-hero__ph--2, .tn-hero__ph--4 { transform: translateY(1.2rem); }

/* ---- Dịch vụ ---- */
.tn-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tn-service {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--vs-radius-md);
  background: #fff; border: 1px solid var(--vs-border); color: var(--vs-text); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tn-service:hover { transform: translateY(-3px); box-shadow: var(--vs-shadow-md); border-color: var(--vs-secondary); }
.tn-service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--vs-bg-soft); color: var(--vs-primary); }
.tn-service__icon .vs-ico { width: 28px; height: 28px; }
.thanhngoc .tn-service__title { font-size: 1.1rem; margin: .4rem 0 0; color: var(--vs-primary-dark); }
.tn-service__desc { margin: 0; color: var(--vs-muted); font-size: .95rem; flex: 1; }
.tn-service__more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--vs-accent); font-size: .92rem; }
.tn-service__more .vs-ico { width: 16px; height: 16px; }

/* ---- Sản phẩm ---- */
.tn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.6rem; }
.tn-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--vs-border); color: var(--vs-primary-dark); font-weight: 600; text-decoration: none; font-size: .92rem;
}
.tn-chip small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--vs-bg-soft); color: var(--vs-primary); font-size: .75rem; }
.tn-chip:hover { border-color: var(--vs-primary); }
.tn-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tn-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vs-border); border-radius: var(--vs-radius-md); overflow: hidden; transition: box-shadow .2s ease; }
.tn-pcard:hover { box-shadow: var(--vs-shadow-md); }
.tn-pcard__img { display: block; aspect-ratio: 4 / 3; background: var(--vs-bg-soft); overflow: hidden; }
.tn-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tn-pcard:hover .tn-pcard__img img { transform: scale(1.04); }
.tn-pcard__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; flex: 1; }
.tn-pcard__cat { font-size: .78rem; color: var(--vs-muted); text-transform: uppercase; letter-spacing: .04em; }
.thanhngoc .tn-pcard__title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.tn-pcard__title a { color: var(--vs-primary-dark); text-decoration: none; }
.tn-pcard__price { font-weight: 700; color: var(--vs-accent); margin-bottom: .4rem; }
.tn-pcard__cta { display: flex; gap: .5rem; margin-top: auto; }
.tn-pcard__cta .vs-btn { flex: 1; min-height: 42px; padding: .5rem .7rem; font-size: .9rem; }
.tn-price-contact { color: var(--vs-accent); font-weight: 700; }

/* ---- Quy trình ---- */
.tn-process { background: var(--vs-primary-dark); color: #fff; }
.thanhngoc .tn-process .tn-h2 { color: #fff; }
.tn-process .tn-eyebrow { color: #ffd8a8; }
.tn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: none; }
.tn-step { position: relative; padding: 1.5rem 1.3rem; border-radius: var(--vs-radius-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.tn-step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vs-accent); color: #fff; font-weight: 800; font-size: 1.15rem; }
.thanhngoc .tn-step__title { font-size: 1.08rem; margin: .9rem 0 .35rem; color: #fff; }
.tn-step__desc { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.tn-process__cta { text-align: center; margin-top: 2rem; }

/* ---- Thu mua những gì ---- */
.tn-buy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tn-buy__text p { color: var(--vs-muted); }
.tn-buy__actions, .tn-about__btns, .tn-lh__btns, .tn-contact__btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.tn-buy__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tn-buy__list li {
  display: flex; align-items: center; gap: .55rem; padding: .75rem .9rem; border-radius: var(--vs-radius-sm);
  background: var(--vs-bg-light); border: 1px solid var(--vs-border); font-weight: 600; color: var(--vs-primary-dark);
}
.tn-buy__list .vs-ico { width: 18px; height: 18px; color: var(--vs-accent); flex: none; }

/* ---- Liên hệ (cuối trang chủ) ---- */
.tn-contact { background: linear-gradient(120deg, var(--vs-primary) 0%, var(--vs-primary-dark) 100%); color: #fff; }
.thanhngoc .tn-contact .tn-h2 { color: #fff; }
.tn-contact .tn-eyebrow { color: #ffd8a8; }
.tn-contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tn-contact__lead { color: rgba(255, 255, 255, .88); }
.tn-contact__info { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--vs-radius-md); padding: 1.5rem; }
.tn-contact__info p { display: flex; gap: .6rem; margin: 0 0 .8rem; }
.tn-contact__info .vs-ico { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #ffd8a8; }
.tn-contact__info a { color: #fff; }
.tn-phones { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.tn-phones li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: var(--vs-radius-sm); background: rgba(255, 255, 255, .1); }
.tn-phones__label { font-weight: 600; }
.tn-phones__num { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.tn-phones__num .vs-ico { width: 20px; height: 20px; }

/* ---- Trang Liên hệ ---- */
.tn-lh { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: var(--vs-section-y); }
.tn-lh .tn-phones li { background: var(--vs-bg-light); border: 1px solid var(--vs-border); }
.tn-lh .tn-phones__num { color: var(--vs-primary); }
.tn-lh__list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .7rem; }
.tn-lh__list li { display: flex; gap: .6rem; }
.tn-lh__list .vs-ico { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--vs-accent); }
.tn-lh__map { display: flex; flex-direction: column; gap: .8rem; }
.tn-lh__map iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--vs-radius-md); box-shadow: var(--vs-shadow-md); }

/* ---- Trang Giới thiệu ---- */
.tn-about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tn-about__list { grid-template-columns: 1fr; }

/* ---- Breadcrumb trên nền xanh: link màu kem cho dễ đọc (cam trên xanh không đủ tương phản) ---- */
.thanhngoc .vs-single__hero a,
.thanhngoc .vs-blog-hero a { color: #ffd8a8; }

/* ---- Footer: xanh đậm thay cho nâu mặc định của theme cha ---- */
.thanhngoc .vs-footer { background: #062a43; color: #c9d9e6; }
.thanhngoc .vs-footer__slogan { color: #ffd8a8; }
.thanhngoc .vs-footer__map:hover,
.thanhngoc .vs-footer__socials a:hover { color: #fff; }

/* ---- Plugin VinaSite Call Button: nút gọi nền cam → biểu tượng trắng cho rõ ---- */
.thanhngoc .box-support a[href^="tel:"]::before { background-color: #fff; }
.thanhngoc .box-support a[href^="tel:"] { border-color: rgba(255, 255, 255, .6) !important; }

/* Điện thoại: theme cha ẩn nút plugin (≤768px) để nhường chỗ thanh đáy. Site này bỏ
   thanh đáy khi có plugin (footer.php), nên hiện lại nút plugin và bỏ khoảng đệm 56px. */
@media (max-width: 768px) {
  .thanhngoc #vinasite-call-bottom .box-support { display: block !important; right: 14px !important; bottom: 18px !important; }
  .thanhngoc #vinasite-call-bottom .box-support a { width: 50px !important; height: 50px !important; }
  body.thanhngoc:not(:has(.vs-mobilebar)) { padding-bottom: 0; }
}

/* ---- Header: nút gọi ---- */
.tn-header-call { white-space: nowrap; }
/* Chặn thanh cuộn ngang nếu menu con nào đó vượt mép màn hình (clip không phá sticky header). */
.thanhngoc #wrapper { overflow-x: clip; }

/* ---- WooCommerce ---- */
.tn-shop { padding-block: clamp(1.5rem, 4vw, 3rem); }
.tn-shop ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; color: var(--vs-primary-dark); }
.tn-shop ul.products li.product .tn-pcard__cta { margin-top: .6rem; }
.tn-pcta { margin: 1.2rem 0; padding: 1.1rem; border-radius: var(--vs-radius-md); background: var(--vs-bg-light); border: 1px solid var(--vs-border); }
.tn-pcta__note { margin: 0 0 .8rem; color: var(--vs-muted); }
.tn-pcta__btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .tn-services, .tn-pgrid { grid-template-columns: repeat(2, 1fr); }
  .tn-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tn-hero__grid, .tn-buy, .tn-contact__grid, .tn-lh, .tn-about { grid-template-columns: 1fr; }
  .tn-hero__collage { max-width: 520px; }
}
@media (max-width: 560px) {
  .tn-services, .tn-steps { grid-template-columns: 1fr; }
  .tn-pgrid { gap: .7rem; }
  .tn-pcard__body { padding: .75rem; }
  .tn-pcard__cta { flex-direction: column; }
  .tn-buy__list { grid-template-columns: 1fr; }
  .tn-hero__actions .vs-btn { width: 100%; }
  .tn-phones li { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .tn-head--row .vs-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-service, .tn-pcard__img img { transition: none; }
}
