/* ===== Mai Châu Pharma - giao diện trang chủ ===== */
:root {
  --green: #1f9d6b;
  --green-dark: #157a52;
  --green-darker: #0f5f40;
  --green-soft: #e8f6ef;
  --yellow: #f5b323;
  --yellow-dark: #8a5a00;
  --red: #e5484d;
  --zalo: #0068ff;
  --text: #2f3a35;
  --muted: #66756e;
  --border: #e1e9e5;
  --bg-soft: #f4f9f6;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(15, 95, 64, 0.12);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(31, 157, 107, 0.45); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--green-darker); color: var(--white); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ===== Nút bấm ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 8px; font-weight: 500; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--outline { border-color: var(--green); color: var(--green-dark); background: var(--white); }
.btn--outline:hover { background: var(--green-soft); }
.btn--yellow { background: var(--yellow); color: #3d2a00; border-radius: 999px; padding: 9px 22px; }
.btn--yellow:hover { background: #e6a512; }
.btn--white { background: var(--white); color: var(--green-darker); }
.btn--white:hover { background: var(--green-soft); }
.btn--sm {
  width: 100%; padding: 7px 12px; font-size: 14px;
  border-color: var(--green); color: var(--green-dark); background: var(--white);
}
.btn--sm:hover { background: var(--green); color: var(--white); }
.btn--line {
  padding: 4px 14px; font-size: 12px; border: 1px solid var(--yellow);
  color: var(--yellow-dark); border-radius: 4px; font-weight: 500;
}
.btn--line:hover { background: var(--yellow); color: #3d2a00; }

/* ===== Thanh trên cùng ===== */
.topbar { background: #f1f5f3; font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px; }
.topbar__slogan { font-weight: 500; color: var(--green-darker); }
.topbar__links { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__links a:hover { color: var(--green-dark); }
.sep { color: #c3cec9; }

/* ===== Đầu trang ===== */
.header { background: var(--white); }
.header__inner {
  display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: center;
  gap: 24px; padding: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 28px; font-weight: 700; color: var(--green-dark); letter-spacing: -0.5px; }
.logo__sub { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 6px; margin-top: 4px; }
.header__feature { display: flex; align-items: center; gap: 12px; justify-self: center; }
.header__feature strong { display: block; font-size: 15px; color: var(--text); }
.header__feature small { display: block; font-size: 13px; color: var(--muted); }
.header__icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-size: 24px;
}
.header__social { display: flex; gap: 14px; color: var(--muted); font-size: 20px; }
.header__social a:hover { color: var(--green-dark); }
.menu-toggle {
  display: none; background: var(--green-soft); color: var(--green-dark);
  border: 0; border-radius: 8px; width: 42px; height: 42px; font-size: 24px; cursor: pointer;
}

/* ===== Thanh menu xanh ===== */
.navbar { background: var(--green); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.navbar__inner { display: flex; align-items: center; gap: 20px; padding: 0 16px 0 0; }
.catmenu { position: relative; }
.catmenu__btn {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
  background: var(--green-darker); color: var(--white); border: 0; cursor: pointer;
  font-weight: 500; font-size: 15px; white-space: nowrap;
}
.catmenu__icon--m { display: none; }
.catmenu__list {
  position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.catmenu.is-open .catmenu__list { opacity: 1; visibility: visible; transform: none; }
.catmenu__list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--text);
}
.catmenu__list a i { color: var(--green); font-size: 20px; }
.catmenu__list a:hover { background: var(--green-soft); color: var(--green-dark); }
.navbar__menu { display: flex; gap: 22px; }
.navbar__menu a {
  display: flex; align-items: center; gap: 4px; height: 48px;
  color: var(--white); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.navbar__menu a:hover { color: #fff4cf; }
.badge-hot {
  background: var(--red); color: var(--white); font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px; transform: translateY(-6px);
}
.search { flex: 1; display: flex; max-width: 420px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; height: 34px; border: 0; border-radius: 6px 0 0 6px;
  padding: 0 12px; font-size: 14px; color: var(--text);
}
.search button {
  width: 42px; height: 34px; border: 0; border-radius: 0 6px 6px 0;
  background: var(--green-darker); color: var(--white); font-size: 18px; cursor: pointer;
}

/* ===== Ảnh lớn đầu trang ===== */
.hero { background: var(--bg-soft); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px;
  border-radius: 50%; background: var(--green-soft);
}
.hero__track { display: grid; position: relative; }
.hero__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  padding-top: 48px; padding-bottom: 56px;
}
.hero__eyebrow { margin: 0 0 8px; font-weight: 700; letter-spacing: 3px; font-size: 13px; color: var(--green); }
.hero h1, .hero__title { font-size: 44px; font-weight: 700; color: #22302a; }
.hero h1 span, .hero__title span { color: var(--green); }
.hero__lead { font-size: 17px; color: var(--muted); margin: 16px 0 24px; max-width: 520px; }
.hero__lead strong { color: var(--green-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art img { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--green-dark); color: var(--white); border-radius: 14px;
  padding: 22px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat i { font-size: 30px; color: #bdf0d8; }
.stat strong { font-size: 32px; line-height: 1.1; }
.stat span { font-size: 14px; color: #d5f5e6; }

.hero__dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #c7d6cf; transition: width .3s, background .3s;
}
.hero__dots button.is-active { width: 28px; border-radius: 5px; background: var(--green); }

/* ===== Tiêu đề mục ===== */
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section-title {
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px;
  font-size: 20px; font-weight: 700; color: var(--green-darker);
}
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-title span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--white);
}
.section-title i { color: var(--green); }

/* ===== Lọc sản phẩm ===== */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tab {
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.tab:hover { border-color: var(--green); color: var(--green-dark); }
.tab.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ===== Thẻ sản phẩm ===== */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product[hidden] { display: none; }
.product__img { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 18%; }
.product__img img { width: 100%; }
.tint-1 { background: #e8f6ef; }
.tint-2 { background: #fdf3e1; }
.tint-3 { background: #e9f1fb; }
.tint-4 { background: #f8ecf1; }
.tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  color: var(--white); padding: 2px 8px; border-radius: 4px;
}
.tag--new { background: var(--green); }
.tag--hot { background: var(--red); }
.product__body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__cat { font-size: 12px; color: var(--green-dark); font-weight: 500; }
.product h3 { font-size: 15px; font-weight: 500; color: var(--text); }
.product__spec { margin: 0 0 10px; font-size: 13px; color: var(--muted); flex: 1; }
.products__empty { text-align: center; color: var(--muted); padding: 24px 0; }
.section .center { margin-top: 28px; }

/* ===== Danh mục ===== */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.cat i {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-size: 28px; transition: background .2s, color .2s;
}
.cat:hover { border-color: var(--green); box-shadow: var(--shadow); }
.cat:hover i { background: var(--green); color: var(--white); }

/* ===== Dải giới thiệu ===== */
.about { background: var(--green); color: var(--white); padding: 56px 0; text-align: center; }
.about h2 { font-size: 30px; font-weight: 700; }
.about__lead { max-width: 760px; margin: 12px auto 32px; color: #e3f7ee; font-size: 16px; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.value {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.value i { font-size: 32px; }
.value strong { font-size: 16px; }
.value span { font-size: 14px; color: #d5f5e6; }

/* ===== Tin tức ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.section-head__title {
  display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--green-darker);
  border: 1px solid var(--border); border-bottom: 0; padding: 8px 16px; border-radius: 6px 6px 0 0;
}
.section-head__title i { color: var(--green); }
.section-head__more { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 2px; }
.section-head__more:hover { color: var(--green-dark); }
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.post {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center; padding-bottom: 16px; background: var(--white);
  transition: box-shadow .2s;
}
.post:hover { box-shadow: var(--shadow); }
.post__img { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 40px; color: var(--green); }
.post h3 { font-size: 15px; font-weight: 500; padding: 14px 14px 0; flex: 1; }
.post h3::after { content: ""; display: block; width: 32px; height: 2px; background: var(--green); margin: 10px auto 12px; }

/* ===== Chân trang ===== */
.footer { background: #f7faf8; border-top: 3px solid var(--green); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 32px; }
.footer h2 { font-size: 16px; font-weight: 700; color: var(--green-darker); margin-bottom: 14px; }
.footer p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.footer__contact li, .footer__links li { margin-bottom: 8px; font-size: 14px; }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact i { color: var(--green); font-size: 18px; margin-top: 1px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--green-dark); }
.footer__social { display: flex; gap: 10px; margin-bottom: 16px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-size: 20px;
}
.footer__social a:hover { background: var(--green-dark); }
.footer__social .zalo-text { background: var(--zalo); font-size: 11px; font-weight: 700; }
.footer__map {
  border: 1px dashed #b9cbc3; border-radius: var(--radius); min-height: 110px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px;
}
.footer__map i { font-size: 26px; color: var(--green); }
.footer__note { background: var(--green-darker); color: #cfeee0; font-size: 13px; text-align: center; padding: 12px 0; }
.footer__note p { margin: 2px 0; color: inherit; font-size: 13px; }

/* ===== Nút nổi ===== */
.floating { position: fixed; right: 16px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.floating__btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  color: var(--white); font-size: 24px; box-shadow: 0 0 0 2px var(--white), 0 4px 14px rgba(0,0,0,.2);
}
.floating__btn--zalo { background: var(--zalo); font-size: 13px; font-weight: 700; }
.floating__btn--call { background: var(--green); position: relative; }
.floating__btn--call::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green);
  animation: ring 1.8s ease-out infinite;
}
.floating__btn--top {
  background: #8a9a93; font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.floating__btn--top.is-visible { opacity: 1; visibility: visible; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ===== Máy tính bảng ===== */
@media (max-width: 1024px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__feature:nth-of-type(2) { display: none; }
  .navbar__menu { gap: 14px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1, .hero__title { font-size: 36px; }
}

/* ===== Điện thoại ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .topbar__slogan { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .header__feature, .header__social { display: none; }
  .logo img { width: 42px; height: 42px; }
  .logo__name { font-size: 23px; }
  .logo__sub { font-size: 11px; letter-spacing: 5px; }
  .menu-toggle { display: grid; place-items: center; }

  .navbar__inner { flex-wrap: wrap; gap: 0; padding: 0; }
  .catmenu { flex: none; }
  .catmenu__btn { height: 46px; padding: 0 14px; font-size: 0; }
  .catmenu__btn i { font-size: 22px; }
  .catmenu__icon { display: none; }
  .catmenu__icon--m { display: inline-block; }
  .catmenu__list { min-width: 260px; }
  .search { order: 1; max-width: none; margin: 0; padding: 6px 12px 6px 10px; }
  .navbar__menu {
    order: 2; width: 100%; flex-direction: column; gap: 0; background: var(--green-dark);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .navbar.is-open .navbar__menu { max-height: 260px; }
  .navbar__menu a { height: 44px; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.12); }

  .hero__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; padding-bottom: 48px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; font-size: 15px; }
  .hero__actions { justify-content: center; }
  .hero h1, .hero__title { font-size: 28px; }
  .hero__art img { margin: 0 auto; max-width: 320px; }
  .hero::before { width: 300px; height: 300px; right: -100px; top: -80px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 12px; }

  .section { padding: 36px 0; }
  .section-title { font-size: 16px; gap: 10px; }
  .section-title span { padding: 8px 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .tab { white-space: nowrap; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product__body { padding: 10px; }
  .product h3 { font-size: 14px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about { padding: 40px 0; }
  .about h2 { font-size: 24px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .news { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .floating { right: 12px; bottom: 14px; }
  .floating__btn { width: 46px; height: 46px; }
}

/* =====================================================
   CÁC TRANG CON
   ===================================================== */
.navbar__menu a.is-active { box-shadow: inset 0 -3px 0 #fff4cf; }
.product h3 a:hover, .post h3 a:hover, .article-card h2 a:hover { color: var(--green-dark); }
.products__empty a { color: var(--green-dark); text-decoration: underline; }
.btn--zalo { background: var(--zalo); color: var(--white); }
.btn--zalo:hover { background: #0057d6; }
.btn--block { width: 100%; }
.eyebrow { margin: 0 0 6px; font-weight: 700; letter-spacing: 3px; font-size: 13px; color: var(--green); }
.section-lead { text-align: center; color: var(--muted); margin: -12px 0 24px; }

/* Đầu trang con + đường dẫn */
.page-banner { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 28px 0 32px; }
.page-banner h1 { font-size: 34px; font-weight: 700; color: #22302a; }
.page-banner p { color: var(--muted); margin: 8px 0 0; max-width: 720px; font-size: 16px; }
.crumbbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); list-style: none; margin: 0 0 10px; padding: 0; }
.crumbbar .breadcrumb ol { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b9c7c0; }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--green-dark); font-weight: 500; }

/* Bố cục chung */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prose { font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--green-darker); margin: 28px 0 12px; }
.prose h2:first-child, .split .prose h2 { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #22302a; }
.placeholder-text { color: var(--muted); font-style: italic; }
.placeholder-img {
  border: 1px dashed #b9cbc3; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted);
}
.placeholder-img i { font-size: 44px; color: var(--green); }

/* Tầm nhìn, sứ mệnh */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; background: var(--white); }
.info-card i {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 14px;
}
.info-card h3 { font-size: 18px; color: var(--green-darker); margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--muted); }

/* Giấy phép */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cert { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); text-align: center; }
.cert__img { aspect-ratio: 3 / 4; background: var(--bg-soft); display: grid; place-items: center; color: var(--green); font-size: 48px; border-bottom: 1px solid var(--border); }
.cert p { margin: 0; padding: 12px; font-size: 14px; font-weight: 500; }

/* Dải kêu gọi liên hệ */
.cta { background: var(--green-darker); color: var(--white); padding: 36px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { font-size: 22px; font-weight: 700; }
.cta p { margin: 4px 0 0; color: #cfeee0; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Trang sản phẩm */
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop__side, .article__side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 16px; }
.side-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.side-box > h2 { font-size: 15px; font-weight: 500; background: var(--green); color: var(--white); padding: 11px 16px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.side-cats a:first-child { border-top: 0; }
.side-cats a i { color: var(--green); font-size: 18px; }
.side-cats a:hover, .side-cats a.is-active { background: var(--green-soft); color: var(--green-dark); font-weight: 500; }
.support { padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.support__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 26px; }
.support strong { font-size: 16px; }
.support p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.support .btn { width: 100%; }
.shop .tabs { display: none; }
.shop__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.shop__bar strong { color: var(--green-dark); }
.shop .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Chi tiết sản phẩm */
.pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.pd__img { position: relative; border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16%; border: 1px solid var(--border); }
.pd__img img { width: 100%; }
.pd__cat { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 500; font-size: 14px; }
.pd__cat:hover { text-decoration: underline; }
.pd h1 { font-size: 30px; font-weight: 700; color: #22302a; margin: 6px 0 10px; }
.pd__summary { color: var(--muted); margin: 0 0 16px; }
.pd__meta { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.pd__meta div { display: flex; gap: 12px; }
.pd__meta dt { color: var(--muted); min-width: 160px; }
.pd__meta dd { margin: 0; font-weight: 500; }
.pd__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; }
.pd__perks { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pd__perks li { display: flex; align-items: center; gap: 8px; }
.pd__perks i { color: var(--green); font-size: 20px; }
.notice {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 8px;
  background: #fff8e6; border: 1px solid #f5dfa6; color: #6b4a00; font-size: 14px;
}
.notice i { font-size: 18px; margin-top: 1px; }
.pd-info { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.pd-info section { padding: 18px 24px; border-top: 1px solid var(--border); }
.pd-info section:first-child { border-top: 0; }
.pd-info h2 { font-size: 17px; font-weight: 700; color: var(--green-darker); margin-bottom: 6px; }
.pd-info p { margin: 0; color: var(--muted); }
.related { margin-top: 48px; }

/* Danh sách tin tức */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card__img { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 48px; color: var(--green); }
.article-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card time { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.article-card h2 { font-size: 17px; font-weight: 500; line-height: 1.4; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.more { color: var(--green-dark); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.more:hover { text-decoration: underline; }

/* Bài viết */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.article__title { font-size: 32px; font-weight: 700; color: #22302a; }
.article__meta { color: var(--muted); font-size: 14px; margin: 10px 0 20px; display: flex; align-items: center; gap: 6px; }
.article__cover { aspect-ratio: 16 / 7; border-radius: var(--radius); display: grid; place-items: center; font-size: 64px; color: var(--green); margin-bottom: 20px; }
.article__lead { font-size: 17px; font-weight: 500; color: #3c4a44; margin: 0 0 18px; }
.article .notice { margin-top: 24px; }
.side-posts a { display: block; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.side-posts a:first-child { border-top: 0; }
.side-posts a:hover span { color: var(--green-dark); }
.side-posts span { display: block; font-weight: 500; line-height: 1.4; }
.side-posts time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Liên hệ */
.block-title { font-size: 22px; font-weight: 700; color: var(--green-darker); margin-bottom: 16px; }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--white); }
.contact-item > i { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 22px; }
.contact-item strong { display: block; font-size: 15px; }
.contact-item span { color: var(--muted); font-size: 14px; }
.contact-item a { color: var(--green-dark); font-weight: 500; }
.form { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--bg-soft); }
.form h2 { font-size: 22px; font-weight: 700; color: var(--green-darker); }
.form > p { color: var(--muted); margin: 4px 0 18px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #cfdcd5; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 107, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #c4262c; font-size: 13px; margin: 4px 0 0; }
.form-status { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.form-status.is-ok { background: var(--green-soft); color: var(--green-darker); }
.form-status.is-info { background: #fff8e6; border: 1px solid #f5dfa6; color: #6b4a00; }
.map { margin-top: 36px; }
.map__placeholder {
  border: 1px dashed #b9cbc3; border-radius: var(--radius); min-height: 280px; color: var(--muted); background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.map__placeholder i { font-size: 36px; color: var(--green); }
.map__iframe, .footer__iframe { width: 100%; border: 0; border-radius: var(--radius); }
.map__iframe { height: 380px; }
.footer__iframe { height: 160px; }

/* 404 */
.notfound { text-align: center; padding: 72px 0 88px; }
.notfound__code { font-size: 96px; font-weight: 700; color: var(--green); line-height: 1; margin: 0 0 8px; }
.notfound h1 { font-size: 28px; margin-bottom: 8px; }
.notfound p { color: var(--muted); }
.notfound__actions { justify-content: center; margin-top: 20px; }

@media (max-width: 1024px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop__side { display: none; }
  .shop .tabs { display: flex; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article__side { position: static; }
  .pd { gap: 28px; }
}

@media (max-width: 768px) {
  .page-banner { padding: 18px 0 22px; }
  .page-banner h1 { font-size: 26px; }
  .split, .cards-3, .pd, .contact { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .shop .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: 1fr; }
  .certs { gap: 12px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .pd h1, .article__title { font-size: 24px; }
  .pd__meta dt { min-width: 130px; }
  .pd-info section { padding: 16px; }
  .form { padding: 20px 16px; }
  .prose { font-size: 15px; }
}
