/* =================================================================
   YẾN SÀO TUỆ AN — styles.css
   Phong cách: LUXURY NAVY + GOLD — nền xanh navy sẫm, nhấn vàng gold.
   Tổ chức theo từng SECTION để dễ chỉnh sửa.
   ================================================================= */

/* -----------------------------------------------------------------
   FONT — Google Fonts dùng cho nội dung; UVN Kiều chỉ dùng làm điểm nhấn.
----------------------------------------------------------------- */
/* Google Fonts (Lora + Be Vietnam Pro): tải bằng <link> trong <head> từng trang HTML
   (kèm preconnect) — KHÔNG dùng @import ở đây vì @import phải chờ tải xong styles.css
   mới bắt đầu tải font → chậm thêm ~300-500ms trên 4G. Thêm trang mới → copy 3 dòng
   <link> font từ <head> của cua-hang.html. */

/* Script điểm nhấn (logo + dòng nhấn) — KHÔNG dùng cho thân chữ vì khó đọc */
@font-face { font-family: 'UVN Kieu'; src: url('fonts/UVNKieu_R.TTF') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'UVN Kieu'; src: url('fonts/UVNKieu_B.TTF') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }

/* -----------------------------------------------------------------
   0. BIẾN MÀU & THEME  (NAVY + GOLD)
   - Muốn quay lại tông KEM sáng: đổi --bg-navy -> #FBF6EE,
     --surface-1/2 -> #FFFFFF, --text-light -> #3A2E20,
     --text-muted -> #7a6c58 và các blob/placeholder tương ứng.
----------------------------------------------------------------- */
:root {
  /* NỀN & BỀ MẶT (navy hoàng gia — lấy tông từ ảnh thương hiệu) */
  --bg-navy: #101939;        /* nền chính — midnight navy đậm theo ảnh tham khảo */
  --bg-navy-deep: #081026;   /* footer / vùng sâu nhất */
  --bg-navy-alt: #0C1631;    /* nền section xen kẽ */
  --surface-1: #D8AF67;      /* THẺ/PANEL = gold sáng theo ảnh tham khảo (nền trang vẫn navy) */
  --surface-2: #F4D49A;      /* kem-gold sáng — đỉnh gradient thẻ */
  --line: rgba(178, 122, 36, 0.42);  /* viền hairline gold rõ hơn */

  /* Ô NHẬP LIỆU — nền trắng, chữ đen (đồng bộ toàn site) */
  --input-bg: #ffffff;
  --input-text: #1c1c1c;
  --input-ph: #8c8c8c;   /* màu placeholder trên nền trắng */

  /* VÀNG GOLD — nhấn chính (logo, tiêu đề, giá, nút) */
  --accent-gold: #D7A85C;       /* gold chính — ấm như logo Tuệ An */
  --accent-gold-bright: #EFD3A0;/* gold sáng (highlight) */
  --accent-gold-fresh: #FFC45E; /* gold TƯƠI sáng — tiêu đề mục / breadcrumb / nhấn rực */
  --accent-gold-dark: #B5853A;  /* gold đậm */

  /* CAM ĐẤT (persimmon) — nhấn phụ, lấy từ hộp quà cam trong ảnh */
  --accent-orange: #DA5524;        /* cam chính */
  --accent-orange-bright: #F06B34; /* cam sáng */
  --accent-orange-dark: #B5401A;   /* cam đậm */

  /* MÀU PHỤ TRANG TRÍ */
  --soft-sage: #2A4A6B;      /* navy-teal cho gradient avatar/blob */

  /* CHỮ */
  --text-light: #F3ECDB;     /* chữ chính — kem nhạt trên nền navy */
  --text-muted: #A6B4C8;     /* chữ phụ — xám xanh */
  --white: #FFFFFF;

  --shadow-soft: 0 22px 55px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.35);
  --glow-gold: 0 12px 34px rgba(212, 175, 106, 0.40);

  --radius-pill: 999px;
  --radius-lg: 32px;
  --radius-md: 20px;

  --font-serif: 'Lora', Georgia, serif;                          /* tiêu đề — serif ấm, sang */
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;  /* thân chữ — sans VN sạch */
  --font-script: 'UVN Kieu', 'Brush Script MT', cursive;         /* điểm nhấn — chữ ký bay bổng */

  --container: 1200px;
  --header-h: 86px;
}

/* ====== THẺ NỀN GOLD SÁNG — chữ & nhấn = NAVY ĐẬM (đọc rõ trên nền gold) ======
   (Nền thẻ dùng --surface-1/2 = gold sáng; trong các thẻ dưới đây "trả" biến chữ/nhấn về
   navy thương hiệu. Thêm class panel gold mới vào đây nếu chữ bị chìm.) */
.product-card, .trust-card, .review-card, .article-card,
.newsletter-inner, .giftset-inner, .meaning-card, .cert-card,
.process-step, .faq-item, .contact-item, .contact-form,
.pd-relcard, .pos-cart-card, .feat-btn, .home-article-btn,
.about-info-card, .dosage-card, .price-policy-card, .compare-card, .eastern-note {
  --text-light: #07182F;             /* chữ chính — navy sâu, tương phản cao trên be */
  --text-muted: #183354;             /* chữ phụ — navy xám, rõ nhưng mềm hơn */
  --accent-gold: #07182F;            /* giá / icon / sao / viền trong thẻ → navy */
  --accent-gold-bright: #101939;     /* tiêu đề nhỏ trong thẻ → navy thương hiệu */
  --accent-gold-fresh: #07182F;      /* gold tươi trong thẻ gold → navy (không chìm) */
  --accent-orange-bright: #8A2E10;   /* eyebrow / tag cam → cam ĐẬM (đọc rõ mọi vùng gold) */
  --line: rgba(7, 24, 47, 0.30);     /* viền navy trên nền be */
}
.newsletter-inner .section-title.light { color: #07182F; }  /* tiêu đề trắng → navy trên panel gold */

/* -----------------------------------------------------------------
   1. RESET & NỀN TẢNG
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* Chặn zoom nhầm do chạm hai lần; vẫn cho phép cuộn và pinch-to-zoom. */
  touch-action: manipulation;
}

body {
  font-family: var(--font-sans);
  color: var(--text-light);
  background: var(--bg-navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* HOA VĂN NỀN — đường vàng uốn lượn + đàn chim yến cách điệu + bụi vàng,
   cố định phía sau toàn bộ nội dung (lộ qua các section trong suốt). */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: url('images/bg-decor-v2.svg') center / cover no-repeat;
  pointer-events: none;
}
/* Ngôi sao lấp lánh rải rác (6–8 cái, random, do layout.js chèn) — mọi trang */
.sky-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky-star { position: absolute; transform: translate(-50%, -50%); line-height: 0; }
.sky-star svg {
  width: 100%; height: auto; display: block;
  animation: twinkle 4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(215, 168, 92, 0.5));
}
/* Logo Tuệ An MỜ ở giữa nền (watermark) — mọi trang, sau nội dung */
body::after {
  content: "";
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 26vw);
  aspect-ratio: 354 / 180;
  background: url('images/logo-tue-an.png') center / contain no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Tiêu đề chung */
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  color: var(--text-light);
  letter-spacing: -0.5px;
}
.section-title.light { color: var(--white); }
/* Gạch flourish GOLD dưới tiêu đề các mục căn giữa — điểm nhấn gold, chữ vẫn kem dễ đọc */
.section-head.center .section-title::after {
  content: ""; display: block; width: 66px; height: 3px; margin: 15px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-gold-bright), var(--accent-gold), transparent);
  border-radius: 2px; box-shadow: 0 0 10px rgba(215, 168, 92, 0.45);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-orange-bright);   /* nhấn cam — eyebrow nhỏ */
  margin-bottom: 12px;
}

/* Trang chủ: đề mục (eyebrow cam + tiêu đề) to hơn ~10% để nổi bật hơn so với nội dung bên dưới */
[data-page="home"] .section-eyebrow { font-size: 0.88rem; }
[data-page="home"] .section-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-lead { color: var(--text-muted); max-width: 560px; margin: 14px auto 0; }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 0; }

/* -----------------------------------------------------------------
   THÀNH VIÊN (Firebase Auth) — nút tài khoản, form đăng ký/nhập, bảng điểm
----------------------------------------------------------------- */
/* Nút tài khoản: style đặt SAU .icon-btn (mục Header) để thắng độ ưu tiên.
   Layout trang Tài khoản: */
