/* ==========================================================
   Hương sắc Cố đô — stylesheet dùng chung
   Màu: Xanh lá (Tràng An, Cúc Phương) · Vàng kem (lúa chín, cơm cháy)
        Nâu (mộc mạc làng nghề) · Hồng sen (điểm nhấn văn hóa)
   ========================================================== */
:root {
  --green-900: #0f3a24;
  --green-800: #154a2f;
  --green-700: #1d5c3b;   /* màu chủ đạo — lấy từ logo */
  --green-600: #2a7049;
  --green-100: #e3eedf;
  --cream-50:  #fffbf1;
  --cream-100: #fbf3df;   /* nền section */
  --cream-200: #f5e7c4;
  --cream-300: #ecd59c;
  --brown-900: #3b2414;
  --brown-800: #4f3120;   /* chữ */
  --brown-600: #7a4a2a;   /* viền, họa tiết */
  --brown-400: #a9794f;
  --brown-200: #dcc3a3;
  --lotus-700: #a8335e;   /* nhãn, giá — đạt 4.5:1 trên nền kem */
  --lotus-500: #c94f7c;
  --lotus-100: #fbe4ec;

  --bg: var(--cream-50);
  --surface: #ffffff;
  --text: var(--brown-800);
  --text-strong: var(--brown-900);
  --muted: #6e5544;
  --border: #e8d9bf;
  --ring: #c58b1b;

  --font-head: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(59, 36, 20, .06), 0 1px 3px rgba(59, 36, 20, .08);
  --shadow: 0 4px 14px rgba(59, 36, 20, .08), 0 2px 4px rgba(59, 36, 20, .05);
  --shadow-lg: 0 18px 40px rgba(59, 36, 20, .14);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* họa tiết đan cói Kim Sơn */
  --weave: repeating-linear-gradient(45deg, rgba(122, 74, 42, .07) 0 6px, transparent 6px 12px),
           repeating-linear-gradient(-45deg, rgba(122, 74, 42, .07) 0 6px, transparent 6px 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cream-300); color: var(--brown-900); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* placeholder "Đang cập nhật" */
.pending { color: var(--muted); font-style: italic; opacity: .85; }
.pending::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cream-300); margin-right: 6px; vertical-align: middle; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(29, 92, 59, .25); }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .85); backdrop-filter: blur(2px); }
.btn-ghost-light:hover { background: #fff; color: var(--green-800); }
.btn-lotus { background: var(--lotus-700); color: #fff; }
.btn-lotus:hover { background: #8f2a4f; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 241, .94); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-800); flex: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brown-600); margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text-strong); text-decoration: none; font-weight: 500; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--green-100); color: var(--green-800); }
.main-nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; background: var(--green-100); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; color: var(--green-800); text-decoration: none;
  transition: background-color .2s;
}
.cart-btn:hover { background: var(--green-100); }
.cart-btn .icon { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--lotus-700); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: var(--green-800); border-radius: 50%; cursor: pointer; }
.nav-toggle:hover { background: var(--green-100); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--cream-50);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { width: 100%; border-radius: var(--radius-sm); font-size: 17px; }
  .main-nav .nav-cta { display: block; padding: 0 20px 20px; }
  .header-inner { gap: 8px; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 961px) { .main-nav .nav-cta { display: none; } }
@media (max-width: 420px) { .brand-name small { display: none; } .brand img { width: 44px; height: 44px; } .brand-name { font-size: 17px; } }

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px); min-height: min(88dvh, 760px);
  display: flex; align-items: center; overflow: hidden; background: var(--green-900); color: #fff; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.active img, .hero-slide.active video { animation: kenburns 9s ease-out forwards; }
