/* Trầm Living: showroom nội thất phòng khách. Giá trị màu, cỡ, nhịp khai một lần ở :root. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-italic-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/be-vietnam-pro-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/be-vietnam-pro-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/be-vietnam-pro-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --stone: #efe9df;
  --stone-2: #e5ddcf;
  --paper: #f8f4ed;
  --ink: #1e1914;
  --ink-2: #4a4037;
  --muted: #6a5f54;
  --espresso: #1b1511;
  --espresso-2: #2b221b;
  --on-dark: #f3ece1;
  --on-dark-2: #c9bcab;
  --brass: #b08a4a;
  --brass-ink: #7a5a25;
  --brass-light: #d8b878;
  --danger: #a3342b;
  --danger-on-dark: #f0a79f;
  --line: rgb(30 25 20 / 0.16);
  --line-dark: rgb(243 236 225 / 0.2);
  --shadow: 0 24px 48px -28px rgb(43 29 17 / 0.45);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --radius: 4px;
  --radius-pill: 999px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;

  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
  --dur-4: 1000ms;
  --stagger: 80ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
body.locked {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
em,
i {
  font-style: italic;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

:where(.hero, .strip, .showroom, .foot, .menu, .top:not(.solid), .panel-btn) :focus-visible,
.panel-btn:focus-visible {
  outline-color: var(--brass-light);
}

.skip {
  position: fixed;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--paper);
  transform: translateY(-200%);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip:focus {
  transform: none;
}

/* ---------- Đường tiến độ cuộn ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Thanh trên ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition:
    background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.top::before {
  content: '';
  position: absolute;
  inset: 0 0 -24px 0;
  background: linear-gradient(to bottom, rgb(27 21 17 / 0.5), transparent);
  opacity: 1;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.top.solid {
  background: rgb(248 244 237 / 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.top.solid::before {
  opacity: 0;
}
@supports (backdrop-filter: blur(1px)) {
  .top.solid {
    background: rgb(248 244 237 / 0.92);
    backdrop-filter: blur(14px);
  }
}
.top-in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}
.logo b {
  font-style: normal;
  color: var(--brass-light);
}
.nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-r {
  justify-content: flex-end;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding-block: var(--space-3);
}
.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 6px 0;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.top.solid .nav a::after {
  background: var(--brass);
}
.nav a.on::after {
  transform: scaleX(1);
}
.top.solid .logo b {
  color: var(--brass-ink);
}
.menu-btn {
  display: none;
  justify-self: end;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  font-size: 14px;
}
.menu-icon {
  position: relative;
  width: 22px;
  height: 10px;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.menu-icon::before {
  top: 0;
}
.menu-icon::after {
  bottom: 0;
}
.menu-btn[aria-expanded='true'] .menu-icon::before {
  transform: translateY(4.25px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-icon::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: center;
  padding: var(--header-h) var(--gutter) var(--space-7);
  background: var(--espresso);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path var(--dur-3) var(--ease-io),
    visibility 0s linear var(--dur-3);
}
.menu.open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path var(--dur-3) var(--ease-io);
}
.menu nav {
  display: grid;
  gap: var(--space-3);
}
.menu a {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 64px);
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
}
.menu.open a {
  opacity: 1;
  transform: none;
}
.menu.open a:nth-child(2) {
  transition-delay: 60ms;
}
.menu.open a:nth-child(3) {
  transition-delay: 120ms;
}
.menu.open a:nth-child(4) {
  transition-delay: 180ms;
}

.top.menu-open {
  background: transparent;
  color: var(--on-dark);
  box-shadow: none;
  backdrop-filter: none;
}
.top.menu-open::before {
  opacity: 0;
}

/* ---------- Nút ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.btn.solid {
  background: var(--ink);
  color: var(--paper);
}
.btn.gold {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--espresso);
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: max(600px, min(100dvh, 820px));
  padding: calc(var(--header-h) + var(--space-8)) var(--gutter) var(--space-7);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--espresso-2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.82);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  z-index: -1;
  background: linear-gradient(to top, rgb(27 21 17 / 0.85), transparent);
}
.hero-copy {
  max-width: 880px;
}
.kicker {
  margin-bottom: var(--space-4);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 0.96;
}
.hero h1 em {
  color: var(--brass-light);
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.ln:nth-child(2) {
  padding-left: 0.9em;
}
.ln > span {
  display: block;
}
.hero-stats {
  display: flex;
  flex: none;
  gap: var(--space-6);
  text-align: right;
}
.hero-stats div {
  display: grid;
  min-width: 72px;
  padding-top: var(--space-3);
  border-top: 1px solid rgb(216 184 120 / 0.6);
}
.hero-stats dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  order: 2;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Vào hero */
.js .hero-media {
  animation: curtain var(--dur-4) var(--ease-io) both;
}
.js .hero-media img {
  animation: settle 1800ms var(--ease-out) both;
}
.js .ln > span {
  animation: line-up 900ms var(--ease-out) both;
}
.js .ln:nth-child(2) > span {
  animation-delay: 120ms;
}
.js .kicker,
.js .hero-stats {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: 360ms;
}
.js .hero-stats {
  animation-delay: 700ms;
}
@keyframes curtain {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes settle {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}
@keyframes line-up {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  .js .hero-media img {
    animation:
      settle 1800ms var(--ease-out) both,
      drift linear both;
    animation-timeline: auto, view();
    animation-range: normal, exit;
  }
}
@keyframes drift {
  to {
    translate: 0 9%;
  }
}

/* ---------- Hiện khi cuộn ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

.sec-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}
.sec-head h2 {
  max-width: 16ch;
  font-size: clamp(36px, 4.4vw, 60px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Bộ sưu tập: panel mở rộng ---------- */
.collections {
  padding-block: var(--space-9) var(--space-8);
}
.panels {
  display: flex;
  gap: 10px;
  height: 560px;
}
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  transition: flex-grow var(--dur-3) var(--ease-out);
}
.panel:first-child {
  flex-grow: 3.2;
}
.panels:has(.panel:hover, .panel:focus-within) .panel:first-child:not(:hover, :focus-within) {
  flex-grow: 1;
}
.panels .panel:hover,
.panels .panel:focus-within {
  flex-grow: 3.2;
}
.panel-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--espresso-2);
  color: var(--on-dark);
  text-align: left;
}
.panel-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}
.panel-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(27 21 17 / 0.8), rgb(27 21 17 / 0.05) 60%);
}
.panel-no {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 1;
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--brass-light);
}
.panel-text {
  position: absolute;
  inset: auto var(--space-5) var(--space-5) var(--space-5);
  z-index: 1;
  display: grid;
  gap: 6px;
}
.panel-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
}
.panel-more,
.panel-go {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
  transition:
    max-height var(--dur-3) var(--ease-out),
    opacity var(--dur-2) var(--ease-out);
}
.panel-go {
  font-size: 13px;
  color: var(--brass-light);
}
.panel:first-child .panel-more,
.panel:first-child .panel-go,
.panel:hover .panel-more,
.panel:hover .panel-go,
.panel:focus-within .panel-more,
.panel:focus-within .panel-go {
  max-height: 80px;
  opacity: 1;
}
.panels:has(.panel:hover, .panel:focus-within) .panel:first-child:not(:hover, :focus-within) :is(.panel-more, .panel-go) {
  max-height: 0;
  opacity: 0;
}
.panel:active .panel-btn {
  transform: scale(0.99);
}

