/*
 * Thanh Long Espresso - CSS dùng chung cho 13 bài máy pha cà phê
 * Dán một lần vào Giao diện > Tùy biến > CSS bổ sung hoặc child theme.
 * Tất cả selector được giới hạn trong .tl-machine để không ảnh hưởng theme.
 */

.tl-machine {
  --tl-navy: #002748;
  --tl-heading: #1b1b3f;
  --tl-accent: #c26528;
  --tl-accent-dark: #9d4d1b;
  --tl-ink: #1e1e1e;
  --tl-muted: #666;
  --tl-line: #e4eaf0;
  --tl-soft: #f6f8fa;
  --tl-warm: #fff7f0;
  --tl-white: #fff;
  color: var(--tl-ink);
  font-family: Lexend, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 1120px;
}

.tl-machine,
.tl-machine * { box-sizing: border-box; }

.tl-machine h2,
.tl-machine h3 {
  color: var(--tl-heading);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.tl-machine h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 42px 0 14px;
}

.tl-machine h3 {
  font-size: clamp(19px, 2vw, 23px);
  margin: 0 0 10px;
}

.tl-machine p { margin: 0 0 16px; }

.tl-machine a {
  color: var(--tl-navy);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tl-machine a:hover,
.tl-machine a:focus-visible { color: var(--tl-accent-dark); }

.tl-machine__hero {
  align-items: center;
  background: linear-gradient(125deg, var(--tl-navy), var(--tl-heading));
  border-radius: 18px;
  color: var(--tl-white);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
  position: relative;
}

.tl-machine__hero::before {
  border: 28px solid rgba(255,255,255,.055);
  border-radius: 50%;
  content: "";
  height: 250px;
  position: absolute;
  right: -80px;
  top: -95px;
  width: 250px;
}

.tl-machine__hero-copy,
.tl-machine__hero-media { position: relative; z-index: 1; }

.tl-machine__eyebrow {
  color: #f4c9a9;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tl-machine .tl-machine__title {
  color: var(--tl-white);
  font-size: clamp(29px, 4vw, 46px);
  margin: 0 0 14px;
}

.tl-machine__lead {
  color: rgba(255,255,255,.9);
  font-size: 17px;
}

.tl-machine__hero-media img {
  aspect-ratio: 1 / 1;
  background: var(--tl-white);
  border-radius: 16px;
  display: block;
  height: auto;
  object-fit: contain;
  padding: 14px;
  width: 100%;
}

.tl-machine__quick {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 34px;
}

.tl-machine__quick-item {
  background: var(--tl-white);
  border: 1px solid var(--tl-line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,39,72,.07);
  padding: 20px;
}

.tl-machine__quick-label {
  color: var(--tl-muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.tl-machine__quick-value {
  color: var(--tl-heading);
  display: block;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.35;
}

.tl-machine__cards,
.tl-machine__gallery,
.tl-machine__contact-grid {
  display: grid;
  gap: 18px;
}

.tl-machine__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 32px;
}

.tl-machine__card {
  background: var(--tl-soft);
  border-left: 4px solid var(--tl-accent);
  border-radius: 12px;
  padding: 21px;
}

.tl-machine__list {
  list-style: none;
  margin: 18px 0 30px;
  padding: 0;
}

.tl-machine__list li {
  margin-bottom: 11px;
  padding-left: 30px;
  position: relative;
}

.tl-machine__list li::before {
  align-items: center;
  background: var(--tl-navy);
  border-radius: 50%;
  color: var(--tl-white);
  content: "✓";
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 4px;
  width: 20px;
}

.tl-machine__table-wrap {
  border: 1px solid var(--tl-line);
  border-radius: 14px;
  margin: 20px 0 30px;
  overflow-x: auto;
}

.tl-machine__table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  min-width: 620px;
  width: 100%;
}

.tl-machine__table th,
.tl-machine__table td {
  border: 0;
  border-bottom: 1px solid var(--tl-line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.tl-machine__table th {
  background: var(--tl-navy);
  color: var(--tl-white);
  font-size: 14px;
}

.tl-machine__table tbody tr:nth-child(even) { background: var(--tl-soft); }
.tl-machine__table tr:last-child td { border-bottom: 0; }

.tl-machine__figure {
  background: var(--tl-soft);
  border: 1px solid var(--tl-line);
  border-radius: 15px;
  margin: 28px 0;
  overflow: hidden;
  padding: 10px;
}

.tl-machine__figure img {
  background: var(--tl-white);
  border-radius: 10px;
  display: block;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  width: 100%;
}

.tl-machine__figure figcaption,
.tl-machine__gallery-item figcaption {
  color: var(--tl-muted);
  font-size: 13px;
  padding: 9px 7px 3px;
  text-align: center;
}

.tl-machine__gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 34px;
}

.tl-machine__gallery-item {
  background: var(--tl-soft);
  border: 1px solid var(--tl-line);
  border-radius: 13px;
  margin: 0;
  overflow: hidden;
  padding: 9px;
}

.tl-machine__gallery-item img {
  aspect-ratio: 4 / 3;
  background: var(--tl-white);
  border-radius: 9px;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.tl-machine__notice {
  background: var(--tl-warm);
  border: 1px solid #f0d2bb;
  border-radius: 12px;
  margin: 25px 0;
  padding: 19px 21px;
}

.tl-machine__notice strong { color: var(--tl-accent-dark); }

.tl-machine__faq {
  border-top: 1px solid var(--tl-line);
  padding: 20px 0;
}

.tl-machine__faq h3 { font-size: 19px; }

.tl-machine__cta {
  background: var(--tl-navy);
  border-radius: 18px;
  color: var(--tl-white);
  margin-top: 40px;
  padding: clamp(26px, 4vw, 42px);
}

.tl-machine .tl-machine__cta h2,
.tl-machine .tl-machine__cta h3,
.tl-machine__cta a { color: var(--tl-white); }
.tl-machine .tl-machine__cta h2 { margin-top: 0; }

.tl-machine__button {
  align-items: center;
  background: var(--tl-accent);
  border: 2px solid var(--tl-accent);
  border-radius: 999px;
  color: var(--tl-white) !important;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin: 8px 8px 0 0;
  min-height: 48px;
  padding: 10px 22px;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.tl-machine__button:hover,
.tl-machine__button:focus-visible {
  background: var(--tl-accent-dark);
  border-color: var(--tl-accent-dark);
  color: var(--tl-white) !important;
  transform: translateY(-1px);
}

.tl-machine__button--outline {
  background: transparent;
  border-color: rgba(255,255,255,.72);
}

.tl-machine__contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.tl-machine__contact {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 17px;
}

.tl-machine__small {
  color: #dce5ec;
  font-size: 13px;
  margin-top: 18px;
}

@media (max-width: 820px) {
  .tl-machine__hero { grid-template-columns: 1fr; }
  .tl-machine__hero-media { margin: 0 auto; max-width: 520px; width: 100%; }
  .tl-machine__quick { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tl-machine { font-size: 15px; line-height: 1.7; }
  .tl-machine__hero { border-radius: 13px; padding: 25px 19px; }
  .tl-machine__cards,
  .tl-machine__gallery,
  .tl-machine__contact-grid { grid-template-columns: 1fr; }
  .tl-machine__button { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-machine__button { transition: none; }
}

/* Bổ sung cho bộ 3 sản phẩm: chống tràn và hỗ trợ theme. */
.tl-machine figure.tl-machine__hero-media{margin:0;min-width:0}.tl-machine img{max-width:100%}.tl-machine .tl-machine__hero-copy{min-width:0}.tl-machine a{overflow-wrap:anywhere}.tl-machine .tl-machine__table caption{padding:12px;text-align:left;color:var(--tl-muted)}.tl-machine .tl-machine__table tbody th{background:transparent;color:var(--tl-ink);font-weight:650;width:42%}.tl-machine .tl-machine__table tr:last-child th{border-bottom:0}.tl-machine__source{font-size:13px;color:var(--tl-muted);margin-top:24px!important}