.account-summary { max-width: 880px; margin: 0 auto 28px; }
.account-forms { margin-bottom: 28px; }
.account-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.account-menu { position: sticky; top: calc(var(--header-h) + 18px); min-width: 0; }
.account-menu nav { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.account-menu .shop-nav-link { padding-top: 12px; padding-bottom: 12px; }
.account-logout { width: 100%; margin-top: 18px; }
.account-main { min-width: 0; }
.account-page-card { max-width: 760px; margin: 0; }
.account-stack { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 860px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-menu {
    position: static;
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(12,22,49,.72), rgba(8,16,38,.58));
  }
  .account-menu .shop-nav-title {
    display: block;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--accent-gold-fresh);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }
  .account-menu nav {
    flex-direction: column;
    gap: 0;
    border-left: 2px solid rgba(255,196,94,.30);
    overflow: visible;
    padding: 2px 0 2px 18px;
  }
  .account-menu .shop-nav-link {
    flex: initial;
    margin-left: 0;
    border: 0;
    border-radius: 0;
    padding: 9px 0;
    color: var(--text-muted);
    white-space: normal;
  }
  .account-menu .shop-nav-link.active {
    border-color: transparent;
    background: transparent;
    color: var(--accent-gold-fresh);
  }
  .account-menu .account-logout {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin-top: 14px;
    border-radius: 12px;
    padding: 12px 18px;
  }
  .account-page-card { max-width: none; }
}
.account-advanced { max-width: 880px; margin: 0 auto 22px; padding: 0; overflow: hidden; }
.advanced-summary {
  list-style: none; cursor: pointer; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.advanced-summary::-webkit-details-marker { display: none; }
.advanced-summary span { font-family: var(--font-serif); font-size: 1.35rem; color: var(--text-light); }
.advanced-summary small { flex: 1; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.advanced-summary::after {
  content: "+";
  width: 32px; height: 32px; border: 1px solid rgba(215,168,92,.4); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-gold); font-size: 1.3rem; flex-shrink: 0;
}
.account-advanced[open] .advanced-summary { border-bottom: 1px solid rgba(215,168,92,.2); }
.account-advanced[open] .advanced-summary::after { content: "−"; }
.advanced-body { padding: 26px 28px 28px; }
.advanced-section { margin-bottom: 24px; }
@media (max-width: 620px) {
  .advanced-summary { align-items: flex-start; padding: 22px 20px; }
  .advanced-summary small { display: none; }
  .advanced-body { padding: 22px 20px 24px; }
}
/* Bảo đảm thuộc tính hidden luôn ẩn (kể cả phần tử có class đặt display như .btn/.icon-btn) */
[hidden] { display: none !important; }
.account-topbar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.account-topbar .btn { width: auto; min-width: 210px; white-space: nowrap; text-align: center; padding-top: 11px; padding-bottom: 11px; }
@media (max-width: 480px) { .account-topbar .btn { width: 100%; min-width: 0; } }
.header-actions .admin-btn { color: var(--accent-gold); background: rgba(215,168,92,0.12); }
.header-actions .admin-btn:hover { background: rgba(215,168,92,0.22); }
.header-actions .sales-tool-btn { color: var(--accent-gold); background: rgba(215,168,92,0.12); }
.header-actions .sales-tool-btn:hover { background: rgba(215,168,92,0.22); }
.header-actions .admin-entry {
  display: inline-flex; align-items: center; gap: 6px;
  width: auto; height: 38px; padding: 0 13px; border-radius: 19px;
  border: 1px solid rgba(215, 168, 92, 0.35);
  font-size: 0.86rem; font-weight: 700; text-decoration: none;
}
.header-actions .admin-entry.has-new { border-color: var(--accent-orange); box-shadow: 0 0 0 2px rgba(218,85,36,.14); }
.header-actions .scan-btn { color: var(--accent-gold); background: rgba(215,168,92,0.12); }
.header-actions .scan-btn:hover { background: rgba(215,168,92,0.22); }
/* Chuông "đơn mới" cho admin (header, mọi trang) */
.header-actions .orders-bell:hover { color: var(--accent-gold); }
.orders-bell .orders-badge {
  position: absolute; top: 1px; right: 1px;
  background: var(--accent-orange); color: #fff;
  font-size: 0.6rem; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg-navy, #101939);
}
/* Có đơn chưa hoàn thành → chuông sáng vàng (badge cam hiện số). KHÔNG rung liên tục. */
.orders-bell.has-new { color: var(--accent-gold); }

.admin-home { max-width: 920px; margin: 0 auto; }
.admin-home-card { text-align: center; }
.admin-home-grid { display: grid; gap: 16px; margin-top: 20px; }
.admin-home-primary { width: min(100%, 420px); justify-self: center; }
.admin-home-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-home-grid .btn { min-height: 54px; }
.admin-role-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(215, 168, 92, 0.28);
  text-align: left;
}
.admin-role-panel h3 { margin: 0 0 14px; color: var(--accent-gold-fresh); font-size: 1.05rem; }
.admin-role-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) auto; gap: 12px; align-items: end; }
.admin-role-form label { display: grid; gap: 6px; color: var(--text-light); font-size: 0.85rem; font-weight: 700; }
.admin-role-form input,
.admin-role-form select { width: 100%; min-height: 44px; border: 1px solid rgba(7, 24, 47, 0.28); border-radius: 6px; background: #fff; color: #07182f; padding: 0 12px; font: inherit; }
.admin-role-form .btn { min-height: 44px; white-space: nowrap; }
@media (max-width: 820px) { .admin-home-row { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .admin-role-form { grid-template-columns: 1fr; } }

/* Trang quản trị bài viết (quan-tri.html) */
.admin-stack { display: flex; flex-direction: column; gap: 24px; max-width: 920px; margin: 0 auto; }
.editor-card { padding-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr); gap: 12px; align-items: stretch; }
.admin-form-actions .btn { width: 100%; min-height: 58px; }
.article-delete-btn { background: #b4372d; color: #fff; box-shadow: 0 8px 22px rgba(180, 55, 45, 0.32); }
.article-delete-btn:hover { background: #922920; color: #fff; }
.article-publish-btn { font-size: 1rem; }
.admin-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-list-tools { display: flex; gap: 8px; flex-shrink: 0; }
.admin-list { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; }
.admin-empty { color: var(--text-muted); text-align: center; padding: 24px 0; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid rgba(215,168,92,.22); border-radius: 12px; }
.admin-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-row-cat { font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.cat-hb { color: var(--accent-gold); }
.cat-news { color: var(--accent-orange-bright); }
.admin-row-title { font-size: .92rem; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-acts { display: flex; gap: 6px; flex-shrink: 0; }
.btn-mini { background: transparent; border: 1px solid rgba(215,168,92,.4); color: var(--text-light); border-radius: 8px; padding: 6px 12px; font-size: .82rem; font-family: var(--font-sans); cursor: pointer; }
.btn-mini:hover { background: rgba(215,168,92,.16); color: var(--accent-gold); }
.btn-mini-danger:hover { background: rgba(218,85,36,.18); color: #f0997b; border-color: rgba(218,85,36,.5); }

/* --- Quản lý đơn hàng (don-hang.html) --- */
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.orders-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ofilter { background: transparent; border: 1px solid rgba(215,168,92,.4); color: var(--text-light); border-radius: 999px; padding: 7px 16px; font-size: .85rem; font-family: var(--font-sans); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ofilter:hover { background: rgba(215,168,92,.14); }
.ofilter.active { background: var(--accent-gold); color: var(--bg-navy); border-color: var(--accent-gold); font-weight: 600; }
.orders-search { flex: 1; min-width: 200px; max-width: 320px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--input-bg); color: var(--input-text); font-family: var(--font-sans); font-size: .88rem; }
.orders-search::placeholder { color: var(--input-ph); }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
/* CHƯA hoàn thành = SÁNG, nổi bật (đơn cần xử lý dễ nhận ra) */
.order-card { border: 1px solid rgba(215,168,92,.55); border-left: 3px solid var(--accent-orange); background: rgba(215,168,92,.10); border-radius: 14px; padding: 16px 18px; box-shadow: 0 3px 16px rgba(0,0,0,.18); transition: border-color .2s ease, background .2s ease, opacity .2s ease; }
/* ĐÃ hoàn thành = TỐI màu, chìm xuống (rê chuột để xem rõ lại) */
.order-card.order-done { border-color: rgba(255,255,255,.08); border-left-color: rgba(120,190,140,.55); background: rgba(0,0,0,.24); box-shadow: none; opacity: .58; }
.order-card.order-done:hover { opacity: 1; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.order-head-left { display: flex; flex-direction: column; gap: 2px; }
.order-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.order-code { font-weight: 700; color: var(--accent-gold); letter-spacing: .5px; }
.order-date { font-size: .8rem; color: var(--text-muted); }
.order-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--text-light); user-select: none; flex-shrink: 0; }
.order-check input { width: 18px; height: 18px; accent-color: #5aab78; cursor: pointer; }
.order-delete { border: 1px solid rgba(218,85,36,.52); background: rgba(218,85,36,.14); color: #ffb4a2; border-radius: 999px; padding: 7px 13px; font-family: var(--font-sans); font-size: .84rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease; }
.order-delete:hover { background: rgba(218,85,36,.24); border-color: rgba(255,180,162,.72); color: #ffd4c9; }
.order-delete:disabled { opacity: .65; cursor: wait; }
.order-body { display: flex; flex-direction: column; gap: 5px; }
.order-line { margin: 0; font-size: .92rem; color: var(--text-light); line-height: 1.5; }
.order-muted { color: var(--text-muted); font-size: .85rem; }
.order-buyer { font-size: .85rem; color: var(--accent-gold-dark); font-weight: 600; }
.order-msg { margin: 8px 0 0; font-size: .85rem; min-height: 1em; }

@media (max-width: 640px) {
  .order-head { align-items: flex-start; }
  .order-head-left { width: 100%; }
  .order-head-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .admin-form-actions { grid-template-columns: 1fr; }
}
.af-hint { display: block; margin-top: 8px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.af-hint code { background: rgba(215,168,92,0.16); color: var(--accent-gold); padding: 1px 5px; border-radius: 4px; }

/* --- Trình soạn thảo nội dung (rich text) --- */
/* Nền TRẮNG, chữ đen (như các ô input) — dễ soạn + khớp giao diện bài đã đăng. */
.rte { border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg); overflow: hidden; }
.rte:focus-within { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212,175,106,0.4); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; background: #BFA06A; border-bottom: 1px solid rgba(112,78,32,0.34); }
.rte-sep { width: 1px; align-self: stretch; margin: 2px 5px; background: rgba(112,78,32,0.28); }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-light); font-family: var(--font-sans); font-size: 0.95rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.rte-btn:hover { background: rgba(215,168,92,0.18); color: var(--accent-gold); }
.rte-btn:active { background: rgba(215,168,92,0.3); }
.rte-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.rte-select { height: 32px; padding: 0 26px 0 10px !important; border: 1px solid rgba(215,168,92,0.32) !important; border-radius: 7px !important; background: rgba(255,255,255,0.06); color: var(--text-light); font-family: var(--font-sans); font-size: 0.85rem; cursor: pointer; width: auto !important; }
.rte-select option { color: #1a1a1a; }
.rte-font-select { min-width: 178px; }
.rte-color-wrap { position: relative; }
.rte-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  width: 54px;
  flex: 0 0 54px;
  padding: 0;
  border: 1px solid rgba(215,168,92,0.32);
  border-radius: 7px;
  color: var(--text-light);
  background: rgba(255,255,255,0.06);
  font-weight: 800;
  cursor: pointer;
}
.rte-color i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #242424;
  border: 1px solid rgba(8,16,38,.26);
}
.rte-color-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(6, 30px);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(215,168,92,0.4);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}
.rte-color-panel[hidden] { display: none; }
.rte-color-panel button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(8,16,38,.14);
  border-radius: 8px;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.rte-color-panel button:hover,
.rte-color-panel button.is-active {
  outline: 2px solid #101939;
  outline-offset: 2px;
}
.rte-image-file { display: none; }
.rte-emoji-wrap { position: relative; }
.rte-emoji-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 34px));
  gap: 6px;
  width: min(334px, calc(100vw - 48px));
  max-height: 252px;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(215,168,92,0.4);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}
.rte-emoji-panel[hidden] { display: none; }
.rte-emoji-panel button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8,16,38,.10);
  border-radius: 8px;
  background: #f8f1df;
  cursor: pointer;
  font-size: 1.05rem;
}
.rte-emoji-panel button:hover { background: #efd18f; }
.rte-editor { min-height: 460px; max-height: 75vh; overflow-y: auto; padding: 20px 22px; color: #242424; font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.8; outline: none; resize: vertical; }
.rte-editor:empty::before { content: attr(data-placeholder); color: var(--input-ph); pointer-events: none; }
.rte-editor h2 { font-size: inherit; color: inherit; margin: 0 0 12px; }
.rte-editor h3 { font-size: inherit; color: inherit; margin: 0 0 12px; }
.rte-editor p { margin: 0 0 12px; }
.rte-editor ul, .rte-editor ol { margin: 0 0 12px; padding-left: 24px; }
.rte-editor li { margin-bottom: 6px; }
.rte-editor a { color: var(--accent-gold-dark); text-decoration: underline; }
.rte-editor img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.af-preview { display: block; max-width: 180px; border-radius: 10px; margin: 10px 0; }
.auth-card input[type="file"] { padding: 9px 12px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.article-preview-panel {
  margin-top: 26px;
  border: 1px solid rgba(215,168,92,.36);
  border-radius: 18px;
  background: rgba(8,16,38,.26);
  padding: 18px;
}
.article-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.article-preview-head h3 {
  margin: 0;
  color: var(--accent-gold-bright);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.article-preview-body {
  background: rgba(251, 247, 239, 0.88);
  border: 1px solid rgba(215, 168, 92, 0.40);
  border-radius: 16px;
  padding: 28px 30px;
}

/* Trang đọc bài (bai-viet.html) */
.article-page { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-block; margin-bottom: 24px; color: var(--accent-gold); font-size: 0.9rem; }
.article-back:hover { color: var(--accent-gold-bright); }
/* Khung bài viết: nền trắng ấm (overlay nhẹ) để chữ đen dễ đọc trên nền navy */
#artWrap {
  background: rgba(251, 247, 239, 0.80);
  border: 1px solid rgba(215, 168, 92, 0.40);
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}
.art-meta { display: inline-block; color: var(--accent-gold-dark); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.art-title { font-family: var(--font-serif); font-size: 2rem; line-height: 1.25; color: var(--bg-navy); margin-bottom: 22px; }
.art-image { width: 100%; border-radius: 16px; margin-bottom: 26px; }
.art-body { color: #242424; font-size: 0.95rem; line-height: 1.8; }
.art-body p { margin-bottom: 18px; }
.art-body strong { color: #111; }
.art-body h2 { font-size: inherit; color: inherit; margin: 0 0 18px; }
.art-body h3 { font-size: inherit; color: inherit; margin: 0 0 18px; }
.art-body ul { margin: 0 0 18px 1.2em; }
.art-body li { margin-bottom: 8px; }
.art-body a { color: var(--accent-gold-dark); text-decoration: underline; }
.art-body img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 20px auto; }
.art-byline { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(215, 168, 92, 0.32); text-align: right; font-size: 0.82rem; font-style: italic; color: #6f6a60; }
@media (max-width: 600px) { #artWrap { padding: 24px 20px; } }
.article-card.clickable { cursor: pointer; }

.auth-notice { text-align: center; color: var(--text-muted); padding: 48px 0; font-size: 1.05rem; }

.auth-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.auth-card { background: rgba(255,255,255,.04); border: 1px solid rgba(215,168,92,.28); border-radius: 18px; padding: 32px 28px; }
.auth-title { font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); margin-bottom: 22px; font-size: .95rem; }
.field-hint { color: var(--text-muted); font-size: .78rem; font-weight: 400; }
.auth-msg { margin-top: 14px; min-height: 1.2em; font-size: .92rem; }
.auth-divider { display: flex; align-items: center; text-align: center; color: var(--text-muted); margin: 20px 0 16px; gap: 12px; font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(215,168,92,.25); }
.auth-google { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #222; border-color: #fff; }
.auth-google:hover { background: #f1f1f1; color: #222; }

.member-dash { max-width: 560px; margin: 0 auto; }
.member-card { background: rgba(255,255,255,.04); border: 1px solid rgba(215,168,92,.28); border-radius: 18px; padding: 36px 32px; text-align: center; }
.member-hello { font-size: 1.6rem; margin-bottom: 4px; }
.member-email { color: var(--text-muted); margin-bottom: 26px; }
.member-stats { display: flex; gap: 18px; justify-content: center; margin-bottom: 24px; }
.member-stat { flex: 1; max-width: 200px; background: rgba(215,168,92,.10); border: 1px solid rgba(215,168,92,.30); border-radius: 14px; padding: 18px 12px; }
.ms-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--accent-gold); }
.ms-label { display: block; margin-top: 6px; font-size: .85rem; color: var(--text-muted); }
.member-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }

/* Thẻ thành viên (mã vạch quét tại cửa hàng) */
.member-card-code { max-width: 880px; margin: 0 auto 28px; }
.member-code-title { font-size: 1.5rem; margin-bottom: 6px; }
.member-code-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 22px; }
.member-barcode-box { display: inline-block; max-width: 100%; padding: 16px 20px; background: #fff; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.member-barcode { display: block; width: 320px; max-width: 100%; height: auto; }
.member-code-id { margin-top: 18px; font-size: 1rem; color: var(--text-muted); }
.member-code-id span { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--accent-gold); font-size: 1.15rem; letter-spacing: 2px; }
.member-tier-card { max-width: 880px; margin: 0 auto 28px; text-align: left; }
.member-tier-card .member-code-title,
.member-tier-card .member-code-sub { text-align: center; }
.tier-table-wrap { width: 100%; overflow: hidden; border: 1px solid rgba(215,168,92,.24); border-radius: 14px; background: rgba(255,255,255,.025); }
.tier-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tier-table th,
.tier-table td { padding: 15px 16px; border-bottom: 1px solid rgba(215,168,92,.16); vertical-align: middle; }
.tier-table thead th { color: var(--accent-gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(215,168,92,.08); }
.tier-table thead th:first-child { width: 190px; white-space: nowrap; }
.tier-table tbody tr:last-child th,
.tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table tbody th { width: 190px; }
.tier-table tbody td { color: var(--text-muted); line-height: 1.55; }
.tier-chip { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-width: 108px; min-height: 32px; padding: 6px 12px; border-radius: 999px; font-weight: 800; color: #0b1220; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.12), 0 3px 10px rgba(0,0,0,.12); }
.tier-chip::after { content: ""; position: absolute; z-index: 1; top: -55%; bottom: -55%; left: -52%; width: 28%; pointer-events: none; opacity: .58; background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent); transform: skewX(-18deg); animation: tier-metal-shine 4.2s ease-in-out infinite; }
@keyframes tier-metal-shine {
  0%, 8% { left: -52%; opacity: 0; }
  12% { opacity: .58; }
  72% { left: 124%; opacity: .58; }
  78%, 100% { left: 124%; opacity: 0; }
}
.tier-chip-vang { background: linear-gradient(135deg, #d7a85c, #f8e7b8); }
.tier-chip-bachkim { background: linear-gradient(135deg, #aab4c2, #f2f6fb); }
.tier-chip-kimcuong { background: linear-gradient(135deg, #7be8ff, #b9a1ff 48%, #ffd6ef); }
.tier-chip-signature { color: #f6d978; background: linear-gradient(135deg, #080808, #332712 52%, #0c0c0c); box-shadow: inset 0 0 0 1px rgba(246,217,120,.35); }
@media (prefers-reduced-motion: reduce) { .tier-chip::after { display: none; animation: none; } }

/* ===== Trang tích điểm tại quầy (quet-diem.html) ===== */
.scan-demo-banner { max-width: 560px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; background: rgba(215,168,92,.12); border: 1px solid rgba(215,168,92,.4); color: var(--accent-gold); font-size: .9rem; text-align: center; }
.scan-card { max-width: 560px; margin: 0 auto 22px; text-align: center; }
.scan-manual { display: flex; gap: 8px; margin-top: 8px; }
.scan-manual input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(215,168,92,.3); background: rgba(255,255,255,.04); color: var(--text-light, #f3ead6); font-size: 1.05rem; letter-spacing: 1px; }
.scan-customer { max-width: 880px; margin: 0 auto 18px; }

/* Lưới sản phẩm kiểu POS */
.pos-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.pos-cat { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(215,168,92,.32); background: transparent; color: var(--text-muted); font-size: .9rem; cursor: pointer; }
.pos-cat.active { background: var(--accent-gold); color: #1a1305; border-color: var(--accent-gold); font-weight: 600; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(215,168,92,.28); background: rgba(215,168,92,.07); color: inherit; cursor: pointer; transition: background .15s, transform .05s; }
.pos-item:hover { background: rgba(215,168,92,.16); }
.pos-item:active { transform: scale(.97); }
.pi-name { font-size: .9rem; line-height: 1.25; }
.pi-price { font-size: .85rem; font-weight: 700; color: var(--accent-gold); }
/* Gói combo — font đậm khác biệt + viền vàng + badge + hiệu ứng lấp lánh, chống nhầm */
.pos-item-combo { background: linear-gradient(135deg, rgba(215,168,92,.30), rgba(215,168,92,.08)); border: 2px solid var(--accent-gold); animation: comboGlow 2.2s ease-in-out infinite; }
.pos-item-combo:hover { background: linear-gradient(135deg, rgba(215,168,92,.44), rgba(215,168,92,.16)); }
.pos-item-combo .pi-name { font-weight: 800; font-size: 1rem; color: #fff; letter-spacing: .2px; }
.pos-item-combo .pi-price { font-size: 1.1rem; }
.pi-badge { align-self: flex-start; font-size: .6rem; font-weight: 800; letter-spacing: 1.5px; color: #1a1305; background: var(--accent-gold); padding: 3px 9px; border-radius: 999px; margin-bottom: 3px; }
@keyframes comboGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(215,168,92,.15), 0 4px 14px rgba(215,168,92,.15); } 50% { box-shadow: 0 0 0 1px rgba(215,168,92,.55), 0 6px 22px rgba(215,168,92,.4); } }
.pos-cart-combo { background: rgba(215,168,92,.10); border-radius: 8px; }
.pos-cart-combo .pcr-name { font-weight: 700; color: var(--accent-gold); }

/* Giỏ hàng POS */
.pos-cart-card { max-width: 880px; margin: 18px auto 0; }
.pos-cart { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pos-empty { color: var(--text-muted); text-align: center; padding: 10px 0; }
.pos-cart-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(215,168,92,.14); }
.pcr-name { font-size: .92rem; }
.pcr-ctrl { display: flex; align-items: center; gap: 10px; }
.pcr-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(215,168,92,.4); background: rgba(215,168,92,.1); color: var(--accent-gold); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.pcr-qty { min-width: 22px; text-align: center; font-weight: 600; }
.pcr-sub { font-size: .9rem; color: var(--accent-gold); min-width: 90px; text-align: right; }
.pos-total { font-size: 1.05rem; margin-bottom: 4px; }
.pos-total span { font-weight: 700; color: var(--accent-gold); }
.pos-points-line { color: var(--text-muted); margin-bottom: 18px; }
.pos-points-line strong { color: var(--accent-gold); }
.pos-cart-card .btn { width: 100%; }
#scanNext { margin-top: 12px; }
@media (max-width: 480px) { .pos-grid { grid-template-columns: repeat(2, 1fr); } }
.scan-toolbar { display: flex; justify-content: flex-end; max-width: 880px; margin: 0 auto 14px; }

/* ===== Màn hình khách (man-hinh-khach.html, monitor 2) ===== */
.cd-body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 28%, #172a45, #0a1019); color: #f3ead6; }
.cd-wrap { width: 100%; max-width: 760px; padding: 44px; text-align: center; }
.cd-logo { width: 210px; max-width: 55%; margin: 0 auto 34px; display: block; }
.cd-idle h1 { font-size: 2.6rem; margin-bottom: 10px; }
.cd-idle p { font-size: 1.35rem; color: #cbb682; }
.cd-hello { font-size: 1.7rem; margin-bottom: 26px; }
.cd-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; text-align: left; }
.cd-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 20px; background: rgba(255,255,255,.05); border-radius: 12px; font-size: 1.2rem; }
.cd-item-combo { background: linear-gradient(135deg, rgba(215,168,92,.30), rgba(215,168,92,.08)); border: 1px solid var(--accent-gold); }
.cd-item-name { font-weight: 600; }
.cd-item-sub { color: var(--accent-gold); font-weight: 700; white-space: nowrap; }
.cd-summary { border-top: 2px solid rgba(215,168,92,.3); padding-top: 22px; }
.cd-total-row { display: flex; justify-content: space-between; font-size: 1.7rem; margin-bottom: 12px; }
.cd-total { font-weight: 800; color: var(--accent-gold); }
.cd-points-row { display: flex; justify-content: space-between; font-size: 1.2rem; color: #cbb682; }
.cd-points { font-weight: 700; color: var(--accent-gold); }
.cd-done .cd-check { width: 96px; height: 96px; line-height: 96px; margin: 0 auto 22px; border-radius: 50%; background: rgba(154,230,180,.15); color: #9ae6b4; font-size: 3.2rem; }
.cd-done h1 { font-size: 2.4rem; margin-bottom: 14px; }
.cd-done p { font-size: 1.35rem; }
.cd-done strong { color: var(--accent-gold); }
.cd-done-sub { color: #cbb682; margin-top: 10px; }

/* ===== Quản lý POS (quan-ly-pos.html) — tóm tắt trong ngày ===== */
.poshist-summary { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.poshist-stat { flex: 1; min-width: 130px; background: rgba(215,168,92,.10); border: 1px solid rgba(215,168,92,.3); border-radius: 12px; padding: 16px 12px; text-align: center; }
.phs-num { display: block; font-size: 1.45rem; font-weight: 800; color: var(--accent-gold); }
.phs-label { display: block; margin-top: 4px; font-size: .82rem; color: var(--text-muted); }
.phs-pts { color: #9ae6b4; font-weight: 700; }

/* HẠNG thành viên — calligraphy + hiệu ứng riêng, càng cao càng lung linh */
.tier-name {
  font-family: var(--font-script); font-size: 3rem; line-height: 1.1; letter-spacing: 0.5px;
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tier-vang {
  background-image: linear-gradient(100deg, #D7A85C 0%, #D7A85C 42%, #f5e6c0 50%, #D7A85C 58%, #D7A85C 100%);
  animation: tierShine 5s linear infinite;
}
.tier-bachkim {
  background-image: linear-gradient(100deg, #8a93a3, #dfe6ef, #ffffff, #c6cedb, #8a93a3);
  animation: tierShine 3s linear infinite;
  filter: drop-shadow(0 0 5px rgba(220,232,248,0.45));
}
.tier-kimcuong {
  background-image: linear-gradient(100deg, #74f0ff, #a98bff, #ff9ad6, #ffe08a, #74f0ff);
  animation: tierShine 2.2s linear infinite;
  filter: drop-shadow(0 0 9px rgba(150,220,255,0.75));
}
/* Signature — hạng cao nhất: chữ ĐEN ÁNH VÀNG sang trọng (kiểu signature bank card) */
.tier-signature {
  font-size: 2.6rem;
  background-image: linear-gradient(105deg, #0a0a0a 0%, #1a1712 33%, #9c7b24 44%, #f4cf52 49%, #fff4bf 51%, #f4cf52 53%, #9c7b24 57%, #1a1712 67%, #0a0a0a 100%);
  background-size: 250% auto;
  animation: tierShine 2.6s linear infinite;
  filter: drop-shadow(0 0 2px rgba(245,205,75,0.95)) drop-shadow(0 0 8px rgba(245,200,70,0.75)) drop-shadow(0 0 18px rgba(240,195,60,0.55));
}
@keyframes tierShine { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) { .tier-name { animation: none !important; } }

/* Thanh tiến độ lên hạng (EXP bar) */
.tier-progress { margin-top: 18px; }
.tier-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; margin-bottom: 7px; }
.tp-current { color: var(--text-light); font-weight: 700; }
.tp-target { color: var(--text-muted); }
.tier-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); }
.tier-bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent-gold); transition: width 0.9s cubic-bezier(.22, .61, .36, 1), background 0.5s ease; }
.tier-bar-fill.tier-vang { background: linear-gradient(90deg, #b8860b, #f3d27a, #fff2c8); }
.tier-bar-fill.tier-bachkim { background: linear-gradient(90deg, #8a93a3, #dfe6ef, #ffffff); box-shadow: 0 0 8px rgba(220, 232, 248, 0.45); }
.tier-bar-fill.tier-kimcuong { background: linear-gradient(90deg, #74f0ff, #a98bff, #ff9ad6, #ffe08a); box-shadow: 0 0 11px rgba(150, 220, 255, 0.6); }
.tier-bar-fill.tier-signature { background: linear-gradient(90deg, #0a0a0a, #4a3a10, #d4af37, #fff0b0, #d4af37, #4a3a10, #0a0a0a); box-shadow: 0 0 12px rgba(212, 175, 55, 0.7); }
.tier-progress-note { margin-top: 9px; font-size: 0.85rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .tier-bar-fill { transition: none; } }

@media (max-width: 640px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .member-card { padding: 28px 20px; }
  .member-stats { flex-direction: column; align-items: stretch; }
  .member-stat { max-width: none; }
  .tier-table-wrap { overflow: visible; border: 0; background: transparent; }
  .tier-table, .tier-table tbody, .tier-table tr, .tier-table th, .tier-table td { display: block; width: 100%; }
  .tier-table thead { display: none; }
  .tier-table tr { padding: 14px 15px; border: 1px solid rgba(215,168,92,.22); border-radius: 12px; background: rgba(255,255,255,.035); }
  .tier-table tr + tr { margin-top: 10px; }
  .tier-table th, .tier-table td { padding: 0; border: 0; }
  .tier-table td { margin-top: 9px; padding-left: 102px; position: relative; min-height: 1.4em; }
  .tier-table td::before { content: attr(data-label); position: absolute; left: 0; top: 0; width: 88px; color: var(--accent-gold); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  .tier-chip { min-width: 118px; }
}

/* -----------------------------------------------------------------
   GIỎ HÀNG — ngăn kéo (drawer) trượt từ phải
----------------------------------------------------------------- */
body.no-scroll { overflow: hidden; }
.cart-overlay { position: fixed; inset: 0; background: rgba(6,14,30,.55); z-index: 1200; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw;
  background: var(--bg-navy-deep); border-left: 1px solid rgba(215,168,92,.30);
  z-index: 1300; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s ease;
  box-shadow: -16px 0 40px rgba(0,0,0,.45);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid rgba(215,168,92,.22); }
.cart-drawer-head h3 { font-size: 1.3rem; }
.cart-close { background: none; border: none; color: var(--text-muted); font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.cart-close:hover { color: var(--accent-gold); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 48px 0; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cart-row-img { width: 52px; height: 52px; flex-shrink: 0; object-fit: cover; border-radius: 8px; border: 1px solid rgba(215,168,92,.25); background: rgba(255,255,255,.04); }
.cart-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.cart-row-name { font-size: .95rem; }
.cart-row-price { font-size: .85rem; color: var(--accent-gold); }
/* Breakdown SET QUÀ trong giỏ / thanh toán: header ở trên, mỗi vị 1 dòng */
.cart-set-lines { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
.cart-set-line { font-size: .82rem; color: var(--text-muted); line-height: 1.5; padding-left: 10px; position: relative; }
.cart-set-line::before { content: "·"; position: absolute; left: 2px; color: var(--accent-gold); }
.cart-set-box { color: var(--accent-gold); font-style: italic; }
.sum-set-title { display: block; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(215,168,92,.45); background: transparent; color: var(--text-light); cursor: pointer; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: rgba(215,168,92,.18); }
.qty-num { min-width: 20px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cart-remove:hover { color: #DA5524; }
.cart-foot { padding: 20px 24px; border-top: 1px solid rgba(215,168,92,.22); }
.cart-discount { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--accent-gold); font-size: .92rem; }
.cart-discount strong { font-size: .98rem; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 1.05rem; }
.cart-subtotal strong { color: var(--accent-gold); font-size: 1.2rem; }
.cart-checkout { width: 100%; }
@media (max-width: 420px) { .cart-drawer { width: 100%; } }

/* -----------------------------------------------------------------
   TÌM KIẾM — overlay dùng chung toàn site
----------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(6,14,30,.68);
  backdrop-filter: blur(5px);
}
.search-modal {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 26px);
  z-index: 1410;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 52px);
  max-height: calc(100dvh - var(--header-h) - 52px);
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,196,94,.32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12,22,49,.98), rgba(8,16,38,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.56);
  transition: opacity .22s ease, transform .22s ease;
}
.search-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(215,168,92,.22);
}
.search-head h2 {
  font-size: 1.35rem;
  color: var(--text-light);
}
.search-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(215,168,92,.32);
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}
.search-close:hover { color: var(--accent-gold-fresh); border-color: var(--accent-gold-fresh); }
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 22px 8px;
}
.search-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(215,168,92,.38);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--input-text);
  padding: 13px 18px;
  font: 500 .96rem var(--font-sans);
}
.search-form input::placeholder { color: var(--input-ph); }
.search-submit { padding: 12px 24px; }
.search-status {
  min-height: 22px;
  margin: 0;
  padding: 0 22px 12px;
  color: var(--text-muted);
  font-size: .9rem;
}
.search-results {
  overflow-y: auto;
  padding: 0 16px 18px;
}
.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(215,168,92,.18);
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  background: rgba(255,255,255,.035);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.search-result + .search-result { margin-top: 10px; }
.search-result:hover,
.search-result:focus {
  border-color: rgba(255,196,94,.55);
  background: rgba(255,196,94,.08);
  transform: translateY(-1px);
}
.search-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(215,168,92,.28);
  object-fit: cover;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  color: var(--accent-gold-fresh);
  font-weight: 800;
  font-size: .78rem;
}
.search-kind {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-gold-fresh);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.search-title {
  display: block;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.35;
}
.search-meta {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.45;
}
.search-empty {
  margin: 4px 6px 0;
  padding: 18px 16px;
  border: 1px dashed rgba(215,168,92,.30);
  border-radius: 8px;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 560px) {
  .search-modal {
    top: var(--header-h);
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 8px 8px;
  }
  .search-head { padding: 16px 18px 12px; }
  .search-form { grid-template-columns: 1fr; padding: 16px 18px 8px; }
  .search-submit { width: 100%; }
  .search-status { padding-left: 18px; padding-right: 18px; }
  .search-results { padding-left: 12px; padding-right: 12px; }
  .search-result { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .search-thumb { width: 50px; height: 50px; }
}

/* -----------------------------------------------------------------
   THANH TOÁN — trang đặt hàng (form + tóm tắt đơn + xác nhận/QR)
----------------------------------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.co-title { font-size: 1.25rem; margin: 6px 0 16px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(215,168,92,.30); border-radius: 12px; margin-bottom: 12px; cursor: pointer; background: rgba(8, 21, 43, 0.92); }
.pay-option input { accent-color: var(--accent-gold); width: 18px; height: 18px; flex-shrink: 0; }
.pay-option.disabled { opacity: .55; cursor: not-allowed; }
.pay-option.disabled input { cursor: not-allowed; }
.cod-note { display: block; margin-top: 3px; font-size: .82rem; font-style: italic; color: var(--accent-gold); opacity: .9; }
.pay-hint { margin: -4px 2px 4px; font-size: .85rem; line-height: 1.5; color: var(--text-muted, rgba(255,255,255,.7)); }
.co-submit { width: 100%; margin-top: 12px; }

/* Hoá đơn VAT */
.vat-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(215,168,92,.30); border-radius: 12px; cursor: pointer; color: var(--text-light); font-size: .95rem; background: rgba(8, 21, 43, 0.92); }
.vat-toggle input { accent-color: var(--accent-gold); width: 18px; height: 18px; flex-shrink: 0; }
.vat-fields { margin-top: 14px; padding: 18px 18px 4px; border: 1px solid rgba(215,168,92,.22); border-radius: 12px; background: rgba(255,255,255,.03); }

/* Form fields dùng chung cho trang Đặt hàng + Thành viên (label TRÊN, input full-width, bo tròn) */
.checkout-form .field, .auth-card .field { margin-bottom: 16px; }
.checkout-form label, .auth-card label { display: block; font-size: .85rem; margin-bottom: 7px; color: var(--text-light); }
.auth-card .rte-color {
  display: inline-flex;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}
.checkout-form input:not([type="radio"]):not([type="checkbox"]), .checkout-form textarea, .checkout-form select,
.auth-card input:not([type="radio"]):not([type="checkbox"]), .auth-card textarea, .auth-card select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--input-text);
  font-family: var(--font-sans); font-size: 0.95rem; outline: none;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
.checkout-form select, .auth-card select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D7A85C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 13px;
}
.checkout-form select:disabled, .auth-card select:disabled { opacity: .5; cursor: not-allowed; }
.checkout-form select option, .auth-card select option { background-color: #ffffff; color: #1a1a1a; }
.checkout-form select option:checked, .auth-card select option:checked { background-color: #f3e6cf; color: #1a1a1a; }
.checkout-form textarea, .auth-card textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.checkout-form input::placeholder, .checkout-form textarea::placeholder,
.auth-card input::placeholder, .auth-card textarea::placeholder { color: var(--input-ph); }
.checkout-form input:focus, .checkout-form textarea:focus,
.auth-card input:focus, .auth-card textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212,175,106,0.4); }

.checkout-summary { background: rgba(255,255,255,.04); border: 1px solid rgba(215,168,92,.28); border-radius: 18px; padding: 26px 24px; position: sticky; top: 100px; }
.checkout-summary h3 { font-size: 1.2rem; margin-bottom: 16px; }
.summary-items { margin-bottom: 16px; }
.sum-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .92rem; }
.sum-img { width: 42px; height: 42px; flex-shrink: 0; object-fit: cover; border-radius: 6px; border: 1px solid rgba(215,168,92,.25); background: rgba(255,255,255,.04); }
.sum-name { flex: 1 1 auto; min-width: 0; }
.sum-price { color: var(--accent-gold); white-space: nowrap; margin-left: auto; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); }
.sum-total { border-top: 1px solid rgba(215,168,92,.25); margin-top: 6px; padding-top: 14px; color: var(--text-light); font-size: 1.05rem; }
.sum-total strong { color: var(--accent-gold); font-size: 1.25rem; }
.sum-discount span:last-child { color: var(--accent-gold); }

/* Ô nhập mã giảm giá */
.coupon-box { margin: 14px 0 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.coupon-label { display: block; font-size: .85rem; margin-bottom: 8px; color: var(--text-light); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); color: var(--input-text); font-family: var(--font-sans); font-size: .92rem; text-transform: uppercase; outline: none; box-sizing: border-box; }
.coupon-row input::placeholder { color: var(--input-ph); text-transform: none; }
.coupon-row input:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212,175,106,.4); }
.btn-coupon { flex-shrink: 0; padding: 0 18px; border-radius: 12px; border: 1px solid var(--accent-gold); background: rgba(215,168,92,.16); color: var(--accent-gold); font-family: var(--font-sans); font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.btn-coupon:hover { background: var(--accent-gold); color: var(--bg-navy); }
.coupon-msg { margin-top: 8px; font-size: .82rem; line-height: 1.4; min-height: 1px; }

/* Cảnh báo: Yến chưng tươi & Sữa chua yến CHỈ giao nội thành TP.HCM */
.fresh-ship-warn { margin: 4px 0 14px; padding: 12px 16px; border: 1px solid var(--accent-orange); border-radius: var(--radius-md); background: rgba(218, 85, 36, 0.14); color: #ffd9c7; font-size: 0.9rem; line-height: 1.55; }
.fresh-ship-warn strong { color: var(--accent-orange-bright); }
.co-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* Banner thương hiệu (trang chủ) — ảnh banner logo + sản phẩm, bấm sang cửa hàng */
.brand-banner-sec { padding: 8px 0 46px; }
.brand-banner { display: block; max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.brand-banner img { width: 100%; height: auto; display: block; }
.brand-banner:hover { transform: translateY(-4px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }

.checkout-empty { text-align: center; padding: 60px 0; }
.checkout-empty p { color: var(--text-muted); margin-bottom: 20px; }

.checkout-done { max-width: 640px; margin: 0 auto; }
.done-card { background: rgba(255,255,255,.04); border: 1px solid rgba(215,168,92,.28); border-radius: 18px; padding: 40px 32px; text-align: center; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: rgba(215,168,92,.18); border: 2px solid var(--accent-gold); color: var(--accent-gold); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.done-card > p { color: var(--text-muted); margin-bottom: 8px; }
.done-points { margin: 6px 0 4px; color: var(--accent-gold); font-weight: 600; }
.done-bank { margin: 24px 0; padding: 20px; border: 1px dashed rgba(215,168,92,.4); border-radius: 14px; }
.done-bank h3 { font-size: 1.1rem; margin-bottom: 14px; }
.bank-qr { display: block; width: 220px; max-width: 80%; border-radius: 10px; margin: 0 auto 14px; background: #fff; padding: 6px; }
.bank-info p { margin: 4px 0; color: var(--text-light); }
.bank-info .bank-todo { color: var(--text-muted); font-size: .85rem; }
.bank-hint { font-size: .85rem; margin-top: 12px; color: var(--text-muted); }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { position: static; } }

/* -----------------------------------------------------------------
   2. NÚT (BUTTONS) — pill + glow gold
----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-pill { padding: 14px 32px; border-radius: var(--radius-pill); }

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: var(--bg-navy);
  box-shadow: 0 8px 22px rgba(212, 175, 106, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--glow-gold); }

.btn-outline {
  background: rgba(215, 168, 92, 0.10);
  color: var(--accent-gold-bright);
  border: 1.5px solid var(--accent-gold);
  padding: 11px 24px;
  font-size: 0.85rem;
  width: 100%;
}
.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-navy);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-danger {
  background: #c0392b; color: #fff; border: none;
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.32);
}
.btn-danger:hover { background: #a93226; transform: translateY(-2px); }

/* Vùng nguy hiểm (xóa tài khoản) */
.danger-zone {
  width: 100%; max-width: 760px; box-sizing: border-box;
  margin-top: 0; border: 1px solid rgba(218, 85, 36, 0.42); border-radius: 14px;
  background: rgba(218, 85, 36, 0.06); overflow: hidden;
}
.danger-summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  color: #f0997b; font-weight: 700;
}
.danger-summary::-webkit-details-marker { display: none; }
.danger-summary::after { content: "Mở"; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.danger-zone[open] .danger-summary { border-bottom: 1px solid rgba(218, 85, 36, 0.22); }
.danger-zone[open] .danger-summary::after { content: "Đóng"; }
.danger-body { padding: 18px; }
.danger-title { color: #f0997b; }
.danger-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

/* -----------------------------------------------------------------
   3. PLACEHOLDER ẢNH (viền nét đứt + nhãn tiếng Việt) — bản tối
----------------------------------------------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #163259, #163259 14px, #1e3a66 14px, #1e3a66 28px);
  border: 2px dashed var(--accent-gold);
  color: var(--accent-gold-bright);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}
.placeholder span { padding: 10px; opacity: 0.9; }

/* Khung ảnh thật (thay cho .placeholder): ảnh phủ kín, giữ tỉ lệ của khung */
.has-img { overflow: hidden; position: relative; }
.has-img > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* -----------------------------------------------------------------
   4. HEADER / NAV
----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 25, 57, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  flex-shrink: 0;          /* KHÔNG để header chật bóp méo logo */
}
/* Ảnh logo thật (khi bạn upload) — cao 66px, rộng tự động.
   flex-shrink:0 + object-fit:contain → luôn giữ đúng tỉ lệ, không bị bẹp. */
.logo-img { height: 66px; width: auto; display: block; flex-shrink: 0; object-fit: contain; }
/* Ô giữ chỗ logo — xoá khi đã có ảnh thật */
.logo-ph {
  height: 54px;
  padding: 0 20px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--accent-gold);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--accent-gold-bright);
  white-space: nowrap;
}
.logo-mark { color: var(--accent-gold); font-size: 1.2rem; }

.main-nav ul { display: flex; gap: 22px; }
.main-nav .nav-item { position: relative; }
.main-nav .mobile-only-nav { display: none; }
.main-nav .nav-parent-row { display: flex; align-items: center; }
.main-nav .nav-sub-toggle { display: none; }
.main-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;          /* mỗi mục menu LUÔN 1 dòng, không tách giữa từ */
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav .nav-sub {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 120;
  display: grid;
  min-width: 245px;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 22, 49, 0.98), rgba(8, 16, 38, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.main-nav .nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.main-nav .has-sub:hover .nav-sub,
.main-nav .has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.main-nav .nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: normal;
}
.main-nav .nav-sub a::after { display: none; }
.main-nav .nav-sub a:hover,
.main-nav .nav-sub a:focus {
  color: var(--accent-gold-fresh);
  background: rgba(255, 196, 94, 0.10);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}
.icon-btn:hover { background: rgba(212, 175, 106, 0.18); color: var(--accent-gold); }

/* Nút TÀI KHOẢN: dạng viên thuốc icon + tên, tách khỏi cụm icon tròn */
.header-actions .account-btn {
  display: inline-flex; align-items: center; gap: 7px;
  width: auto; height: 38px; padding: 0 14px; border-radius: 19px;
  border: 1px solid rgba(215, 168, 92, 0.35);
}
.header-actions .account-btn:hover { background: rgba(212, 175, 106, 0.16); border-color: var(--accent-gold); color: var(--accent-gold); }
.account-name { font-size: 0.88rem; color: var(--accent-gold); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name:empty { display: none; }
.header-divider { width: 1px; height: 24px; background: rgba(215, 168, 92, 0.28); margin: 0 2px; }
@media (max-width: 600px) {
  /* Header hẹp (nhất là view admin nhiều icon): thu gọn logo + icon + khoảng
     cách để mọi thứ vừa khít, logo giữ đúng tỉ lệ (không bị bóp méo). */
  .logo-img { height: 46px; }
  .header-actions { gap: 3px; }
  .icon-btn { width: 36px; height: 36px; }
  .header-actions .account-btn { width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; }
  .header-actions .admin-entry { width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  .header-actions .admin-entry svg { width: 20px; height: 20px; }
  .account-name { display: none; }
  .header-divider { display: none; }
}

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: badgeBump 0.4s ease; }
@keyframes badgeBump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------
   5. HERO
----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 70px 0 120px;
  overflow: hidden;
  min-height: clamp(540px, 62vh, 680px);
  background: var(--bg-navy);
}
/* SLIDESHOW ảnh nền hero — mỗi .hero-slide = lớp phủ navy (đậm-trái → trong-phải,
   fade đáy) + 1 ảnh (đặt qua biến --img ở inline style). Crossfade bằng opacity. */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg,
      var(--bg-navy) 0%,
      rgba(16, 25, 57, 0.95) 30%,
      rgba(16, 25, 57, 0.66) 48%,
      rgba(16, 25, 57, 0.22) 70%,
      rgba(16, 25, 57, 0.05) 100%),
    linear-gradient(180deg, transparent 70%, rgba(16, 25, 57, 0.88) 100%),
    var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Blob nền vòng cung — quầng sáng navy + gold */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; display: none; } /* ẩn — đã có ảnh nền hero */
.hero-blob-sage {
  width: 620px; height: 620px;
  background: radial-gradient(circle at 35% 35%, #244a78, #143056 70%);
  top: -120px; right: -120px;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  opacity: 0.85;
}
.hero-blob-blush {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 106, 0.35), transparent 65%);
  bottom: 20px; right: 150px;
  opacity: 0.9;
  filter: blur(6px);
}

/* Doodle + sparkle */
.doodle { position: absolute; z-index: 2; opacity: 0.85; }
.doodle-1 { width: 120px; top: 120px; left: 44%; }
.sparkle { position: absolute; z-index: 3; animation: twinkle 2.6s ease-in-out infinite; }
.sparkle-1 { width: 34px; top: 90px; left: 30px; }
.sparkle-2 { width: 28px; bottom: 30px; left: -10px; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 0.6; } 50% { transform: scale(1.25) rotate(20deg); opacity: 1; } }

/* Nội dung hero */
.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);   /* serif sang — UVN Văn Chương */
  font-style: italic;
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accent-gold-bright);
  background: rgba(212, 175, 106, 0.14);
  border: 1px solid var(--line);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text-light);
}
.accent-text {
  font-family: var(--font-script);   /* dòng nhấn — chữ ký UVN Kiều */
  font-style: normal;
  font-weight: 400;
  font-size: 1.18em;                 /* script hiện nhỏ hơn nên phóng to bù lại */
  color: var(--accent-gold);
  text-shadow: 0 2px 24px rgba(212, 175, 106, 0.38);
}
.hero-sub {
  margin: 26px 0 32px;
  max-width: 440px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-cta-row { display: flex; align-items: center; gap: 28px; }

/* Huy hiệu chữ chạy tròn */
.rotating-badge { position: relative; width: 96px; height: 96px; }
.rotating-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.rotating-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  fill: var(--accent-gold);
}
.badge-star {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cột phải hero */
.hero-visual { position: relative; align-self: start; min-height: 120px; } /* neo badge số KH lên góc trên (ảnh nền lo phần hình) */
.hero-product {
  width: 100%;
  aspect-ratio: 5 / 6;
  max-width: 460px;
  margin-left: auto;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, #173458, #08182f);
  position: relative;
  z-index: 2;
}
.tilt { transform: rotate(-4deg); transition: transform 0.5s ease; }
.tilt:hover { transform: rotate(0deg) scale(1.02); }

.customers-cluster {
  position: absolute;
  top: -60px; right: -73px;   /* -73px: đẩy phải để TÂM pill trùng tâm cụm icon (kính lúp + giỏ hàng) */
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, #F7DFA8 0%, #E4B85F 56%, #BC842D 100%);
  border: 1px solid rgba(255, 236, 184, 0.78);
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-pill);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(8, 16, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}
.customers-cluster-mobile { display: none; }
/* Màn hẹp (≤1340px) không đủ lề phải để canh giữa → giữ pill sát phải, tránh tràn/cắt */
@media (max-width: 1340px) {
  .customers-cluster { right: 0; }
}
.avatars { display: flex; }
.avatar-mini {
  width: 40px; height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #F8E7B7 0%, #D5A454 32%, #233D65 66%, #081026 100%);
  border: 2px solid #F7DE9D;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--white);
  margin-left: -12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 18px rgba(8, 16, 38, 0.34);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.avatar-mini:first-child { margin-left: 0; }
.avatar-mini.swap { opacity: 0; transform: translateY(-8px) scale(0.82); }
.customers-count strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: block;
  line-height: 1;
  color: #081026;
  text-shadow: 0 1px 0 rgba(255, 238, 192, 0.44);
}
.customers-count span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #173458;
}

/* Ruy băng lượn sóng */
.ribbon-wrap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; filter: drop-shadow(0 10px 18px rgba(181, 138, 60, 0.35)); }
.ribbon { width: 100%; height: 120px; display: block; }
.ribbon-text {
  font-family: var(--font-serif);   /* serif sang — UVN Văn Chương */
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.6px;
  fill: var(--bg-navy);
}

/* -----------------------------------------------------------------
   6. THANH CAM KẾT / TRUST BAR
----------------------------------------------------------------- */
.trust-bar { padding: 30px 0 70px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface-1) 58%, #C28A3B 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 22px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease;
}
/* Mép trên: vạch sáng gold nở ra khi hover */
.trust-card::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 0; height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-gold-bright), var(--accent-gold), transparent);
  box-shadow: 0 0 12px rgba(212, 175, 106, 0.6);
  border-radius: 0 0 4px 4px;
  transition: width .5s ease;
  z-index: 3;
}
.trust-card:hover::before { width: 82%; }
/* Vệt sáng quét chéo khi hover — ánh NGỌC TRAI sáng (như sáng lướt trên thanh vàng),
   nổi rõ trên nền gold thay vì gold-nhạt-trên-gold bị chìm. */
.trust-card::after {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 253, 246, 0.55) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .85s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
  z-index: 1;
}
.trust-card:hover::after { transform: translateX(130%); }
.trust-card > * { position: relative; z-index: 2; }
.trust-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-gold), 0 26px 52px rgba(0, 0, 0, 0.45);
  border-color: var(--accent-gold);
}

.trust-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(236, 217, 166, 0.40), rgba(212, 175, 106, 0.12) 72%);
  color: var(--accent-gold-bright);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.35), 0 8px 20px rgba(0, 0, 0, 0.30);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
/* Hào quang dịu "thở" nhẹ liên tục — tông NAVY thương hiệu để nổi trên nền gold */
.trust-icon::before {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 35, 68, 0.30), transparent 70%);
  z-index: -1;
  animation: trustBreath 3.8s ease-in-out infinite;
}
/* Vòng nhịp lan toả khi hover — viền NAVY đậm, ripple rõ hẳn trên nền gold */
.trust-icon::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(14, 35, 68, 0.55);
  opacity: 0;
}
.trust-card:nth-child(2) .trust-icon::before { animation-delay: .5s; }
.trust-card:nth-child(3) .trust-icon::before { animation-delay: 1s; }
.trust-card:nth-child(4) .trust-icon::before { animation-delay: 1.5s; }
.trust-card:hover .trust-icon {
  transform: translateY(-3px) scale(1.1);
  box-shadow: inset 0 0 0 1.5px rgba(14, 35, 68, 0.45), 0 8px 22px rgba(14, 35, 68, 0.35);
}
.trust-card:hover .trust-icon::after { animation: trustRing 1.7s ease-out infinite; }
.trust-icon svg { width: 30px; height: 30px; transition: transform .45s ease; }
.trust-card:hover .trust-icon svg { transform: scale(1.08) rotate(-3deg); }
@keyframes trustBreath {
  0%, 100% { opacity: .30; transform: scale(.95); }
  50%      { opacity: .70; transform: scale(1.10); }
}
@keyframes trustRing {
  0%   { opacity: .7; transform: scale(.9); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}
.trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 7px;
  color: var(--accent-gold-bright);
}
.trust-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* -----------------------------------------------------------------
   7. "5 KHÔNG" — LỜI CAM KẾT
----------------------------------------------------------------- */
.commitment { padding: 80px 0; }
.commitment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.commitment-intro { margin: 16px 0 28px; color: var(--text-muted); max-width: 460px; }
.commitment-intro strong { color: var(--accent-gold); }

.check-list { margin-bottom: 34px; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text-light);
}
.check-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-navy);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 106, 0.4);
}

/* Hình vòm (arch) */
.commitment-visual { position: relative; display: flex; justify-content: center; }
.arch-image {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 28px 28px;  /* vòm trên */
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.arch-blob {
  position: absolute;
  width: 110%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #264e7e, #143056 70%);
  border-radius: 50% 50% 46% 54% / 55% 55% 45% 45%;
  top: 28px; left: -5%;
  z-index: 1;
  opacity: 0.8;
}

/* -----------------------------------------------------------------
   8. SẢN PHẨM NỔI BẬT
----------------------------------------------------------------- */
.products { padding: 80px 0; background: linear-gradient(180deg, transparent, rgba(29, 63, 108, 0.30)); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
/* Trang Cửa hàng: 3 sản phẩm/hàng (ô to hơn) trên desktop */
@media (min-width: 993px) {
  [data-page="shop"] .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  font-family: var(--font-sans);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }
.product-img { aspect-ratio: 1 / 1; border-radius: 0; border-left: none; border-right: none; border-top: none; }
/* Thẻ Set Quà dùng ảnh POSTER dọc (4:5) → hiện trọn poster (tiêu đề + hũ + nguyên liệu), không bị cắt như ô vuông */
.product-img-set { aspect-ratio: 4 / 5; }
.product-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 244, 215, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(255, 229, 174, 0.16), rgba(174, 113, 35, 0.07));
  border-top: 1px solid rgba(136, 82, 15, 0.18);
}
.product-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: none;
  color: #FFF4DA;
  background:
    radial-gradient(130% 100% at 18% 0%, rgba(255, 246, 215, 0.24), rgba(255, 246, 215, 0) 58%),
    linear-gradient(135deg, #8A2E10 0%, #C3471F 36%, #1A5C9F 74%, #0F2F68 100%);
  border: 1px solid rgba(255, 222, 171, 0.42);
  box-shadow: 0 5px 14px rgba(88, 45, 31, 0.22), inset 0 1px 0 rgba(255, 239, 194, 0.24);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  white-space: nowrap;
}
.product-tag.cold {
  color: #EAF7FF;
  background:
    radial-gradient(130% 100% at 20% 0%, rgba(230, 248, 255, 0.38), rgba(230, 248, 255, 0) 58%),
    linear-gradient(135deg, #2C87BD 0%, #155D9D 54%, #0A2E63 100%);
  border-color: rgba(205, 236, 255, 0.58);
  box-shadow: 0 5px 14px rgba(12, 57, 112, 0.24), inset 0 1px 0 rgba(235, 249, 255, 0.30);
}
/* Tag gold dùng cho phân hạng cao cấp/thượng hạng và Quà Biếu, khác với tag dùng nóng/lạnh. */
.product-tag.gold {
  color: #5A3608;
  background:
    radial-gradient(120% 100% at 24% 0%, rgba(255, 248, 218, 0.95), rgba(255, 248, 218, 0) 54%),
    linear-gradient(135deg, #F4E3B0 0%, #D8B76B 52%, #BE8E35 100%);
  border: 1px solid rgba(126, 82, 14, 0.34);
  box-shadow: 0 5px 13px rgba(116, 76, 16, 0.24), inset 0 1px 0 rgba(255, 250, 224, 0.70);
  text-shadow: 0 1px 0 rgba(255, 250, 224, 0.50);
}
.product-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 2.8em;
  color: var(--text-light);
  text-shadow: 0 1px 0 rgba(246, 232, 207, 0.24);
}
.product-price {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 18px;
  margin-top: auto;
  text-shadow: 0 1px 0 rgba(246, 232, 207, 0.20);
}
.product-price.contact { font-size: 1.1rem; font-style: italic; }

/* Bộ chọn dung tích (100/200/300ml) — đẩy cụm size+giá+nút xuống đáy thẻ */
.size-select { display: flex; gap: 8px; margin: 0 0 14px; margin-top: auto; }
.size-select + .product-price { margin-top: 0; }
.size-opt {
  flex: 1; padding: 7px 4px; border-radius: var(--radius-pill);
  border: 1px solid rgba(7, 24, 47, 0.30);
  background: rgba(246, 232, 207, 0.16);
  color: #101939; font-family: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.size-opt:hover {
  background: rgba(250, 238, 214, 0.28);
  border-color: #07182F;
  color: #07182F;
  box-shadow: 0 4px 12px rgba(7, 24, 47, 0.16);
}
.size-opt.is-active {
  background: linear-gradient(135deg, #081026, #101939 58%, #172553);
  border-color: #E2C88E;
  color: #FFF3D4;
  box-shadow: 0 6px 16px rgba(7, 24, 47, 0.38), inset 0 1px 0 rgba(255, 239, 194, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
.size-note { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 12px; }
.set-card-composition { line-height: 1.55; }

.product-card .btn-outline {
  background: rgba(7, 24, 47, 0.06);
  color: #07182F;
  border-color: rgba(7, 24, 47, 0.62);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 241, 213, 0.22);
}
.product-card .btn-outline:hover {
  background: linear-gradient(135deg, #081026, #101939);
  color: #FFF3D4;
  border-color: #E2C88E;
  box-shadow: 0 8px 20px rgba(7, 24, 47, 0.34);
}

/* Danh mục cửa hàng (Yến Chưng Tươi / Sữa Chua Yến / Yến Khô / Set Quà Tặng) */
.shop-cat { padding: 8px 0 38px; scroll-margin-top: 24px; }
.shop-cat + .shop-cat { border-top: 1px solid var(--line); padding-top: 38px; }
.promotion-notice {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid rgba(215, 168, 92, 0.55);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(215, 168, 92, 0.14), rgba(215, 168, 92, 0.05));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.promotion-notice h2 {
  margin: 0 0 10px;
  color: var(--accent-gold-fresh);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: 0.04em;
}
.promotion-notice p {
  margin: 4px 0 0;
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.6;
}
.promotion-notice p:last-child {
  margin-top: 10px;
  color: var(--text-muted);
}
.shop-cat-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent-gold-fresh); margin: 0 0 6px; }
.shop-cat-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 24px; max-width: 860px; }
.shop-cat-promo {
  display: inline-block; margin: -12px 0 24px; padding: 9px 16px;
  background: rgba(215, 168, 92, 0.10); border: 1px solid var(--line);
  border-radius: var(--radius-pill); color: var(--text-light);
  font-size: 0.9rem; line-height: 1.4;
}
.shop-cat-promo strong { color: var(--accent-gold); }
.shop-cat-promo a { color: var(--accent-gold-fresh); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Bố cục cửa hàng: danh mục con nằm trong menu chính; nội dung shop hiển thị một cột. */
.shop-layout { display: block; }
.shop-nav, .shop-main { min-width: 0; }
.shop-nav { position: sticky; top: calc(var(--header-h) + 18px); }
.shop-nav-title { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px 16px; }
.shop-nav nav { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.shop-nav-link { padding: 11px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-light); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.shop-nav-link:hover { color: var(--accent-gold-fresh); }
.shop-nav-link.active { color: var(--accent-gold-fresh); border-left-color: var(--accent-gold-fresh); background: rgba(255,196,94,0.10); }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shop-nav { position: static; margin-bottom: 24px; }
  .shop-nav-title { display: none; }
  .shop-nav nav { flex-direction: row; gap: 8px; border-left: none; overflow-x: auto; padding-bottom: 4px; }
  .shop-nav-link { flex: 0 0 auto; margin-left: 0; border-left: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
  .shop-nav-link.active { border-color: var(--accent-gold-fresh); background: rgba(255,196,94,0.14); }
}

/* Carousel "Sản Phẩm Tiêu Biểu" (trang chủ) — 2 hàng × 4 thẻ, MỖI hàng có nút riêng + tự xoay 8s */
.featured-carousel { display: flex; flex-direction: column; gap: 48px; }
.feat-row-title { text-align: center; font-family: var(--font-script); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.15; color: var(--accent-gold-fresh); margin: 0 0 22px; letter-spacing: .5px; }
.feat-row-sub { text-align: center; color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; max-width: 600px; margin: -12px auto 22px; }
.feat-rowinner { display: flex; align-items: center; gap: 14px; }
.feat-rowinner .feat-viewport { flex: 1; min-width: 0; }
/* padding dọc + margin âm bù lại: chừa chỗ cho hover nâng thẻ (-8px) khỏi bị cắt mép trên,
   vẫn cắt ngang để giấu thẻ ngoài khung khi carousel xoay. */
.feat-viewport { overflow: hidden; padding: 14px 0; margin: -14px 0; }
.feat-track { display: flex; gap: 20px; will-change: transform; }
.feat-track > .product-card { flex: 0 0 calc((100% - 60px) / 4); }
.feat-btn { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-1); color: var(--accent-gold); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: none; }
.feat-btn:hover,
.feat-btn:active,
.feat-btn:focus { background: var(--surface-1); color: var(--accent-gold); border-color: var(--line); transform: none; }
@media (max-width: 900px) {
  .feat-track > .product-card { flex-basis: calc((100% - 20px) / 2); }   /* 2 thẻ */
  .feat-rowinner { gap: 8px; }
  .feat-btn { width: 38px; height: 38px; font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .feat-track > .product-card { flex-basis: 100%; }   /* 1 thẻ */
}

/* Thanh sắp xếp (trang Cửa hàng) */
.shop-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 30px; }
.shop-toolbar label { color: var(--text-muted); font-size: 0.92rem; letter-spacing: 0.3px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--accent-gold); border-bottom: 2px solid var(--accent-gold);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.shop-toolbar select {
  appearance: none; -webkit-appearance: none;
  background: var(--input-bg); color: var(--input-text);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 11px 42px 11px 20px; font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease;
}
.shop-toolbar select:hover, .shop-toolbar select:focus {
  border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(215, 168, 92, 0.15); outline: none;
}
.shop-toolbar select option { background: var(--input-bg); color: var(--input-text); }

/* Set quà: hiện TRỌN ảnh banner (không cắt) — khung khớp đúng tỉ lệ ảnh (1884×834 → 1300×575) */
.giftset-image.has-img { aspect-ratio: 1300 / 575; }

/* -----------------------------------------------------------------
   9. SET QUÀ BIẾU
----------------------------------------------------------------- */
.giftset { padding: 80px 0; }
.giftset-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1.28fr;   /* ảnh set quà to hơn, cột thông tin nhỏ lại */
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px;
  overflow: hidden;
}
.giftset-blob {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.30), transparent 65%);
  border-radius: 50%;
  top: -120px; left: -100px;
}
.giftset-text { position: relative; z-index: 2; }
.giftset-text p { margin: 14px 0 24px; color: var(--text-muted); max-width: 400px; font-size: 0.95rem; }
.giftset-text .btn-gold,
.newsletter-form .btn-gold,
.contact-form .btn-gold,
.pos-cart-card .btn-gold {   /* nút pill trên nền thẻ gold: nền navy + chữ kem để không chìm */
  background: linear-gradient(135deg, #07182F, #101939);
  color: #FFF4DA;
  border: 1px solid rgba(7, 24, 47, 0.42);
  box-shadow: 0 10px 24px rgba(7, 24, 47, 0.28);
}
.giftset-text .btn-gold:hover,
.newsletter-form .btn-gold:hover,
.contact-form .btn-gold:hover,
.pos-cart-card .btn-gold:hover {
  color: #07182F;
  background: linear-gradient(135deg, #FFE2A7, #D7A85C);
  border-color: rgba(7, 24, 47, 0.30);
  box-shadow: 0 12px 28px rgba(7, 24, 47, 0.24);
}
.giftset-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;   /* ngang — hợp ảnh banner set quà */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, #173458, #091a34);
}

/* -----------------------------------------------------------------
   10. CẢM NHẬN KHÁCH HÀNG
----------------------------------------------------------------- */
.reviews { padding: 80px 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; transition: opacity 0.45s ease; }
.review-grid.swapping { opacity: 0; }
.review-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--accent-gold); }
.stars { color: var(--accent-gold); letter-spacing: 2px; margin-bottom: 14px; }
.review-quote { color: var(--text-light); font-style: italic; margin-bottom: 22px; line-height: 1.7; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.placeholder-avatar {
  background: linear-gradient(135deg, var(--soft-sage), var(--accent-gold));
  color: var(--white);
}
.reviewer strong { display: block; font-size: 0.95rem; color: var(--accent-gold-bright); }
.reviewer span { font-size: 0.8rem; color: var(--text-muted); }

/* -----------------------------------------------------------------
   11. FAQ (accordion)
----------------------------------------------------------------- */
.faq { padding: 80px 0; background: rgba(11, 30, 59, 0.55); }
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
  transition: color 0.25s ease;
}
.faq-q:hover { color: var(--accent-gold); }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(212, 175, 106, 0.16);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent-gold); color: var(--bg-navy); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 26px 24px; color: var(--text-muted); }

