/* ==========================================================================
   Sâu Chua – The Spirit of Sapa · Quà Tết Sapa 1903 Collection
   Đỏ son + vàng kim trên nền kem, chữ serif. Trang luôn ở chế độ sáng.
   ========================================================================== */

:root {
  --wine: #8a1c2b;
  --wine-deep: #6c1120;
  --wine-ink: #4a0f18;
  --gold: #e7c27a;
  --gold-soft: #f7e3b6;
  --gold-line: #c9a56a;
  --bronze: #9a6b3a;
  --cream: #fbf5e9;
  --cream-2: #f5ead5;
  --card: #fdf9f0;
  --ink: #3b2b22;
  --muted: #6b5a4c;
  --forest: #2f4a2c;
  --line: #e4d3b4;

  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --script: 'Playfair Display', Georgia, serif;
  --display: 'Oswald', 'Arial Narrow', sans-serif;

  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--serif); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .chev { font-size: 1.25em; line-height: 0; margin-top: -2px; }

.btn-wine {
  background: linear-gradient(180deg, #9a2434, var(--wine-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 17, 32, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-wine:hover { box-shadow: 0 10px 22px rgba(108, 17, 32, .32), inset 0 1px 0 rgba(255, 255, 255, .15); }

.btn-gold {
  background: linear-gradient(180deg, #f6dc9f, #dcb365);
  color: var(--wine-ink);
  border-color: #c99a4c;
  box-shadow: 0 4px 12px rgba(120, 80, 20, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-outline {
  background: rgba(255, 255, 255, .4);
  color: var(--wine);
  border-color: var(--wine);
}
.btn-outline:hover { background: var(--wine); color: #fff; }

.btn-sm { min-height: 38px; padding: 7px 22px; font-size: .95rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%;
}
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  color: #fff;
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 16px;
}
@media (min-width: 760px) { .header-inner { padding: 0 32px; } }

.site-header.scrolled {
  background: rgba(251, 245, 233, .96);
  box-shadow: 0 2px 18px rgba(60, 30, 10, .12);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #2a1a14; flex-shrink: 0;
  padding-right: 28px; border-right: 1px solid rgba(60, 35, 20, .35);
}
.brand-logo { display: block; width: auto; height: 52px; }
/* Over the hero photo (header not yet scrolled) a soft cream glow keeps the wine logo readable
   against blossoms and sky. A white logo was tried and got lost in the white blossoms. */
.site-header:not(.scrolled) .brand-logo {
  filter: drop-shadow(0 0 1px rgba(255, 250, 240, .95)) drop-shadow(0 0 6px rgba(255, 248, 235, .9)) drop-shadow(0 0 14px rgba(255, 248, 235, .6));
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; padding: 8px 0;
  font-size: 1.02rem; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(30, 15, 5, .45);
}
.site-header.scrolled .nav a { text-shadow: none; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: clamp(8px, 2vw, 40px); }
.cart-btn { position: relative; filter: drop-shadow(0 1px 4px rgba(30, 15, 5, .4)); }
.site-header.scrolled .cart-btn { filter: none; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #c8202f; color: #fff; font: 700 .7rem/18px var(--serif); text-align: center;
}
.header-cta { padding-inline: 22px; white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 1280px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); color: var(--ink);
    padding: 8px 16px 16px; box-shadow: 0 14px 24px rgba(60, 30, 10, .15);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-shadow: none; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--wine); font-weight: 600; }
  .header-actions { margin-left: auto; }
  .site-header:has(.nav.open) { background: var(--cream); color: var(--ink); }
  .site-header:has(.nav.open) .cart-btn,
  .site-header:has(.nav.open) .brand-logo { filter: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand { padding-right: 0; border-right: 0; gap: 8px; }
  .brand-logo { height: 40px; }
  .header-cta { display: none; }
  .blossom { display: none; }
  .header-actions { gap: 2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* Kept short (about 40% of the screen) so the gift cards are visible without scrolling. */
  min-height: clamp(340px, 40vh, 520px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 4px) 0 24px;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-bg-pos, center 40%);
}
/* Lớp sương kem phủ lên ảnh nền để chữ bên trái dễ đọc; độ đậm chỉnh bằng --hero-veil. */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  opacity: var(--hero-veil, 1);
  background:
    linear-gradient(90deg, rgba(251, 245, 233, .96) 0%, rgba(251, 240, 220, .88) 28%, rgba(251, 240, 220, .35) 46%, rgba(251, 240, 220, 0) 60%),
    linear-gradient(180deg, rgba(255, 226, 190, .55), rgba(255, 246, 230, .2) 55%, rgba(251, 245, 233, .6));
}
.hero-gifts {
  position: absolute; z-index: -2; right: 0; bottom: 0;
  /* Never wider than the space left of the headline column. */
  width: min(58%, calc(100% - 600px)); height: auto; max-height: calc(100% - var(--header-h) - 12px); object-fit: contain; object-position: right bottom;
  /* Pinned to the bottom-right corner of the hero background. The PNG has ~5% of transparent
     space and soft shadow under the wooden plank; shift it down so the plank edge meets the bottom. */
  right: 0; bottom: 0;
  transform: translateY(4.8%);
  filter: drop-shadow(0 14px 18px rgba(20, 30, 20, .3));
}
.blossom[hidden] { display: none; }
.blossom {
  position: absolute; z-index: -1; left: -8px; top: 0;
  width: clamp(150px, 17vw, 260px); height: auto; pointer-events: none;
}
.blossom .branch { fill: none; stroke: #5b3423; stroke-width: 5; stroke-linecap: round; }
.blossom .branch.thin { stroke-width: 3; }
.blossom .flower { fill: #f6c3cc; stroke: #e597a6; stroke-width: .8; }
.blossom .bud circle { fill: #d9667f; }

.hero-inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .hero-inner { padding: 0 32px; } }

.hero-copy {
  position: relative;
  width: min(470px, 100%);
  margin-left: clamp(0px, 5vw, 96px);
  text-align: center;
}
/* Soft cream glow only behind the text block, so the headline reads on a busy photo
   without fading the whole background. Strength: --hero-glow (0 = off, 1 = default). */
.hero-copy::before {
  content: ''; position: absolute; z-index: -1; inset: -40px -120px -56px;
  opacity: var(--hero-glow, 1);
  background: radial-gradient(ellipse closest-side, rgba(251, 245, 233, .93) 0%, rgba(251, 245, 233, .86) 62%, rgba(251, 245, 233, 0) 100%);
  pointer-events: none;
}
.script-title {
  font-family: var(--script); font-style: italic; font-weight: 700;
  color: var(--wine); letter-spacing: -.01em;
}
.hero h1 {
  display: grid; margin: 6px 0 8px;
  font-size: clamp(2.3rem, 3.1vw, 3.3rem); line-height: 1.04;
  text-shadow: 0 2px 18px rgba(255, 248, 235, .8);
}
.hero h1 .indent { padding-left: clamp(36px, 5vw, 80px); }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--wine-deep); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; color: var(--bronze); }
.ornament span { width: 46px; height: 1px; background: currentColor; }
.ornament svg { width: 16px; height: 16px; fill: currentColor; }
@media (min-width: 901px) and (max-height: 820px) {
  /* Short laptop screens (e.g. 1366 × 768): tighter hero copy so the gift cards still show. */
  .hero h1 { font-size: clamp(2.1rem, 2.8vw, 2.8rem); margin: 4px 0 6px; }
  .ornament { display: none; }
  .hero-sub { margin-bottom: 6px; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; padding-bottom: 0; min-height: 0; }
  .hero-bg img { object-position: var(--hero-bg-pos-mobile, center 30%); }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(251, 245, 233, .7) 0%, rgba(251, 240, 220, .92) 55%, var(--cream) 100%);
  }
  .hero-copy { margin: 24px auto 0; }
  .hero-gifts {
    position: relative; order: 2; right: auto; bottom: auto;
    width: 100%; max-height: none; margin: 24px 0 0;
  }
}

