/* =========================================================
   Thực Phẩm Sạch Mai Vàng – giao diện tươi mới
   Màu chủ đạo: xanh lá tươi + vàng mai + cam san hô
   ========================================================= */
:root {
  --green: #1fa855;
  --green-dark: #127a3c;
  --green-soft: #e7f7ec;
  --yellow: #ffc727;
  --yellow-soft: #fff6d6;
  --coral: #ff6b4a;
  --coral-soft: #ffe9e3;
  --ink: #1d2b22;
  --muted: #5d6b62;
  --line: #e6ece7;
  --bg: #fffdf7;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 70, 40, .08);
  --shadow-hover: 0 16px 40px rgba(20, 70, 40, .16);
  --max: 1200px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--green-soft), #fff 90%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-dark); background: var(--green-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hl { color: var(--green); }
.hl-y { background: linear-gradient(transparent 60%, var(--yellow) 60%); }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--green-dark); color: #eafff1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(31, 168, 85, .3);
}
.logo small { display: block; font-size: .7rem; font-weight: 600; color: var(--green-dark); letter-spacing: .05em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a.active { background: var(--green-soft); color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 11px; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--muted);
  font-family: inherit;
}
.lang-switch button.on { background: var(--green); color: #fff; }
.cart-btn {
  position: relative; border: 0; background: var(--coral); color: #fff; width: 44px; height: 44px; border-radius: 12px;
  font-size: 1.2rem; cursor: pointer;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
}
.menu-toggle { display: none; border: 0; background: var(--green-soft); width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; cursor: pointer; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, .3); }
.btn-accent:hover { background: #e9553a; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, var(--yellow-soft) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, var(--green-soft) 0, transparent 45%),
    var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.6rem; color: var(--green-dark); }
.hero-stats span { color: var(--muted); font-size: .9rem; }
.hero-visual { position: relative; aspect-ratio: 4 / 3; max-width: 580px; justify-self: center; width: 100%; }
/* ---------- Trình chiếu ảnh đầu trang ---------- */
.hero-slider { position: absolute; inset: 5%; }
/* Tấm nền nghiêng phía sau – ảnh phía trên đứng thẳng để giữ độ nét */
.hero-slider::before {
  content: ""; position: absolute; inset: -2%; border-radius: 36px; transform: rotate(-4deg);
  background: linear-gradient(135deg, #ffe48a, #ffc727 55%, #9fdcb3);
  box-shadow: 0 30px 60px rgba(18, 122, 60, .2);
}
.hs-frame {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #fffaf0;
  border: 8px solid #fffaf0; touch-action: pan-y;
  box-shadow: 0 0 0 2px rgba(31, 168, 85, .25), 0 18px 40px rgba(18, 122, 60, .25);
  animation: fade-up .7s ease both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hs-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
  opacity: 0; transition: opacity var(--fade, .9s) ease; user-select: none;
  image-rendering: high-quality; backface-visibility: hidden;
}
.hs-slide.is-illus { object-fit: contain; padding: 4%; background: #fffaf0; }
.hs-slide.active { opacity: 1; animation: kenburns var(--kb, 6s) linear both; }
.hs-frame.is-paused .hs-slide.active { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(var(--zoom, 1.08)); } }
.hs-caption { position: absolute; left: 6%; bottom: 7%; z-index: 3; }
.hs-caption a {
  display: inline-flex; gap: 6px; align-items: center; background: rgba(18, 122, 60, .92); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.hs-caption a span { color: var(--yellow); }
.hs-caption a:hover { background: var(--coral); color: #fff; }
.hs-controls {
  position: absolute; left: 50%; bottom: -13%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
}
.hs-dots { display: flex; gap: 6px; }
.hs-dot { width: 26px; height: 6px; border: 0; padding: 0; border-radius: 6px; background: rgba(18, 122, 60, .18); cursor: pointer; overflow: hidden; }
.hs-dot i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 6px; transition: width .1s linear; }
.hs-dot.on { width: 40px; }
.hs-pause {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; position: relative;
}
.hs-pause::before, .hs-pause::after { content: ""; position: absolute; top: 8px; width: 3px; height: 10px; background: var(--green-dark); border-radius: 2px; }
.hs-pause::before { left: 9px; } .hs-pause::after { left: 14px; }
.hs-pause.is-paused::after { display: none; }
.hs-pause.is-paused::before { left: 10px; top: 7px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 9px solid var(--green-dark); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero-visual { margin-bottom: 40px; }
@media (prefers-reduced-motion: reduce) { .hs-slide.active, .hs-frame { animation: none; } }

.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  animation: spin-in .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-img.is-photo {
  inset: 5%; width: 90%; height: 90%; object-fit: cover; border-radius: 32px;
  border: 8px solid #fffaf0; transform: rotate(-2deg);
  box-shadow: 0 0 0 2px rgba(31, 168, 85, .25), 0 0 0 16px rgba(255, 199, 39, .2), 0 30px 60px rgba(18, 122, 60, .22);
  animation-name: photo-in;
}
@keyframes photo-in { from { opacity: 0; transform: rotate(-8deg) scale(.92); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-12deg) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.float-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; animation: bob 4s ease-in-out infinite;
}
.float-chip .e { font-size: 1.5rem; }
/* 4 nhãn trải đều 4 phía khung ảnh */
.chip-1 { top: 24%; right: -12%; }
.chip-slogan {
  top: -6%; left: -8%; background: var(--green-dark); color: #fff; font-size: 1rem; padding: 11px 18px;
  box-shadow: 0 12px 28px rgba(18, 122, 60, .35); animation-delay: .5s; letter-spacing: .01em;
}
.chip-slogan .e { background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.1rem; }
.chip-2 { top: 58%; left: -14%; animation-delay: 1s; }
.chip-3 { bottom: -6%; right: -6%; animation-delay: 2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Danh mục ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--card); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow);
  transition: .25s; color: var(--ink); border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--green); color: var(--ink); }