/* -----------------------------------------------------------------
   12. CHỨNG NHẬN
----------------------------------------------------------------- */
.certs { padding: 70px 0; }
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.cert-logo {
  width: 160px; height: 92px;
  border-radius: var(--radius-md);
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}
.cert-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); }
.placeholder-cert {
  border: 2px dashed var(--accent-gold);
  background: var(--surface-1);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--accent-gold-bright);
  letter-spacing: 1px;
}

/* -----------------------------------------------------------------
   12b. TRANG VỀ CHÚNG TÔI — ý nghĩa tên, quy trình 4 bước, thẻ chứng nhận
----------------------------------------------------------------- */
/* Ý nghĩa tên "Tuệ An" */
.meaning-copy {
  max-width: 900px;
  margin: -8px auto 34px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.meaning-copy p + p { margin-top: 18px; }
.meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto; }
.meaning-card {
  background: linear-gradient(160deg, var(--surface-1), var(--bg-navy-alt));
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 34px 30px; text-align: center; box-shadow: var(--shadow-card);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.meaning-card:hover { transform: translateY(-6px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }
.meaning-char {
  display: inline-block; font-family: var(--font-serif);
  font-size: 3.4rem; line-height: 1; color: var(--accent-gold-bright); margin-bottom: 14px;
}
.meaning-card h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-light); margin-bottom: 10px; }
.meaning-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.meaning-quote {
  text-align: center; max-width: 760px; margin: 36px auto 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.3rem;
  color: var(--accent-gold-bright); line-height: 1.5;
}

