/* ==========================================================
   THETEKCOFFEE / PREMIUM CATEGORY 4.0 — RETAIL EDITORIAL
   Global category UI. Giữ nguyên PHP/shortcode Premium Category.
   ========================================================== */

.tax-product_cat .ttc-category-description,
.ttc-category-top,
.ttc-category-bottom,
.ttc-cat-accessories {
  --ttc-accent: #18794e;
  --ttc-accent-dark: #0f5f3d;
  --ttc-accent-soft: #edf7f1;
  --ttc-ink: #14231b;
  --ttc-text: #415047;
  --ttc-muted: #718078;
  --ttc-line: #e5ebe7;
  --ttc-soft: #f7f9f8;
  --ttc-white: #fff;
  --ttc-radius-xl: 28px;
  --ttc-radius-lg: 20px;
  --ttc-radius-md: 14px;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  color: var(--ttc-text);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* 01 — CATEGORY DESCRIPTION / CLEAN RETAIL
   Loại bỏ hoàn toàn viền xanh dọc bên trái từ CSS cũ. */
.tax-product_cat .ttc-category-description {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 15px 18px;
  background: #f7faf8;
  border: 0 !important;
  border-left: 0 !important;
  outline: 0;
  border-radius: 14px;
  color: #526158;
  box-shadow: none !important;
}
.tax-product_cat .ttc-category-description::before,
.tax-product_cat .ttc-category-description::after {
  border-left: 0 !important;
}
.tax-product_cat .ttc-category-description p { margin: 0 0 8px; }
.tax-product_cat .ttc-category-description p:last-child { margin-bottom: 0; }
.tax-product_cat .ttc-category-description strong { color: var(--ttc-ink); font-weight: 760; }

/* Shared */
.ttc-v4-kicker,
.ttc-cat-eyebrow {
  margin: 0 0 10px;
  color: var(--ttc-accent);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 820;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.ttc-v4-kicker { display: block; }
.ttc-cat-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.ttc-cat-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ttc-accent);
  box-shadow: 0 0 0 5px rgba(24,121,78,.09);
}

/* 02 — SPLIT HERO */
.ttc-category-top.ttc-v4-hero {
  margin-top: 0;
  margin-bottom: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ttc-v4-hero-layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr);
  gap: 18px;
  padding: clamp(28px,4.5vw,52px);
  background:
    radial-gradient(circle at 88% 12%, rgba(24,121,78,.11), transparent 30%),
    linear-gradient(145deg,#ffffff 0%,#fbfdfc 58%,#f4f9f6 100%);
  border: 1px solid var(--ttc-line);
  border-radius: var(--ttc-radius-xl);
  box-shadow: 0 18px 50px rgba(24,50,36,.055);
}
.ttc-v4-hero-copy { align-self: center; min-width: 0; }
.ttc-v4-hero h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ttc-ink);
  font-size: clamp(32px,4.4vw,52px);
  line-height: 1.08;
  font-weight: 790;
  letter-spacing: -1.35px;
  text-wrap: balance;
}
.ttc-v4-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #536259;
  font-size: clamp(15px,1.5vw,17px);
  line-height: 1.75;
}
.ttc-v4-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.ttc-v4-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #dfe9e3;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #426050;
  font-size: 12px;
  font-weight: 690;
}

.ttc-v4-spec-panel {
  align-self: stretch;
  padding: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(215,229,220,.95);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.ttc-v4-spec-kicker {
  margin-bottom: 14px;
  color: #708078;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 1.2px;
}
.ttc-v4-spec-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.ttc-v4-spec-item {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #e7ede9;
  border-radius: 14px;
}
.ttc-v4-spec-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ttc-ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 780;
}
.ttc-v4-spec-item span {
  display: block;
  color: #75827a;
  font-size: 11px;
  line-height: 1.45;
}
.ttc-v4-spec-note {
  margin: 14px 2px 0;
  color: #78847d;
  font-size: 11px;
  line-height: 1.55;
}

/* CTA */
:is(.ttc-category-top,.ttc-category-bottom) .ttc-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
:is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  margin: 0;
  border: 1px solid var(--ttc-accent);
  border-radius: 12px;
  background: var(--ttc-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(24,121,78,.15);
  transition: transform .18s ease,background .18s ease,border-color .18s ease;
}
:is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button:hover {
  transform: translateY(-1px);
  background: var(--ttc-accent-dark);
  border-color: var(--ttc-accent-dark);
  color: #fff;
}
:is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button-outline {
  background: #fff;
  color: var(--ttc-accent);
  box-shadow: none;
}
:is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button-outline:hover {
  background: #f7faf8;
  color: var(--ttc-accent-dark);
}

