/* ============================================================
   FAIRY LUXURY — Template mẫu (dựa theo thiết kế gốc)
   Màu: charcoal + gold + cream | Font: Playfair Display + DM Sans
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #17171a;
  --bg-2: #1c1c20;
  --bg-3: #141418;
  --bg-deep: #101013;
  --gold: #c6a85b;
  --gold-light: #dfc98f;
  --gold-dark: #a8893f;
  --cream: #f5f2ea;
  --text: #f5f2ea;
  --muted: #a5a19a;
  --muted-2: #8a8680;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(198, 168, 91, 0.45);
  --overlay: rgba(10, 10, 12, 0.55);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Chặn scroll ngang do header tràn / drawer ẩn (fix mobile) */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }

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

::selection { background: var(--gold); color: #111; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: #141414;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(198, 168, 91, 0.25); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(198, 168, 91, 0.1); border-color: var(--gold); }

/* ---------- Section helpers ---------- */
.section { padding: 90px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}
.section-head .overline { margin-bottom: 10px; }
.overline {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--cream); }
.section-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.section-link:hover { color: var(--gold); }
.section-link::after { content: " →"; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(23, 23, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: 0.28em;
  color: var(--cream);
  white-space: nowrap;
}
.logo-text .logo-img {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}
.logo-text b { color: var(--gold); font-weight: 500; }

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.icon-btn:hover { color: var(--gold); background: rgba(198, 168, 91, 0.08); }
.icon-btn svg { width: 20px; height: 20px; }

.count-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #141414;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 9px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream);
  transition: border-color 0.25s, color 0.25s;
}
.cart-button:hover { border-color: var(--border-gold); color: var(--gold); }
.cart-button b {
  min-width: 18px;
  text-align: center;
  color: var(--gold);
  font-size: 12px;
}

.menu-button { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.menu-button span { display: block; width: 22px; height: 1.6px; background: var(--cream); transition: transform 0.3s, opacity 0.3s; }
.menu-button.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Search bar (ẩn/hiện) */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.search-bar.open { max-height: 70px; }
.search-bar input {
  width: 100%;
  padding: 16px 24px;
  background: var(--bg-3);
  border: none;
  border-bottom: 1px solid var(--border-gold);
  font-size: 15px;
}
.search-bar input::placeholder { color: var(--muted-2); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(16, 16, 19, 0.97);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--cream);
  padding: 10px;
  transition: color 0.25s;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav-actions { display: flex; gap: 12px; margin-top: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(10, 10, 12, 0.88) 15%, rgba(10, 10, 12, 0.45) 60%, rgba(10, 10, 12, 0.6)),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=1600&q=80") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 120px 0 140px; }
.hero .overline { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--cream);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 520px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   USP STRIP
   ============================================================ */
.usp {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.usp-item { display: flex; gap: 16px; align-items: flex-start; }
.usp-item svg { width: 26px; height: 26px; flex: none; color: var(--gold); margin-top: 3px; }
.usp-item h3 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.usp-item p { font-size: 13px; color: var(--muted); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: saturate(0.92);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.12) 55%, rgba(10, 10, 12, 0.2) 100%);
  transition: background 0.4s;
}
.cat-card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.cat-card-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.cat-card-label span {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--cream);
  position: relative;
}
.cat-card-label span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.cat-card:hover .cat-card-label span::after { width: 100%; }
.cat-card-label small { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; background: var(--bg-3); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--gold);
  color: #141414;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}
.favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 16, 19, 0.55);
  backdrop-filter: blur(6px);
  color: var(--muted);
  transition: color 0.25s, transform 0.25s, background 0.25s;
}
.favorite:hover { color: #e0667a; transform: scale(1.1); }
.favorite.active { color: #e0667a; background: rgba(16, 16, 19, 0.75); }
.favorite svg { width: 17px; height: 17px; }

.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.product-info h3 { font-size: 1.06rem; color: var(--cream); cursor: pointer; transition: color 0.25s; }
.product-info h3:hover { color: var(--gold-light); }
.product-bottom {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-bottom strong { font-size: 1.02rem; color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.add-button {
  padding: 9px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  transition: all 0.25s;
  white-space: nowrap;
}
.add-button:hover { background: var(--gold); color: #141414; border-color: var(--gold); }
.add-button.added { background: rgba(198, 168, 91, 0.15); }

/* Empty state */
.empty-state {
  display: none;
  text-align: center;
  padding: 80px 20px;
}
.empty-state.show { display: block; }
.empty-state svg { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; color: var(--cream); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.story-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  transform: translate(14px, 14px);
  pointer-events: none;
}
.story-text .overline { margin-bottom: 12px; }
.story-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--cream); margin-bottom: 18px; }
.story-text p { color: var(--muted); margin-bottom: 16px; }
.story-text .btn { margin-top: 14px; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  padding: 70px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(198, 168, 91, 0.06), transparent 70%);
}
.page-hero .overline { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--cream); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ============================================================
   PRODUCTS PAGE — toolbar
   ============================================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.22s;
  background: transparent;
}
.chip:hover { color: var(--cream); border-color: var(--border-gold); }
.chip.active { background: var(--gold); color: #141414; border-color: var(--gold); font-weight: 600; }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-2);
}
.search-box svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search-box input { background: none; border: none; outline: none; width: 190px; }
.search-box input::placeholder { color: var(--muted-2); }
.sort-select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.sort-select option { background: var(--bg-3); }
.result-count { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.result-count b { color: var(--gold); font-weight: 600; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(18px);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-image { background: var(--bg-3); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.modal-info { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.modal-info .product-category { letter-spacing: 0.22em; }
.modal-info h2 { font-size: 1.7rem; color: var(--cream); }
.modal-price { font-size: 1.35rem; color: var(--gold-light); font-weight: 600; }
.modal-desc { color: var(--muted); font-size: 14px; }
.modal-meta { font-size: 13px; color: var(--muted-2); }
.modal-meta b { color: var(--muted); font-weight: 600; }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.qty button { width: 42px; height: 100%; font-size: 17px; color: var(--muted); transition: color 0.2s; }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 40px; text-align: center; font-weight: 600; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 16, 19, 0.7);
  color: var(--muted);
  z-index: 5;
  transition: all 0.25s;
}
.modal-close:hover { color: var(--gold); transform: rotate(90deg); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 10, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(400px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.25rem; color: var(--cream); }
.drawer-close { color: var(--muted); transition: color 0.2s; }
.drawer-close:hover { color: var(--gold); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; }
.cart-item h4 { font-size: 14px; font-family: var(--font-body); font-weight: 600; color: var(--cream); margin-bottom: 3px; }
.cart-item .meta { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.cart-item .price { font-size: 13.5px; color: var(--gold-light); font-weight: 600; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-remove { font-size: 12px; color: var(--muted-2); transition: color 0.2s; }
.cart-item-remove:hover { color: #e0667a; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 15px; }
.drawer-total b { color: var(--gold-light); font-size: 1.1rem; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 14px; }
.drawer-empty p { font-size: 14px; margin-bottom: 18px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story { padding: 90px 0; }
.about-story .story-grid { gap: 70px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.value-card {
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.value-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.value-card svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.value-card h3 { font-size: 1.1rem; color: var(--cream); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   FEEDBACK (about page)
   ============================================================ */
.feedback-section { padding: 10px 0 0; }
.feedback-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: 46px;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) var(--bg-2);
}
.feedback-gallery::-webkit-scrollbar { height: 6px; }
.feedback-gallery::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 3px; }
.feedback-gallery::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
.feedback-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.feedback-item:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.feedback-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feedback-item:hover {
  border-color: var(--border-gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}
.feedback-item:hover img { transform: scale(1.06); }

/* Stagger reveal — từng ảnh hiện ra lần lượt khi cuộn tới */
.feedback-item:nth-child(1) { --d: 0ms; }
.feedback-item:nth-child(2) { --d: 70ms; }
.feedback-item:nth-child(3) { --d: 140ms; }
.feedback-item:nth-child(4) { --d: 210ms; }
.feedback-item:nth-child(5) { --d: 280ms; }
.feedback-item:nth-child(6) { --d: 350ms; }
.feedback-item:nth-child(7) { --d: 420ms; }
.feedback-item:nth-child(8) { --d: 490ms; }
.feedback-item:nth-child(9) { --d: 560ms; }
.feedback-item:nth-child(10) { --d: 630ms; }
.feedback-item:nth-child(11) { --d: 700ms; }
.feedback-item:nth-child(12) { --d: 770ms; }
.feedback-item:nth-child(13) { --d: 840ms; }
.feedback-item:nth-child(14) { --d: 910ms; }
.feedback-item:nth-child(15) { --d: 980ms; }
.feedback-item:nth-child(16) { --d: 1050ms; }
.feedback-item:nth-child(17) { --d: 1120ms; }
.feedback-item:nth-child(18) { --d: 1190ms; }
.feedback-item.reveal.revealed {
  animation: feedbackIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0ms) backwards;
}
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* Lightbox — bấm ảnh feedback xem to */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(10, 10, 12, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 860px);
  max-height: 88dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: zoom-out;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-gold);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .feedback-item { flex: 0 0 72vw; }
}

/* ============================================================
   HỘP QUÀ (home page)
   ============================================================ */
.giftbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.giftbox-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.giftbox-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.giftbox-item:hover {
  border-color: var(--border-gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}
.giftbox-item:hover img { transform: scale(1.06); }
.giftbox-item:nth-child(1) { --d: 0ms; }
.giftbox-item:nth-child(2) { --d: 80ms; }
.giftbox-item:nth-child(3) { --d: 160ms; }
.giftbox-item:nth-child(4) { --d: 240ms; }
.giftbox-item.reveal.revealed {
  animation: feedbackIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0ms) backwards;
}
@media (max-width: 640px) {
  .giftbox-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.info-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.info-card:last-child { border-bottom: none; }
.info-card svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.info-card h3 { font-size: 13px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-card p { color: var(--cream); font-size: 15px; }
.info-card a:hover { color: var(--gold); }
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--border-gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-brand .logo-text { font-size: 19px; }
.footer-brand .logo-text .logo-img { height: 42px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.22s, padding-left 0.22s;
}
.footer-col a:hover { color: var(--cream); padding-left: 5px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-2);
}
.footer-bottom .tagline { font-family: var(--font-head); font-style: italic; letter-spacing: 0.16em; color: var(--muted); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 13px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 14px;
  color: var(--cream);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s var(--ease);
}
.toast svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .menu-button { display: flex; }
  .cart-button span { display: none; }
  .cart-button { width: 42px; padding: 0; justify-content: center; margin-left: 0; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); padding: 30px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-image::after { transform: translate(10px, 10px); }
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-image img { min-height: 240px; max-height: 300px; }
  .modal-info { padding: 26px 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 50px 0 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .toolbar-right { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 90px 0 110px; }

  /* ===== Fix header mobile: chỉ giữ logo + giỏ hàng + menu ===== */
  .header-inner { gap: 12px; }
  .logo-text { font-size: 16px; letter-spacing: 0.2em; }
  .logo-text .logo-img { height: 72px; }
  #searchToggle, #wishlistToggle { display: none; } /* search & wishlist chuyển vào menu drawer */
  .header-actions { gap: 4px; }

  /* ===== Touch target đạt chuẩn mobile (≥40px) ===== */
  .drawer-close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav a { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-nav-actions { flex-wrap: wrap; justify-content: center; }
  .mobile-nav-actions .btn { min-height: 44px; }
  .footer-col a { padding: 8px 0; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .add-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .favorite { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 12px 12px 14px; }
  .add-button { padding: 8px 10px; font-size: 11px; }
  .cat-card-label { left: 14px; bottom: 12px; }
  .cat-card-label span { font-size: 1.05rem; }
  .hero-cta .btn, .hero-cta .btn-outline { width: 100%; justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ===== SOCIAL LINKS (contact) ===== */
.contact-social { margin-top: 28px; }
.contact-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  transition: transform 0.25s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.contact-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-social a:hover { transform: translateY(-3px); color: var(--bg); border-color: transparent; }
.contact-social a.social-fb:hover { background-color: #1877f2; }
.contact-social a.social-ig:hover { color: #fff; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social a.social-tiktok:hover { background-color: #000; color: #fff; }
.contact-social a.social-zalo:hover { background-color: #0068ff; }

/* ===== FAB ZALO (floating quick contact) ===== */
.fab-contact {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 1400; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.fab-btn {
  position: relative; flex-shrink: 0;
  width: 50px; height: 50px; min-width: 50px; min-height: 50px; max-width: 50px; max-height: 50px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--text); background: var(--overlay); border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  pointer-events: auto; box-sizing: border-box;
}
.fab-btn svg { width: 20px; height: 20px; min-width: 20px; min-height: 20px; flex-shrink: 0; display: block; }
.fab-btn:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(198, 168, 91, 0.35); }
.fab-zalo { background-color: #0068ff; border-color: #0068ff; animation: fabPulse 2.4s infinite; }
.fab-zalo:hover { background-color: #0068ff; border-color: #0068ff; box-shadow: 0 10px 26px rgba(0, 104, 255, 0.35); }
.fab-tooltip {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  padding: 6px 12px; border-radius: 6px; background: rgba(8, 8, 8, 0.85);
  border: 1px solid var(--border); color: var(--text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.fab-btn:hover .fab-tooltip { opacity: 1; visibility: visible; }
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}
@media (max-width: 640px) {
  .fab-contact { right: 14px; bottom: 18px; gap: 10px; }
  .fab-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .fab-btn svg { width: 18px; height: 18px; }
  .fab-tooltip { display: none; }
}

/* ===== Hiệu ứng chuyển trang & reveal (mượt, tinh tế) ===== */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vtOut 0.25s ease both; }
::view-transition-new(root) { animation: vtIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(0.995); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(12px); } }

html { scroll-behavior: smooth; }

/* Trình duyệt không hỗ trợ View Transitions → fade-in khi load */
html.no-vt .hero,
html.no-vt .page-hero { animation: pageIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Reveal nhẹ khi cuộn (class .reveal do JS gắn) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: opacity, transform; }
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root),
  html.no-vt .hero, html.no-vt .page-hero,
  .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
