/* Mộc Gia Trang — giao diện tối giản */
:root {
  --ground: #F4F1EC;
  --ground-2: #EBE5DC;
  --ink: #1E1B17;
  --text: #4A443D;
  --muted: #6B645C;
  --line: #D9D1C5;
  --line-strong: #BFB4A5;
  --accent: #5C4330;
  --tone-1: #DDD3C5;
  --tone-2: #E4DCD0;
  --tone-3: #E0D7CA;
  --tone-4: #D8CCBB;
  --tone-5: #D3C7B6;
  --footer: #1E1B17;
  --footer-text: #EDE7DE;
  --footer-muted: #A69C90;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; }
.display .accent { color: var(--accent); }
.h-xl { font-size: clamp(48px, 6.2vw, 88px); }
.h-lg { font-size: clamp(38px, 4.4vw, 58px); }
.h-md { font-size: clamp(32px, 3.6vw, 48px); }
.lead { font-size: 17px; color: var(--text); }
.body { font-size: 16px; color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn:hover { color: #fff; opacity: .88; }
.link-line {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Header ---------- */
/* Header dính trên cùng khi cuộn; thu gọn chiều cao khi đã cuộn xuống (class .is-scrolled do JS thêm) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 236, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(30, 27, 23, .35); }
.site-header .container {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  transition: min-height .25s ease;
}
.site-header.is-scrolled .container { min-height: 60px; }
.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.3em;
  padding: 12px 0;
}
/* Logo header (phương án A): đậm 700, cỡ 24px, giãn chữ 0,24em; thu nhỏ khi header thu gọn */
.site-header .logo { font-size: 24px; font-weight: 700; letter-spacing: 0.24em; transition: font-size .25s ease; }
.site-header.is-scrolled .logo { font-size: 21px; }
/* Dòng chữ nhỏ dưới logo (Cài đặt chung → Đầu trang): ẩn khi header thu gọn */
.site-header .logo { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.brand-name { margin-right: -0.24em; } /* bù khoảng giãn chữ ở cuối để căn giữa đúng */
.brand-tagline {
  max-height: 24px; margin-top: 3px; overflow: hidden;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 16px; letter-spacing: 0.04em; color: #3B2819; /* nâu đậm, tương phản 12,4:1 trên nền kem */
  transition: opacity .2s ease, max-height .25s ease, margin-top .25s ease;
}
.site-header.is-scrolled .brand-tagline { opacity: 0; max-height: 0; margin-top: 0; }
.main-nav { display: flex; align-items: center; gap: 40px; font-size: 13px; letter-spacing: 0.08em; font-weight: 400; }
.main-nav > a, .nav-item > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid transparent; }
.main-nav > a[aria-current="page"], .nav-item > a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-chevron { transition: transform .2s ease; }

/* Menu thả xuống "Sản phẩm" */
.nav-item { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: -18px; z-index: 60;
  min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--ground); border: 1px solid var(--line);
  box-shadow: 0 12px 28px -18px rgba(30, 27, 23, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* cầu nối để rê chuột không bị mất menu */
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover .nav-chevron, .nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 9px 18px; font-size: 14px; letter-spacing: 0.02em; color: var(--text); }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--ink); background: var(--ground-2); }

/* Nút menu ☰ (chỉ hiện trên điện thoại) */
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s ease, background-color .25s ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Liên kết "Bỏ qua tới nội dung": ẩn, chỉ hiện khi dùng phím Tab */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--ground);
  font-size: 14px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--ground); }