/* ---------- Băng chất liệu ---------- */
.strip {
  background: var(--espresso);
  color: var(--brass-light);
}
.strip-in {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: none;
  padding-inline: var(--gutter) var(--gutter);
}
.marquee {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  min-width: 100%;
  animation: run 40s linear infinite;
}
.marquee.paused .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  flex: none;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: calc(var(--space-6) * 2);
  vertical-align: middle;
  background: var(--brass);
  transform: rotate(45deg);
}
@keyframes run {
  to {
    transform: translateX(-100%);
  }
}
.strip-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--brass);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--brass-light);
  font-size: 13px;
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.strip-btn:active {
  transform: scale(0.97);
}
.strip-btn .i-play,
.strip-btn[aria-pressed='true'] .i-pause {
  display: none;
}
.strip-btn[aria-pressed='true'] .i-play {
  display: block;
}

/* ---------- Danh mục ---------- */
.catalog {
  padding-block: var(--space-9) var(--space-9);
}
.bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-4) var(--gutter);
  background: rgb(239 233 223 / 0.97);
  box-shadow: 0 1px 0 #d2c7b4;
}
@supports (backdrop-filter: blur(1px)) {
  .bar {
    background: rgb(239 233 223 / 0.93);
    backdrop-filter: blur(12px);
  }
}
.bar,
.filters {
  min-width: 0;
}
.filters {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.tabs-wrap {
  position: relative;
  min-width: 0;
}
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin-right: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.tab[aria-pressed='true'] {
  color: var(--ink);
  font-weight: 600;
}
.tab:active {
  transform: scale(0.97);
}
.tab-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100px;
  background: var(--brass);
  transform-origin: 0 50%;
  transition:
    transform var(--dur-3) var(--ease-out),
    width var(--dur-3) var(--ease-out);
  pointer-events: none;
}

