/* =============================================================================
   LAYOUT – khung trang, tiêu đề mục, nút liên hệ nổi, cổng xác nhận 18+
   ============================================================================= */

.wb-main { display: block; min-height: 50vh; }
.wb-main:focus { outline: none; }

/* ----- Mục trên trang chủ / trang thường ----- */
.wb-section { padding: clamp(40px, 6vw, 72px) 0; }
.wb-section--tint { background: var(--wb-cream); }

.wb-section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.wb-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.wb-section__title { margin: 0; position: relative; padding-bottom: 12px; }
.wb-section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 4px; border-radius: 4px; background: var(--wb-primary);
}
.wb-section__head--center .wb-section__title::after { left: 50%; transform: translateX(-50%); }
.wb-section__lead { max-width: 720px; margin: 12px 0 0; color: var(--wb-muted); }
.wb-section__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; white-space: nowrap;
}
.wb-section__more:hover .wb-icon { transform: translateX(3px); }
.wb-icon { transition: transform 0.2s; }

/* ----- Nút liên hệ nổi (góc dưới bên phải) ----- */
.wb-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wb-float__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; color: #fff; font-size: 0.88rem; font-weight: 600; line-height: 1;
  border-radius: 999px; box-shadow: var(--wb-shadow-lg);
  transition: transform 0.2s;
}
.wb-float__btn:hover { color: #fff; transform: translateY(-2px); }
.wb-float__btn--zalo { background: #0068ff; }
.wb-float__btn--msg { background: #0084ff; }
.wb-float__btn--call { background: var(--wb-primary); }

@media (max-width: 720px) {
  /* Điện thoại: chỉ hiện biểu tượng cho gọn */
  .wb-float { right: 12px; bottom: 12px; gap: 8px; }
  .wb-float__btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .wb-float__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .wb-float__btn--zalo::before { content: "Zalo"; font-size: 0.75rem; font-weight: 700; }
}

/* ----- Lớp phủ khi mở menu điện thoại ----- */
.wb-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30, 10, 14, 0.55); backdrop-filter: blur(2px);
}
.wb-overlay[hidden] { display: none; }
body.wb-nav-open { overflow: hidden; }

/* ----- Cổng xác nhận 18+ ----- */
.wb-agegate {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(153, 13, 35, 0.92), rgba(61, 3, 16, 0.97));
}
.wb-agegate.is-visible { display: flex; }
.wb-agegate__card {
  width: 100%; max-width: 460px; padding: 36px 32px; text-align: center;
  background: #fff; border-radius: 24px; box-shadow: var(--wb-shadow-lg);
}
.wb-agegate__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 10px;
  color: var(--wb-primary); background: var(--wb-cream); border-radius: 50%;
}
.wb-agegate__brand { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wb-muted); }
.wb-agegate h2 { margin-bottom: 10px; }
.wb-agegate p { color: var(--wb-muted); }
.wb-agegate__actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 14px; }
.wb-agegate__legal { margin: 0; font-size: 0.8rem; font-style: italic; }

/* Ẩn nội dung phía sau khi chưa xác nhận (lớp gắn ở <head> trước khi trang vẽ ra) */
html.wb-age-lock, html.wb-age-lock body { overflow: hidden; }