.about-info-grid,
.dosage-grid,
.price-policy-grid,
.compare-grid {
  display: grid;
  gap: 24px;
}
.about-info-grid,
.dosage-grid { grid-template-columns: repeat(4, 1fr); }
.price-policy-grid,
.compare-grid { grid-template-columns: repeat(2, 1fr); }
.about-info-card,
.dosage-card,
.price-policy-card,
.compare-card,
.eastern-note {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface-1) 58%, #C28A3B 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.about-info-card,
.dosage-card,
.price-policy-card,
.compare-card { padding: 28px 24px; }
.price-policy-card { display: flex; flex-direction: column; }
.about-info-card h3,
.dosage-card h3,
.price-policy-card h3,
.compare-card h3,
.eastern-note h3 {
  font-family: var(--font-serif);
  color: var(--text-light);
  line-height: 1.25;
}
.about-info-card h3,
.price-policy-card h3 { font-size: 1.22rem; margin: 10px 0 12px; }
.dosage-card h3 { font-size: 1.08rem; margin: 10px 0 12px; }
.compare-card h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.about-info-card p,
.dosage-card p,
.price-policy-card p,
.compare-card p,
.eastern-note p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}
.about-info-card p + p,
.dosage-card p + p,
.price-policy-card p + p,
.compare-card p + p,
.eastern-note p + p { margin-top: 10px; }
.about-info-badge,
.compare-label {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
}
.about-info-badge {
  padding: 6px 12px;
  color: #FFF4DA;
  background: #07182F;
}
.nutrition-panel {
  max-width: 980px;
  margin: 0 auto 30px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 196, 94, 0.24);
  border-radius: var(--radius-md);
  background: rgba(8, 16, 38, 0.36);
}
.nutrition-panel p,
.about-note {
  color: var(--text-muted);
  line-height: 1.78;
}
.nutrition-panel p + p { margin-top: 14px; }
.dosage-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #FFF4DA;
  background: #07182F;
  font-family: var(--font-serif);
  font-weight: 700;
}
.about-note {
  max-width: 900px;
  margin: 26px auto 0;
  font-size: 0.92rem;
  text-align: center;
}
.price-policy-card .btn { margin-top: auto; }
.price-policy-card .btn-outline:hover {
  background: linear-gradient(135deg, #081026, #101939);
  color: #FFF3D4;
  border-color: #E2C88E;
  box-shadow: 0 8px 20px rgba(7, 24, 47, 0.34);
}
.compare-label {
  padding: 7px 14px;
  color: #FFF4DA;
  background: #07182F;
}
.compare-label.warn { background: #7A2C16; }
.compare-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-style: italic;
}
.eastern-note {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 30px 32px;
}

/* Quy trình 4 bước */
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.process-step {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.process-step:hover { transform: translateY(-8px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }
.process-thumb { position: relative; aspect-ratio: 4 / 3; }
.process-num {
  position: absolute; left: 14px; bottom: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  /* Gold gán cứng: trong .process-step các biến --accent-gold* bị trả về navy (nhóm thẻ nền gold) */
  color: #07182F; background: linear-gradient(135deg, #EFD3A0, #D7A85C);
  border-radius: 50%; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.process-step h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--accent-gold-bright); margin: 20px 20px 8px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0 20px 22px; }

/* Chứng nhận — thẻ thật (ISO, VSATTP) */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.cert-grid + .cert-grid { margin-top: 26px; }
.cert-card {
  background: linear-gradient(160deg, var(--surface-1), var(--bg-navy-alt));
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 32px 28px; text-align: center; box-shadow: var(--shadow-card);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }
.cert-badge {
  display: inline-block; font-family: var(--font-serif); font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.5px; color: var(--accent-gold-bright);
  padding: 8px 22px; border: 1px solid var(--accent-gold); border-radius: var(--radius-pill); margin-bottom: 16px;
}
.cert-card h3 { font-size: 1.02rem; color: var(--text-light); margin-bottom: 8px; }
.cert-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.cert-grid-showroom .cert-card { text-align: left; }
.cert-grid-showroom .cert-badge { font-size: 1rem; }

/* Trang tài liệu: Chính sách / Hỗ trợ khách hàng */
.doc-section { padding: 50px 0; scroll-margin-top: 100px; }   /* neo mục xuống dưới header dính */
.doc-section + .doc-section { border-top: 1px solid var(--line); }
.doc-body { max-width: 820px; margin: 0 auto; }
.doc-body h2 { margin-bottom: 18px; }
.doc-body p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.doc-body strong { color: var(--text-light); }
.doc-body a { color: var(--accent-gold); }
.doc-body a:hover { color: var(--accent-gold-bright); }
.doc-body ul { list-style: none; display: grid; gap: 12px; margin: 6px 0 18px; }
.doc-body ul li { position: relative; padding-left: 26px; color: var(--text-muted); line-height: 1.65; }
.doc-body ul li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--accent-gold); font-weight: 700; }

