/* MegaWatt Coffee — shared site system (Oct 2026 direction: "highland premium meets athlete soul")
   Type: Cormorant Garamond (display) · Be Vietnam Pro (body) · IBM Plex Mono (labels/data).
   All three carry the full Vietnamese character set; Jost and DM Mono from the earlier mockups do not. */

:root {
  --ink: #0E0D0B;
  --ink2: #1C1A16;
  --stone: #2E2B26;
  --peat: #4A4540;
  --bark: #7A6E62;
  --dusk: #B0A090;
  --sand: #D8C9B0;
  --cream: #F0E8D8;
  --linen: #F8F3EA;
  --card: #FFFDF8;
  --gold: #C8960A;
  --goldlt: #E8B830;
  --rust: #8A3E20;
  --green: #3A4A30;
  --line: rgba(122, 110, 98, .28);

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rust); }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Language switching: every text pair is <x lang="en"> + <x lang="vi"> ── */
html[data-lang="en"] [lang="vi"]:not(html),
html[data-lang="vi"] [lang="en"]:not(html) { display: none !important; }

/* ── Layout helpers ── */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.dark { background: var(--ink); color: var(--cream); }
.dark .eyebrow { color: var(--goldlt); }
.dark h1 em, .dark h2 em { color: var(--goldlt); }
.cream { background: var(--cream); }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.h-xl { font-size: clamp(3rem, 9vw, 7.2rem); font-weight: 300; line-height: .95; letter-spacing: -0.025em; }
.h-lg { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; }
.h-md { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--peat); max-width: 58ch; }
.dark .lede { color: var(--sand); }
.mono { font-family: var(--mono); }
.muted { color: var(--bark); }
.stack > * + * { margin-top: 1em; }
.stack-lg > * + * { margin-top: 1.6em; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--goldlt); border-color: var(--goldlt); color: var(--ink); }
.dark .btn--ghost { color: var(--cream); border-color: var(--cream); }
.dark .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link-arrow:hover { color: var(--rust); }

/* ── Navigation ── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
/* The frosted glass lives on a pseudo-element. On the nav itself, backdrop-filter would trap the
   fixed mobile menu inside the 72px bar and leave its links floating with no background. */
.site-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(248, 243, 234, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--peat);
  font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding-block: 6px; border-bottom: 1px solid transparent; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  padding: 5px 10px; border-radius: 999px; color: var(--bark);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.bag-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.bag-link svg { width: 20px; height: 20px; }
.bag-count {
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: var(--ink); font-size: .66rem; letter-spacing: 0;
}
.bag-count[data-n="0"] { background: var(--sand); color: var(--peat); }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 16px; height: 1px; background: var(--ink); margin: 4px auto; transition: transform .25s, opacity .25s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.ticker {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--ink); color: var(--sand);
  overflow: hidden; white-space: nowrap; padding: 7px 0;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
}
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker-track span { padding-inline: 22px; }
.ticker-track b { color: var(--gold); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }
.page-top { padding-top: calc(var(--nav-h) + 31px); }

@media (max-width: 1140px) {
  .nav-burger { display: block; }
  /* Drop-down menu: a solid box under the bar that scrolls if it's taller than the screen */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; gap: 0;
    background: var(--linen); padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(14,13,11,.35);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 101;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 15px 0; font-size: .95rem; color: var(--ink); }
  .nav-links a[aria-current="page"] { border-bottom: 0; color: var(--rust); }
  .bag-link .bag-word { display: none; }
  .nav-logo img { height: 40px; }
}

/* ── Footer ── */
.site-footer { background: var(--ink); color: var(--sand); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--dusk); font-size: .92rem; max-width: 32ch; }
.site-footer h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer a { text-decoration: none; color: var(--cream); }
.site-footer a:hover { color: var(--goldlt); }
.footer-base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(216, 201, 176, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Photo placeholders: intentional, labelled, never pretending to be real ── */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(122,110,98,.10) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, var(--cream), var(--sand));
  display: flex; align-items: flex-end;
  min-height: 240px;
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(216,201,176,.07) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, var(--stone), var(--ink2));
}
.ph-cap {
  margin: 14px; padding: 8px 12px;
  background: rgba(14,13,11,.82); color: var(--cream);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; line-height: 1.5;
  max-width: 34ch;
}
.ph-cap b { color: var(--goldlt); font-weight: 400; display: block; letter-spacing: .2em; text-transform: uppercase; }

