/* ============================================================
   WIHA HOME — bảng màu lấy từ studio pastel
   kem ấm · hồng phấn · xanh sage · gỗ sồi
   ============================================================ */

:root {
  /* Nền tường 3 mảng */
  --cream: #f7edda;
  --cream-soft: #fbf5e9;
  --blush: #eed3c6;
  --blush-soft: #f6e4da;
  --sage: #c3d2b2;
  --sage-soft: #dde8d0;

  /* Gỗ kệ */
  --wood: #c0955e;
  --wood-dark: #8a6238;

  /* Chữ */
  --ink: #4a3b2e;
  --ink-soft: #7d6a58;

  /* Màu túi trên kệ */
  --bag-grey: #a9a49c;
  --bag-pink: #e2a493;
  --bag-olive: #7e8a5a;
  --bag-navy: #5c6e8c;

  /* Hệ thống */
  --accent: #d98e7e;
  --accent-dark: #c47763;
  --card: #fffdf8;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(90, 62, 40, 0.1);
  --shadow-soft: 0 3px 12px rgba(90, 62, 40, 0.07);
  --font-head: "Baloo 2", cursive;
  --font-body: "Nunito", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream-soft);
  color: var(--ink);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }

.section-title { font-size: 2rem; text-align: center; margin-bottom: 8px; }

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--wood);
}
.btn-outline:hover { background: var(--wood); color: #fff; }

.btn-sage { background: var(--sage); color: var(--ink); }
.btn-sage:hover { background: #b2c49e; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(138, 98, 56, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blush) 0 50%, var(--sage) 50% 100%);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.logo span em { font-style: normal; color: var(--accent-dark); }

.nav { display: flex; gap: 26px; align-items: center; }

.nav a {
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.15s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--blush-soft);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-btn:hover { background: var(--blush); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--sage-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero: 3 mảng tường pastel ---------- */
.hero { position: relative; overflow: hidden; }

.hero-walls {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--cream) 0 33.4%,
    var(--blush) 33.4% 66.7%,
    var(--sage) 66.7% 100%
  );
}

.hero-walls::after {
  /* sàn gỗ nhạt */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(192, 149, 94, 0.35), rgba(192, 149, 94, 0.55));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 84px 20px 96px;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-garland { font-size: 1.4rem; letter-spacing: 12px; margin-bottom: 14px; }

.hero-neon {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: #fffaf2;
  text-shadow:
    0 0 6px rgba(255, 250, 240, 0.9),
    0 0 18px rgba(255, 214, 170, 0.85),
    0 2px 26px rgba(217, 142, 126, 0.75);
  margin-bottom: 6px;
}

.hero-neon .amp { color: #ffe9d6; }

.hero h1 small {
  display: block;
  font-size: 0.42em;
  color: var(--ink);
  text-shadow: none;
  font-weight: 700;
  margin-top: 10px;
}

.hero p.lead {
  margin: 18px 0 28px;
  color: var(--ink);
  font-size: 1.08rem;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Kệ gỗ minh hoạ bên phải hero */
.hero-shelf {
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 26px;
}

.shelf-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 10px 6px 0;
  border-bottom: 10px solid var(--wood);
  border-radius: 0 0 4px 4px;
}

.shelf-row + .shelf-row { margin-top: 18px; }

.shelf-row .toy { font-size: 1.9rem; line-height: 1; padding-bottom: 4px; }

.mini-bag { width: 58px; height: auto; }

/* ---------- USP bar ---------- */
.usp {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 22px 18px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.usp-item { display: flex; align-items: center; gap: 12px; padding: 6px 10px; }

.usp-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.usp-item:nth-child(1) .usp-icon { background: var(--blush-soft); }
.usp-item:nth-child(2) .usp-icon { background: var(--sage-soft); }
.usp-item:nth-child(3) .usp-icon { background: var(--cream); }
.usp-item:nth-child(4) .usp-icon { background: var(--blush-soft); }

.usp-item b { display: block; font-size: 0.95rem; }
.usp-item small { color: var(--ink-soft); }

/* ---------- Danh mục ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.cat-card .cat-icon { font-size: 2.2rem; margin-bottom: 10px; }

.cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.cat-card small { color: var(--ink-soft); }

.cat-card:nth-child(8n + 1) { background: var(--blush-soft); }
.cat-card:nth-child(8n + 2) { background: var(--sage-soft); }
.cat-card:nth-child(8n + 3) { background: var(--cream); }
.cat-card:nth-child(8n + 4) { background: #f0e2ef; }
.cat-card:nth-child(8n + 5) { background: var(--sage-soft); }
.cat-card:nth-child(8n + 6) { background: var(--cream); }
.cat-card:nth-child(8n + 7) { background: var(--blush-soft); }
.cat-card:nth-child(8n + 8) { background: #e3ecf4; }

/* ---------- Sản phẩm ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.chip {
  font-family: var(--font-head);
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--blush);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--accent); color: var(--ink); }

.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.product-thumb {
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.product-thumb svg { width: 110px; height: auto; }

/* Thẻ có ảnh chụp thật */
.product-thumb.has-photo { padding: 0; position: relative; overflow: hidden; }

.product-thumb.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb.has-photo img { transform: scale(1.05); }

.card-video-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(74, 59, 46, 0.75);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-info h3 a { color: inherit; }
.product-info h3 a:hover { color: var(--accent-dark); }

.thumb-cream { background: linear-gradient(160deg, var(--cream) 0%, #f3e6cd 100%); }
.thumb-blush { background: linear-gradient(160deg, var(--blush-soft) 0%, var(--blush) 100%); }
.thumb-sage  { background: linear-gradient(160deg, var(--sage-soft) 0%, var(--sage) 100%); }

.product-info { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.product-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.product-info h3 { font-size: 1.02rem; margin-bottom: 6px; }

.product-price { font-weight: 800; font-size: 1.08rem; margin-bottom: 12px; }

.product-price small {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-weight: 600;
  margin-left: 8px;
}

.add-cart {
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 0.95rem;
  padding: 10px;
  border-radius: 999px;
  border: 2px solid var(--sage);
  background: var(--sage-soft);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}

.add-cart:hover { background: var(--sage); }

.add-cart.added { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Băng LIVE ---------- */
.live-band {
  background: linear-gradient(
    90deg,
    var(--cream) 0 33.4%,
    var(--blush) 33.4% 66.7%,
    var(--sage) 66.7% 100%
  );
  border-radius: calc(var(--radius) + 8px);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.live-band h2 { font-size: 1.7rem; margin-bottom: 8px; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.live-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0524d;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 82, 77, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(224, 82, 77, 0); }
}

.live-band p { max-width: 520px; }

/* ---------- Checklist ---------- */
.checklist-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.checklist-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.checklist-card h3 { margin-bottom: 16px; font-size: 1.2rem; }

.checklist-card ul { list-style: none; }

.checklist-card li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed rgba(138, 98, 56, 0.18);
}

.checklist-card li:last-child { border-bottom: none; }

.checklist-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--sage-soft);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

/* ---------- Đánh giá ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.review-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.review-stars { color: #e8a13c; letter-spacing: 2px; margin-bottom: 10px; }

.review-card p { font-size: 0.97rem; margin-bottom: 16px; }

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.review-card:nth-child(1) .review-avatar { background: var(--blush-soft); }
.review-card:nth-child(2) .review-avatar { background: var(--sage-soft); }
.review-card:nth-child(3) .review-avatar { background: var(--cream); }

.review-author b { display: block; font-size: 0.95rem; }
.review-author small { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #e9ded2;
  margin-top: 72px;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }

.footer a { color: #cbbba9; display: block; padding: 4px 0; transition: color 0.15s; }

.footer a:hover { color: #fff; }

.footer .logo { color: #fff; margin-bottom: 12px; }

.footer p { font-size: 0.95rem; color: #cbbba9; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: #a8977f;
}

/* ---------- Giỏ hàng (drawer) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 59, 46, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: min(380px, 92vw);
  height: 100vh;
  background: var(--cream-soft);
  z-index: 100;
  box-shadow: -8px 0 30px rgba(74, 59, 46, 0.2);
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(138, 98, 56, 0.15);
}

.cart-head h3 { font-size: 1.2rem; }

.cart-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: var(--blush-soft);
  font-size: 1rem;
  cursor: pointer;
}

.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }

.cart-empty { text-align: center; color: var(--ink-soft); padding: 48px 0; }

.cart-empty .big { font-size: 2.6rem; margin-bottom: 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  margin-bottom: 12px;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--cream);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info b { display: block; font-size: 0.9rem; line-height: 1.3; }

.cart-item-info small { color: var(--accent-dark); font-weight: 800; }

.qty-controls { display: flex; align-items: center; gap: 8px; }

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: var(--sage-soft);
  font-weight: 800;
  cursor: pointer;
}

.qty-controls button:hover { background: var(--sage); }

.cart-foot {
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(138, 98, 56, 0.15);
  background: var(--card);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.cart-foot .btn { width: 100%; text-align: center; }

.cart-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  z-index: 120;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.toast.show { transform: translate(-50%, 0); }

/* ---------- Modal đặt hàng ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 59, 46, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  z-index: 110;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--cream-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(14px);
  transition: transform 0.22s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.modal form input,
.modal form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 2px solid var(--blush);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s;
}

.modal form input:focus,
.modal form textarea:focus,
.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-total {
  font-size: 1.02rem;
  margin: 6px 0 14px;
  text-align: right;
}

/* ---------- Trang chi tiết sản phẩm ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 14px;
  border: 3px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  transition: border-color 0.15s;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumb:hover { border-color: var(--blush); }
.gallery-thumb.active { border-color: var(--accent); }

.detail-info h1 { font-size: 1.9rem; margin: 4px 0 12px; }

.detail-price {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price small {
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-weight: 600;
}

.save-badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--sage-soft);
  color: #4c6234;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Mô tả ngắn ngay dưới giá */
.short-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 18px;
}

/* Tóm tắt sao dưới giá */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.rating-summary b { color: var(--ink); font-size: 1.05rem; }
.rating-summary:hover { color: var(--accent-dark); }

.stars { color: #e8a13c; letter-spacing: 1px; }

/* Ảnh minh hoạ trong phần thông tin sản phẩm */
.content-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.content-images img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* Danh sách đánh giá */
.review-item {
  border-bottom: 1px solid rgba(138, 98, 56, 0.12);
  padding: 18px 0;
}

.review-item:last-child { border-bottom: none; }

.review-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar-sm {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--blush-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.review-item p { margin: 0; font-size: 0.97rem; }

/* Form viết đánh giá */
.review-form-wrap {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 2px dashed var(--blush);
}

.review-form-wrap h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 14px; }

#review-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

#review-form .req { color: var(--accent-dark); }

#review-form input,
#review-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 2px solid var(--blush);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
}

#review-form input:focus,
#review-form textarea:focus { outline: none; border-color: var(--accent); }

.star-picker { display: flex; gap: 4px; margin: 0 0 14px; }

.star-picker button {
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: #dcd2c4;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.12s, color 0.12s;
}

.star-picker button:hover { transform: scale(1.15); }
.star-picker button.on { color: #e8a13c; }

.detail-usp { list-style: none; margin-bottom: 22px; }

.detail-usp li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 0.97rem;
}

.detail-usp li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.detail-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.detail-trust span {
  background: var(--cream);
  padding: 7px 14px;
  border-radius: 999px;
}

.detail-block {
  margin-top: 44px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.detail-block h3 { font-size: 1.25rem; margin-bottom: 14px; }

.detail-block p { margin-bottom: 14px; }

/* Khung video YouTube — nhúng nên không tốn dung lượng web */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ảnh bìa bài blog */
.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}

.review-card .post-thumb {
  width: calc(100% + 52px);
  margin: -26px -26px 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Trang đăng ký thành viên ---------- */
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.perk-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--blush-soft);
}

.perk:nth-child(odd) .perk-icon { background: var(--sage-soft); }

.perk b { display: block; font-size: 0.98rem; }
.perk small { color: var(--ink-soft); }

.reg-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.reg-form .req { color: var(--accent-dark); }

.reg-form input,
.reg-form select {
  width: 100%;
  margin-top: 5px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 2px solid var(--blush);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.15s;
}

.reg-form input:focus,
.reg-form select:focus { outline: none; border-color: var(--accent); }

.form-msg {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: #f7ddd7;
  color: #8a3d2e;
  font-size: 0.9rem;
  font-weight: 600;
}

.reg-success { text-align: center; padding: 20px 0; }

/* Băng mời đăng ký ở trang chủ */
.join-band {
  background: linear-gradient(135deg, var(--blush-soft) 0%, var(--sage-soft) 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.join-band h2 { font-size: 1.7rem; margin-bottom: 10px; }

.join-band p { max-width: 560px; margin: 0 auto 22px; color: var(--ink); }

/* ---------- Trang quản trị ---------- */
.admin-body { background: var(--cream); min-height: 100vh; }

.admin-shell { max-width: 1000px; margin: 0 auto; padding: 28px 20px 60px; }

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-tabs { display: flex; gap: 10px; margin-bottom: 22px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.stat-card b { font-size: 1.5rem; font-family: var(--font-head); display: block; }

.stat-card small { color: var(--ink-soft); }

.admin-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 2px solid var(--blush-soft);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(138, 98, 56, 0.1);
  font-size: 0.94rem;
  vertical-align: middle;
}

.admin-table .thumb-cell {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--cream);
}

.admin-table .thumb-cell svg { width: 30px; height: auto; }

.btn-sm {
  font-family: var(--font-head);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-sm:hover { filter: brightness(0.94); }

.btn-edit { background: var(--sage-soft); color: var(--ink); }
.btn-del { background: #f3d3cd; color: #8a3d2e; }

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

.admin-form label { font-weight: 700; font-size: 0.88rem; }

.admin-form .span2 { grid-column: span 2; }

/* Ô gợi ý nhỏ dưới ô nhập trong quản trị */
.field-hint {
  display: block;
  margin-top: 5px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.warn-box {
  background: #fbeee6;
  border: 2px solid var(--blush);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-form code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* Khung tải ảnh trong quản trị */
.upload-box {
  border: 2px dashed var(--blush);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--cream-soft);
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 10px;
}

.upload-box input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.upload-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--cream);
}

.upload-item img { width: 100%; height: 100%; object-fit: cover; }

.upload-item .remove-img {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 8px;
  background: rgba(74, 59, 46, 0.8);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.upload-item .cover-flag {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(217, 142, 126, 0.9);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
}

.upload-item.loading {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
}

.order-card {
  border: 2px solid var(--blush-soft);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.order-head b { font-family: var(--font-head); }

.order-status {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.status-moi { background: #f9e8c8; color: #8a6220; }
.status-xac-nhan { background: var(--sage-soft); color: #4c6234; }
.status-da-gui { background: #dce7f2; color: #3c5474; }
.status-huy { background: #f3d3cd; color: #8a3d2e; }

.order-items { font-size: 0.9rem; color: var(--ink-soft); margin: 6px 0 10px; }

.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-login {
  max-width: 380px;
  margin: 80px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}

.admin-login input {
  width: 100%;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 13px;
  border: 2px solid var(--blush);
  font-size: 1rem;
  text-align: center;
}

.hidden { display: none !important; }

@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .span2 { grid-column: span 1; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}

/* ---------- Trang sản phẩm ---------- */
.page-hero {
  background: linear-gradient(
    90deg,
    var(--cream) 0 33.4%,
    var(--blush) 33.4% 66.7%,
    var(--sage) 66.7% 100%
  );
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.2rem; }

.page-hero p { color: var(--ink); max-width: 520px; margin: 8px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 20px 80px; }
  .hero-shelf { max-width: 460px; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .checklist-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .live-band { grid-template-columns: 1fr; text-align: center; }
  .live-band .btn { justify-self: center; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(138, 98, 56, 0.1); }

  .menu-toggle { display: grid; place-items: center; }

  .usp { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}
