/* Trang chủ – dùng chung biến màu, nút, chân trang của style.css */
.page-home .intro-frame { max-height: 72vh; background: #000; }
.home-hero { text-align: center; padding: 34px 20px 10px; }
.home-hero h1 { font-size: clamp(44px, 8vw, 100px); line-height: 1; margin: 0; }
.home-hero p { margin: 10px 0 20px; font-size: 17px; }
.home-hero .btn { text-decoration: none; padding: 0 44px; }

.home-sec { max-width: 1440px; margin: 0 auto; padding: 36px 28px 0; }
.home-sec h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 4px 0 18px; line-height: 1.1; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 12px 14px 16px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #e8e8e8; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: .2s; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); }
.cat span, .cat b { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.cat span { color: #fff; }
.cat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.15; text-transform: uppercase; }
.cat:hover, .cat:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 22px var(--accent-glow); }
.cat:hover img { transform: scale(1.05); }
.cat-custom { background: #262628; }
.cat-custom img { object-fit: contain; padding: 22%; }
.cat-custom:hover img { transform: scale(1.05); }

.home-promos { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.home-promos a { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 16px 20px; border-radius: 14px; background: #262628; color: #fff; text-decoration: none;
  border: 1.5px solid var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.home-promos b { font-family: var(--f-display); font-weight: 600; font-size: 20px; text-transform: uppercase; }
.home-promos .until { color: #cfcfcf; font-size: 13px; }
.home-promos .go { margin-left: auto; font-size: 13px; font-weight: 700; }

.featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.f-card { display: grid; gap: 6px; align-content: start; padding: 10px 10px 14px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: .2s; }
.f-card:hover, .f-card:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-glow); }
.f-img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e8e8e8; }
.f-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.f-card b { font-size: 14px; line-height: 1.3; }
.f-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 800; }
.f-price s { font-weight: 500; font-size: 13px; color: var(--muted); }
.home-more { text-align: center; margin: 22px 0 0; }
.home-more .btn { text-decoration: none; }

.home-brand { text-align: center; padding-bottom: 14px; }
.home-brand p { max-width: 560px; margin: 0 auto; }
.page-home main { padding-bottom: 40px; }

/* Khách hàng & Feedback: cột và ảnh chia theo tỉ lệ ngang/dọc để các ảnh cao bằng nhau, không bị cắt */
.fb-text { max-width: 860px; margin: 0 0 20px; font-size: 16px; line-height: 1.7; }
.fb-clubs { display: grid; grid-template-columns: minmax(0, 1.96fr) minmax(0, 1.5fr); gap: 14px; }
.fb-club { margin: 0; padding: 10px 10px 12px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--line); }
.fb-photos { display: flex; gap: 8px; align-items: flex-start; }
.fb-photos img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; display: block; border-radius: 10px; }
.fb-photos img[width="1200"] { flex-grow: 1.29; }
.fb-photos img[width="809"] { flex-grow: .674; }
.fb-club figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--f-display); font-weight: 600; font-size: 18px; text-transform: uppercase; }
@media (max-width: 900px) { .fb-clubs { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; }
  /* Thiết kế mới luôn 1 hàng: màn hẹp thì vuốt ngang */
  .featured { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px; }
  .f-card { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .page-home .intro-frame { max-height: 70vh; width: 100%; }
  .home-sec { padding: 28px 14px 0; }
  .cats, .featured { gap: 10px; }
}

/* ---------- Ảnh bìa ngang ---------- */
.home-cover { margin-top: 36px; background: #000; }
.home-cover img { display: block; width: 100%; height: auto; max-width: 1440px; margin: 0 auto; }

/* ---------- Truyền Cảm Hứng ---------- */
#truyen-cam-hung { scroll-margin-top: 100px; }
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.post { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 18px 16px; border-radius: 16px; color: var(--text);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--line); transition: .2s; }
.post:hover, .post:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-glow); }
.post .mono { color: var(--accent); }
.post b { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.25; text-transform: uppercase; }
.post .ex { font-size: 14px; color: #4a4a4a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .go { margin-top: auto; font-weight: 700; font-size: 13px; }
.post-dlg { width: min(640px, calc(100% - 24px)); }
.post-dlg[open] { display: flex; flex-direction: column; }
.post-dlg .modal-body { font-size: 16px; line-height: 1.7; }
.post-dlg .modal-body p { margin: 0 0 12px; }
.post-dlg .modal-body p.li { padding-left: 16px; text-indent: -14px; margin-bottom: 8px; }
@media (max-width: 1100px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } .home-cover { margin-top: 28px; } }

/* ---------- Nút mở bài chính sách ---------- */
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 18px 28px 0; }
@media (max-width: 600px) { .policy-links { flex-direction: column; padding: 14px 14px 0; } .policy-links .btn { width: 100%; } }

/* ---------- Đoạn sứ mệnh dưới Zero to hero ---------- */
.home-hero .home-mission { max-width: 680px; margin: 14px auto 22px; font-size: 17px; line-height: 1.75; }