@media (max-width: 900px) {
  .about-info-grid, .dosage-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .meaning-grid, .cert-grid { grid-template-columns: 1fr; }
  .price-policy-grid, .compare-grid { grid-template-columns: 1fr; }
  .meaning-quote { font-size: 1.12rem; }
}
@media (max-width: 520px) {
  .about-info-grid, .dosage-grid, .process-grid { grid-template-columns: 1fr; }
  .nutrition-panel,
  .eastern-note { padding: 24px 22px; }
}

/* -----------------------------------------------------------------
   13. NEWSLETTER
----------------------------------------------------------------- */
.newsletter { padding: 30px 0 90px; }
.newsletter-inner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-inner::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.28), transparent 65%);
  border-radius: 50%;
  top: -150px; right: -90px;
}
.newsletter-text { position: relative; z-index: 2; }
.newsletter-text p { color: var(--text-muted); margin-top: 12px; }
.newsletter-form { position: relative; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 15px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--input-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--input-ph); }
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.45); border-color: var(--accent-gold); }
.form-msg {
  flex-basis: 100%;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-gold-bright);
  min-height: 1.2em;
  margin-top: 4px;
}
.form-msg.error { color: #ffb4a2; }

/* -----------------------------------------------------------------
   14. FOOTER
----------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-alt) 58%, var(--bg-navy-deep) 100%);
  color: var(--text-muted);
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { color: var(--text-light); margin-bottom: 18px; display: inline-flex; }
.footer-company { font-size: 0.88rem; line-height: 1.9; }
.footer-company strong { color: var(--accent-gold); }
.footer-showroom { display: block; margin: 10px 0; }
.footer-company a:hover { color: var(--accent-gold); }
.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col ul a:hover { color: var(--accent-gold); padding-left: 5px; }

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(215, 168, 92, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent-gold-bright);
  border: 1px solid rgba(215, 168, 92, 0.35);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-btn:hover { background: var(--accent-gold); color: var(--bg-navy); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}
.footer-bottom p { font-size: 0.84rem; text-align: center; color: var(--text-muted); }

/* -----------------------------------------------------------------
   15. BACK-TO-TOP + TOAST
----------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 26px; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: var(--bg-navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---- Cụm nút liên hệ xếp HÌNH CUNG (1/4 đường tròn) quanh nút lên-đầu-trang ----
   Cả 3 đều là icon tròn 48px; hover mới hiện tên qua tooltip .fab-tip (sang TRÁI).
   Tâm cung = nút lên-đầu-trang (góc dưới-phải, right:26 bottom:26). */
.zalo-fab, .phone-fab, .support-fab {
  position: fixed; z-index: 90;
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zalo-fab svg, .phone-fab svg, .support-fab svg { flex-shrink: 0; }
/* Ẩn chữ trong nút (giữ cho screen-reader) — tên hiện qua tooltip khi hover. */
.zalo-fab span, .phone-fab span, .support-fab span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.zalo-fab:hover, .phone-fab:hover, .support-fab:hover { transform: translateY(-3px); }

/* Đầu cung — nằm NGANG cạnh nút lên-đầu → Zalo */
.zalo-fab { right: 118px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); background: #0068FF; color: #fff; }

/* Tooltip nổi khi hover nút liên hệ (hiện sang TRÁI nút).
   KHÔNG đặt position ở .fab-tip — các nút dùng tip đều đã position:fixed (làm gốc
   cho tooltip absolute). Đặt position:relative ở đây sẽ ĐÈ fixed của .zalo-fab → mất nút. */
.fab-tip::after {
  content: attr(data-tip);
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1f2733; color: #fff; font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  padding: 8px 13px; border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-tip::before {
  content: ""; position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: #1f2733;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.fab-tip:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.fab-tip:hover::before { opacity: 1; }

/* Cuối cung — nằm THẲNG ĐỨNG trên nút lên-đầu → Hỗ trợ trực tuyến (Tawk.to). */
.support-fab {
  right: 28px; bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: var(--bg-navy);
}

/* Giữa cung — vị trí CHÉO 45° → Gọi Hotline (gọi thẳng 090 332 1760). */
.phone-fab {
  right: 92px; bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, var(--accent-orange-bright), var(--accent-orange));
  color: #fff;
}

/* Rung rung gọi chú ý — Zalo + Gọi Hotline tự lắc ~2s rồi đứng yên, lặp lại mỗi 5s. */
@keyframes fabShake {
  0%, 40%, 100% { transform: rotate(0); }
  4%  { transform: rotate(-7deg); }
  8%  { transform: rotate(6deg); }
  12% { transform: rotate(-6deg); }
  16% { transform: rotate(5deg); }
  20% { transform: rotate(-4deg); }
  24% { transform: rotate(4deg); }
  28% { transform: rotate(-3deg); }
  32% { transform: rotate(2deg); }
  36% { transform: rotate(-1deg); }
}
.zalo-fab, .phone-fab { animation: fabShake 5s ease-in-out infinite; transform-origin: center center; }
/* Hover → tắt rung để hiệu ứng nhấc lên (translateY) chạy mượt. */
.zalo-fab:hover, .phone-fab:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .zalo-fab, .phone-fab { animation: none; }
}

@media (pointer: coarse) {
  .qty-btn {
    width: 40px;
    height: 40px;
  }

  .cart-remove,
  .cart-close,
  .search-close {
    min-width: 44px;
    min-height: 44px;
  }
}

.toast {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translate(-50%, 120%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-light);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  z-index: 200;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast::before { content: "✓"; color: var(--accent-gold); font-weight: 700; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* -----------------------------------------------------------------
   16. SCROLL-REVEAL (IntersectionObserver)
----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
body[data-page="shop"] .reveal {
  opacity: 1;
  transform: none;
}

/* -----------------------------------------------------------------
   Banner nhắc XÁC MINH EMAIL (trang tài khoản)
----------------------------------------------------------------- */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md, 14px);
  background: rgba(215, 168, 92, 0.10);
}
.verify-banner-text { display: flex; flex-direction: column; gap: 4px; }
.verify-banner-text strong { color: var(--accent-gold-bright, var(--accent-gold)); }
.verify-banner-text span { font-size: 0.9rem; opacity: 0.85; }
.verify-banner .btn { flex-shrink: 0; }

/* Honeypot chống bot: ô ẩn khỏi mắt người (KHÔNG dùng display:none để bot vẫn
   "thấy" và điền vào → lộ là bot). Người thật không bao giờ điền ô này. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* -----------------------------------------------------------------
   17. RESPONSIVE
----------------------------------------------------------------- */
@media (max-width: 992px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .commitment-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  :root { --header-h: 66px; }

  /* Nav -> menu trượt */
  .hamburger { display: flex; }
  .main-nav .mobile-only-nav { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(78vw, 320px);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg-navy);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    padding: 30px 26px max(30px, env(safe-area-inset-bottom, 0px));
    z-index: 99;
    /* Đóng = display:none → menu off-canvas (position:fixed) KHÔNG còn gây
       cuộn ngang. (translateX(100%) cũ vẫn đẩy menu ra ngoài lề phải, làm
       trang bị kéo ngang ~bề rộng menu trên điện thoại.) */
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.open { display: block; animation: navSlideIn 0.3s ease; }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-parent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-parent-row > a { border-bottom: 0; }
  .main-nav .nav-sub-toggle {
    display: grid;
    width: 44px;
    min-height: 48px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--accent-gold-fresh);
    cursor: pointer;
  }
  .main-nav .nav-sub-toggle::before {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
  }
  .main-nav .submenu-open > .nav-parent-row .nav-sub-toggle::before {
    transform: translateY(2px) rotate(225deg);
  }
  .main-nav .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 8px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .main-nav .submenu-open > .nav-sub { display: grid; }
  .main-nav .has-sub:hover .nav-sub,
  .main-nav .has-sub:focus-within .nav-sub {
    transform: none;
  }
  .main-nav .nav-sub::before { display: none; }
  .main-nav .nav-sub a {
    padding: 8px 0 8px 14px;
    border-bottom: 0;
    border-left: 2px solid rgba(255, 196, 94, 0.30);
    border-radius: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.35;
  }
  .main-nav .nav-sub a:hover,
  .main-nav .nav-sub a:focus {
    background: transparent;
    color: var(--accent-gold-fresh);
  }

  /* Hero xếp dọc */
  .hero { padding: 36px 0 90px; min-height: auto; }
  /* Mobile: phủ navy đậm đều hơn (đứng) để chữ rõ khi xếp dọc */
  .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(16, 25, 57, 0.90), rgba(16, 25, 57, 0.80)),
      var(--img);
  }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-product { max-width: 360px; margin: 0 auto; }
  .hero-visual {
    min-height: 0;
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
  }
  .customers-cluster {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(280px, 82vw);
    margin: -56px 4px 78px auto;
  }
  .hero-blob-sage { width: 400px; height: 400px; top: -80px; right: -120px; }
  .hero-cta-row { gap: 18px; }
  .ribbon-text { font-size: 14px; }

  .giftset-inner { grid-template-columns: 1fr; padding: 40px 28px; gap: 34px; }
  .newsletter-inner { grid-template-columns: 1fr; padding: 40px 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section-head { margin-bottom: 38px; }

  input, textarea, select { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding-bottom: 150px; }
  .trust-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 18px;
  }
  .hero-cta-row .btn {
    grid-column: 1 / -1;
    width: max-content;
  }
  .hero-cta-row .rotating-badge {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-visual { display: none; }
  .customers-cluster-mobile {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 9px 13px 9px 9px;
    gap: 9px;
  }
  .customers-cluster .avatar-mini {
    width: 34px;
    height: 34px;
    margin-left: -10px;
    font-size: 0.64rem;
  }
  .customers-count strong { font-size: 1.3rem; }
  .customers-count span {
    display: block;
    max-width: 88px;
    line-height: 1.25;
    font-size: 0.68rem;
  }
  .product-name { min-height: auto; }
}