.cat-card .ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 2.2rem; }
.cat-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Sản phẩm ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-family: inherit; color: var(--ink); font-size: .92rem;
}
.chip.on, .chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.search-box { max-width: 460px; margin: 0 auto 22px; display: flex; }
.search-box input {
  flex: 1; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 1rem; font-family: inherit; outline: none;
}
.search-box input:focus { border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-img { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font-size: 4.5rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: .75rem; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: var(--coral); color: #fff;
}
.badge.ready { background: var(--green); }
.badge.prep { background: var(--yellow); color: var(--ink); }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 4px; font-size: 1.08rem; }
.product-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.product-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.product-desc.clamp {
  flex: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer;
}
.product-desc.clamp.open { -webkit-line-clamp: unset; }
.desc-more { font-size: .8rem; font-weight: 700; color: var(--coral); margin: -6px 0 6px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; text-align: left; }
.product-body > .product-desc.clamp + .desc-more { margin-bottom: auto; }
.product-spec {
  font-size: .86rem; font-weight: 700; color: var(--green-dark); background: var(--green-soft);
  border-radius: 10px; padding: 7px 10px; margin: 0 0 10px; line-height: 1.4;
}
.product.is-prep .product-spec { color: #8a5600; background: #fff3d6; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--coral); }
.price small { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- Hai dòng sản phẩm: ăn sẵn (xanh) / sơ chế (vàng cam) ---------- */
.btn-prep { background: #e8930c; color: #fff; box-shadow: 0 8px 20px rgba(232, 147, 12, .28); }
.btn-prep:hover { background: #c97a00; color: #fff; transform: translateY(-2px); }
.product.is-prep { border-top: 4px solid #f5b53d; }
.product.is-ready { border-top: 4px solid var(--green); }
.type-tag {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px;
  background: var(--cs, var(--green-soft)); color: var(--c, var(--green-dark)); border: 1.5px solid var(--c, var(--green));
}
.type-hero {
  padding: 8px 0 34px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 90% 0, var(--cs) 0, transparent 55%), linear-gradient(180deg, var(--cs), var(--bg) 85%);
}
.type-hero .breadcrumb { padding: 16px 0 14px; }
.type-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 8px; color: var(--ink); }
.type-hero h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--c); margin-top: 12px; }
.type-hero .lead { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.type-perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.type-perks li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow); font-size: .9rem; }
.type-perks b { font-weight: 700; }
.chip small { opacity: .65; font-weight: 600; margin-left: 2px; }
.switch-other {
  display: block; margin-top: 40px; padding: 18px 22px; border-radius: 16px; border: 2px dashed var(--line); color: var(--muted); background: #fff;
}
.switch-other b { color: var(--ink); }
.switch-other span { float: right; font-weight: 800; color: var(--coral); }
.switch-other:hover { border-color: var(--green); color: var(--ink); }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.type-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 48px 18px 18px;
  border-radius: 18px; background: var(--cs); border: 2px solid transparent; color: var(--ink); transition: .2s;
}
.type-card:hover { border-color: var(--c); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.type-card .ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.type-card b { font-size: 1.15rem; }
.type-card small { color: var(--muted); }
.type-card .arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 800; color: var(--c); }
.type-block { margin-top: 44px; padding: 26px; border-radius: 24px; background: linear-gradient(180deg, var(--cs), #fff 70%); }
.type-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.type-head h2 { margin: 10px 0 6px; }
.type-head h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.type-head p { color: var(--muted); margin: 0; max-width: 620px; }
.type-btn { background: var(--c); color: #fff; }
.type-btn:hover { color: #fff; filter: brightness(.92); }
.cart-group {
  margin: 14px 0 2px; padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: .85rem;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); border-left: 4px solid var(--c);
}
.cart-group small { font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .type-switch { grid-template-columns: 1fr; } .type-block { padding: 18px 12px; } }

/* ---------- Lợi ích / quy trình ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.why .ico { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--yellow-soft); margin-bottom: 14px; }
.why p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; color: var(--ink); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: var(--ink); }
.post-thumb { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 4rem; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--coral); margin-bottom: 6px; }
.post-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-date { font-size: .82rem; color: var(--muted); }

/* ---------- Bài viết ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 18px 0; }
.breadcrumb a { color: var(--muted); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-bottom: 70px; }
.article { background: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.article h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article-hero { aspect-ratio: 16/7; border-radius: 14px; display: grid; place-items: center; font-size: 5rem; margin: 20px 0 26px; }
.article-figure { margin: 20px 0 26px; }
.article-figure img { width: 100%; height: auto; aspect-ratio: 1200 / 525; border-radius: 16px; background: var(--green-soft); box-shadow: var(--shadow); }
.article-figure figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 16px; flex-wrap: wrap; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.toc { background: var(--green-soft); border-radius: 14px; padding: 18px 22px; margin: 20px 0; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; }
.tip { background: var(--yellow-soft); border-left: 5px solid var(--yellow); padding: 14px 18px; border-radius: 10px; margin: 20px 0; }
.faq details { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-box h3 { font-size: 1.05rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-box li:last-child { border: 0; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Mạng xã hội ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.social-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.social-card .embed { margin-top: 14px; min-height: 120px; display: flex; justify-content: center; overflow: hidden; }
.s-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; color: #fff; font-weight: 700; }
.s-btn:hover { color: #fff; opacity: .9; }
.s-fb { background: #1877f2; }
.s-tt { background: #111; }
.s-zalo { background: #0068ff; }
.s-yt { background: #ff0000; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green), var(--green-dark)); color: #fff; border-radius: 28px; padding: 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band p { opacity: .9; margin: 0; }
.cta-band .btn-ghost { border: 0; }

/* ---------- Footer ---------- */
.footer { background: #12261a; color: #c9dccf; padding: 60px 0 24px; margin-top: 40px; }
.footer a { color: #c9dccf; }
.footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-weight: 800; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; text-align: center; }

/* ---------- Giỏ hàng ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 90; opacity: 0; pointer-events: none; transition: .25s; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 100;
  transform: translateX(100%); transition: .3s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer.open + .drawer-bg, .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head button { border: 0; background: var(--green-soft); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.drawer-items { flex: 1; overflow: auto; padding: 16px 20px; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-item .e { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; background: var(--green-soft); }
.cart-item b { display: block; font-size: .95rem; }
.cart-item small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.drawer-foot .total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.drawer-foot .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-family: inherit; font-size: 1rem; outline: none; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--green); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* ---------- Toast + nút nổi ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px; z-index: 200; transition: .3s; font-weight: 600; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.float-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-contact a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2); font-size: .8rem;
}
.fc-phone { background: var(--coral); font-size: 1.4rem !important; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .6); } 70% { box-shadow: 0 0 0 16px rgba(255, 107, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); } }

/* ---------- Công cụ SEO ---------- */
.seo-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.score-ring {
  width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--line) 0);
}
.score-ring span { width: 112px; height: 112px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; font-size: .92rem; display: flex; gap: 10px; }
.checks li.ok { background: var(--green-soft); }
.checks li.warn { background: var(--yellow-soft); }
.checks li.bad { background: var(--coral-soft); }
.serp { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; font-family: Arial, sans-serif; }
.serp .u { color: #202124; font-size: .85rem; }
.serp .t { color: #1a0dab; font-size: 1.25rem; margin: 4px 0; line-height: 1.3; }
.serp .d { color: #4d5156; font-size: .9rem; }
pre.code { background: #12261a; color: #c9f5d6; padding: 16px; border-radius: 12px; overflow: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.counter { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .two-col, .seo-layout, .article-wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px;
    border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .topbar .hide-sm, .logo small { display: none; }
  .header .container { gap: 10px; }
  .float-chip { font-size: .78rem; padding: 8px 10px; }
  .float-chip .e { font-size: 1.2rem; }
  .chip-1 { right: 0; top: 22%; }
  .chip-slogan { left: 0; top: -6%; font-size: .85rem; padding: 8px 12px; }
  .chip-slogan .e { width: 24px; height: 24px; font-size: .95rem; }
  .chip-2 { left: 0; top: 56%; }
  .chip-3 { right: 0; top: 42%; bottom: auto; }
}
