/* Catalogue Tetta: nâu đỏ và vàng theo logo, ngọc lục từ ảnh hộp Cẩm Mã */
:root {
  --maroon: #5b1517;
  --wine: #3a0e11;
  --gold: #e2b04e;
  --gold-deep: #8a5f0e;
  --paper: #f4f0ec;
  --card: #fffefc;
  --ink: #261719;
  --muted: #76675f;
  --line: #e2d8d2;
  --tint: #ebe3dd;
  --jade: #1d5b54;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--wine); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1400px, 100% - 48px); margin-inline: auto; }

/* ---------- Đầu trang ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: var(--maroon); border-bottom: 3px solid var(--gold); color: #f6ece4; }
.top-in { height: 100%; width: min(1400px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; color: var(--gold); line-height: 1; }
.brand-mark.big { font-size: 44px; }
.brand-mark img { height: 36px; width: auto; }
.brand-tag { font-size: 13px; color: #e6cfc4; max-width: 260px; line-height: 1.25; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.hotline { text-decoration: none; background: var(--gold); color: var(--wine); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 2px; white-space: nowrap; }
.hotline:hover { background: #f0c46a; }

/* ---------- Giới thiệu ---------- */
.intro { padding: 44px 0 28px; }
.intro h1 { font-size: clamp(30px, 4.2vw, 48px); color: var(--maroon); letter-spacing: -0.01em; }
.lead { margin: 12px 0 0; max-width: 62ch; font-size: 16.5px; color: #4a3a38; }
.pricenote { display: inline-block; margin: 16px 0 0; padding: 7px 14px; border-left: 3px solid var(--gold); background: #fbf2de; font-size: 13.5px; font-weight: 500; color: #5d4208; }
.pricenote:empty { display: none; }

/* ---------- Khung chính ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 64px; scroll-margin-top: var(--top-h); }
.side { position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100vh - var(--top-h) - 40px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.side-head { display: none; }
.fgroup { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h2 { font-size: 17px; margin-bottom: 12px; color: var(--maroon); }
#q { width: 100%; padding: 11px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 2px; }
#q:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(226, 176, 78, .35); }
.flist { display: flex; flex-direction: column; gap: 2px; }
.ser { margin: 12px 0 2px; font-family: var(--serif); font-size: 13.5px; color: var(--muted); font-style: italic; }
.fitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px 8px 12px; border: 0; background: transparent; border-left: 3px solid transparent; border-radius: 0 2px 2px 0; font-size: 14.5px; }
.fitem:hover { background: rgba(91, 21, 23, .06); }
.fitem.on { border-left-color: var(--gold); background: var(--card); font-weight: 600; color: var(--maroon); }
.fitem .n { font-size: 12.5px; color: var(--muted); font-weight: 400; min-width: 20px; text-align: right; }
.fitem.sub { padding-left: 24px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14.5px; cursor: pointer; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--maroon); margin: 0; }
.fcheck .n { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; font-size: 13.5px; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #999); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.chip.on { border-color: var(--maroon); background: var(--maroon); color: #fff6ee; }
.clear { margin-top: 4px; padding: 8px 0; border: 0; background: none; color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.scrim { display: none; }

/* ---------- Thanh công cụ ---------- */
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-btn { display: none; padding: 9px 16px; border: 1px solid var(--maroon); background: transparent; color: var(--maroon); font-weight: 600; border-radius: 2px; }
.aud { display: inline-flex; background: var(--tint); padding: 3px; border-radius: 3px; }
.aud button { border: 0; background: transparent; padding: 7px 14px; border-radius: 2px; font-size: 14px; font-weight: 500; color: #4a3a38; white-space: nowrap; }
.aud button.on { background: var(--maroon); color: #fff6ee; }
.aud button .lk { font-size: 11px; margin-left: 5px; opacity: .8; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { padding: 8px 32px 8px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 2px; color: var(--ink); }
.count { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 21px; }

/* ---------- Lưới sản phẩm ---------- */
.sect { margin-top: 30px; }
.sect:first-child { margin-top: 12px; }
.sect-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.sect-head h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--maroon); }
.sect-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.sect-desc { margin: 8px 0 0; max-width: 70ch; color: #4a3a38; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 2px; text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--maroon); box-shadow: 0 10px 28px -14px rgba(58, 14, 17, .45); }
.tile-img { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
/* di chuột chỉ zoom nhẹ ảnh chính (tối đa 5%), bỏ chuột thì về cỡ cũ; không đổi sang ảnh khác */
.tile:hover .tile-img img { transform: scale(1.04); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 15px; text-align: center; padding: 16px; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; background: var(--wine); color: #f6e2b8; font-size: 12px; font-weight: 600; border-radius: 2px; }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tile h3 { font-size: 19px; color: var(--ink); }
.tile .meta { margin: 0; font-size: 13px; color: var(--muted); }
.tile .price { margin: auto 0 0; padding-top: 10px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tile .price small { font-size: 12.5px; color: var(--muted); }
.tile .price b { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--gold-deep); }
.tile .price em { font-size: 13px; color: var(--muted); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); }
.empty strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 6px; }

/* ---------- Chi tiết sản phẩm ---------- */
.ov { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; }
.ov[hidden], .gate[hidden] { display: none; }
.ov-bg { position: fixed; inset: 0; background: rgba(36, 10, 12, .66); }
.panel { position: relative; width: min(1120px, 100% - 24px); margin: 2.5vh auto; background: var(--paper); border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.p-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.p-top .crumb { font-size: 14px; color: var(--muted); }
.p-top .crumb a { color: var(--maroon); font-weight: 500; text-underline-offset: 3px; }
.p-nav { margin-left: auto; display: flex; gap: 8px; }
.pbtn { border: 1px solid var(--line); background: var(--card); padding: 7px 13px; border-radius: 2px; font-size: 13.5px; font-weight: 500; }
.pbtn:hover { border-color: var(--maroon); }
.pbtn.close { width: 38px; padding: 0; font-size: 22px; line-height: 1; }
.p-main { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 36px; padding: 26px 26px 10px; }
.gal-main { background: var(--tint); border-radius: 2px; overflow: hidden; display: grid; place-items: center; min-height: 280px; }
.gal-main img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; }
.gal-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gal-thumbs button { width: 64px; height: 80px; padding: 0; border: 2px solid transparent; background: var(--tint); border-radius: 2px; overflow: hidden; opacity: .75; }
.gal-thumbs button.on { border-color: var(--maroon); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: clamp(28px, 3.4vw, 40px); color: var(--maroon); }
.p-from { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.p-desc { margin: 14px 0 0; color: #4a3a38; }
.specs { margin: 20px 0 0; display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { font-weight: 500; }
.p-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--maroon); background: var(--maroon); color: #fff6ee; font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 2px; }
.btn:hover { background: var(--wine); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: rgba(91, 21, 23, .07); }
.same { margin-top: 22px; }
.same h4 { font-size: 15px; color: var(--muted); font-weight: 500; font-family: var(--sans); margin-bottom: 8px; }
.same div { display: flex; gap: 10px; flex-wrap: wrap; }
.same a { width: 62px; text-decoration: none; font-size: 11.5px; line-height: 1.25; color: var(--ink); }
.same img { width: 62px; height: 78px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 4px; }

/* Bảng giá theo mốc số lượng */
.p-price { padding: 18px 26px 28px; }
.p-price > h2 { font-size: 24px; color: var(--maroon); }
.p-price > p.sub { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 11px 18px; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; color: #4a3a38; }
.tabs button.on { border-color: var(--gold); color: var(--maroon); font-weight: 600; }
.pt { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.pr { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(190px, 2fr); gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); position: relative; }
.pr:last-child { border-bottom: 0; }
.pr.head { background: var(--tint); font-size: 13px; font-weight: 600; color: #4a3a38; padding-block: 9px; }
.pr:not(.head):not(.on) { opacity: .56; }
.pr.on { background: #fdf6e6; }
.pr.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--maroon); }
.pr-q { font-weight: 500; }
.pr-p { position: relative; display: flex; align-items: baseline; gap: 6px; min-height: 30px; padding: 3px 10px; z-index: 0; }
.pr-p .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(226, 176, 78, .26); border-radius: 1px; z-index: -1; }
.pr.on .pr-p .fill { background: var(--gold); }
.pr-p b { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.pr-p small, .pr-s small { font-size: 12.5px; color: var(--muted); }
.pr-p em, .pr-s em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.pr-s { font-size: 14.5px; }
.pr-s small { display: block; }
.pr-c { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { padding: 2px 8px; border-radius: 99px; background: var(--tint); font-size: 12px; font-weight: 500; color: #4a3a38; }
.locked { padding: 26px 18px; text-align: center; color: var(--muted); }
.locked .btn { margin-top: 10px; }
.cond { margin-top: 16px; padding: 16px 20px; border-left: 3px solid var(--jade); background: #eaf1ee; }
.cond h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--jade); margin-bottom: 6px; }
.cond ul { margin: 0; padding-left: 18px; }
.cond li { margin: 3px 0; font-size: 14.5px; }
.cond a { color: var(--jade); font-weight: 600; }

/* ---------- Chính sách ---------- */
.policy { background: var(--card); border-top: 1px solid var(--line); padding: 56px 0 64px; scroll-margin-top: var(--top-h); }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); color: var(--maroon); }
.sec-sub { margin: 8px 0 28px; color: var(--muted); max-width: 64ch; }
.pol { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 36px; align-items: start; }
.pol-nav { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; }
.pol-nav button { text-align: left; padding: 11px 14px; border: 0; border-left: 3px solid var(--line); background: transparent; font-weight: 500; color: #4a3a38; }
.pol-nav button:hover { background: var(--paper); }
.pol-nav button.on { border-left-color: var(--gold); background: var(--paper); color: var(--maroon); font-weight: 600; }
.pol-body { max-width: 78ch; outline: none; }
.pol-body h2 { font-size: 28px; color: var(--maroon); margin-bottom: 14px; }
.pol-body h3 { font-size: 19px; margin: 26px 0 8px; color: var(--ink); }
.pol-body h4 { font-size: 16px; margin: 18px 0 6px; }
.pol-body p { margin: 8px 0; }
.pol-body ul { margin: 6px 0; padding-left: 20px; }
.pol-body li { margin: 5px 0; padding-left: 2px; }
.pol-body li::marker { color: var(--gold-deep); }
.pol-body ul ul { margin: 4px 0 6px; }
.pol-body .note { margin: 14px 0; padding: 12px 16px; background: #fbf2de; border-left: 3px solid var(--gold); color: #4d3908; }

/* ---------- Chân trang ---------- */
.foot { background: var(--wine); color: #ead9cf; padding: 48px 0 0; scroll-margin-top: var(--top-h); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.foot h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.foot-brand p { margin: 10px 0 0; max-width: 30ch; }
.muted-l { font-size: 13px; color: #c3a99c; }
.clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.clist a { text-decoration: none; border-bottom: 1px solid rgba(234, 217, 207, .3); }
.clist a:hover { color: #fff; border-color: var(--gold); }
.clist .big { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff6ee; border: 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 13px; color: #c3a99c; }
.foot-bottom a { color: inherit; }

/* ---------- Hộp nhập mã ---------- */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(36, 10, 12, .66); padding: 16px; }
.gate-box { width: min(400px, 100%); background: var(--paper); padding: 24px; border-radius: 3px; }
.gate-box h3 { font-size: 22px; color: var(--maroon); }
.gate-box p { margin: 8px 0 14px; font-size: 14.5px; color: #4a3a38; }
.gate-box input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.gate-box input + input, .gate-box label + input { margin-top: 10px; }
.gate-err { color: #a02424 !important; margin: 8px 0 0 !important; }
.acc-btn { margin-left: auto; border: 1px solid rgba(226, 176, 78, .6); background: transparent; color: #f6ece4; padding: 7px 14px; border-radius: 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.acc-btn:hover { border-color: var(--gold); color: #fff; }
.acc-btn:not([hidden]) + .hotline { margin-left: 0; }
.locked small { display: inline-block; margin-top: 10px; font-size: 13px; }
.pol-aud { display: inline-block; margin: -4px 0 12px !important; padding: 3px 10px; background: #fbf2de; color: #5d4208; font-size: 13px; font-weight: 600; border-radius: 2px; }
.gate-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1180px) {
  .brand-tag { display: none; }
  .nav { gap: 20px; }
}
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .p-main { grid-template-columns: 1fr; gap: 20px; }
  .gal-main img { max-height: 62vh; }
}
@media (max-width: 860px) {
  .wrap, .top-in { width: calc(100% - 32px); }
  .shell { grid-template-columns: 1fr; gap: 0; }
  .filter-btn { display: inline-block; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); max-height: none; background: var(--paper); padding: 0 20px 24px; transform: translateX(-104%); transition: transform .28s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .side-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); padding: 16px 0 12px; margin-bottom: 8px; font-family: var(--serif); font-size: 19px; color: var(--maroon); z-index: 2; }
  .side-head .x { border: 0; background: none; font-size: 30px; line-height: 1; }
  .scrim.show { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(36, 10, 12, .55); }
  .brand-tag, .nav { display: none; }
  .hotline { margin-left: auto; }
  .acc-btn { padding: 6px 10px; font-size: 12.5px; max-width: 170px; }
  .sort { margin-left: 0; }
  .sort span { display: none; }
  .bar { gap: 10px; }
  .aud { order: 3; width: 100%; overflow-x: auto; }
  .aud button { flex: 1; padding: 8px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-body { padding: 10px 12px 12px; }
  .tile h3 { font-size: 16px; }
  .tile .price b { font-size: 16px; }
  .pol { grid-template-columns: 1fr; gap: 18px; }
  .pol-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .pol-nav button { white-space: nowrap; border-left: 0; border-bottom: 3px solid var(--line); padding: 9px 12px; }
  .pol-nav button.on { border-bottom-color: var(--gold); }
  .panel { width: 100%; margin: 0; border-radius: 0; min-height: 100vh; }
  .p-main { padding: 18px 16px 6px; }
  .p-price { padding: 16px 16px 28px; }
  .specs { grid-template-columns: 124px 1fr; }
  .pr { grid-template-columns: 1fr 1.5fr; gap: 6px 12px; padding: 10px 12px; }
  .pr.head { display: none; }
  .pr-s, .pr-c { grid-column: 1 / -1; }
  .pr-s:empty, .pr-c:empty { display: none; }
  .pr-s::before { content: 'Giá Shopee: '; color: var(--muted); font-size: 13px; }
  .pr-s small { display: inline; margin-left: 6px; }
}
@media (max-width: 480px) {
  .acc-btn:not([hidden]) ~ .hotline { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .intro { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Khối nội dung thêm từ trang quản trị ---------- */
.blk { position: relative; padding: 44px 0; }
.blk.bg-paper { background: var(--paper); }
.blk.bg-white { background: var(--card); }
.blk.bg-maroon { background: var(--maroon); color: #f6ece4; }
.blk.bg-gold { background: var(--gold); color: var(--wine); }
.blk h2 { font-size: clamp(24px, 3vw, 34px); color: var(--maroon); margin-bottom: 12px; }
.blk.bg-maroon h2 { color: var(--gold); }
.blk.bg-gold h2 { color: var(--wine); }
.blk-body p { margin: 0 0 10px; max-width: 70ch; }
.blk-body h3 { font-size: 20px; margin: 16px 0 6px; }
.blk-body ul { margin: 0 0 10px; padding-left: 20px; }
.blk .btn { margin-top: 8px; }
.blk.bg-maroon .btn { background: var(--gold); border-color: var(--gold); color: var(--wine); }
.blk.bg-gold .btn { background: var(--wine); border-color: var(--wine); color: var(--gold); }
.wrap.narrow { width: min(820px, 100% - 48px); }
.blk.strip { padding: 10px 0; text-align: center; font-weight: 600; font-size: 14.5px; }
.blk.strip .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.blk.strip .btn { margin: 0; padding: 5px 14px; font-size: 13.5px; }
.blk.banner { padding: 0; min-height: 220px; display: flex; align-items: center; overflow: hidden; background-color: var(--wine); color: #fff6ee; }
.blk.banner .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.blk.banner .wrap { position: relative; padding: 56px 0; }
.blk.banner h2 { color: var(--gold); font-size: clamp(28px, 4vw, 44px); }
.blk.banner .banner-in { max-width: 640px; }
.it-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.blk.flip .it-img { order: 2; }
.it-img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; border-radius: 3px; }
.it-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .it-grid { grid-template-columns: 1fr; gap: 20px; }
  .blk.flip .it-img { order: 0; }
  .wrap.narrow { width: calc(100% - 32px); }
}

/* ---------- Chế độ sửa trực tiếp (chỉ khi mở trong trang quản trị) ---------- */
.ebar { position: sticky; top: 0; z-index: 60; padding: 8px 16px; background: var(--wine); color: #f6ece4; font-size: 13.5px; text-align: center; border-bottom: 2px solid var(--gold); }
.ebar b { color: var(--gold); }
.editing .top { top: 38px; }
.editing [data-path] { outline: 1px dashed rgba(226, 176, 78, .0); outline-offset: 2px; cursor: text; transition: outline-color .12s, background-color .12s; }
.editing [data-path]:hover { outline-color: var(--gold); background-color: rgba(226, 176, 78, .14); }
.editing [data-path]:focus { outline: 2px solid var(--gold); background-color: rgba(226, 176, 78, .2); }
.editing [data-path]:empty::before { content: attr(data-ph); color: #a79385; font-style: italic; }
.editing .raw { white-space: pre-wrap; }
.editing .blk.bg-maroon [data-path]:hover, .editing .foot [data-path]:hover { background-color: rgba(255, 255, 255, .14); }
.editing .tile { cursor: pointer; }
.eimg { position: absolute; right: 8px; bottom: 8px; z-index: 5; padding: 6px 12px; border: 1px solid var(--gold); background: rgba(58, 14, 17, .92); color: var(--gold); font-weight: 600; font-size: 12.5px; border-radius: 3px; opacity: 0; transition: opacity .12s; }
.editing .tile-img:hover .eimg, .editing .it-img:hover .eimg, .editing .blk:hover > .eimg, .eimg:focus-visible { opacity: 1; }
@media (hover: none) { .eimg { opacity: 1; } }
.egoto { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.ebtn { padding: 6px 12px; border: 1px solid var(--gold-deep); background: #fbf2de; color: #5d4208; font-weight: 600; font-size: 12.5px; border-radius: 3px; }
.ebtn:hover { background: #f5e2b3; }
.ebtn.bad { border-color: #d9b3b3; background: #fbeeee; color: #a02424; }
.editing .blk > .eimg { top: 8px; bottom: auto; right: 12px; }
.editing .btn:empty::before { color: inherit; opacity: .6; }
.editing .btn:empty { min-width: 96px; }

/* ---------- Danh sách bên trái dạng cây: bộ sưu tập, rồi các mẫu hộp bên trong ---------- */
.fitem.grp { margin-top: 6px; font-weight: 600; font-family: var(--serif); font-size: 16px; }
.fprods { display: flex; flex-direction: column; margin: 0 0 6px 14px; border-left: 1px solid var(--line); }
.fprod { display: block; padding: 6px 10px 6px 14px; font-size: 14px; line-height: 1.35; color: #4a3a38; text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.fprod:hover { color: var(--maroon); background: rgba(91, 21, 23, .05); }
.fprod.on { color: var(--maroon); font-weight: 600; border-left-color: var(--gold); background: #fbf2de; }

/* ---------- Nhãn nhỏ ở góc ảnh và nhóm khách của giá ngoài danh sách ---------- */
.aud:empty { display: none; }
.gal-main { position: relative; }
.tags { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.tags .tag { pointer-events: auto; padding: 4px 10px; background: var(--wine); color: #f6e2b8; font-size: 12px; font-weight: 600; line-height: 1.3; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tags .tag.soldout { background: #7a2b2b; color: #fff; }
.tags .tag.add { border: 1px dashed var(--gold); background: rgba(58, 14, 17, .85); color: var(--gold); cursor: pointer; }
.audtag { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.tile .price { margin-bottom: 0; }

.gal-main img { transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.gal-main:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile-img img, .gal-main img { transition: none; } .tile:hover .tile-img img, .gal-main:hover img { transform: none; } }

/* ---------- Đăng nhập bắt buộc ---------- */
.gate-brand { display: none; font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--maroon); line-height: 1; margin-bottom: 10px; }
.gate.must { background: var(--wine); }
.gate.must .gate-brand { display: block; }
.gate.must [data-act="gate-cancel"] { display: none; }
body.gated .intro, body.gated .shell, body.gated .policy, body.gated .nav, body.gated .hotline { visibility: hidden; }

/* ---------- Đặt hàng và giỏ hàng ---------- */
.order { margin-top: 20px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.order h4 { font-size: 17px; color: var(--maroon); margin-bottom: 10px; }
.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.order-unit { color: var(--muted); font-size: 14px; }
.order-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.order-note a { color: var(--maroon); font-weight: 600; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: #fff; border-radius: 2px; }
.qty button { width: 40px; border: 0; background: var(--tint); font-size: 18px; line-height: 1; color: var(--maroon); }
.qty button:hover { background: #e2d8d2; }
.qty input { width: 76px; border: 0; text-align: center; font-weight: 600; font-size: 16px; padding: 9px 4px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; font-size: 16px; }
.qty.sm input { width: 62px; padding: 6px 2px; font-size: 14.5px; }
.cart-btn { border: 0; background: var(--gold); color: var(--wine); padding: 8px 14px; border-radius: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart-btn b { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; background: var(--wine); color: var(--gold); border-radius: 99px; font-size: 12.5px; }
.cart-btn:not([hidden]) + .hotline { background: transparent; color: var(--gold); border: 1px solid rgba(226, 176, 78, .6); }
.cart-ov { z-index: 70; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); box-shadow: -20px 0 60px rgba(0, 0, 0, .35); animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cart-top h2 { font-size: 24px; color: var(--maroon); }
.cart-empty { padding: 40px 22px; color: var(--muted); }
.cart-list { list-style: none; margin: 0; padding: 4px 18px; }
.cart-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-list img, .cart-list .ph { width: 64px; height: 80px; object-fit: cover; background: var(--tint); flex: none; }
.ci { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ci a { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.ci small { font-size: 12.5px; color: var(--muted); }
.ci-row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.ci-c { font-size: 13px; color: var(--muted); }
.ci-x { align-self: flex-start; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 4px; }
.ci-x:hover { color: #a02424; }
.cart-sum { margin: 6px 18px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); }
.cart-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cart-sum b { font-family: var(--serif); font-size: 18px; color: var(--maroon); }
.cart-sum p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.cart-form { padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 10px; }
.cart-form h3 { font-size: 18px; color: var(--maroon); }
.cart-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #4a3a38; }
.cart-form input, .cart-form textarea, .cart-text { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 2px; font: inherit; }
.cart-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cart-act .btn { flex: 1 1 auto; }
.cart-help { margin: 4px 0 0; font-size: 13px; color: #4a3a38; padding: 10px 12px; background: #eaf1ee; border-left: 3px solid var(--jade); }
.cart-text { margin-top: 8px; font-size: 13px; }
.cart-clear { align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.ctoast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 11px 16px; background: var(--wine); color: #fff6ee; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 14px; }
.ctoast[hidden] { display: none; }
.ctoast button { border: 1px solid var(--gold); background: transparent; color: var(--gold); padding: 4px 10px; border-radius: 2px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
  .cart-btn { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 480px) {
  .cart-btn:not([hidden]) ~ .hotline { display: none; }
  .brand-mark { font-size: 26px; }
  .top-in { gap: 10px; }
}