/* Tôn trọng người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   18. ĐA TRANG — logo ảnh, page-hero, các trang con
   ================================================================= */

/* Logo ảnh thật + ô chữ tạm (hiện khi chưa có file ảnh) */
.logo-fallback {
  height: 50px; padding: 0 18px;
  display: inline-grid; place-items: center;
  border: 2px dashed var(--accent-gold); border-radius: 12px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 1.5px; color: var(--accent-gold-bright); white-space: nowrap;
}
.footer-logo .logo-img { height: 64px; }

/* PAGE HERO — đầu mỗi trang con. Nền dùng banner ảnh nếu có, không thì gradient navy */
.page-hero {
  position: relative;
  padding: 54px 0 44px;
  text-align: center;
  /* Nền trong suốt để LỘ HOA VĂN VÀNG (body::before); chỉ thêm quầng sáng nhẹ ở giữa-trên */
  background: radial-gradient(circle at 50% -12%, rgba(30,63,108,0.55), rgba(14,35,68,0) 62%);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow-sm {
  display: none; color: var(--accent-orange-bright); letter-spacing: 2.5px;
  text-transform: uppercase; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.8rem, 6.2vw, 4.4rem); letter-spacing: -0.5px;
  /* Chữ VÀNG KIM LOẠI + ánh sáng quét (shimmer) + quầng sáng gold — sang trọng */
  color: var(--accent-gold-bright);                          /* fallback nếu trình duyệt cũ */
  background: linear-gradient(100deg,
    #D6C49C 0%, #ECDDB6 26%, #FCF6E4 45%, #F1E6C4 54%, #DECB9F 68%, #D6C49C 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 9px rgba(224, 205, 158, 0.42)) drop-shadow(0 0 30px rgba(236, 218, 170, 0.32));
  animation: heroTitleShine 4.5s ease-in-out infinite, heroTitleIn 0.9s ease-out both;
}
/* Đường ngọc phát sáng dưới tiêu đề */
.page-hero h1::after {
  content: ""; display: block;
  width: clamp(160px, 30vw, 320px); height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 30%, var(--accent-gold-bright) 50%, var(--accent-gold) 70%, transparent);
  border-radius: 2px; box-shadow: 0 0 10px rgba(215, 168, 92, 0.55);
}
@keyframes heroTitleShine { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .page-hero h1 { background-position: 62% 0; } }
/* Trang Về chúng tôi — hero gọn (đã bỏ eyebrow + breadcrumb): thấp lại, tiêu đề nhỏ & khít hơn */
[data-page="about"] .page-hero { padding: 44px 0 40px; }
[data-page="about"] .page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: 0; }
.breadcrumb { margin-top: 12px; font-size: 0.96rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold-fresh); }
.breadcrumb span { color: var(--accent-gold-fresh); }

