/* Trà Mộc Sơn (traxanh) — trang chủ y hệt mockup Astra đợt 6 (10-02): xanh lá chè #006837 + xanh non #5cab10 (nút #3fa12a), nền kem.
   Mockup rộng 718px -> x2.006. Tiêu đề Noto Serif đậm, chữ thân Be Vietnam Pro, chữ ký Dancing Script. */
:root { --tx-g: #0f5a2e; --tx-g2: #006837; --tx-btn: #43a32b; --tx-ink: #1f2a22; --tx-text: #3d4540; --tx-muted: #6b716c; --tx-cream: #FBF8F1; --tx-cream2: #F7F2E8; --tx-serif: "Noto Serif", Georgia, serif; }
body, p, li, a, input, select, textarea, button, td, th, .nav > li > a { font-family: "Be Vietnam Pro", sans-serif !important; }
h1, h2, h3, h4, .tx-serif, #logo a, .tx-ft-logo span, .tx-quote { font-family: var(--tx-serif) !important; }
h1 a, h2 a, h3 a, h4 a { font-family: inherit !important; }
body { background: var(--tx-cream); color: var(--tx-text); }

/* ---------- topbar + header: menu tách hai bên, logo GIỮA (biểu tượng mầm chè trên chữ) ---------- */
#top-bar { background: var(--tx-g) !important; }
#top-bar .flex-row { justify-content: center; min-height: 40px; }
#top-bar .flex-left, #top-bar .flex-right { display: none !important; }
#top-bar .flex-center { display: flex !important; flex: 1 1 auto; justify-content: center; }
#top-bar .nav > li.html, #top-bar .html { color: #f3efe2 !important; font-size: 15px !important; letter-spacing: .01em; text-transform: none !important; }
#header .header-main { background: var(--tx-cream) !important; border-bottom: 1px solid #ece5d4; }
#header .header-bg-color { background: var(--tx-cream) !important; }
#header .header-main .header-inner { max-width: 1340px; padding: 0 30px !important; }
#header #logo { width: 260px !important; margin: 0 !important; top: 0 !important; }
#header #logo a { position: relative; top: 0 !important; margin: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tx-g2) !important; font-size: 27px; font-weight: 600 !important; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
#header #logo a::before { content: ""; width: 62px; height: 40px; background: url(icons/logo.png) center / contain no-repeat; }
#header .header-nav-main > li { margin: 0 22px !important; }
#header .header-nav-main > li > a, .tx-rnav a { color: #2f3a32 !important; font-size: 16px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; padding: 6px 0 !important; white-space: nowrap; line-height: 1.3 !important; }
#header .header-nav-main > li > a::before, #header .header-nav-main > li > a::after { display: none !important; }
#header .header-main .flex-left .header-nav-main > li:first-child { margin-left: 34px !important; }
#header .flex-right li.html { margin: 0 !important; }
.tx-rnav { display: flex; align-items: center; gap: 42px; margin: 0 6px 0 0 !important; padding: 0; list-style: none; }
.tx-rnav li { margin: 0 !important; list-style: none; }
.tx-rnav a.tx-hphone { display: inline-flex; align-items: center; gap: 10px; color: #263029 !important; font-size: 16.5px !important; }
.tx-rnav a.tx-hphone img { width: 22px; height: 22px; }
#header .header-nav-main.nav-right > li.header-search, #header .header-nav-main.nav-right > li.cart-item { margin: 0 0 0 26px !important; }
#header .header-nav-main.nav-right > li:last-child { margin-right: 4px !important; }
#header .nav-right .icon-search::before, #header .icon-shopping-bag::before, #header .icon-shopping-cart::before { content: "" !important; display: block; width: 26px; height: 27px; background: var(--tx-ic) center / contain no-repeat; }
#header .icon-search { --tx-ic: url(icons/search.png); } #header .icon-shopping-bag, #header .icon-shopping-cart { --tx-ic: url(icons/bag.png); }
#header .cart-icon strong, #header .header-cart-title, #header .cart-price { display: none !important; }
#header .cart-item .header-cart-link { padding: 0 !important; }
#header .header-search > a, #header .header-search .button, #header .header-search .icon-search { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
.mobile-nav .icon-menu { color: var(--tx-g2) !important; }
#header .icon-shopping-bag::after { display: none; } #header .mobile-nav .icon-shopping-bag::before { width: 24px; height: 25px; }

/* ---------- khung chung ---------- */
.tx-sec .col, .tx-hero .col, .tx-band .col, .tx-footer .col { padding: 0 !important; }
.tx-sec .row, .tx-hero .row, .tx-band .row, .tx-footer .row { max-width: none !important; margin: 0 !important; }
.tx-sec .col-inner > p:empty { display: none; }
.tx-w { max-width: 1296px; margin: 0 auto; padding: 0 0; }
.tx-head { text-align: center; }
.tx-h2 { color: var(--tx-g2) !important; font-size: 47px !important; font-weight: 700 !important; line-height: 1.18 !important; letter-spacing: -.005em; margin: 0 !important; }
.tx-rule { display: block; width: 68px; height: 2px; background: #2e7d4a; margin: 14px auto 0; }
.tx-sub { color: #4a514c; font-size: 17px; margin-top: 16px; }
.tx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 26px; background: var(--tx-btn); color: #fff !important; font-size: 16px; font-weight: 500; border-radius: 3px; border: 0; box-shadow: 0 6px 16px rgba(30, 90, 30, .18); }
.tx-btn img { width: 18px; height: 18px; }
.tx-btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.tx-link { display: inline-flex; align-items: center; gap: 10px; color: var(--tx-g2) !important; font-size: 17.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; white-space: nowrap; }
.tx-link img { width: 20px; height: 20px; }
.tx-link-g { color: var(--tx-btn) !important; font-size: 17.5px; font-weight: 500; }

/* ---------- hero: ảnh đồi chè toàn khổ, tiêu đề serif giữa ---------- */
.section.tx-hero { min-height: 456px; padding: 0 !important; align-items: center !important; }
.tx-hero .section-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 48% 60% at 50% 52%, rgba(20, 40, 20, .38), rgba(20, 40, 20, 0) 75%); }
.tx-hero-in { text-align: center; padding: 74px 0 70px; }
.tx-hero h1 { color: #fff !important; font-size: 59px !important; font-weight: 600 !important; line-height: 1.1 !important; margin: 0 !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.tx-hero-sub { color: #fff; font-size: 23px; margin: 22px 0 38px; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }

/* ---------- câu chuyện vùng chè: ảnh trái sát mép, chữ phải ---------- */
.section.tx-story { padding: 20px 0 0 !important; }
.tx-story-in { display: grid; grid-template-columns: minmax(0, 708fr) minmax(0, 732fr); align-items: center; }
.tx-story-img { height: 388px; overflow: hidden; } .tx-story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-story-txt { padding: 0 60px 0 52px; }
.tx-story .tx-h2 { font-size: 39px !important; margin-bottom: 30px !important; }
.tx-story-p { color: #3d4540; font-size: 18.5px; line-height: 2.05; max-width: 600px; }
.tx-story-ft { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 30px; max-width: 610px; }
.tx-sign { font-family: "Dancing Script", cursive !important; color: #1d2a20; font-size: 42px; line-height: 1; padding: 0 8px 14px 0; position: relative; transform: rotate(-6deg); }
.tx-sign::after { content: ""; position: absolute; left: 6px; right: -20px; bottom: 0; height: 2px; border-radius: 50%; background: #3f8a5b; transform: rotate(-3deg); }

/* ---------- chọn trà theo gu ---------- */
.section.tx-cats { padding: 42px 0 30px !important; }
.tx-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 36px; }
.tx-cat { display: block; text-align: center; }
.tx-cat-img { display: block; aspect-ratio: 312 / 333; overflow: hidden; background: #e8e2d2; }
.tx-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tx-cat:hover .tx-cat-img img { transform: scale(1.04); }
.tx-cat b { display: block; color: #1d3a28; font-family: var(--tx-serif) !important; font-size: 22.5px; font-weight: 600; margin-top: 22px; }

/* ---------- được yêu thích: dải SP + mũi tên tròn hai bên ---------- */
.section.tx-fav { padding: 44px 0 28px !important; }
.tx-slider { position: relative; margin-top: 34px; padding: 0 14px; }
.tx-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 30px) / 5); gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tx-track::-webkit-scrollbar { display: none; }
.tx-pc { scroll-snap-align: start; text-align: center; min-width: 0; }
.tx-pc-img { display: block; aspect-ratio: 230 / 263; background: #ececec; overflow: hidden; }
.tx-pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-pc-name { margin: 22px 0 0 !important; font-size: 18.5px !important; font-weight: 600 !important; line-height: 1.45 !important; }
.tx-pc-name a { color: var(--tx-g2) !important; }
.tx-pc-price { color: #1d3a28; font-size: 20.5px; font-weight: 500; margin: 12px 0 18px; }
.tx-pc-btn { width: 184px; max-width: 100%; min-height: 48px; padding: 0 10px; box-shadow: none; }
.tx-nav { position: absolute; top: 205px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tx-nav img { width: 20px; height: 20px; }
.tx-prev { left: -42px; } .tx-next { right: -42px; }

/* ---------- pha trà ---------- */
.section.tx-brew { padding: 36px 0 34px !important; }
.tx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.tx-step { text-align: center; padding: 6px 24px 6px; border-left: 1px solid #d6dcd7; }
.tx-step:first-child { border-left: 0; }
.tx-step-ic { width: 86px; height: 86px; object-fit: contain; display: block; margin: 0 auto 22px; }
.tx-step h3 { color: var(--tx-g2) !important; font-size: 21px !important; font-weight: 600 !important; margin: 0 0 18px !important; }
.tx-step div { color: #3f4742; font-size: 15.5px; }

/* ---------- băng trích dẫn ---------- */
.section.tx-band { min-height: 260px; padding: 0 !important; align-items: center !important; }
.tx-band-in { text-align: center; padding: 40px 0; }
.tx-quote { color: #F3EAD3; font-size: 47px; font-weight: 600; line-height: 1.32; }
.tx-rule-c { background: #d8c9a1; margin: 18px auto 18px; width: 62px; height: 1px; }
.tx-band-k { color: #e8e1cc; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- quà biếu ---------- */
.section.tx-gift { padding: 30px 0 24px !important; }
.tx-gift .tx-sub { margin-top: 10px; }
.tx-gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.tx-gc { text-align: center; }
.tx-gc-img { display: block; aspect-ratio: 634 / 308; overflow: hidden; background: #e6dfcf; }
.tx-gc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-gc h3 { color: #1d2a20 !important; font-size: 21.5px !important; font-weight: 500 !important; margin: 22px 0 6px !important; }

/* ---------- trà đàm ---------- */
.section.tx-blog { padding: 26px 0 30px !important; }
.tx-bhead { display: flex; align-items: flex-end; justify-content: space-between; }
.tx-blog .tx-h2 { font-size: 51px !important; }
.tx-bhead .tx-link { font-size: 16.5px; margin-bottom: 8px; }
.tx-po-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 18px; }
.tx-po-img { display: block; aspect-ratio: 414 / 188; overflow: hidden; background: #e6dfcf; }
.tx-po-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-po-meta { display: flex; align-items: center; gap: 10px; color: #8a8f8b; font-size: 13.5px; margin-top: 18px; }
.tx-po-meta span { color: #2f3a32; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.tx-po-meta i { width: 1px; height: 12px; background: #b9bdb9; }
.tx-po h3 { margin: 8px 0 10px !important; font-size: 21px !important; font-weight: 600 !important; line-height: 1.35 !important; }
.tx-po h3 a { color: #1d2a20 !important; }
.tx-po-ex { color: #5b625d; font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 390px; }

/* ---------- bản tin ---------- */
.section.tx-news { padding: 0 !important; position: relative; overflow: hidden; }
.tx-news::before, .tx-news::after { content: ""; position: absolute; top: 0; bottom: 0; width: 180px; background: url(icons/deco-leaf.png) center / contain no-repeat; opacity: .9; pointer-events: none; }
.tx-news::before { left: 0; } .tx-news::after { right: 0; transform: scaleX(-1); }
.tx-news-in { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.tx-news-txt h2 { color: var(--tx-g2) !important; font-size: 31px !important; font-weight: 700 !important; margin: 0 0 10px !important; }
.tx-news-txt div { color: #3f4742; font-size: 17px; }
.tx-nl-form { display: flex; align-items: stretch; margin: 0 !important; position: relative; }
.tx-nl-f { display: flex; align-items: center; gap: 12px; width: 342px; height: 54px; padding: 0 16px; background: #fff; border: 1px solid #e0dccf; margin: 0 !important; }
.tx-nl-f img { width: 24px; height: 24px; }
.tx-nl-f input { border: 0 !important; box-shadow: none !important; height: 50px !important; margin: 0 !important; padding: 0 !important; font-size: 15.5px !important; background: transparent !important; }
.tx-nl-form .tx-btn { text-transform: none; letter-spacing: 0; width: 138px; min-height: 54px; height: 54px; border-radius: 0 3px 3px 0; margin: 0 !important; font-size: 17px; box-shadow: none; }
.tx-nl-ok { position: absolute; top: 100%; left: 0; margin-top: 6px; color: var(--tx-g2); font-size: 14px; }

/* ---------- footer ---------- */
#footer .tx-footer, .section.tx-footer { padding: 40px 0 0 !important; }
.tx-ft { max-width: 1296px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 380fr) minmax(0, 260fr) minmax(0, 310fr) minmax(0, 346fr); gap: 0; }
.tx-ft-brand { text-align: center; padding-right: 40px; }
.tx-ft-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.tx-ft-logo img { width: 66px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.tx-ft-logo span { color: #fff; font-size: 27px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.tx-ft-tag { color: #eef1e9; font-size: 16px; margin-top: 16px; }
.tx-ft-rule { display: block; width: 150px; height: 1px; background: rgba(255, 255, 255, .45); margin: 16px auto 12px; }
.tx-ft-note { color: #e2e8df; font-size: 14px; }
.tx-soc { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.tx-soc a { width: 40px; height: 40px; border-radius: 50%; border: 1.4px solid rgba(255, 255, 255, .85); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; }
.tx-soc svg { width: 19px; height: 19px; }
.tx-ft-col h4 { color: #f4f0e2 !important; font-family: var(--tx-serif) !important; font-size: 18px !important; font-weight: 500 !important; margin: 4px 0 20px !important; }
.tx-ft-col a, .tx-ft-addr { display: flex; align-items: flex-start; gap: 16px; color: #e3e9e1 !important; font-size: 15.5px; line-height: 1.5; margin-bottom: 8px; }
.tx-ft-ct a, .tx-ft-addr { margin-bottom: 14px; font-size: 16px; }
.tx-ft-ct img { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; opacity: .9; }
.tx-ft-bot { max-width: 1296px; margin: 22px auto 0; padding: 16px 0 18px; border-top: 1px solid rgba(255, 255, 255, .45); text-align: center; color: #e3e9e1; font-size: 14px; }
#footer .absolute-footer { display: none !important; }

/* ---------- mobile ---------- */
@media (max-width: 849px) {
  #header .header-main .header-inner { padding: 0 10px !important; }
  #header #logo { width: auto !important; } #header #logo a { font-size: 19px; gap: 2px; } #header #logo a::before { width: 40px; height: 24px; }
  #top-bar .html { font-size: 13px !important; }
  .tx-w { padding: 0 16px; }
  .tx-h2 { font-size: 32px !important; }
  .section.tx-hero { min-height: 0; padding-top: 250px !important; background-color: var(--tx-g) !important; }
  .tx-hero .section-bg { top: 0; bottom: auto; height: 250px; }
  .tx-hero .section-bg::after { display: none; }
  .tx-hero-in { padding: 30px 16px 38px; }
  .tx-hero h1 { font-size: 36px !important; text-shadow: none; }
  .tx-hero-sub { font-size: 17px; margin: 14px 0 24px; text-shadow: none; }
  .tx-story-in { grid-template-columns: minmax(0, 1fr); }
  .tx-story-img { height: 240px; }
  .tx-story-txt { padding: 28px 16px 36px; }
  .tx-story .tx-h2 { font-size: 30px !important; margin-bottom: 16px !important; }
  .tx-story-p { font-size: 16px; line-height: 1.8; }
  .tx-sign { font-size: 32px; } .tx-sign::after { right: 0; } .tx-story-ft { gap: 12px; }
  .tx-bhead .tx-h2 { font-size: 30px !important; } .tx-bhead .tx-link { gap: 6px; font-size: 13.5px !important; } .tx-bhead .tx-link img { width: 16px; height: 16px; }
  .section.tx-cats, .section.tx-fav, .section.tx-brew { padding: 40px 0 36px !important; }
  .tx-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
  .tx-cat b { font-size: 18px; margin-top: 12px; }
  .tx-slider { padding: 0; }
  .tx-track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .tx-nav { display: none; }
  .tx-pc-name { font-size: 16px !important; margin-top: 12px !important; }
  .tx-pc-price { font-size: 17px; margin: 6px 0 10px; }
  .tx-pc-btn { width: 100%; min-height: 42px; font-size: 14.5px; }
  .tx-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tx-step { border-left: 0; padding: 0; }
  .tx-step-ic { width: 64px; height: 64px; margin-bottom: 14px; }
  .section.tx-band { min-height: 200px; }
  .tx-band .section-bg { background-position: 18% 50% !important; }
  .tx-quote { font-size: 27px; padding: 0 16px; }
  .tx-gift-grid, .tx-po-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tx-blog .tx-h2 { font-size: 34px !important; }
  .tx-bhead { align-items: center; } .tx-bhead .tx-link { font-size: 14px; margin: 0; }
  .tx-news::before, .tx-news::after { width: 90px; opacity: .45; }
  .tx-news-in { flex-direction: column; align-items: stretch; padding: 34px 16px 40px; gap: 18px; text-align: center; }
  .tx-news-txt h2 { font-size: 27px !important; }
  .tx-nl-f { width: auto; flex: 1 1 auto; min-width: 0; }
  .tx-nl-form .tx-btn { width: 110px; }
  .tx-ft { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 16px; }
  .tx-ft-brand { padding: 0; }
  .tx-ft-col { text-align: left; }
  .tx-ft-bot { margin: 26px 16px 0; }
}
@media (min-width: 850px) and (max-width: 1399px) {
  .tx-w, .tx-ft, .tx-ft-bot { padding-left: 30px; padding-right: 30px; }
  .tx-prev { left: -14px; } .tx-next { right: -14px; }
  .tx-story-txt { padding: 0 40px 0 56px; }
  .tx-rnav { gap: 22px; }
}
/* ruler:manual — traxanh 10-02: tiêu đề NHO x1.2 theo mực nhưng bề rộng dòng khớp mockup 0.95-1.05 (_cmpw) -> giữ cỡ (SKILL 6f); chỉ icon */
@media (min-width: 850px) {
  .tx-ft-ct img { width: 28px; height: 28px; }
  .tx-nl-f img { width: 28px; height: 28px; }
}

/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
