/* East Nest — hệ thống giao diện dùng chung */
:root {
  --muc: #0E1E2B;        /* mực đêm, nền chính */
  --dem: #05090F;        /* nền mở màn */
  --lam: #17505F;        /* lam ngọc */
  --nga: #F1E8D6;        /* ngà tổ yến */
  --nga-sang: #FBF6EC;
  --giay: #F6F0E4;
  --que: #D9AE62;        /* vàng quế */
  --que-dam: #8A6420;    /* quế đậm cho chữ trên nền sáng */
  --chu-sa: #8E2A22;
  --vien: #D8CFBD;
  --chu-phu: #3D4850;
  --chu-phu-toi: #C6CDD1;
  --serif: 'Noto Serif Display', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --le: clamp(16px, 4vw, 48px);
  --tron: 999px;
  --bo: 4px;             /* bo góc nút bấm */
  --nhanh: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--muc); background: var(--nga-sang); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--que); outline-offset: 3px; }
.an-chu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
.hoa { text-transform: uppercase; line-height: 1.12; }
.nhan { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--que); }
.toi .nhan { color: var(--que); }
.khung { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--le); }

/* Nút: 3 cấp — chính (.nut-dac / .nut-que), phụ (.nut-vien), chữ (.nut-chu) */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--bo); border: 1px solid currentColor; background: none; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--nhanh); }
.nut-chu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-underline-offset .2s, color .2s; }
.nut-chu:hover { text-underline-offset: 3px; color: var(--que); }
.toi .nut-chu:hover { color: var(--que); }
.nut:active { transform: scale(.98); }
.nut-dac { background: var(--que); color: var(--muc); border-color: var(--que); }
.nut-dac:hover { background: #E5BE7A; border-color: #E5BE7A; }
.nut-que { background: var(--que); color: var(--muc); border-color: var(--que); }
.nut-que:hover { background: #E5BE7A; border-color: #E5BE7A; }
.nut-muc { background: var(--muc); color: var(--nga); border-color: var(--muc); }
.nut-muc:hover { background: #1F3242; border-color: #1F3242; }
.nut-vien { border-color: rgba(241, 232, 214, .38); color: var(--nga); }
.nut-vien:hover { background: rgba(217, 174, 98, .12); border-color: var(--que); color: var(--que); }
.toi .nut-vien:hover { background: rgba(217, 174, 98, .12); border-color: var(--que); color: var(--que); }
.nut-rong { width: 100%; }
.nut[disabled] { opacity: .45; cursor: not-allowed; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; letter-spacing: .18em; white-space: nowrap; color: var(--que); }
.logo svg { width: 40px; height: auto; }

/* Thanh trên: thống nhất toàn website (trang thương hiệu & cửa hàng) */
.dau-phai { display: flex; align-items: center; gap: 12px; }
.dau-th { position: fixed; inset: 0 0 auto; z-index: 40; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--le); color: var(--nga); transition: background .4s, color .4s, border-color .4s; }
.dau-th .logo { color: var(--que); }
.dau-th nav, .dau-ch nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.dau-th nav a, .dau-ch nav a { padding: 8px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.dau-th nav a:hover, .dau-th nav a[aria-current], .dau-ch nav a:hover, .dau-ch nav a[aria-current] { color: var(--que); border-color: var(--que); }
.dau-th .goi, .dau-ch .goi { font-size: 15px; font-weight: 500; color: var(--chu-phu-toi); white-space: nowrap; transition: color .2s; }
.dau-th .goi:hover, .dau-ch .goi:hover { color: var(--que); }
.dau-th .nut { min-height: 44px; padding: 0 20px; }
.dau-th.sang { color: var(--muc); }
.dau-th.sang .logo { color: var(--que-dam); }
.dau-th.sang .goi { color: var(--muc); }
.dau-th.sang .nut-gio { background: var(--muc); color: var(--nga); border-color: var(--muc); }
.dau-th.sang .nut { background: var(--muc); color: var(--nga); border-color: var(--muc); }
.dau-th.co-nen { background: rgba(14, 30, 43, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(241, 232, 214, .1); }
.nut-menu { display: none; width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; }

/* Thanh trên: cửa hàng & trang bán hàng (cùng hệ màu mực đêm - vàng quế) */
.dai-tren { background: var(--dem); color: var(--chu-phu-toi); font-size: 14px; display: flex; justify-content: center; gap: 28px; padding: 9px var(--le); text-align: center; flex-wrap: wrap; border-bottom: 1px solid rgba(241, 232, 214, .08); }
.dai-tren a { color: var(--que); text-decoration: underline; text-underline-offset: 4px; }
.dau-ch { position: sticky; top: 0; z-index: 40; background: rgba(14, 30, 43, .95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(241, 232, 214, .12); color: var(--nga); }
.dau-ch .khung { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dau-ch .logo { color: var(--que); font-size: 21px; }
.dau-ch .logo svg path { stroke: currentColor; }
.dau-ch .tim { flex: 1; max-width: 280px; display: flex; }
.dau-ch .tim input { flex: 1; width: 100%; height: 42px; border: 1px solid rgba(241, 232, 214, .22); border-radius: var(--tron); background: rgba(5, 9, 15, .45); color: var(--nga); padding: 0 16px; font-size: 14px; transition: border-color .2s, background .2s; }
.dau-ch .tim input::placeholder { color: var(--chu-phu-toi); opacity: .75; }
.dau-ch .tim input:focus { border-color: var(--que); background: rgba(5, 9, 15, .75); outline: none; }
.nut-gio { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--bo); border: 1px solid rgba(217, 174, 98, .45); background: rgba(19, 34, 47, .85); color: var(--nga); font-weight: 600; white-space: nowrap; transition: border-color .2s, background .2s; }
.nut-gio:hover { border-color: var(--que); background: rgba(217, 174, 98, .14); }
.nut-gio .dem { min-width: 22px; height: 22px; border-radius: 11px; background: var(--que); color: var(--muc); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Menu điện thoại */
.menu-dt { position: fixed; inset: 0; z-index: 60; background: var(--muc); color: var(--nga); display: flex; flex-direction: column; padding: 8px var(--le) 24px; transform: translateY(-100%); transition: transform .45s var(--nhanh); visibility: hidden; overflow-y: auto; }
.menu-dt.mo { transform: none; visibility: visible; }
.menu-dt .dong { height: 60px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu-dt .logo { color: var(--que); font-size: 16px; }
.menu-dt nav { display: flex; flex-direction: column; margin-top: 8px; }
.menu-dt nav a { min-height: 54px; display: flex; align-items: center; border-bottom: 1px solid rgba(241, 232, 214, .14); font-family: var(--serif); font-size: 24px; }
.menu-dt .cua-hang { margin: 8px 0; height: 56px; border-radius: var(--bo); background: var(--que); color: var(--muc); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 700; font-size: 18px; flex: none; }
.menu-dt .day { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Chân trang */
.chan { background: var(--dem); color: var(--chu-phu-toi); font-size: 16px; line-height: 1.7; border-top: 1px solid rgba(241, 232, 214, .1); }
.chan .khung { padding-block: 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.chan b { color: var(--que); font-weight: 500; }
.chan h4 { margin: 0 0 8px; color: var(--nga); font-size: 16px; font-weight: 600; }
.chan ul { list-style: none; margin: 0; padding: 0; }
.chan a:hover { color: var(--que); }
.chan .bct { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 1px dashed #4A5A66; font-size: 13px; }

/* Thông báo nổi */
.bao { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: #13222F; border: 1px solid var(--que); color: var(--nga); padding: 14px 22px; border-radius: var(--bo); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); transition: transform .4s var(--nhanh); max-width: calc(100% - 32px); }
.bao.hien { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 900px) {
  .dau-th nav, .dau-th .nut-desk, .dau-ch nav, .dau-ch .tim, .dau-ch .goi { display: none; }
  .nut-menu { display: inline-flex; align-items: center; justify-content: center; }
  .dau-th { height: 60px; }
  .dai-tren { font-size: 13px; padding-block: 7px; }
  .dai-tren span:nth-child(2), .dai-tren a { display: none; }
  .dau-ch .khung { height: 60px; gap: 8px; justify-content: space-between; }
  .chan .khung { grid-template-columns: 1fr 1fr; }
  .chan .khung > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