/* Bố cục chung trang con */
.page-section { padding: 70px 0; }
.page-section.alt { background: rgba(11, 30, 59, 0.55); }

/* Trang Về chúng tôi — câu chuyện thương hiệu */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-grid p { color: var(--text-muted); margin-bottom: 16px; }
.story-img { aspect-ratio: 1/1; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); background: linear-gradient(160deg,#173458,#091a34); position: relative; overflow: hidden; }
/* Slideshow khung Câu chuyện — ảnh vuông đổi mỗi 5s (crossfade, như hero) */
.story-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.story-slide.is-active { opacity: 1; }

/* Trang Cẩm nang / Tin tức — thẻ bài viết */
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.article-card {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--glow-gold); border-color: var(--accent-gold); }
.article-thumb { aspect-ratio: 1 / 1; }
.article-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.article-date { font-size: 0.76rem; color: var(--accent-orange-bright); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.article-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.3; }
.article-excerpt { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.article-link { margin-top: auto; color: var(--accent-gold); font-weight: 600; font-size: 0.9rem; }
.article-link:hover { color: var(--accent-gold-bright); }

/* Trang chủ — carousel bài viết mới nhất, tự xoay bằng JS mỗi 5s */
.home-article-carousel { display: flex; align-items: center; gap: 14px; }
.home-article-viewport { flex: 1; min-width: 0; overflow: hidden; padding: 14px 0; margin: -14px 0; }
.home-article-track.article-grid { display: flex; grid-template-columns: none; gap: 26px; will-change: transform; }
.home-article-track > .article-card { flex: 0 0 calc((100% - 52px) / 3); min-width: 0; }
.home-article-btn {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--accent-gold);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: none;
}
.home-article-btn:hover,
.home-article-btn:active,
.home-article-btn:focus { background: var(--surface-1); color: var(--accent-gold); border-color: var(--line); transform: none; }
.home-article-carousel.is-static .home-article-btn { visibility: hidden; pointer-events: none; }