/* Choice section */
.ttc-v4-choice-wrap { margin-top: 18px; }
.ttc-v4-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 18px 4px 14px;
}
.ttc-v4-section-intro h3 {
  max-width: 640px;
  margin: 0;
  padding: 0;
  color: var(--ttc-ink);
  font-size: clamp(22px,2.8vw,30px);
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: -.45px;
  background: none;
  border: 0;
}
.ttc-v4-section-intro > p {
  max-width: 420px;
  margin: 0 0 2px;
  color: #6c7971;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}
.ttc-cat-choice-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.ttc-v4-choice-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ttc-line);
  border-radius: 20px;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ttc-v4-choice-card:hover {
  transform: translateY(-2px);
  border-color: #cfe0d5;
  box-shadow: 0 12px 30px rgba(24,50,36,.06);
}
.ttc-v4-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ttc-cat-choice-label,
.ttc-v4-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ttc-accent-soft);
  color: var(--ttc-accent);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .65px;
}
.ttc-v4-choice-index {
  color: #a2ada6;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .8px;
}
.ttc-v4-choice-card h3 {
  margin: 16px 0 10px;
  padding: 0;
  color: var(--ttc-ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 760;
  background: none;
  border: 0;
}
.ttc-v4-choice-card p { margin: 0 0 18px; color: #627067; font-size: 14px; line-height: 1.7; }
.ttc-v4-text-link { color: var(--ttc-accent); font-weight: 760; text-decoration: none; }
.ttc-v4-text-link:hover { color: var(--ttc-accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* 03 — BOTTOM / EDITORIAL */
.ttc-category-bottom.ttc-v4-bottom {
  margin-top: 34px;
  margin-bottom: 46px;
  padding: clamp(26px,4vw,44px);
  background: #fff;
  border: 1px solid var(--ttc-line);
  border-radius: var(--ttc-radius-xl);
  box-shadow: 0 14px 40px rgba(24,50,36,.04);
}
.ttc-v4-content-header {
  max-width: 860px;
  margin-bottom: 22px;
}
.ttc-v4-content-header h2,
.ttc-v4-section-heading h2,
.ttc-v4-tradein h2,
.ttc-v4-link-section h2,
.ttc-v4-final-cta h2 {
  margin: 0;
  padding: 0;
  color: var(--ttc-ink);
  font-weight: 780;
  letter-spacing: -.65px;
  background: none;
  border: 0;
}
.ttc-v4-content-header h2 { font-size: clamp(28px,3.7vw,40px); line-height: 1.16; }
.ttc-v4-content-header > p:last-child { margin: 14px 0 0; color: #66736b; font-size: 15px; line-height: 1.75; }

.ttc-v4-version-grid,
.ttc-v4-decision-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.ttc-v4-version-card,
.ttc-v4-decision-card {
  padding: 22px;
  background: #fafcfb;
  border: 1px solid #e7ece9;
  border-radius: 18px;
}
.ttc-v4-version-card h3,
.ttc-v4-decision-card h3,
.ttc-v4-bento h3,
.ttc-v4-service-card h3 {
  margin: 14px 0 8px;
  padding: 0;
  color: #20382b;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 750;
  background: none;
  border: 0;
}
.ttc-v4-version-card p,
.ttc-v4-decision-card p,
.ttc-v4-bento p,
.ttc-v4-service-card p { margin: 0; color: #68756d; font-size: 14px; line-height: 1.72; }
.ttc-v4-version-card a,
.ttc-v4-service-card a { display: inline-block; margin-top: 14px; color: var(--ttc-accent); font-weight: 730; text-decoration: none; }
.ttc-v4-version-card a:hover,
.ttc-v4-service-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ttc-v4-section { margin-top: clamp(36px,6vw,64px); }
.ttc-v4-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.ttc-v4-section-heading h2 { max-width: 720px; font-size: clamp(25px,3vw,34px); line-height: 1.2; }
.ttc-v4-section-heading > p { max-width: 430px; margin: 0 0 2px; color: #738078; font-size: 13px; line-height: 1.65; text-align: right; }
.ttc-v4-section-heading-compact { align-items: start; }

/* Bento */
.ttc-v4-bento-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
.ttc-v4-bento {
  min-height: 190px;
  padding: 24px;
  background: linear-gradient(145deg,#fbfcfb,#f6f9f7);
  border: 1px solid #e6ece8;
  border-radius: 20px;
}
.ttc-v4-bento-wide { grid-row: span 2; min-height: 394px; }
.ttc-v4-bento-number,
.ttc-v4-service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e0e9e3;
  color: var(--ttc-accent);
  font-size: 11px;
  font-weight: 820;
}
.ttc-v4-bento-wide h3 { max-width: 540px; margin-top: 68px; font-size: clamp(24px,3vw,32px); line-height: 1.25; }
.ttc-v4-bento-wide p { max-width: 620px; font-size: 15px; }

/* Comparison table */
.ttc-cat-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ttc-line);
  border-radius: 16px;
  background: #fff;
}
.ttc-category-bottom .ttc-cat-table-scroll table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.ttc-category-bottom .ttc-cat-table-scroll th,
.ttc-category-bottom .ttc-cat-table-scroll td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #e8eeea;
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}
.ttc-category-bottom .ttc-cat-table-scroll thead th { background: #173d2a; color: #fff; font-weight: 760; }
.ttc-category-bottom .ttc-cat-table-scroll tbody th { background: #f5f8f6; color: #2d513d; font-weight: 720; }
.ttc-category-bottom .ttc-cat-table-scroll tbody tr:nth-child(even) td { background: #fbfcfb; }
.ttc-category-bottom .ttc-cat-table-scroll tbody tr:last-child > * { border-bottom: 0; }

/* Service cards */
.ttc-v4-service-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.ttc-v4-service-card {
  padding: 20px;
  border: 1px solid #e7ece9;
  border-radius: 16px;
  background: #fff;
}

/* Trade-in */
.ttc-v4-tradein {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: clamp(38px,6vw,64px);
  padding: clamp(24px,4vw,34px);
  background: linear-gradient(135deg,#173d2a,#20553a);
  border-radius: 22px;
  color: #fff;
}
.ttc-v4-tradein .ttc-v4-kicker { color: #a9d8bd; }
.ttc-v4-tradein h2 { color: #fff; font-size: clamp(26px,3vw,34px); line-height: 1.2; }
.ttc-v4-tradein p { max-width: 760px; margin: 12px 0 0; color: #dce9e1; font-size: 14px; line-height: 1.72; }
.ttc-v4-tradein a.ttc-cat-button { background: #fff; border-color: #fff; color: #17462f; box-shadow: none; white-space: nowrap; }
.ttc-v4-tradein a.ttc-cat-button:hover { background: #f1f7f3; border-color: #f1f7f3; color: #0e3422; }

/* FAQ */
.ttc-v4-faq-list { display: grid; gap: 10px; }
.ttc-category-bottom .ttc-v4-faq-list details {
  margin: 0;
  padding: 0 18px;
  background: #fafcfb;
  border: 1px solid #e6ece8;
  border-radius: 14px;
}
.ttc-category-bottom .ttc-v4-faq-list details[open] { background: #fff; border-color: #cfe1d6; }
.ttc-category-bottom .ttc-v4-faq-list summary {
  cursor: pointer;
  padding: 17px 2px;
  color: #263f31;
  font-weight: 730;
  line-height: 1.55;
}
.ttc-category-bottom .ttc-v4-faq-list details p { margin: 0 0 17px; color: #66736b; }

/* Link cards */
.ttc-v4-link-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  margin-top: clamp(38px,6vw,64px);
  padding-top: 28px;
  border-top: 1px solid var(--ttc-line);
}
.ttc-v4-link-section h2 { max-width: 360px; font-size: clamp(24px,3vw,32px); line-height: 1.2; }
.ttc-v4-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ttc-v4-link-grid a {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #e6ece8;
  border-radius: 14px;
  background: #fbfcfb;
  color: var(--ttc-ink);
  text-decoration: none;
  transition: border-color .18s ease,transform .18s ease;
}
.ttc-v4-link-grid a:hover { transform: translateY(-1px); border-color: #cadfd1; }
.ttc-v4-link-grid strong { font-size: 14px; line-height: 1.45; }
.ttc-v4-link-grid span { color: var(--ttc-accent); font-size: 12px; font-weight: 720; }

/* Final CTA */
.ttc-v4-final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
  padding: 24px;
  background: #f6f9f7;
  border: 1px solid #e4ebe6;
  border-radius: 18px;
}
.ttc-v4-final-cta h2 { margin-top: 10px; font-size: clamp(22px,2.6vw,28px); line-height: 1.25; }
.ttc-v4-final-cta p { max-width: 700px; margin: 8px 0 0; color: #6a776f; font-size: 13px; line-height: 1.65; }
.ttc-v4-final-cta .ttc-cat-actions { margin-top: 0; }

/* 04 — ACCESSORIES / PHP OUTPUT */
.ttc-cat-accessories {
  clear: both;
  margin-top: 30px;
  margin-bottom: 34px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--ttc-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(24,50,36,.035);
}
.ttc-cat-accessories-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.ttc-cat-accessories h2 {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  color: var(--ttc-ink);
  font-size: clamp(23px,2.8vw,30px);
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: -.45px;
  text-transform: none;
}
.ttc-cat-accessories-header p { margin: 0; color: #758179; font-size: 13px; line-height: 1.55; }
.ttc-cat-accessories-more { color: var(--ttc-accent); font-size: 13px; font-weight: 740; text-decoration: none; }
.ttc-cat-accessories-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ttc-acc-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.ttc-acc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ece9;
  border-radius: 16px;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ttc-acc-card:hover { transform: translateY(-2px); border-color: #ccdfd2; box-shadow: 0 10px 24px rgba(24,50,36,.05); }
.ttc-acc-image { display: block; padding: 14px; background: #f8faf9; aspect-ratio: 1 / 1; }
.ttc-acc-image img { width: 100%; height: 100%; object-fit: contain; }
.ttc-acc-card-body { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 14px; }
.ttc-cat-accessories .ttc-acc-card h3 { margin: 0; padding: 0; background: none; border: 0; font-size: 13px; font-weight: 720; line-height: 1.5; }
.ttc-cat-accessories .ttc-acc-card h3 a { color: #243a2e; text-decoration: none; }
.ttc-cat-accessories .ttc-acc-card h3 a:hover { color: var(--ttc-accent); }
.ttc-acc-price { margin-top: auto; color: var(--ttc-accent); font-size: 14px; font-weight: 800; line-height: 1.45; }
.ttc-acc-price del { color: #879189; font-size: 11px; font-weight: 400; }
.ttc-acc-price ins { text-decoration: none; }
.ttc-acc-link { color: var(--ttc-accent); font-size: 12px; font-weight: 730; text-decoration: none; }
.ttc-cat-accessories-note { margin: 18px 0 0; padding: 10px 12px; background: #f7faf8; border-radius: 10px; color: #77827b; font-size: 11px; line-height: 1.55; }
.ttc-acc-empty { margin: 0; padding: 18px; border: 1px dashed #cfe0d5; border-radius: 12px; background: #f8fbf9; color: #5f7066; }

/* Accessibility */
:is(.ttc-category-description,.ttc-category-top,.ttc-category-bottom,.ttc-cat-accessories) a:focus-visible,
.ttc-category-bottom summary:focus-visible,
.ttc-cat-table-scroll:focus-visible { outline: 2px solid var(--ttc-accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .ttc-v4-hero-layout { grid-template-columns: 1fr; }
  .ttc-v4-spec-panel { max-width: none; }
  .ttc-v4-section-heading,
  .ttc-v4-section-intro { align-items: start; flex-direction: column; }
  .ttc-v4-section-heading > p,
  .ttc-v4-section-intro > p { max-width: 700px; text-align: left; }
  .ttc-v4-service-grid { grid-template-columns: 1fr; }
  .ttc-v4-link-section { grid-template-columns: 1fr; }
  .ttc-v4-link-section h2 { max-width: 620px; }
  .ttc-v4-tradein,
  .ttc-v4-final-cta { grid-template-columns: 1fr; }
  .ttc-v4-final-cta .ttc-cat-actions { margin-top: 4px; }
}

@media (max-width: 767px) {
  .tax-product_cat .ttc-category-description,
  .ttc-category-top,
  .ttc-category-bottom,
  .ttc-cat-accessories { width: min(100% - 20px,1180px); font-size: 14px; }

  .tax-product_cat .ttc-category-description {
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 12px;
    box-shadow: none !important;
  }
  .ttc-v4-hero-layout { padding: 22px 18px; border-radius: 20px; }
  .ttc-v4-hero h2 { font-size: 31px; letter-spacing: -.8px; }
  .ttc-v4-lead { margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .ttc-v4-chips { margin-top: 17px; }
  .ttc-v4-spec-panel { padding: 15px; border-radius: 16px; }
  .ttc-v4-spec-item { padding: 11px; }
  .ttc-v4-spec-item strong { font-size: 14px; }

  .ttc-v4-section-intro { padding: 16px 2px 10px; gap: 8px; }
  .ttc-v4-section-intro h3 { font-size: 23px; }
  .ttc-cat-choice-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1px 1px 6px;
    scrollbar-width: none;
  }
  .ttc-cat-choice-grid::-webkit-scrollbar { display: none; }
  .ttc-v4-choice-card { flex: 0 0 86%; scroll-snap-align: start; padding: 18px; border-radius: 17px; }
  .ttc-v4-choice-card h3 { font-size: 17px; }

  :is(.ttc-category-top,.ttc-category-bottom) .ttc-cat-actions { flex-direction: column; align-items: stretch; }
  :is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button { width: 100%; }

  .ttc-category-bottom.ttc-v4-bottom { margin-top: 26px; padding: 22px 16px; border-radius: 20px; }
  .ttc-v4-content-header h2 { font-size: 29px; }
  .ttc-v4-version-grid,
  .ttc-v4-decision-grid { grid-template-columns: 1fr; }
  .ttc-v4-version-card,
  .ttc-v4-decision-card { padding: 18px; }
  .ttc-v4-section { margin-top: 42px; }
  .ttc-v4-section-heading { gap: 8px; margin-bottom: 16px; }
  .ttc-v4-section-heading h2 { font-size: 25px; }

  .ttc-v4-bento-grid { grid-template-columns: 1fr; }
  .ttc-v4-bento,
  .ttc-v4-bento-wide { min-height: 0; grid-row: auto; padding: 18px; }
  .ttc-v4-bento-wide h3 { margin-top: 24px; font-size: 23px; }
  .ttc-v4-bento h3 { margin-top: 18px; }

  .ttc-cat-table-scroll table { min-width: 620px; }
  .ttc-category-bottom .ttc-cat-table-scroll th,
  .ttc-category-bottom .ttc-cat-table-scroll td { padding: 11px 10px; font-size: 12px; }

  .ttc-v4-tradein { padding: 21px 18px; border-radius: 18px; }
  .ttc-v4-tradein h2 { font-size: 25px; }

  .ttc-v4-link-grid { grid-template-columns: 1fr; }
  .ttc-v4-link-grid a { min-height: 92px; }
  .ttc-v4-final-cta { padding: 19px 17px; }

  .ttc-cat-accessories { padding: 20px 14px; border-radius: 18px; }
  .ttc-cat-accessories-header { align-items: start; }
  .ttc-acc-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .ttc-acc-grid::-webkit-scrollbar { display: none; }
  .ttc-acc-card { flex: 0 0 62%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ttc-v4-choice-card,
  .ttc-v4-link-grid a,
  .ttc-acc-card,
  :is(.ttc-category-top,.ttc-category-bottom) a.ttc-cat-button { transition: none; }
}


/* ==========================================================
   GLOBAL 4.0 — SCALE HELPERS
   Cho phép nhân rộng mà không tạo CSS riêng từng dòng máy.
   ========================================================== */

/* 3–4 choice/version cards vẫn dùng cùng component; tự xuống hàng. */
.ttc-cat-choice-grid > *,
.ttc-v4-version-grid > *,
.ttc-v4-decision-grid > * { min-width: 0; }

/* Card thứ 3/4 dùng đúng style hiện có, không cần class mới. */
@media (min-width: 768px) {
  .ttc-cat-choice-grid:has(> :nth-child(3)),
  .ttc-v4-version-grid:has(> :nth-child(3)),
  .ttc-v4-decision-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Tránh theme/Flatsome áp text-transform ngoài ý muốn. */
:is(.ttc-category-top,.ttc-category-bottom,.ttc-cat-accessories)
:is(h2,h3,.ttc-cat-button,.ttc-v4-card-label,.ttc-cat-choice-label) {
  text-transform: none;
}

/* Namespace an toàn cho ảnh chèn trong editorial blocks. */
:is(.ttc-category-top,.ttc-category-bottom) img {
  max-width: 100%;
  height: auto;
}