/* ---------- Section title with side rules ---------- */
.section-title {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  font-family: var(--script); font-style: italic; font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15;
  color: var(--wine); text-align: center;
}
.section-title::before, .section-title::after {
  content: ''; flex: 1; height: 1.5px; min-width: 24px;
  background: linear-gradient(90deg, transparent, var(--wine));
}
.section-title::after { background: linear-gradient(90deg, var(--wine), transparent); }
.section-title span { flex: 0 1 auto; }

/* ---------- Collection ---------- */
.collection {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 16px 0 48px;
  /* Plain middle colour of the background photo, shown between its top and bottom halves. */
  background: var(--section-base, var(--cream));
}
/* The section is much taller than the 3:1 photo, whose detail sits at the top (mountains) and
   bottom (waves, blossoms) with plain cream between. So the top half of the photo is pinned to the
   top of the section and the bottom half to the bottom, each fading into --section-base. */
.collection::before, .collection::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: -1;
  aspect-ratio: 2172 / 362;
  background: var(--section-bg, none) no-repeat;
  background-size: 100% auto;
  /* --section-fade: 0 = ảnh rõ, 0.5 = mờ 50%, 1 = ẩn hẳn. */
  opacity: calc(1 - var(--section-fade, 0));
  pointer-events: none;
}
.collection::before {
  top: 0; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.collection::after {
  bottom: 0; background-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}
@media (max-width: 760px) {
  /* Phones: keep each half at a readable size instead of a thin strip; the bottom half keeps its
     left corner, where the blossom branch is. */
  .collection::before, .collection::after { aspect-ratio: auto; height: 200px; background-size: auto 400px; }
  .collection::after { background-position: left bottom; }
}
/* "bg-cover": one full illustration (not a 3:1 strip) covering the whole section. */
.collection.bg-cover::before {
  top: 0; bottom: 0; aspect-ratio: auto;
  background-size: cover; background-position: center top;
  -webkit-mask-image: none; mask-image: none;
}
.collection.bg-cover::after { display: none; }
@media (max-width: 1100px) {
  /* One column makes the section very tall, so "cover" would blow the illustration up several
     times. Fit it to the width at the top instead and fade its lower edge into --section-base. */
  .collection.bg-cover::before {
    bottom: auto; height: auto; aspect-ratio: 2560 / 2327;
    background-size: 100% auto;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
    mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
}
.product-grid {
  display: grid; gap: 24px; margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Cards keep their natural height: the sets have 3–7 item rows, and stretching them to one
     height left a large blank gap above the button on the shorter cards. */
  align-items: start;
}

/* Gift card: photo, name, price, tagline, item list, button pinned to the bottom. */
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fffcf6; border: 1px solid #efe2c6; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(120, 80, 30, .10);
}
.product-photo {
  margin: 0; aspect-ratio: 5 / 3; overflow: hidden;
  /* Backdrop for transparent placeholder cut-outs; a finished photo simply covers it. */
  background: url('assets/bg-product-photo-2.jpg') center 62% / cover no-repeat;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo img.cutout {
  object-fit: contain; object-position: center bottom; padding: 18px 18px 0;
  filter: drop-shadow(0 12px 14px rgba(20, 30, 20, .35));
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.product h3 {
  font: 700 clamp(1.6rem, 2.2vw, 2rem)/1.15 var(--script); font-style: normal;
  color: #3a1010; letter-spacing: -.01em;
}
.price { margin: 10px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 700 clamp(1.7rem, 2.3vw, 2.1rem)/1 var(--serif); color: var(--wine); }
.price span { color: var(--muted); }
.tagline { color: #4b3a2e; line-height: 1.5; }
@media (min-width: 1101px) {
  .product-photo { aspect-ratio: 11 / 5; }
  /* Side by side, the parts above the tab row must be the same height so the three tab rows
     (and buttons) line up: reserve three lines for the tagline. */
  .tagline { min-height: calc(3 * 1.5em); }
}

/* Detail header: mountain mark + "Chi tiết set quà", a thin rule, then the outline "Chọn set này" button.
   Keeping the button here (not under the list) puts all three buttons on one line. */
.set-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; }
.set-tab {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0;
  font: 600 1.3rem/1.2 var(--serif); color: #2f1712; white-space: nowrap;
}
.set-tab-icon {
  flex: none; width: 40px; height: 20px;
  fill: none; stroke: #c49a86; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
}
.set-tab::after { content: ''; flex: 1; min-width: 16px; height: 1px; margin-left: 6px; background: #b56a6f; }
@media (min-width: 1101px) and (max-width: 1320px) {
  /* Three narrow columns: tighten the row so title and button stay on one line. */
  .set-head { gap: 8px; }
  .set-tab { font-size: 1.05rem; gap: 6px; }
  .set-tab-icon { width: 30px; }
  .btn-choose { padding: 6px 14px; font-size: .95rem; }
}
.set-items {
  list-style: none; margin: 0; padding: 6px 22px;
  background: rgba(255, 251, 243, .7); border: 1px solid #eadfcd; border-radius: 14px;
}
.set-items li {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px 0;
}
.set-items li + li { border-top: 1px solid #ebe0cc; }
.set-items img {
  width: 112px; height: 96px; padding: 8px; object-fit: contain;
  background: #f6ecdc; border-radius: 14px;
  filter: drop-shadow(0 4px 6px rgba(60, 30, 10, .14));
}
.set-items li > div { padding-left: 14px; border-left: 1.5px solid var(--wine); }
.set-items strong { display: block; font: 700 1.05rem/1.3 var(--serif); color: #2f1712; }
.set-items span { display: block; margin-top: 6px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 1101px) {
  /* Three columns side by side: smaller thumbnails leave room for the text. */
  .set-items { padding: 4px 16px; }
  .set-items li { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .set-items img { width: 84px; height: 76px; padding: 6px; border-radius: 12px; }
  .set-items li > div { padding-left: 12px; }
}

/* Option picker (e.g. lục trà / hồng trà) inside an item row. */
.set-option { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; border: 0; }
.set-option label {
  position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
  border: 1px solid #d9c3a0; border-radius: 999px; background: #fff;
  font-size: .9rem; color: var(--ink); cursor: pointer;
}
.set-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.set-option label:has(input:checked) { background: var(--wine); border-color: var(--wine); color: #fff; }
.set-option label:has(input:focus-visible) { outline: 2px solid var(--gold-line); outline-offset: 2px; }

.btn-choose {
  flex: none; min-height: 42px; padding: 8px 20px; font-size: 1rem; white-space: nowrap;
}
.btn-choose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .product-body { padding: 20px 18px 22px; }
  .set-items { padding: 2px 14px; }
  .set-head { gap: 8px; }
  .set-tab { font-size: 1.05rem; gap: 6px; }
  /* No room for the mountain mark and rule beside the button on narrow phones. */
  .set-tab-icon, .set-tab::after { display: none; }
  .btn-choose { padding: 6px 12px; font-size: .95rem; }
  .set-items li { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .set-items img { width: 76px; height: 68px; padding: 6px; border-radius: 10px; }
  .set-items li > div { padding-left: 10px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Story ---------- */
.story {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(240px, 21vw, 340px);
  background:
    linear-gradient(90deg, rgba(251, 245, 233, 0) 22%, rgba(251, 245, 233, .82) 42%, rgba(251, 245, 233, .92) 100%),
    var(--section-bg, none) left center / cover no-repeat,
    var(--cream);
  border-top: 1px solid var(--line);
}
.story-inner {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 64px);
  width: 100%; padding: 32px 32px 32px 38%;
}
.story-copy { flex: 1 1 520px; max-width: 520px; }
.story h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 10px; }
.script-title.green { color: var(--forest); }
.story p { color: #3a2a20; padding-left: clamp(0px, 2vw, 28px); }
.story .btn-outline {
  flex-shrink: 0; position: relative; margin-left: auto; margin-right: clamp(0px, 4vw, 120px);
  padding: 12px 28px;
}
.story .btn-outline::before {
  content: ''; position: absolute; left: calc(-1 * clamp(24px, 4vw, 64px) / 2 - 18px); top: -18px; bottom: -18px;
  width: 1px; background: var(--line);
}
.story .btn-outline svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.story .btn-outline svg .fill { fill: currentColor; stroke: none; }

@media (max-width: 900px) {
  .story {
    display: block;
    background:
      linear-gradient(180deg, rgba(251, 245, 233, 0) 150px, var(--cream) 250px),
      var(--section-bg, none) left top / auto 250px no-repeat,
      var(--cream);
  }
  .story-inner { flex-direction: column; align-items: flex-start; padding: 210px 16px 36px; }
  .story-copy { flex: none; }
  .story p { padding-left: 0; }
  .story .btn-outline { margin: 0; }
  .story .btn-outline::before { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  color: #fbeee0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .08), transparent 55%),
    linear-gradient(180deg, #84182a, #6a1020);
}
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 22px 32px 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 0;
}
.brand-light { color: #fff; border-right: 0; padding-right: 0; margin-right: clamp(24px, 4vw, 64px); }
/* Footer sits on wine red: show the logo in cream. */
.site-footer .brand-logo { height: 56px; filter: brightness(0) invert(.95) sepia(.2); }

.footer-links, .socials, .contacts { display: flex; align-items: center; }
.footer-links a, .contacts a { text-decoration: none; }
.footer-links a:hover, .contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a { padding: 0 clamp(14px, 1.8vw, 28px); white-space: nowrap; }
.footer-links a + a { border-left: 1px solid rgba(255, 235, 215, .45); }
.footer-links a:first-child { padding-left: 0; }

.socials { gap: 14px; padding: 0 clamp(14px, 2.4vw, 36px); border-left: 1px solid rgba(255, 235, 215, .45); border-right: 1px solid rgba(255, 235, 215, .45); margin-left: auto; }
.socials a { display: inline-grid; place-items: center; width: 32px; height: 32px; color: #fff; }
.socials svg { width: 24px; height: 24px; fill: currentColor; }

.contacts { gap: clamp(18px, 2.4vw, 40px); padding-left: clamp(14px, 2vw, 32px); }
.contacts a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.contacts svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.copyright { max-width: 1440px; margin: 0 auto; padding: 0 32px 12px; font-size: .8rem; color: rgba(251, 238, 224, .7); }

/* Thổ cẩm strip */
.brocade {
  /* 70% of the band's natural height at full width (2172 × 88); the pattern repeats sideways to fill. */
  aspect-ratio: 2172 / 61.6;
  background: var(--band, none) center / auto 100% repeat-x, #5a0c19;
}

@media (max-width: 1360px) {
  .footer-inner { justify-content: center; text-align: center; }
  .brand-light { margin-right: 0; width: 100%; justify-content: center; }
  .footer-links, .socials, .contacts { width: 100%; justify-content: center; border: 0; padding: 0; margin: 0; }
  .footer-links { flex-wrap: wrap; row-gap: 8px; }
  .footer-links a { padding: 0 12px; }
  .footer-links a:first-child { padding-left: 12px; }
  .contacts { flex-wrap: wrap; gap: 10px 28px; }
  .copyright { text-align: center; padding-inline: 16px; }
}

/* ---------- Cart dialog ---------- */
.cart {
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; padding: 0;
  border: 0; background: var(--cream); color: var(--ink);
  box-shadow: -10px 0 40px rgba(40, 15, 5, .25);
}
.cart[open] { display: flex; flex-direction: column; animation: slide-in .25s ease; }
.cart::backdrop { background: rgba(40, 15, 5, .45); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cart[open] { animation: none; } }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 14px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #84182a, #6a1020); color: #fff;
}
.cart-head h2 { font-family: var(--script); font-style: italic; font-size: 1.6rem; }
.cart-empty { padding: 40px 22px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.cart-filled { padding: 8px 22px 24px; overflow-y: auto; }
.cart-filled[hidden], .cart-empty[hidden] { display: none; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 76px; aspect-ratio: 4 / 3; object-fit: contain; }
.cart-item h3 { font-size: 1rem; color: var(--wine); }
.cart-item .unit { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font: 600 1.1rem var(--serif); color: var(--wine); cursor: pointer; border-radius: 50%; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.cart-item .remove { grid-column: 2; justify-self: start; border: 0; background: none; padding: 0; font: .85rem var(--serif); color: var(--muted); text-decoration: underline; cursor: pointer; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 8px; font-size: 1.05rem; }
.cart-total strong { font-size: 1.35rem; color: var(--wine); }
.cart-note { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.cart-actions { display: grid; gap: 10px; }
.cart-zalo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.copy-status { min-height: 1.4em; font-size: .9rem; color: var(--forest); text-align: center; }

/* Order form inside the cart */
.order-form {
  display: grid; gap: 12px; margin: 8px 0 18px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.order-form h3 { font: 700 1.05rem/1.3 var(--serif); color: #2f1712; }
.order-form label { display: grid; gap: 4px; font-size: .9rem; color: var(--ink); }
.order-form .req { color: var(--wine); font-weight: 400; }
.order-form input, .order-form textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid #d9c3a0; border-radius: 8px; background: #fff;
  font: 1rem/1.4 var(--serif); color: var(--ink);
}
.order-form textarea { resize: vertical; }
.order-form input:focus-visible, .order-form textarea:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 1px; border-color: var(--gold-line); }
.order-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-form button[disabled] { opacity: .65; cursor: progress; transform: none; }
.order-status { min-height: 1.4em; font-size: .9rem; color: var(--wine); text-align: center; }

.cart-done { padding: 40px 22px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--ink); }
.cart-done[hidden] { display: none; }
.cart-done-title { font: italic 600 1.5rem/1.2 var(--script); color: var(--forest); }
.cart-done strong { color: var(--wine); white-space: nowrap; }