/* Dropdown tự vẽ */
.dd {
  position: relative;
}
.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid #cfc3ae;
  border-radius: 2px;
  background: #fbf8f2;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.dd-btn:active {
  transform: scale(0.98);
}
.dd-btn .k {
  font-weight: 400;
  color: var(--muted);
}
.dd-btn[data-active='true'] {
  border-color: var(--brass);
}
.dd-caret {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-2) var(--ease-out);
}
.dd-btn[aria-expanded='true'] {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgb(176 138 74 / 0.22);
}
.dd-btn[aria-expanded='true'] .dd-caret {
  transform: rotate(180deg);
}
.dd-list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: max(100%, 240px);
  max-height: min(340px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brass) transparent;
  padding: 6px;
  border: 1px solid #cfc3ae;
  border-radius: 2px;
  background: #fbf8f2;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top left;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.dd.up .dd-list {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom left;
  transform: translateY(6px);
}
.dd.right .dd-list {
  left: auto;
  right: 0;
  transform-origin: top right;
}
.dd.open .dd-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out);
}
.dd-opt[aria-selected='true'] {
  font-weight: 600;
  color: var(--brass-ink);
}
.dd-opt[aria-selected='true']::after {
  content: '';
  width: 6px;
  height: 10px;
  margin-right: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
}
.dd-opt:active {
  background: var(--stone-2);
}
.dd-opt.cur {
  background: var(--stone-2);
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.count {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.count b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--brass);
  border-radius: var(--radius-pill);
  background: rgb(176 138 74 / 0.08);
  font-size: 13px;
  color: var(--brass-ink);
  animation: rise var(--dur-2) var(--ease-out) both;
}
.chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--brass-ink);
  color: #fff;
  transition: transform var(--dur-2) var(--ease-out);
}
.chip button:active {
  transform: rotate(90deg) scale(0.9);
}
.clear {
  margin-left: 6px;
  padding: var(--space-2);
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  animation: rise var(--dur-2) var(--ease-out) both;
  transition: color var(--dur-1) var(--ease-out);
}
.clear:active {
  transform: scale(0.97);
}

/* Lưới lệch nhịp */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 28px;
  margin-top: var(--space-7);
  align-items: start;
}
.card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-1) var(--ease-out);
}
.card:nth-child(3n + 2) {
  margin-top: 64px;
}
.card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone-2);
}
.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform 900ms var(--ease-out);
}
.card figure img.ready {
  opacity: 1;
}
.card figure.broken::before {
  content: 'Ảnh chưa tải được';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
}
.card figure.broken img {
  display: none;
}
.card figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 70%) var(--my, 25%),
    rgb(255 214 140 / 0.38),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 10px;
  background: var(--espresso);
  color: var(--brass-light);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-body {
  display: grid;
  gap: 4px;
  padding-top: var(--space-4);
}
.card-name {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.card-meta {
  font-size: 13px;
  color: var(--muted);
}
.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--brass-ink);
}
.card-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.card:active {
  transform: scale(0.99);
}

.skeleton .card figure {
  animation: shimmer 1.6s ease-in-out infinite;
}
.skeleton .sk-line {
  height: 18px;
  margin-top: var(--space-2);
  background: var(--stone-2);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  50% {
    opacity: 0.55;
  }
}
.card.fresh {
  animation: rise var(--dur-3) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}

.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
  padding: var(--space-7) var(--space-5);
  border: 1px dashed var(--brass);
  background: var(--stone);
  text-align: center;
  animation: rise var(--dur-3) var(--ease-out) both;
}
.empty[hidden] {
  display: none;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 30px;
}
.empty p {
  margin-bottom: var(--space-3);
  color: var(--muted);
}
.more {
  display: flex;
  justify-content: center;
  margin-top: 72px;
}
.more[hidden] {
  display: none;
}
.noscript {
  padding: var(--space-5);
  border: 1px solid var(--line);
}