/* Trang Liên hệ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; }
.contact-item .ci-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(212,175,106,0.16); color: var(--accent-gold); display: grid; place-items: center; }
.contact-item h4 { color: var(--accent-gold-bright); font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; }
.contact-item a:hover { color: var(--accent-gold); }
.contact-form { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 7px; color: var(--text-light); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--input-text); font-family: var(--font-sans); font-size: 0.95rem; outline: none;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--input-ph); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212,175,106,0.4); }
.map-ph { aspect-ratio: 16/9; margin-top: 30px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.map-ph iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 992px) {
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .home-article-track > .article-card { flex-basis: calc((100% - 26px) / 2); }
}
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .home-article-carousel { gap: 8px; }
  .home-article-track > .article-card { flex-basis: 100%; }
  .home-article-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .page-hero { padding: 40px 0 34px; }
}

/* =====================================================================
   TRANG CHI TIẾT SẢN PHẨM (san-pham.html) — dựng bởi script.js.
   ===================================================================== */
.pd-state { color: var(--text-muted); font-size: 1.05rem; padding: 30px 0; }
#productDetail .btn { margin-top: 14px; }

/* Thẻ SP ở cửa hàng/trang chủ: tên + ảnh bấm được → trang chi tiết */
.product-name .pd-namelink { color: inherit; text-decoration: none; }
.product-name .pd-namelink:hover { color: var(--accent-gold); }
.product-img .pd-imglink { display: block; width: 100%; height: 100%; }
.product-img.placeholder .pd-imglink {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

/* Bố cục 2 cột: ảnh | thông tin */
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pd-image { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); }
.pd-image.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-info { min-width: 0; }
.pd-tag { position: static; display: inline-block; margin-bottom: 12px; }
.pd-name { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; color: var(--text-light); margin: 0 0 6px; }
.pd-group { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 14px; }
.pd-price { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--accent-gold); margin: 6px 0 18px; }
.pd-price.contact { color: var(--accent-orange-bright); font-size: 1.4rem; }
.pd-sizes { margin: 0 0 18px; max-width: 590px; gap: 10px; }
.pd-sizes .size-opt {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 248, 218, 0.70), rgba(255, 248, 218, 0) 58%),
    linear-gradient(135deg, #F4D49A 0%, #D8AF67 58%, #C28A3B 100%);
  border-color: rgba(226, 200, 142, 0.72);
  color: #07182F;
  box-shadow: 0 5px 13px rgba(7, 24, 47, 0.18), inset 0 1px 0 rgba(255, 250, 224, 0.44);
}
.pd-sizes .size-opt:hover {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 252, 232, 0.82), rgba(255, 252, 232, 0) 58%),
    linear-gradient(135deg, #F8DEA8 0%, #DFBB72 58%, #CA9444 100%);
  border-color: #F4D49A;
  color: #07182F;
  box-shadow: 0 6px 16px rgba(7, 24, 47, 0.22), inset 0 1px 0 rgba(255, 250, 224, 0.58);
}
.pd-sizes .size-opt.is-active {
  background: linear-gradient(135deg, #081026, #101939 58%, #172553);
  border-color: #F4D49A;
  color: #FFF3D4;
  box-shadow: 0 6px 16px rgba(7, 24, 47, 0.38), inset 0 1px 0 rgba(255, 239, 194, 0.28);
}
.pd-sizenote { color: var(--text-muted); margin: 0 0 16px; }
.pd-add { margin: 4px 0 6px; }
.pd-promo { margin: 12px 0 0; font-size: 0.92rem; color: var(--accent-gold-bright); }

/* ---- SET QUÀ phối sẵn vị, luôn kèm hộp quà ---- */
.set-builder { margin: 6px 0 4px; max-width: 590px; }
.set-builder-head { font-weight: 700; color: var(--accent-gold-bright); margin: 0 0 10px; }
.set-preset-list {
  border: 1px solid rgba(226, 200, 142, 0.30); border-radius: 14px;
  background: rgba(8, 16, 38, 0.46); padding: 6px 14px; margin-bottom: 16px;
}
.set-preset-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.set-preset-row:last-child { border-bottom: none; }
.set-preset-name { color: var(--text-light); font-weight: 650; font-size: 0.96rem; }
.set-preset-qty {
  flex-shrink: 0; padding: 4px 9px; border-radius: 999px; background: rgba(215,168,92,.13);
  color: var(--accent-gold-bright); font-size: 0.82rem; font-weight: 700;
}
.set-gift-included {
  margin: 0 0 14px; padding: 11px 14px; border: 1px solid rgba(215,168,92,.38);
  border-radius: 12px; background: rgba(215,168,92,.10); color: var(--accent-gold-bright);
  font-size: 0.92rem; font-weight: 700; line-height: 1.5;
}
.set-break {
  margin: 4px 0 14px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(226, 200, 142, 0.30); background: rgba(8, 16, 38, 0.5);
}
.set-break-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: var(--text-muted); padding: 3px 0; }
.set-break-total { border-top: 1px solid rgba(215,168,92,.28); margin-top: 6px; padding-top: 9px; font-size: 1.05rem; font-weight: 800; color: var(--accent-gold-bright); }
.set-break-total span:last-child { color: var(--accent-gold-bright); }
.pd-image-set { aspect-ratio: 4 / 5; }
.pd-highlight {
  margin: 18px 0 0;
  max-width: 590px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(226, 200, 142, 0.34);
  background:
    radial-gradient(120% 90% at 14% 0%, rgba(244, 212, 154, 0.18), rgba(244, 212, 154, 0) 62%),
    rgba(8, 16, 38, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 239, 194, 0.10);
}
.pd-highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.pd-highlight-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}
.pd-highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4D49A, #C28A3B);
  box-shadow: 0 0 0 3px rgba(244, 212, 154, 0.12);
}

/* Các mục nội dung */
.pd-sections { margin-top: 46px; display: grid; gap: 26px; max-width: 820px; }
.pd-section { border-top: 1px solid var(--line); padding-top: 20px; }
.pd-sec-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--accent-gold-fresh); margin: 0 0 10px; }
.pd-text p, .pd-section p { color: var(--text-light); line-height: 1.8; margin: 0 0 10px; }
.pd-intro { color: var(--text-muted); font-style: italic; }
.pd-benefits { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.pd-benefits li { position: relative; padding-left: 28px; color: var(--text-light); line-height: 1.6; }
.pd-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-gold); font-weight: 700; }
.pd-notes { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.pd-notes li { position: relative; padding-left: 22px; color: var(--text-light); line-height: 1.7; }
.pd-notes li::before { content: "•"; position: absolute; left: 4px; top: 0; color: var(--accent-gold); font-weight: 700; }
.pd-thanks { margin: 4px 0 0; padding: 16px 18px; border: 1px solid var(--accent-gold); border-radius: var(--radius-md); background: rgba(197, 160, 89, 0.08); color: var(--accent-gold-bright); font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.6; text-align: center; }

/* Sản phẩm liên quan */
.pd-related { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 26px; width: 100%; }
.pd-related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pd-related-head .pd-sec-title { margin-bottom: 0; }
.pd-rel-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pd-rel-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(215,168,92,.58);
  background: rgba(215,168,92,.12); color: var(--accent-gold-bright);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .18s ease, color .18s ease, transform .12s ease, border-color .18s ease;
}
.pd-rel-btn:hover { background: var(--accent-gold); color: var(--bg-navy); border-color: var(--accent-gold); transform: translateY(-1px); }
.pd-related-viewport { overflow-x: auto; scroll-behavior: smooth; padding: 0 2px 14px; scrollbar-width: thin; scrollbar-color: rgba(215,168,92,.55) transparent; }
.pd-related-grid { display: flex; gap: 20px; min-width: max-content; }
.pd-relcard { flex: 0 0 clamp(240px, 24vw, 286px); display: block; text-decoration: none; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; scroll-snap-align: start; }
.pd-relcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pd-relcard .product-img { aspect-ratio: 1 / 1; }
.pd-relcard .product-img.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-relname { display: block; padding: 12px 14px 2px; color: var(--text-light); font-weight: 600; line-height: 1.35; }
.pd-relprice { display: block; padding: 0 14px 14px; color: var(--accent-gold); font-weight: 700; }

@supports (content-visibility: auto) {
  body[data-page="shop"] .shop-cat {
    content-visibility: auto;
    contain-intrinsic-size: 920px;
  }
  body[data-page="product"] .pd-sections,
  body[data-page="product"] .pd-related {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
  }
}

@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { position: static; max-width: 460px; }
  .pd-relcard { flex-basis: clamp(218px, 48vw, 270px); }
}
@media (max-width: 520px) {
  .pd-related-head { align-items: flex-end; }
  .pd-rel-btn { width: 38px; height: 38px; }
  .pd-related-grid { gap: 12px; }
  .pd-relcard { flex-basis: 76vw; }
}

/* Link "Quên mật khẩu?" dưới form đăng nhập */
.auth-forgot { margin: 10px 0 0; text-align: right; font-size: 0.92rem; }
.auth-forgot a { color: var(--text-muted); text-decoration: none; }
.auth-forgot a:hover { color: var(--accent-gold); text-decoration: underline; }

/* ====== NỀN THẺ GOLD SÁNG + ĐƯỜNG CURVE GOLDEN ======
   Chỉ áp dụng cho THẺ/PANEL, nền website vẫn navy.
   Lớp (trên→dưới): (1) đường contour curve từ SVG, (2) quầng sáng mềm,
   (3) ánh gold rất nhẹ, (4) gradient gold nền. Không dùng vân/gạch xéo.
   Đặt CUỐI FILE để thắng nền phẳng của từng thẻ. */
.product-card, .review-card, .article-card, .meaning-card, .cert-card,
.process-step, .faq-item, .contact-item, .contact-form, .pd-relcard,
.trust-card, .newsletter-inner, .giftset-inner {
  background:
    url('images/card-gold-curves.svg') center / cover no-repeat,
    radial-gradient(130% 105% at 22% -14%, rgba(255, 245, 214, 0.70), rgba(255, 245, 214, 0) 52%),
    linear-gradient(128deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%, rgba(180, 107, 20, 0.08) 100%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--surface-1) 64%, #C28A3B 100%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 250, 226, 0.68), inset 0 0 0 1px rgba(184, 120, 30, 0.13);
}