.hero-slide:nth-child(2n).active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 36, 22, .82) 0%, rgba(10, 36, 22, .55) 45%, rgba(10, 36, 22, .1) 80%),
              linear-gradient(0deg, rgba(10, 36, 22, .55) 0%, transparent 35%);
}
.hero-content { max-width: 780px; padding-block: 72px 110px; }
.hero-title {
  font-size: clamp(40px, 7vw, 76px); color: #fff; letter-spacing: .02em; margin-bottom: .1em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 6px 24px rgba(0, 0, 0, .35);
}
.hero-title-2 {
  display: block; font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 4vw, 42px); color: var(--cream-300); margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero-sub { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.hero-sub::before { content: ""; width: 36px; height: 2px; background: var(--lotus-500); flex: none; }
.hero-desc { font-size: 17px; color: rgba(255, 255, 255, .9); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-controls .container { display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-dot span { display: block; width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: background-color .3s, width .3s; }
.hero-dot[aria-current="true"] span { background: #fff; width: 44px; }
.hero-pause { margin-left: 6px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause:hover { background: rgba(255, 255, 255, .2); }
.hero-credit { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(0deg, rgba(10, 36, 22, .9) 0%, rgba(10, 36, 22, .6) 55%, rgba(10, 36, 22, .35) 100%); }
  .hero { align-items: flex-end; }
  .hero-content { padding-block: 100px 96px; }
  .hero-credit { display: none; }
}

/* ---------- Page banner ---------- */
.page-banner { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--green-800); }
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 36, 22, .85), rgba(10, 36, 22, .45)); }
.page-banner .container { padding-block: 72px 64px; }
.page-banner h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); letter-spacing: .02em; margin-bottom: 10px; }
.page-banner p { font-size: clamp(17px, 2vw, 20px); color: var(--cream-200); font-style: italic; font-family: var(--font-head); margin: 0; max-width: 720px; }
.breadcrumb { font-size: 14px; margin-bottom: 18px; color: rgba(255, 255, 255, .8); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-sm { padding-block: 56px; }
.section-cream { background: var(--cream-100); }
.section-weave { background-color: var(--cream-100); background-image: var(--weave); }
.section-green { background: var(--green-800); color: var(--cream-100); }
.section-green h2, .section-green h3 { color: #fff; }
@media (max-width: 640px) { .section { padding-block: 56px; } }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lotus-700); margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.section-head.left .eyebrow::after { display: none; }
.section-green .eyebrow { color: var(--cream-300); }
.section-title { font-size: clamp(28px, 4vw, 40px); color: var(--green-800); }
.section-green .section-title { color: #fff; }
.section-sub { font-size: 18px; color: var(--muted); margin: 0; }
.section-green .section-sub { color: var(--cream-200); }
.section-foot { margin-top: 40px; text-align: center; }
.divider-weave { height: 14px; background-image: var(--weave); background-color: var(--cream-200); border-block: 1px solid var(--brown-200); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Feature cards (Vì sao chọn) ---------- */
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); margin-bottom: 18px; }
.feature:nth-child(2) .feature-icon { background: var(--lotus-100); color: var(--lotus-700); }
.feature:nth-child(3) .feature-icon { background: var(--cream-200); color: var(--brown-600); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.4; }
.tag-seg { background: var(--lotus-700); color: #fff; }
.tag-ocop { background: #fff; color: var(--green-800); border: 1px solid var(--green-700); }
.tag-soft { background: var(--green-100); color: var(--green-800); }
.tag-lotus { background: var(--lotus-100); color: var(--lotus-700); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.product-code { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-600); margin-bottom: 4px; }
.product-name { font-size: 22px; margin-bottom: 8px; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--green-700); }
.product-items { list-style: none; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.product-items li { display: flex; gap: 8px; padding: 2px 0; }
.product-items li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-600); margin-top: .65em; flex: none; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--lotus-700); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; }
.product-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions .btn { padding: 0 12px; }

/* ---------- Heritage cards ---------- */
.heritage-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none;
  aspect-ratio: 3 / 4; background: var(--green-800); box-shadow: var(--shadow); isolation: isolate;
}
.heritage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.heritage-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 36, 22, .92) 0%, rgba(10, 36, 22, .35) 55%, rgba(10, 36, 22, 0) 80%); }
.heritage-card:hover img { transform: scale(1.06); }
.heritage-card:hover { color: #fff; }
.heritage-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.heritage-type { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-300); }
.heritage-card h3 { color: #fff; font-size: 22px; margin: 6px 0 6px; }
.heritage-card p { font-size: 14.5px; color: rgba(255, 255, 255, .88); margin: 0; }
.heritage-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14px; color: #fff; }
.heritage-card .tag { position: absolute; top: 14px; left: 14px; }
.video-badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 36, 22, .72); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }
.video-badge svg { width: 12px; height: 12px; fill: currentColor; }
.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.noimg::before { content: ""; position: absolute; inset: 0; background-image: var(--weave); opacity: .5; z-index: -1; }

/* ---------- Team ---------- */
.team-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .team-wrap { grid-template-columns: 1fr; gap: 32px; } }
.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3;
  border: 10px solid #fff; box-shadow: var(--shadow-lg); background: var(--cream-200);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--brown-600); background-color: var(--cream-100); background-image: var(--weave); padding: 20px; }
