/* Kiểu chung cho các trang tĩnh SEO (build_seo_pages.py). Cùng bảng màu với index.html. */
/* 18/10/2026: theo brand kit An Yên (memory/knowledge/an_yen_brand_kit.md).
   Nền Eggshell, dải đầu Butter, chữ + nút Espresso, nhấn Banana. Không gradient, không đổ bóng. */
:root {
  --bg: #EFE9DC; --bg2: #FFEDAC; --surface: #FFF9E8;
  --text: #3E2723; --text2: #64504A; --border: #D9CDB8;
  --accent: #3E2723; --accent2: #3E2723; --on-accent: #FFEDAC;
  --radius: 12px;
  --font-d: 'Phudu', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-b: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2A1B18; --bg2: #3E2723; --surface: #352320;
    --text: #FFEDAC; --text2: #D9C9A0; --border: #5A423B;
    --accent: #FFEDAC; --accent2: #FFEDAC; --on-accent: #3E2723;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.sh { position: sticky; top: 0; z-index: 10; background: var(--bg2); }
.sh::after { content: ''; display: block; height: 8px; background-color: #FFEDAC;
  background-image: linear-gradient(90deg, rgba(62,39,35,.5) 50%, transparent 50%), linear-gradient(rgba(62,39,35,.5) 50%, transparent 50%);
  background-size: 8px 8px; }
.sh-in { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand .b-d { display: none; }
@media (prefers-color-scheme: dark) { .brand .b-l { display: none; } .brand .b-d { display: block; } }
.nav { display: flex; gap: 16px; font-size: .92rem; overflow-x: auto; max-width: 100%; }
.nav a { white-space: nowrap; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

main { padding-bottom: 48px; }
.bc { font-size: .82rem; color: var(--text2); margin: 16px 0 4px; }
.bc a { color: var(--text2); }
h1 { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; margin: 12px 0 12px; }
h2 { font-family: var(--font-d); font-weight: 600; font-size: 1.55rem; line-height: 1.15; margin: 32px 0 12px; }
h2 small { font-family: var(--font-b); font-size: .8rem; color: var(--text2); font-weight: 400; }
h2 a { color: var(--text); text-decoration: none; }
.lead { font-size: 1.05rem; color: var(--text); max-width: 70ch; }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.links { padding-left: 20px; }
.links li { margin: 6px 0; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn-o { background: transparent; color: var(--text); border: 1.5px solid var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); }
.card .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-b { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.card-n { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.card-p { color: var(--text); font-weight: 700; font-size: .92rem; }

.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.bcard { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; font-size: .9rem; }

.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; margin-top: 8px; }
.prod-img .hero-img img { width: 100%; border-radius: var(--radius); max-height: 560px; object-fit: cover; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
@media (max-width: 720px) { .prod { grid-template-columns: 1fr; gap: 12px; } }

/* Ảnh thật chi nhánh (18/10/2026): vuốt ngang trên điện thoại, không làm trang cuộn ngang */
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 46%); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 0 16px; padding-bottom: 6px; }
.gal figure { margin: 0; scroll-snap-align: start; }
.gal img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }
.gal figcaption { font-size: .85rem; color: var(--text2); margin-top: 4px; }
@media (max-width: 600px) { .gal { grid-auto-columns: 82%; } }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin: 8px 0 16px; }
.qa { border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.qa h2 { font-size: 1.08rem; margin: 24px 0 6px; }
.post { display: grid; grid-template-columns: 160px 1fr; gap: 16px; margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.post h2 { margin: 2px 0 6px; font-size: 1.12rem; }
.post .thumb img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.meta { font-size: .8rem; color: var(--text2); margin: 0; }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; } }

.sf { background: var(--bg2); border-top: 1px solid var(--border); padding: 28px 0; font-size: .88rem; color: var(--text2); }
.sf-br { padding-left: 18px; }
.sf-copy { margin-top: 12px; }