/* ---------- Showroom và form ---------- */
.showroom {
  padding-block: var(--space-9);
  background: var(--espresso);
  color: var(--on-dark);
}
.show-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8);
  align-items: center;
}
.show-media {
  height: 620px;
  margin-left: max(0px, calc((100vw - var(--maxw)) / 2));
  overflow: hidden;
  background: var(--espresso-2);
}
.show-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .show-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1100ms var(--ease-io);
}
.js .show-grid.in .show-media {
  clip-path: inset(0);
}
.show-body {
  display: grid;
  gap: var(--space-3);
  padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.show-body .eyebrow {
  color: var(--brass-light);
}
.show-body .eyebrow::before {
  background: var(--brass-light);
}
.show-body h2 {
  max-width: none;
  font-size: clamp(38px, 4.4vw, 60px);
  color: var(--on-dark);
}
.lead {
  max-width: 46ch;
  margin-bottom: var(--space-4);
  color: var(--on-dark-2);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) 18px;
}
.wide {
  grid-column: 1 / -1;
}
.field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}
.field label,
.field .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  transition: color var(--dur-2) var(--ease-out);
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #5a4a38;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.05);
  color: var(--on-dark);
  font-size: 15px;
  transition:
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.field input:hover {
  border-color: #8b7451;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--brass-light);
  box-shadow: 0 0 0 3px rgb(216 184 120 / 0.25);
}
.field:focus-within label,
.field:focus-within .label {
  color: #fff;
}
.field.bad input {
  border-color: #e0836f;
  animation: shake 420ms var(--ease-out);
}
.msg {
  font-size: 13px;
  color: var(--danger-on-dark);
}
.msg:empty {
  display: none;
}
.field.bad .msg {
  animation: rise var(--dur-2) var(--ease-out) both;
}
@keyframes shake {
  20% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  80% {
    transform: translateX(-2px);
  }
}
.form .dd-btn {
  width: 100%;
  background: rgb(255 255 255 / 0.05);
  border-color: #5a4a38;
  color: var(--on-dark);
}
.form .dd-btn .k {
  display: none;
}
.form .dd-btn[data-active='true'] {
  border-color: #8b7451;
}
.form .dd-btn[aria-expanded='true'] {
  border-color: var(--brass-light);
  box-shadow: 0 0 0 3px rgb(216 184 120 / 0.25);
}
.form .dd-list {
  width: 100%;
  background: var(--espresso-2);
  border-color: #5a4a38;
  color: var(--on-dark);
}
.form .dd-opt[aria-selected='true'] {
  color: var(--brass-light);
}
.form .dd-opt.cur {
  background: rgb(243 236 225 / 0.1);
}
.submit {
  width: 100%;
}
.spin {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.submit.busy {
  opacity: 0.75;
  pointer-events: none;
}
.submit.busy .spin {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sent {
  padding: 12px var(--space-4);
  border-left: 3px solid var(--brass-light);
  background: rgb(216 184 120 / 0.1);
  font-size: 14px;
  color: var(--on-dark);
  animation: rise var(--dur-3) var(--ease-out) both;
}
.sent[hidden] {
  display: none;
}
.hint {
  font-size: 12px;
  color: #a39580;
}

.foot {
  padding-block: var(--space-7);
  background: #120d0a;
  color: #a39580;
  font-size: 14px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.foot .logo {
  font-size: 26px;
  color: var(--on-dark);
}
.foot p {
  max-width: 70ch;
}

/* ---------- Nút lên đầu trang ---------- */
.to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.to-top:active {
  transform: scale(0.94);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

/* ---------- Ngăn chi tiết ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  transition: visibility 0s linear var(--dur-3);
}
.drawer.open {
  visibility: visible;
  transition: none;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgb(27 21 17 / 0.6);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.drawer.open .scrim {
  opacity: 1;
}
.sheet {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(580px, 100%);
  background: var(--paper);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-io);
  outline: none;
}
.drawer.open .sheet {
  transform: none;
}
.sheet-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brass) transparent;
}
.sheet-img {
  position: relative;
  aspect-ratio: 1;
  max-height: 58dvh;
  width: 100%;
  background: var(--stone-2);
}
.sheet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.sheet-img img.ready {
  opacity: 1;
}
.sheet-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  transition: transform var(--dur-1) var(--ease-out);
}
.sheet-close:active {
  transform: scale(0.94);
}
.sheet-in {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  animation: rise var(--dur-3) var(--ease-out) both;
}
.sheet-group {
  font-size: 14px;
  color: var(--brass-ink);
}
.sheet-in h2 {
  font-size: clamp(34px, 5vw, 48px);
}
.sheet-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.sheet-price small {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.specs {
  display: grid;
  border-top: 1px solid var(--line);
}
.specs div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  overflow-wrap: anywhere;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.sheet-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.sheet-nav button {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: none;
  font-size: 14px;
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.sheet-nav button:active {
  transform: scale(0.97);
}
.sheet-nav button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.sheet-missing {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
}

/* ---------- Hover chỉ trên thiết bị có chuột ---------- */
@media (hover: hover) {
  .nav a:hover::after {
    transform: scaleX(1);
  }
  .btn.solid:hover {
    background: var(--brass-ink);
    border-color: var(--brass-ink);
    color: var(--paper);
  }
  .btn.ghost:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .btn.gold:hover {
    background: var(--paper);
    border-color: var(--paper);
  }
  .panel:hover .panel-btn img {
    transform: scale(1.06);
  }
  .tab:hover {
    color: var(--ink);
  }
  .dd-btn:hover {
    border-color: var(--brass);
  }
  .dd-opt:hover {
    background: var(--stone-2);
  }
  .form .dd-opt:hover {
    background: rgb(243 236 225 / 0.1);
  }
  .chip button:hover {
    transform: rotate(90deg);
  }
  .clear:hover {
    color: var(--ink);
  }
  .card:hover figure img {
    transform: scale(1.06);
  }
  .card:hover figure::after {
    opacity: 1;
  }
  .strip-btn:hover {
    background: var(--brass);
    color: var(--espresso);
  }
  .sheet-nav button:not([disabled]):hover {
    border-color: var(--ink);
  }
  .to-top:hover {
    background: var(--brass-ink);
  }
  .sheet-close:hover {
    background: var(--ink);
    color: var(--paper);
  }
}
.to-top.show:active {
  transform: scale(0.94);
}

/* ---------- Máy tính bảng và điện thoại ---------- */
@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .top-in {
    grid-template-columns: 1fr auto 1fr;
  }
  .logo {
    grid-column: 2;
  }
  .menu-btn {
    grid-column: 3;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .menu-label {
    display: none;
  }
  .hero-stats {
    gap: var(--space-5);
    text-align: left;
  }
  .hero-stats dd {
    font-size: 40px;
  }
  .ln:nth-child(2) {
    padding-left: 0.5em;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 14px;
  }
  .card:nth-child(3n + 2) {
    margin-top: 0;
  }
  .card:nth-child(2n) {
    margin-top: 36px;
  }
  .show-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }
  .show-media {
    height: 380px;
    margin-left: 0;
  }
  .show-body {
    padding-inline: var(--gutter);
  }
}
@media (max-width: 719px) {
  :root {
    --header-h: 64px;
  }
  .collections {
    padding-block: var(--space-8) var(--space-7);
  }
  .panels {
    flex-direction: column;
    height: auto;
  }
  .panel,
  .panel:first-child,
  .panels .panel:hover,
  .panels .panel:focus-within,
  .panels:has(.panel:hover, .panel:focus-within) .panel:first-child:not(:hover, :focus-within) {
    flex: none;
    height: 200px;
  }
  .panel-more,
  .panel-go,
  .panels:has(.panel:hover, .panel:focus-within) .panel:first-child:not(:hover, :focus-within) :is(.panel-more, .panel-go) {
    max-height: 80px;
    opacity: 1;
  }
  .panel-go {
    display: none;
  }
  .card-name {
    font-size: 19px;
  }
  .card-price {
    font-size: 21px;
  }
  .card-price small {
    display: none;
  }
  .catalog,
  .showroom {
    padding-block: var(--space-8);
  }
  .bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filters .dd {
    flex: 1 1 calc(50% - var(--space-3));
  }
  .filters .dd-btn {
    width: 100%;
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .count {
    flex: 1 1 100%;
    margin-left: 0;
  }
  .dd-list {
    min-width: 220px;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet-in {
    padding: var(--space-5);
  }
  .strip-btn span {
    display: none;
  }
  .strip-btn {
    padding: 0;
    width: 44px;
    justify-content: center;
  }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    animation-timeline: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero-media img,
  .progress {
    animation: none;
  }
  .js .rv {
    opacity: 1;
    transform: none;
  }
  .js .show-media {
    clip-path: none;
  }
  .marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .marquee-track[aria-hidden='true'] {
    display: none;
  }
  .strip-btn {
    display: none;
  }
  .card:hover figure img,
  .panel:hover .panel-btn img {
    transform: none;
  }
}