.photo-placeholder .icon { width: 44px; height: 44px; margin: 0 auto 10px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.member-photo { aspect-ratio: 1; background-color: var(--cream-100); background-image: var(--weave); display: grid; place-items: center; color: var(--brown-400); }
.member-photo .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.member-body { padding: 16px 18px 20px; }
.member-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text-strong); margin: 0; }
.member-class { font-size: 13px; color: var(--muted); }
.member-role { display: inline-block; margin: 8px 0 6px; font-size: 13px; font-weight: 700; color: var(--green-700); }
.member-duty { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Story / Values ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 32px; } }
.story-text p { font-size: 17px; }
.quote { font-family: var(--font-head); font-style: italic; font-size: 24px; color: var(--green-700); border-left: 3px solid var(--lotus-500); padding: 4px 0 4px 18px; margin: 24px 0 0; }
.values .value { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; border-top: 4px solid var(--green-700); box-shadow: var(--shadow-sm); }
.values .value:nth-child(2) { border-top-color: var(--brown-600); }
.values .value:nth-child(3) { border-top-color: var(--lotus-700); }
.values h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.values p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--lotus-100); color: var(--lotus-700); font-weight: 600; font-size: 14px; }

/* ---------- Timeline (Quy trình) ---------- */
.timeline { position: relative; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); counter-reset: stage; }
.timeline::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brown-200) 0 8px, transparent 8px 14px); }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.stage { position: relative; text-align: center; }
.stage-icon { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--green-700); color: #fff; box-shadow: 0 0 0 8px var(--cream-100); }
.stage-icon .icon { width: 30px; height: 30px; }
.stage-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lotus-700); }
.stage h3 { font-size: 22px; margin: 4px 0 14px; }
.stage ol { list-style: none; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stage li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; border-bottom: 1px dashed var(--border); }
.stage li:last-child { border-bottom: 0; }
.step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-200); color: var(--brown-800); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.partners { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.partners li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.partners .icon { color: var(--green-700); }

/* ---------- Shop listing ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .shop { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters fieldset:last-child { margin-bottom: 0; }
.filters legend { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text-strong); margin-bottom: 10px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--green-700); cursor: pointer; flex: none; }
.check .count { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--cream-100); padding: 1px 8px; border-radius: 999px; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.shop-bar .result { color: var(--muted); margin: 0; }
.select-wrap { display: flex; align-items: center; gap: 10px; }
.select, .input, .textarea {
  font: inherit; color: var(--text-strong); background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); min-height: 46px; padding: 10px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.select { width: auto; padding-right: 36px; cursor: pointer; }
.select:hover, .input:hover, .textarea:hover { border-color: var(--brown-200); }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(29, 92, 59, .18); }
.textarea { min-height: 120px; resize: vertical; }
.empty-state { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--brown-200); border-radius: var(--radius); }
.empty-state .icon { width: 44px; height: 44px; color: var(--brown-400); margin: 0 auto 12px; }

/* ---------- Product detail blocks ---------- */
.set-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; padding-block: 56px; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.set-detail:last-child { border-bottom: 0; }
.set-detail:nth-child(even) .set-gallery { order: 2; }
@media (max-width: 900px) { .set-detail { grid-template-columns: 1fr; gap: 24px; } .set-detail:nth-child(even) .set-gallery { order: 0; } }
.set-gallery img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.set-info h3 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 6px; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0; font-size: 15.5px; }
.meta-list dt { font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 8px; }
.meta-list dd { margin: 0; color: var(--text); }
.meta-list dd ul { list-style: none; }
.meta-list dd li { padding: 1px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.service { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.service .feature-icon { margin: 0; flex: none; }
.service h3 { font-size: 19px; margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1; color: var(--green-700); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--cream-100); font-weight: 700; color: var(--text-strong); white-space: nowrap; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream-50); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stars { color: #c58b1b; letter-spacing: 1px; white-space: nowrap; }

/* certificate gallery */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cert-thumb { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: zoom-in; padding: 0; aspect-ratio: 3 / 4; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s var(--ease); }
.cert-thumb:hover img { transform: scale(1.04); }
.cert-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); text-align: left; line-height: 1.35; }
.quality-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .quality-block { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-card h4 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.note { font-size: 14px; color: var(--muted); }

/* lookup */
.lookup { background: var(--green-800); border-radius: var(--radius-lg); padding: 40px; color: var(--cream-100); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.lookup::after { content: ""; position: absolute; inset: 0; background-image: var(--weave); opacity: .35; pointer-events: none; }
.lookup > * { position: relative; z-index: 1; }
.lookup h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.lookup form { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup .input { flex: 1 1 220px; }
.lookup-result { margin-top: 12px; font-size: 15px; color: var(--cream-200); min-height: 1.5em; }
@media (max-width: 800px) { .lookup { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Heritage page ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--text-strong); font-weight: 600; cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--green-700); color: var(--green-700); }
.tab[aria-selected="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.map-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
#heritage-map { min-height: 460px; background: var(--cream-100); z-index: 0; }
.map-side { padding: 22px; border-left: 1px solid var(--border); max-height: 460px; overflow: auto; }
.map-side ol { list-style: none; }
.map-side button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px; min-height: 44px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--text); }
.map-side button:hover, .map-side button.active { background: var(--green-100); }
.map-side .pin { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.map-side strong { display: block; color: var(--text-strong); }
.map-side small { color: var(--muted); }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } .map-side { border-left: 0; border-top: 1px solid var(--border); max-height: none; } #heritage-map { min-height: 340px; } }
.leaflet-popup-content { font-family: var(--font-body); }

.detail-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--green-800); }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.detail-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 36, 22, .9), rgba(10, 36, 22, .2) 70%); }
.detail-hero .container { padding-block: 48px; }
.detail-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin: 8px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.prose { font-size: 17px; max-width: 70ch; }
.prose h2 { font-size: 26px; margin-top: 1.4em; color: var(--green-800); }
.source { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 20px; }
.video-frame { margin: 8px 0 28px; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #0a2416; border-radius: var(--radius-sm); object-fit: contain; }
.video-frame figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--cream-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

/* ---------- Invite / CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; padding: 64px 48px; isolation: isolate; background: var(--green-800); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 36, 22, .9), rgba(10, 36, 22, .35)); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.cta-band p { max-width: 520px; font-size: 18px; color: var(--cream-100); }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; font-size: 15px; }
.req { color: var(--lotus-700); margin-left: 2px; }
.field-error { display: none; color: #b42318; font-size: 13.5px; margin-top: 6px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #b42318; }
.field.invalid .field-error { display: flex; gap: 6px; align-items: center; }
.helper { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card { flex: 1 1 200px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: border-color .2s, background-color .2s; }
.radio-card:has(input:checked) { border-color: var(--green-700); background: var(--green-100); }
.radio-card input { margin-top: 4px; accent-color: var(--green-700); width: 18px; height: 18px; flex: none; }
.radio-card small { display: block; color: var(--muted); }
.form-note { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .form-card { padding: 22px; } }
.error-summary { display: none; border: 1.5px solid #b42318; background: #fef3f2; color: #7a271a; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.error-summary.show { display: block; }
.error-summary ul { padding-left: 20px; margin-top: 6px; }
.error-summary a { color: #7a271a; }
.success-box { text-align: center; padding: 40px 24px; }
.success-box .icon { width: 56px; height: 56px; color: var(--green-700); margin: 0 auto 12px; }

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .feature-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--text-strong); }
.map-placeholder { margin-top: 20px; aspect-ratio: 16 / 10; border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--brown-600); background-color: var(--cream-100); background-image: var(--weave); border: 1px solid var(--border); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item h3 { font-size: 17px; margin: 0 0 2px; }
.cart-item h3 a { color: inherit; text-decoration: none; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.qty button { width: 40px; height: 40px; border: 0; background: #fff; cursor: pointer; color: var(--green-800); display: grid; place-items: center; }
.qty button:hover { background: var(--green-100); }
.qty output { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 8px; border-radius: var(--radius-sm); }
.remove-btn:hover { color: #b42318; background: #fef3f2; }
.line-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-strong); }
@media (max-width: 520px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-item img { width: 72px; height: 56px; } .line-total { grid-column: 2; text-align: left; } }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-variant-numeric: tabular-nums; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 19px; font-weight: 700; color: var(--text-strong); }
.steps { display: flex; gap: 8px; list-style: none; margin-bottom: 28px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--brown-200); }
.steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-200); font-size: 13px; }
.steps li.on { color: var(--green-800); }
.steps li.on .n { background: var(--green-700); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--text-strong); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.policy { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(251, 243, 223, .82); position: relative; }
.site-footer::before { content: ""; display: block; height: 12px; background-color: var(--brown-600); background-image: var(--weave); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-block: 56px 40px; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand .slogan { font-family: var(--font-head); font-style: italic; color: var(--cream-300); font-size: 18px; margin-bottom: 10px; }
.footer-brand p { font-size: 14.5px; max-width: 380px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(251, 243, 223, .82); text-decoration: none; font-size: 15px; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; font-size: 14px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 20, 15, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fadein .2s ease-out; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 12px; text-align: center; font-size: 15px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 900; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--green-800); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 500; max-width: 360px; animation: toastin .3s var(--ease); }
.toast a { color: var(--cream-300); font-weight: 700; margin-left: 4px; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .toast-region { left: 12px; right: 12px; bottom: 12px; } .toast { max-width: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide img, .hero-slide video { transform: none; }
}