/* ── Topographic background ── */
.topo { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.topo path { fill: none; stroke: var(--sand); stroke-width: 1; }
.dark .topo path { stroke: rgba(216,201,176,.12); }

/* ── Chips, meters ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); color: var(--green);
}
.dark .chip { border-color: rgba(216,201,176,.3); color: var(--sand); }
.roast-meter { display: inline-flex; gap: 5px; vertical-align: middle; }
.roast-meter i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); }
.roast-meter i.on { background: var(--ink); }
.dark .roast-meter i { border-color: var(--sand); }
.dark .roast-meter i.on { background: var(--sand); }

/* ── Product card ── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pcard {
  position: relative; background: var(--linen); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: background .25s;
}
.pcard:hover { background: var(--card); }
.pcard-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--cream); }
.pcard-media::before { content: ""; position: absolute; inset: 0; background: var(--accent, var(--ink)); opacity: .06; }
.pcard-media > img, .pcard-media > .mini-label { position: absolute; top: 9%; left: 50%; height: 82%; width: auto; box-shadow: 0 18px 40px -18px rgba(14,13,11,.45); transform: translateX(-50%) rotate(-2deg); transition: transform .4s ease; }
.pcard:hover .pcard-media > img, .pcard:hover .pcard-media > .mini-label { transform: translateX(-50%) translateY(-6px) rotate(0); }
.pcard-flag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ink); color: var(--goldlt); font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; }
.pcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-top { display: flex; gap: 14px; align-items: baseline; }
.pcard-no { font-family: var(--display); font-size: 2.4rem; font-weight: 300; line-height: .8; color: var(--dusk); }
.pcard-name { font-family: var(--display); font-size: 1.6rem; line-height: 1.05; }
.pcard-sub { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bark); margin-top: 4px; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: .7rem; color: var(--peat); }
.pcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--mono); font-size: .92rem; font-variant-numeric: tabular-nums; }
.price small { color: var(--bark); font-size: .72em; }

/* CSS-built label for coffees that have no label artwork yet. Container units so it scales anywhere. */
.mini-label {
  position: relative; aspect-ratio: 100 / 120; container-type: inline-size;
  background: #EEE7D7; color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
}
.mini-label .ml-top { background: var(--accent, var(--ink)); color: #EEE7D7; padding: 9cqw 9cqw 7cqw; }
.mini-label .ml-no { font-family: var(--display); font-weight: 600; font-size: 24cqw; line-height: .9; }
.mini-label .ml-name { font-family: var(--mono); font-size: 4.4cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--goldlt); margin-top: 3cqw; }
.mini-label .ml-body { padding: 7cqw 9cqw; display: grid; gap: 1.5cqw; font-family: var(--mono); font-size: 3.6cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--peat); }
.mini-label .ml-body b { font-family: var(--display); font-size: 7cqw; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; font-style: italic; line-height: 1.15; margin-bottom: 2cqw; }
.mini-label .ml-foot { margin-top: auto; padding: 0 9cqw 8cqw; font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .16em; color: var(--bark); }
.mini-label .ml-draft { position: absolute; right: 7cqw; bottom: 7cqw; font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .14em; color: var(--rust); border: 1px solid var(--rust); padding: .6cqw 1.5cqw; }

/* ── Filter bar ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar .lbl { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bark); margin-right: 6px; }
.fbtn {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peat);
}
.fbtn:hover { border-color: var(--bark); color: var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ── Page header ── */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); display: grid; gap: 18px; }
.crumbs { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bark); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rust); }

/* ── Spec grid ── */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.spec b { display: block; font-family: var(--mono); font-weight: 400; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bark); margin-bottom: 3px; }
.spec > span { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }

/* ── Splits table (pace chart, borrowed from the labels) ── */
.splits { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.splits caption { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.splits th, .splits td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.splits thead th { font-family: var(--mono); font-weight: 400; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bark); }
.splits tbody th { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.splits td { font-family: var(--display); font-size: 1.1rem; }
.splits tbody tr:last-child > * { border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Forms ── */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bark); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,10,.15); }

/* Option pills (size / grind) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span {
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--card);
  font-size: .9rem; line-height: 1.2; cursor: pointer; transition: border-color .2s, background .2s;
}
.opt > span small { font-family: var(--mono); font-size: .66rem; color: var(--bark); }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.opt input:checked + span small { color: var(--sand); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--cream); padding: 14px 20px; border-left: 3px solid var(--gold);
  font-size: .92rem; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--goldlt); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* ── Draft banner (policies, unconfirmed copy) ── */
.draft-note {
  border: 1px dashed var(--rust); color: var(--rust); background: rgba(138,62,32,.05);
  padding: 12px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; line-height: 1.6;
}

/* ── Reveal on scroll ── */
/* Content is visible at rest; the scroll-in is only a small lift, never a hide */
.reveal.in { animation: lift .7s cubic-bezier(.2,.7,.2,1); }
@keyframes lift { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Page-load stagger ── */
.load > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.load > *:nth-child(2) { animation-delay: .08s; }
.load > *:nth-child(3) { animation-delay: .16s; }
.load > *:nth-child(4) { animation-delay: .24s; }
.load > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .load > * { animation: none; } }
.roast-meter i.half { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.dark .roast-meter i.half { background: linear-gradient(90deg, var(--sand) 50%, transparent 50%); }

/* Screenshot/QA helper: add ?static to any URL to skip animations */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { transition: none !important; animation: none !important; }
html.no-motion .reveal, html.no-motion .load > * { opacity: 1 !important; transform: none !important; }

/* ── Elevation profile ── */
.profile { position: relative; overflow: hidden; }
.profile-chart { margin-top: 48px; width: 100%; }
.profile-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.pf-area { fill: url(#pfGrad); }
.pf-line { fill: none; stroke: var(--goldlt); stroke-width: 2; }
.pf-grid line { stroke: rgba(216,201,176,.14); }
.pf-grid text { fill: var(--bark); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.pf-cp line { stroke: rgba(216,201,176,.35); stroke-dasharray: 2 4; }
.pf-cp circle { fill: var(--ink); stroke: var(--goldlt); stroke-width: 2; transition: r .2s; }
.pf-cp a:hover circle, .pf-cp a:focus circle { r: 9; fill: var(--goldlt); }
.pf-cp .cp-no { fill: var(--goldlt); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.pf-cp .cp-name { fill: var(--cream); font-family: var(--display); font-size: 21px; }
.pf-cp .cp-alt { fill: var(--dusk); font-family: var(--mono); font-size: 11px; }
.pf-cp a { text-decoration: none; cursor: pointer; }
.profile-note { margin-top: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--bark); }
.profile-list { display: none; }

@media (max-width: 640px) {
  .profile-chart { display: none; }
  .profile-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid rgba(216,201,176,.2); }
  .profile-list a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(216,201,176,.2); text-decoration: none; }
  .profile-list .no { font-family: var(--mono); font-size: .7rem; color: var(--goldlt); }
  .profile-list .nm { font-family: var(--display); font-size: 1.35rem; }
  .profile-list .al { font-family: var(--mono); font-size: .72rem; color: var(--dusk); }
  .profile-list .bar { grid-column: 2 / -1; height: 3px; background: rgba(216,201,176,.15); position: relative; }
  .profile-list .bar i { position: absolute; top: 0; bottom: 0; background: var(--goldlt); }
}

/* ── Real photos (replace .ph placeholders; keep .ph for sizing) ── */
.photo { background: var(--sand); }
.photo > img, .photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-strip--video .ph { min-height: 460px; }
.photo .ph-cap { position: relative; z-index: 1; background: rgba(14,13,11,.72); backdrop-filter: blur(4px); }
.photo .ph-cap b { color: var(--goldlt); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.photo-strip .ph { min-height: 340px; }
.credit { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--bark); }

/* ── Reviews ── */
.stars { display: inline-flex; gap: 2px; font-size: .95rem; line-height: 1; }
.stars i { font-style: normal; color: var(--sand); }
.stars i.on { color: var(--gold); }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv-src { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bark); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rv-shopee { color: #B5461F; border-color: rgba(181,70,31,.35); }
.rv-facebook { color: #2F5DA8; border-color: rgba(47,93,168,.35); }
.rv-whatsapp { color: #1A8D4B; border-color: rgba(26,141,75,.35); }
.rv-shot { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 22px -12px rgba(14,13,11,.45); }
.rv-track .rv-shot { max-height: 190px; object-fit: cover; object-position: 50% 100%; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.28rem; line-height: 1.4; color: var(--ink); flex: 1; }
.review blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: 6px; }
.review figcaption { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.review figcaption b { font-weight: 500; font-size: .95rem; }
.rv-tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.rv-meta { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--bark); }
.rv-meta a, .rv-prod { color: var(--peat); }
.rv-tr { font-size: .74rem; font-style: italic; color: var(--dusk); }

.grid-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }

/* Rotating banner: two copies of the list slide left forever; pauses on hover/focus */
.rv-marquee { position: relative; overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; gap: 16px; width: max-content; animation: rv-slide var(--rv-dur, 60s) linear infinite; }
.rv-marquee:hover .rv-track, .rv-marquee:focus-within .rv-track { animation-play-state: paused; }
.rv-track .review { width: min(360px, 78vw); flex: 0 0 auto; }
@keyframes rv-slide { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-track { animation: none; }
  .rv-track [aria-hidden="true"] { display: none; }
}
.rv-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rv-score { font-family: var(--display); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 300; line-height: .9; }
.rv-summary .stars { font-size: 1.3rem; }
.rv-count { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--bark); }
html.no-motion .rv-track { animation: none; }

/* ── Chat dock (Zalo, WhatsApp, Messenger), fixed bottom corner on every page ── */
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 12px; }
.chat-btn {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(14,13,11,.28); transition: transform .2s ease, box-shadow .2s ease;
}
.chat-btn svg { width: 62%; height: 62%; display: block; }
.chat-btn--zalo { background: #0068FF; }
.chat-btn--zalo svg { width: 74%; height: 74%; }
.chat-btn--whatsapp { background: #25D366; }
.chat-btn--messenger { background: linear-gradient(45deg, #0866FF, #A033FF 60%, #FF5C87); }
.chat-btn:hover, .chat-btn:focus-visible { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(14,13,11,.34); }
.chat-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.chat-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 10px; white-space: nowrap; transition: opacity .2s ease, transform .2s ease;
}
.chat-btn:hover .chat-tip, .chat-btn:focus-visible .chat-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 700px) {
  .chat-dock { right: 14px; bottom: 14px; gap: 10px; }
  .chat-btn { width: 46px; height: 46px; }
  .chat-tip { display: none; }
}
@media (hover: none) { .chat-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-btn, .chat-tip { transition: none; } }

/* ── Leave a review (homepage link, shop page form) ── */
.leave { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; background: var(--ink); color: var(--cream); padding: clamp(24px, 4vw, 48px); scroll-margin-top: 90px; }
.leave p { color: var(--sand); }
.leave .alt { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(216,201,176,.2); }
.leave .alt small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); }
.rform { background: var(--card); color: var(--ink); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.rform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rform small.note { color: var(--bark); font-size: .8rem; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field .rate label { font-family: inherit; font-size: 2rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--sand); cursor: pointer; transition: color .15s; }
.field .rate input:checked ~ label, .field .rate label:hover, .field .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--bark); cursor: pointer; }
.consent input { accent-color: var(--ink); margin-top: 3px; }
@media (max-width: 800px) { .leave { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rform .row { grid-template-columns: 1fr; } }

/* Studio product shots (real bag on a dark studio set): fill the frame, no tilt or card shadow */
.pcard-media > img.studio-photo { inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; box-shadow: none; transform: none; }
.pcard:hover .pcard-media > img.studio-photo { transform: scale(1.03); }
.pcard-media:has(> .studio-photo)::before { display: none; }
