/* ===== Biến màu: lấy từ bộ tokens chung (css/tokens.css) =====
   Giữ tên cũ để mọi kiểu bên dưới không phải sửa; giá trị nay đến từ một nguồn. */
:root {
  --kem: var(--mau-kem);
  --kem-dam: var(--mau-kem-dam);
  --hong-dat: var(--mau-nhan);
  --hong-nhat: var(--mau-nhan-nhat);
  --vang-dong: var(--mau-vang);
  --nau-dam: var(--mau-chu);
  --nau-nhat: var(--mau-chu-nhat-2);
  --trang: var(--mau-trang);
  --bong: var(--bong-the);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-than);
  background: var(--kem);
  color: var(--nau-dam);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-de); }

.logo-vibes {
  font-family: var(--font-thu-phap);
  color: var(--hong-dat);
}

/* ===== Đầu trang ===== */
.dau-trang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  position: sticky;
  top: 0;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
  border-bottom: 1px solid var(--kem-dam);
}

.logo { text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.logo-chu {
  font-family: var(--font-de);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--nau-dam);
}
.logo .logo-vibes { font-size: 1.4rem; }

.menu { display: flex; gap: 28px; }
.menu a {
  text-decoration: none;
  color: var(--nau-dam);
  font-size: 0.95rem;
  font-weight: 500;
}
.menu a:hover { color: var(--hong-dat); }

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 6vw 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-noi-dung { max-width: 560px; }

.hero-nhan {
  display: inline-block;
  background: var(--hong-nhat);
  color: var(--nau-dam);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--hong-dat); }

.hero-mo-ta {
  font-size: 1.05rem;
  color: var(--nau-nhat);
  margin-bottom: 32px;
}

.nut {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 34px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nut-chinh {
  background: var(--hong-dat);
  color: var(--trang);
  box-shadow: var(--bong);
}
.nut-chinh:hover { transform: translateY(-2px); }

/* Phong bì minh họa */
.hero-hinh { flex-shrink: 0; }
.phong-bi {
  width: 280px;
  height: 200px;
  background: var(--vang-dong);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--bong);
  transform: rotate(-4deg);
}
.phong-bi-nap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 90px solid #b8965a;
  border-radius: 10px 10px 0 0;
}
.phong-bi-thiep {
  position: absolute;
  left: 20px; right: 20px;
  top: -60px;
  bottom: 40px;
  background: var(--trang);
  border-radius: 6px;
  border: 1px solid var(--kem-dam);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(74, 55, 40, 0.15);
}
.thiep-ten {
  font-family: var(--font-thu-phap);
  font-size: 1.6rem;
  color: var(--hong-dat);
  line-height: 1.3;
}

/* ===== Cách làm ===== */
.cach-lam {
  background: var(--trang);
  padding: 70px 6vw;
}

.tieu-de-muc {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.buoc-danh-sach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.buoc {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: var(--kem);
}

.buoc-so {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--hong-dat);
  color: var(--trang);
  font-family: var(--font-de);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buoc h3 { margin-bottom: 8px; font-size: 1.2rem; }
.buoc p { color: var(--nau-nhat); font-size: 0.95rem; }

/* ===== Thư viện mẫu ===== */
.thu-vien {
  padding: 70px 6vw 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.thu-vien-mo-ta {
  text-align: center;
  color: var(--nau-nhat);
  margin: -28px 0 30px;
}

.bo-loc {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.bo-loc button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--hong-dat);
  background: transparent;
  color: var(--hong-dat);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bo-loc button:hover { background: var(--hong-nhat); }
.bo-loc button.dang-chon {
  background: var(--hong-dat);
  color: var(--trang);
}

.luoi-mau {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.the-mau {
  background: var(--trang);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--bong);
  transition: transform 0.15s ease;
}
.the-mau:hover { transform: translateY(-4px); }

.the-mau img {
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  display: block;
  background: var(--kem-dam);
}

.the-mau-thongtin { padding: 16px 18px 20px; }
.the-mau[data-mau] img { aspect-ratio:7 / 16; }
.the-mau-thongtin h3 { font-size: 1.1rem; margin-bottom: 4px; }
.the-mau-dip {
  font-size: 0.8rem;
  color: var(--nau-nhat);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.nut-dung-mau {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 0;
  border: none;
  border-radius: 999px;
  background: var(--vang-dong);
  color: var(--trang);
  cursor: pointer;
  transition: filter 0.15s ease;
}
.nut-dung-mau:hover { filter: brightness(1.07); }

/* ===== Chân trang ===== */
.chan-trang {
  background: var(--nau-dam);
  color: var(--kem);
  text-align: center;
  padding: 50px 6vw;
}
.chan-logo .logo-vibes { font-size: 2rem; color: var(--hong-nhat); }
.chan-trang p { margin-bottom: 10px; }
.chan-trang a { color: var(--vang-dong); text-decoration: none; }
.chan-nho { font-size: 0.8rem; opacity: 0.7; margin-top: 18px; }

/* ===== Thông báo nhỏ (toast) ===== */
.thong-bao {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: var(--nau-dam);
  color: var(--kem);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: var(--bong);
  z-index: 100;
}

/* ===== Điện thoại ===== */
@media (max-width: 760px) {
  .menu { display: none; }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }
  .hero-hinh { margin-top: 20px; }
  .phong-bi { width: 220px; height: 160px; }
  .phong-bi-nap {
    border-left-width: 110px;
    border-right-width: 110px;
    border-top-width: 70px;
  }
  .buoc-danh-sach { grid-template-columns: 1fr; }
  .luoi-mau { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
}
