/* Trang Hướng dẫn / Chính sách */
.tg-guide { background: #f6f9f7; color: #26332d; padding-bottom: 8px; }

/* Banner đầu trang */
.tg-guide-hero { padding: 28px 24px 0; }
.tg-guide-hero__box {
  position: relative; max-width: 1240px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(60% 90% at 12% 90%, rgba(90,170,42,.35), transparent 62%),
    radial-gradient(50% 80% at 92% 8%, rgba(226,196,122,.2), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 26px),
    linear-gradient(150deg, #0c3828 0%, #146653 60%, #0d4a3b 100%);
  box-shadow: 0 22px 54px rgba(13,74,59,.25);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 52px 56px;
}
.tg-guide-hero__in { position: relative; z-index: 1; max-width: 720px; }
.tg-guide-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.tg-guide-crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.tg-guide-crumb a:hover { color: #fff; }
.tg-guide-crumb [aria-current] { color: #fff; }
.tg-guide-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.tg-guide-hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #e2c47a; }
.tg-guide-hero__title { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.tg-guide-hero__sub { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 560px; }
.tg-guide-hero__art { position: relative; z-index: 1; width: 190px; height: 190px; flex: none; animation: tgGuideFloat 7s ease-in-out infinite alternate; }
@keyframes tgGuideFloat { from { transform: translateY(0) rotate(0); } to { transform: translateY(-10px) rotate(3deg); } }

/* Bố cục */
.tg-guide-layout { max-width: 1240px; margin: 0 auto; padding: 34px 24px 24px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.tg-guide-nav { position: sticky; top: 110px; }
.tg-guide-nav__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6a7d73; }
.tg-guide-nav ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.tg-guide-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e0e9e3; color: #2d3f36; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.tg-guide-nav a svg { flex: none; color: #5aaa2a; }
.tg-guide-nav a:hover { transform: translateX(3px); border-color: #b9d8c4; box-shadow: 0 8px 20px rgba(20,60,45,.08); }
.tg-guide-nav a.is-current { background: linear-gradient(135deg, #146653, #0d4a3b); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(13,74,59,.25); }
.tg-guide-nav a.is-current svg { color: #e2c47a; }
.tg-guide-help { padding: 18px; border-radius: 16px; background: #fff; border: 1px dashed #c8dccd; }
.tg-guide-help__t { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.tg-guide-help__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #158546; text-decoration: none; }
.tg-guide-help__h { display: block; margin-top: 4px; font-size: 13px; color: #6a7d73; }

/* Thẻ nội dung */
.tg-guide-article { background: #fff; border: 1px solid #e0e9e3; border-radius: 22px; padding: 40px 44px; box-shadow: 0 10px 34px rgba(20,60,45,.06); min-width: 0; }
.tg-guide-body { font-size: 17px; line-height: 1.8; }
.tg-guide-body > *:first-child { margin-top: 0; }
.tg-guide-body h2 { margin: 1.9em 0 .6em; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 700; color: #1c2621; padding-bottom: 10px; border-bottom: 2px solid #e3f1e8; }
.tg-guide-body h3 { margin: 1.5em 0 .4em; font-size: 20px; font-weight: 700; color: #1c2621; }
.tg-guide-body p { margin: 0 0 1.1em; }
.tg-guide-body a { color: #158546; font-weight: 600; text-decoration: none; border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background-color .18s; }
.tg-guide-body a:hover { background: rgba(46,170,100,.14); color: #0e6b37; }
.tg-guide-body ul, .tg-guide-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.tg-guide-body li { margin: .45em 0; }
.tg-guide-body li::marker { color: #3f8a1d; font-weight: 700; }
.tg-guide-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.tg-guide-body th, .tg-guide-body td { padding: 12px 14px; border: 1px solid #dfe8e2; text-align: left; vertical-align: top; }
.tg-guide-body th { background: #eef6f1; font-weight: 700; }
.tg-guide-body blockquote { margin: 1.4em 0; padding: 16px 20px; background: #f2f8f4; border-left: 4px solid #5aaa2a; border-radius: 0 12px 12px 0; }
.tg-guide-updated { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #e6eee9; font-size: 13px; color: #7a8d83; }

/* Thành phần riêng cho trang Hướng dẫn đặt hàng */
.tg-guide-lead { font-size: 19px; line-height: 1.7; color: #3a4c43; }
.tg-guide-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.6em 0 2em; }
.tg-guide-way { position: relative; padding: 24px 20px 20px; border-radius: 18px; background: linear-gradient(180deg, #f5faf6, #fff); border: 1px solid #dcebe1; transition: transform .25s, box-shadow .25s; }
.tg-guide-way:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,60,45,.1); }
.tg-guide-way__num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #e2c47a, #c9a84c); color: #1c2621; font-weight: 800; margin-bottom: 12px; }
.tg-guide-way h3 { margin: 0 0 8px; font-size: 18px; }
.tg-guide-way p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.tg-guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: 12px; }
.tg-guide-steps li { counter-increment: gs; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; background: #f6faf7; border: 1px solid #e0ece4; margin: 0; }
.tg-guide-steps li::before { content: counter(gs); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: #146653; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tg-guide-steps li::marker { content: ''; }
.tg-guide-note { margin: 1.8em 0 0; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, #0d4a3b, #146653); color: #fff; }
.tg-guide-note strong { display: block; font-size: 18px; margin-bottom: 6px; color: #fff; }
.tg-guide-note p { margin: 0; color: rgba(255,255,255,.9); }
.tg-guide-note a { color: #b6f3cf; }
.tg-guide-note a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sản phẩm gợi ý */
.tg-guide-products { padding: 12px 24px 8px; }
.tg-guide-products__in { max-width: 1240px; margin: 0 auto; }
.tg-guide-products__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tg-guide-products__head h2 { margin: 0; font-size: 26px; }
.tg-guide-products__head a { color: #158546; font-weight: 600; text-decoration: none; }
.tg-guide-products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tg-guide-pcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid #e0e9e3; text-decoration: none; color: #1c2621; transition: transform .25s, box-shadow .25s; }
.tg-guide-pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,60,45,.12); }
.tg-guide-pcard__img { display: block; border-radius: 12px; overflow: hidden; background: #f1f5f2; aspect-ratio: 1 / 1; }
.tg-guide-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tg-guide-pcard:hover .tg-guide-pcard__img img { transform: scale(1.05); }
.tg-guide-pcard__name { font-weight: 600; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-guide-pcard__price { color: #158546; font-weight: 700; }

/* Điện thoại / máy tính bảng */
@media (max-width: 1000px) {
  .tg-guide-hero { padding: 16px 16px 0; }
  .tg-guide-hero__box { padding: 36px 28px; border-radius: 20px; }
  .tg-guide-hero__art { width: 120px; height: 120px; }
  .tg-guide-layout { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 16px; gap: 20px; }
  .tg-guide-nav { position: static; }
  .tg-guide-nav ul { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 16px; padding: 0 16px 6px; scrollbar-width: none; }
  .tg-guide-nav ul::-webkit-scrollbar { display: none; }
  .tg-guide-nav li { flex: none; }
  .tg-guide-nav a { padding: 10px 14px; white-space: nowrap; font-size: 14px; }
  .tg-guide-help { display: none; }
  .tg-guide-ways { grid-template-columns: minmax(0, 1fr); }
  .tg-guide-products { padding: 8px 16px; }
  .tg-guide-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tg-guide-hero__box { padding: 28px 20px; }
  .tg-guide-hero__art { display: none; }
  .tg-guide-hero__sub { font-size: 15px; }
  .tg-guide-article { padding: 24px 18px; border-radius: 18px; }
  .tg-guide-body { font-size: 16px; }
  .tg-guide-steps li { padding: 14px 14px 14px 56px; }
}
@media (prefers-reduced-motion: reduce) { .tg-guide-hero__art, .tg-guide-way, .tg-guide-nav a, .tg-guide-pcard { animation: none !important; transition: none !important; } }