#main-content:focus { outline: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
/* Màn hình rộng: cột ảnh rộng hơn (5 : 7) để ảnh ngang 4:3 cân với khối chữ */
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 80px); }
}
.hero-text { display: flex; flex-direction: column; gap: 32px; max-width: 500px; }
.hero-text .lead { max-width: 440px; }
.hero-text .btn { align-self: flex-start; }
.hero-media {
  margin: 0;
  position: relative;
  background: var(--tone-1);
  aspect-ratio: 4 / 3; /* ngang 4:3, đồng bộ với các ảnh khác */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hình minh hoạ .svg: đặt giữa theo chiều cao để không bị chật / cắt trong khung ngang */
.hero-media img { width: auto; height: 74%; max-width: 80%; }
.hero-media img.photo { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #5A5147;
}
/* Có ảnh chụp thật: chú thích chữ trắng trên nền mờ để dễ đọc */
.hero-media img.photo ~ figcaption { color: #fff; background: rgba(30, 27, 23, .45); padding: 4px 12px; border-radius: 999px; left: 16px; bottom: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-top { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.band { background: var(--ground-2); }
.centered {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 136px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.centered .body { max-width: 580px; }
.centered .link-line { margin-top: 8px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 48px 24px;
}
.card { display: flex; flex-direction: column; gap: 16px; }
.card[hidden] { display: none; }
.card-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
}
.card-media img { width: 58%; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-info { display: flex; flex-direction: column; gap: 2px; }
.card-name { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.card-wood { font-size: 13px; color: var(--muted); }
.card-price { font-size: 14px; font-weight: 400; margin-top: 6px; color: var(--ink); }
.tone-1 { background: var(--tone-1); }
.tone-2 { background: var(--tone-2); }
.tone-3 { background: var(--tone-3); }
.tone-4 { background: var(--tone-4); }
.tone-5 { background: var(--tone-5); }

/* ---------- Product list page ---------- */
.page-title {
  padding-block: clamp(48px, 6vw, 80px) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page-title .intro { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.page-title .h-xl { font-size: clamp(48px, 5.4vw, 76px); line-height: 1; }
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filter-tabs { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.filter-tabs button, .filter-tabs a { white-space: nowrap; }
@media (max-width: 640px) {
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; gap: 24px; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  /* Vùng vuốt ngang cắt mất phần lệch -1px → đặt gạch chân nằm trong vùng để vẫn thấy mục đang chọn */
  .filter-bar .filter-tabs button, .filter-bar .filter-tabs a { margin-bottom: 0; }
}
.filter-tabs button, .filter-tabs a {
  min-height: 48px;
  margin-bottom: -1px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.filter-tabs button[aria-pressed="true"], .filter-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { font-size: 13px; color: var(--muted); }
.list-section { padding-block: 16px clamp(72px, 9vw, 120px); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb [aria-current] { color: var(--ink); }
.pdp { padding-block: 28px clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 32px; }
.pdp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
}
.gallery-main img { width: 62%; transition: width .35s ease; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbs button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbs button img { width: 60%; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }

.pdp-info { display: flex; flex-direction: column; gap: 28px; max-width: 480px; padding-top: 8px; }
.pdp-info .title { display: flex; flex-direction: column; gap: 10px; }
.pdp-info .eyebrow { letter-spacing: 0.24em; }
.pdp-info h1 { font-size: clamp(40px, 4.2vw, 56px); line-height: 1.05; }
.price { font-size: 20px; font-weight: 400; }
.option { display: flex; flex-direction: column; gap: 12px; }
.option-label { font-size: 13px; color: var(--text); }
.option-label strong { color: var(--ink); font-weight: 400; }
.swatches { display: flex; gap: 12px; }
.swatches button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 4px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.swatches button span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- Story page ---------- */
.story-intro {
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px 64px;
  align-items: end;
}
.story-intro .heading { display: flex; flex-direction: column; gap: 20px; }
.story-intro .h-xl { font-size: clamp(48px, 5.6vw, 80px); }
.story-intro .body { max-width: 500px; }

.story-filter { padding-bottom: 40px; }   /* thanh lọc chủ đề, cách danh sách bài như trang Sản phẩm */
.story-list { padding-bottom: clamp(72px, 9vw, 120px); }
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 24px;
}
@media (max-width: 1024px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { display: flex; flex-direction: column; gap: 18px; }
.story-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-media img { transform: scale(1.04); }
.story-media .placeholder { font-size: 11px; letter-spacing: 0.2em; color: #5A5147; font-weight: 400; text-align: center; padding: 0 12px; }
.story-info { display: flex; flex-direction: column; gap: 8px; }
.story-meta { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.story-info h2, .story-info h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.story-info h2 ~ p { font-size: 14px; color: var(--text); }
.story-card[hidden] { display: none; }
.pagination {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.pagination[hidden] { display: none; }
.pagination .pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination .pages button, .pagination .pages a, .pagination .pages span.current {
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  cursor: pointer;
}
.pagination .pages a:hover, .pagination .pages button:hover { color: var(--accent); }
.pagination .pages [aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.pagination .gap { min-width: 24px; text-align: center; color: var(--muted); }
.pagination .arrow {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination .arrow:disabled, .pagination .arrow[aria-disabled="true"] { opacity: .35; cursor: default; }

/* ---------- Article detail ---------- */
.article-head { padding-block: 28px 0; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.article-title { max-width: 820px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.article-title h1 { font-size: clamp(42px, 5.2vw, 72px); }
.article-title::after { content: ''; display: block; width: 120px; height: 1px; margin-top: 12px; background: var(--line-strong); }

.article-figure .media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-figure .media { aspect-ratio: 3 / 2; }
.article-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-figure .placeholder { font-size: 12px; letter-spacing: 0.2em; color: #5A5147; font-weight: 400; }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-block: clamp(48px, 6vw, 80px) 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2em;
}
.article-body strong { font-weight: 400; color: var(--ink); }
.article-body ul { padding-left: 1.1em; }
.article-body li + li { margin-top: .5em; }
.article-body li::marker { color: var(--accent); }
.article-body > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.2em;
  line-height: .85;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.pull-quote {
  margin-inline: 0;
  margin-block: 2.2em;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--accent);
}
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); }
.article-figure { margin-inline: 0; margin-block: 2.2em; }
.article-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.article-foot {
  max-width: 680px;
  margin: 0 auto;
  padding-block: clamp(48px, 6vw, 72px) clamp(72px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { font-size: 12px; letter-spacing: 0.08em; padding: 8px 14px; border: 1px solid var(--line-strong); }
.article-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-nav a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; }
.article-nav .t { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.article-nav .next { text-align: right; align-items: flex-end; }
@media (min-width: 560px) { .article-nav .next { border-left: 1px solid var(--line); padding-left: 24px; } .article-nav .prev { padding-right: 24px; } }
@media (max-width: 559px) { .article-nav .next { border-top: 1px solid var(--line); } }

/* ---------- About page ---------- */
.about-hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.about-hero .heading { display: flex; flex-direction: column; gap: 20px; }
.about-hero .h-xl { font-size: clamp(44px, 5.4vw, 78px); }
.about-hero-text { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo .placeholder { font-size: 12px; letter-spacing: 0.2em; color: #5A5147; font-weight: 400; }
@media (max-width: 640px) { .about-photo { aspect-ratio: 4 / 3; } }

.about-media { padding-bottom: clamp(64px, 8vw, 104px); }
.about-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 18px;
}
.about-caption p:last-child { font-size: 14px; color: var(--text); max-width: 560px; }

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px 32px;
}
.values li { display: flex; flex-direction: column; gap: 12px; }
.values .num { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.values p { font-size: 15px; color: var(--text); }

.intro-stack { display: flex; flex-direction: column; gap: 16px; }

.about-b2b {
  padding-block: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 40px 80px;
  align-items: start;
}
.about-b2b .intro-stack { gap: 24px; max-width: 540px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 15px; }
.steps span { font-family: var(--serif); font-size: 20px; color: var(--accent); }


/* ---------- Footer: 4 cột — Thương hiệu · Khám phá · Sản phẩm · Liên hệ ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); }
.site-footer .container { padding-block: 64px 28px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 40px 48px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand .logo { padding: 0; color: var(--footer-text); }
.footer-muted { margin: 0; font-size: 14px; line-height: 1.65; color: var(--footer-muted); }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-heading { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--footer-text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-contact a { color: var(--footer-muted); font-size: 14px; transition: color .2s ease; }
.footer-col ul a:hover, .footer-contact a:hover { color: var(--footer-text); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-style: normal; color: var(--footer-muted); }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item svg { flex: none; margin-top: 2px; color: var(--footer-text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid #3A352F; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--footer-muted);
}
/* Máy tính bảng: 2 cột */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Điện thoại: thương hiệu trên cùng, Khám phá + Sản phẩm 2 cột, Liên hệ dưới cùng */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  /* Header 1 hàng: logo + nút menu; menu trượt xuống khi bấm */
  .site-header .container, .site-header.is-scrolled .container { min-height: 60px; }
  .site-header .logo, .site-header.is-scrolled .logo { font-size: 20px; letter-spacing: 0.20em; padding: 8px 0; }
  .brand-name { margin-right: -0.20em; }
  .brand-tagline { font-size: 14px; margin-top: 2px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px clamp(20px, 4vw, 40px) 20px;
    background: var(--ground); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -20px rgba(30, 27, 23, .4);
    font-size: 15px; letter-spacing: 0.04em;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-item > a { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav > a[aria-current="page"], .nav-item > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav-chevron { display: none; }
  /* Trong menu điện thoại: các loại sản phẩm hiện sẵn, thụt vào */
  .nav-sub {
    position: static; min-width: 0; padding: 4px 0 8px 14px;
    border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 9px 4px; font-size: 14px; }
  .nav-sub a:hover { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bổ sung cho bản Laravel ---------- */
.filter-tabs a { display: inline-flex; align-items: center; }
.pagination .pages a, .pagination .pages span.current { display: inline-flex; align-items: center; justify-content: center; }
/* Ảnh chụp thật (jpg/png/webp) phủ kín khung; hình minh hoạ .svg giữ nguyên ở giữa khung */
.card-media, .gallery-main, .thumbs button { position: relative; overflow: hidden; }
.card-media img.photo, .gallery-main img.photo, .thumbs button img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.article-body img { max-width: 100%; height: auto; margin-block: 2em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); margin-top: 1.6em; }
.article-body blockquote { margin-inline: 0; margin-block: 2.2em; padding: 8px 0 8px 28px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; color: var(--ink); }
.article-body blockquote p { margin: 0; }
.empty-note { padding-block: 40px; color: var(--muted); }

/* ---------- Slide ảnh xưởng (trang Giới thiệu) ---------- */
.photo-slider { display: block; user-select: none; -webkit-user-select: none; }
.photo-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  touch-action: pan-y;            /* vuốt dọc vẫn cuộn trang, vuốt ngang để chuyển ảnh */
}
.photo-slider[data-slider] .slider-track { cursor: grab; }
.slider-track.is-dragging { transition: none; cursor: grabbing; }
.slider-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slider-slide img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slider-counter {
  position: absolute; top: 16px; left: 20px; z-index: 2;
  padding: 2px 10px; font-family: var(--serif); font-size: 18px;
  color: #fff; background: rgba(30, 27, 23, .35); border-radius: 999px;
}
.slider-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(244, 241, 236, .85); cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease;
}
.slider-arrow:hover { background: var(--ground); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }
.slider-dots {
  position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%);
  display: flex; gap: 2px;
}
.slider-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slider-dots button span {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); transition: width .3s ease, background-color .3s ease;
}
.slider-dots button[aria-current="true"] span { width: 22px; border-radius: 4px; background: #fff; }
@media (max-width: 640px) {
  .slider-arrow { display: none; }  /* điện thoại: vuốt để chuyển ảnh */
}
@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
}

/* ---------- Thẻ sản phẩm / loại sản phẩm chưa có ảnh: hiện tên trên nền màu ---------- */
.card-media .placeholder { font-size: 11px; letter-spacing: 0.2em; color: #5A5147; font-weight: 400; text-align: center; padding: 0 12px; }

/* ---------- Ảnh sản phẩm dạng slide (trang Chi tiết) ---------- */
.gallery-main.photo-slider { display: block; cursor: zoom-in; }
.gallery-main.photo-slider .slider-track { cursor: inherit; }
.gallery-main .slider-slide { display: flex; align-items: center; justify-content: center; }
/* Hình minh hoạ .svg giữ cỡ như trước; ảnh chụp phủ kín khung (quy tắc .slider-slide img.photo) */
.gallery-main .slider-slide img:not(.photo) { width: 62%; height: auto; pointer-events: none; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(244, 241, 236, .85); cursor: pointer;
}
.gallery-zoom:hover { background: var(--ground); }
.thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thumbs button { position: relative; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
/* Chấm chỉ dùng trên điện thoại (máy tính đã có hàng ảnh nhỏ) */
.gallery-dots { display: none; pointer-events: none; }
.gallery-dots > span { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.gallery-dots > span > span { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(30, 27, 23, .25); transition: width .3s ease, background-color .3s ease; }
.gallery-dots > span[aria-current="true"] > span { width: 18px; border-radius: 4px; background: var(--ink); }
@media (max-width: 640px) {
  .gallery .thumbs { display: none; }   /* điện thoại: vuốt + chấm, gọn như các sàn TMĐT */
  .gallery-dots { display: flex; }
}

/* ---------- Xem ảnh lớn (toàn màn hình) ---------- */
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 18, 15, .94);
  display: flex; align-items: center; justify-content: center;
  animation: lightbox-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.lightbox .slider-track { height: 100%; cursor: grab; }
.lightbox .slider-slide { display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox .slider-slide img {
  position: static; display: block;
  width: min(92vw, 86vh, 1100px); height: auto; max-height: 100%;
  object-fit: contain; pointer-events: none; user-select: none;
}
.lightbox .slider-counter { top: 18px; left: 20px; background: rgba(255, 255, 255, .12); }
.lightbox .slider-arrow { background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox .slider-arrow:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close:focus-visible, .lightbox .slider-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox .slider-slide img.is-illustration { background: var(--tone-1); padding: 10%; box-sizing: border-box; aspect-ratio: 1 / 1; }


/* ---------- Thông tin sản phẩm: Mô tả / Bảo quản (luôn hiện sẵn) ---------- */
.info-blocks { border-top: 1px solid var(--line); }
.info-block { padding: 18px 0 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.info-block h2 { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink); }
.info-block p { margin: 0; font-size: 14px; color: var(--text); }
/* Chất liệu, Kích thước, Cân nặng: các dòng nằm sát nhau */
.spec-lines { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Trang 404 ---------- */
.not-found { text-align: center; max-width: 760px; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.not-found-code {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(88px, 11vw, 150px);
  line-height: .82;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: lining-nums;   /* số thẳng hàng (phông Cormorant mặc định cho số 4 thò xuống dưới) */
}
.not-found-code em { font-weight: 400; color: var(--line-strong); padding-inline: .02em; }
.not-found h1 { margin: clamp(24px, 3vw, 36px) 0 0; }
.not-found h1 em { white-space: nowrap; }
.not-found .lead { margin: 18px auto 0; max-width: 520px; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 36px; }

/* ---------- Cách đặt hàng (trang Đặt hàng) ---------- */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.way { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line-strong); color: var(--text); }
.way-icon { color: var(--accent); }
.way-title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); }
.way p { font-size: 15px; }
.way-more { margin-top: auto; padding-top: 6px; font-size: 12px; letter-spacing: 0.14em; color: var(--ink); }
.way-link { transition: border-color .2s; }
.way-link:hover { border-top-color: var(--accent); }
.way-link:hover .way-title { color: var(--accent); }
.way-link:hover .way-more span { padding-left: 4px; }
.way-more span { transition: padding .2s; }
@media (max-width: 1024px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Trang Đặt hàng số lượng ---------- */
.order-hero .about-hero-text .btn { align-self: flex-start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.process-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.process-list .num { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--accent); font-variant-numeric: lining-nums; }
.process-list h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--ink); }
.process-list p { margin-top: 4px; font-size: 15px; color: var(--text); }
@media (max-width: 560px) { .process-list li { grid-template-columns: 40px minmax(0, 1fr); } .process-list h3 { font-size: 22px; } }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 8px; }
.about-b2b-link { align-self: flex-start; }

/* ---------- Trang chủ: Đặt hàng theo yêu cầu ---------- */
.custom-order { padding-block: clamp(72px, 9vw, 120px); align-items: center; }
.custom-order .btn { align-self: flex-start; margin-top: 8px; }
.custom-order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.custom-order-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 24px 4px; border-bottom: 1px solid var(--line-strong); color: var(--text);
}
.custom-order-text { display: flex; flex-direction: column; gap: 4px; }
.custom-order-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); transition: color .2s; }
.custom-order-desc { font-size: 15px; }
.custom-order-arrow { font-size: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.custom-order-list a:hover .custom-order-title,
.custom-order-list a:hover .custom-order-arrow { color: var(--accent); }
.custom-order-list a:hover .custom-order-arrow { transform: translateX(4px); }
@media (max-width: 560px) { .custom-order-list a { gap: 14px; padding-block: 20px; } .custom-order-title { font-size: 22px; } }
