/* ScrollStory engine — base styles.
   Mỗi site chỉ đổi biến (config.theme / config.fontVars), không sửa file này. */

:root {
  --bg: #efe8dc;
  --ink: #1d1a17;
  --muted: color-mix(in srgb, var(--ink) 64%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --card: color-mix(in srgb, var(--ink) 4%, var(--bg));
  --btn-bg: #151311;
  --btn-ink: #f6f1e8;
  --font-display: "Bodoni Moda", Georgia, serif;
  --display-weight: 500;
  --display-opsz: "opsz" 36;
  --display-tracking: -0.01em;
  --font-body: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-note: "Caveat", cursive;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 64px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --vh: 1vh;
}
@supports (height: 1svh) {
  :root { --vh: 1svh; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* "hidden" sẽ phá position: sticky */
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.ss-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-opsz);
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  line-height: 0.9;
}

/* Lớp hạt (grain) mỏng — cho cảm giác ảnh in, bớt "phẳng" */
.ss-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  display: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Intro ---------- */
.ss-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
}
.ss-intro-word { overflow: hidden; font-size: clamp(56px, 12vw, 160px); padding: 0.3em 0 0.2em; margin: -0.3em 0 -0.2em; }
.ss-intro-word span { display: block; }
.ss-intro-bar {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(220px, 50vw);
  height: 1px;
  translate: -50% 0;
  background: color-mix(in srgb, var(--bg) 25%, transparent);
  overflow: hidden;
}
.ss-intro-bar i { display: block; height: 100%; background: var(--bg); transform: scaleX(0); transform-origin: left; }

/* ---------- Buttons ---------- */
.ss-btn {
  --b: var(--btn-bg);
  --c: var(--btn-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 7px 0 24px;
  border-radius: 999px;
  background: var(--b);
  color: var(--c);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.ss-btn-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: var(--b);
  transition: transform 0.5s var(--ease);
}
.ss-btn-ico svg { width: 14px; height: 14px; }
.ss-btn:hover .ss-btn-ico { transform: rotate(-45deg); }
.ss-btn--ghost { --b: transparent; --c: currentColor; box-shadow: inset 0 0 0 1px var(--line); }
.ss-btn--ghost .ss-btn-ico { background: var(--ink); color: var(--bg); }
.ss-btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- Header ---------- */
.ss-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.4s, box-shadow 0.4s;
}
.ss-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.ss-brand { text-decoration: none; line-height: 1; display: block; }
.ss-brand b { display: block; font-size: 25px; font-family: var(--font-brand, var(--font-display)); font-weight: var(--brand-weight, 500); letter-spacing: 0.01em; }
.ss-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.7;
}
.ss-nav { display: flex; gap: 28px; }
.ss-nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.75;
  padding: 6px 0;
  transition: opacity 0.3s;
}
.ss-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.ss-nav a:hover, .ss-nav a.is-active { opacity: 1; }
.ss-nav a:hover::after, .ss-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.ss-header-end { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ss-nav a.has-caret::before { content: ""; position: absolute; right: -12px; top: 50%; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.2px 1.2px 0; transform: translateY(-70%) rotate(45deg); }
.ss-nav a.has-caret { margin-right: 10px; }
.ss-search { width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; opacity: 0.8; }
.ss-search svg { width: 17px; height: 17px; }
.ss-login { font-size: 13.5px; text-decoration: none; opacity: 0.8; }

.ss-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.ss-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.ss-header.is-open .ss-burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.ss-header.is-open .ss-burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.ss-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
  visibility: hidden;
}
.ss-drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease); }
.ss-drawer nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 42px;
  text-decoration: none;
}
.ss-drawer nav a small { font-family: var(--font-body); font-size: 12px; opacity: 0.5; letter-spacing: 0.1em; }
.ss-drawer-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Story: section cuộn tự nhiên, chỉ sản phẩm ghim giữa màn hình ---------- */
.ss-story { position: relative; --product-size: min(80vh, 52vw, 880px); }
.ss-pin {
  position: sticky;
  top: 0;
  height: calc(var(--vh) * 100);
  margin-bottom: calc(var(--vh) * -100);
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.ss-product {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--product-size);
  aspect-ratio: 1 / 1;
  will-change: transform;
}
.ss-product-float { position: absolute; inset: 0; animation: ss-float 7s ease-in-out infinite; }
.ss-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  user-select: none;
}
@keyframes ss-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* UI nổi trên story: dots dọc, bộ đếm, CTA, mũi tên */
.ss-pin-ui { position: absolute; inset: 0; color: var(--pin-ink, var(--ink)); }
.ss-pin-ui button, .ss-pin-ui a { pointer-events: auto; }
.ss-side-dots { position: absolute; right: calc(var(--gutter) * 0.45); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; }
.ss-dot { width: 24px; height: 20px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ss-dot::after { content: ""; width: 5px; height: 5px; border-radius: 5px; background: currentColor; opacity: 0.3; transition: height 0.5s var(--ease), opacity 0.4s; }
.ss-dot[aria-current="true"]::after { height: 16px; opacity: 1; }
.ss-counter { position: absolute; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }
.ss-counter i { width: 72px; height: 1px; background: color-mix(in srgb, currentColor 25%, transparent); position: relative; overflow: hidden; }
.ss-counter i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: left; }
.ss-pin-ui > .ss-btn { position: absolute; right: var(--gutter); bottom: 20px; }
.ss-arrow {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.ss-arrow:hover { opacity: 1; }
.ss-arrow:disabled { opacity: 0.2; pointer-events: none; }
.ss-arrow svg { width: 22px; height: 22px; }
.ss-arrow--prev { left: calc(var(--gutter) * 0.4); }
.ss-arrow--next { right: calc(var(--gutter) + 22px); }
.ss-progress { display: none; }

/* Mỗi bước là một section cao một màn hình, màu riêng */
.ss-step {
  position: relative;
  height: calc(var(--vh) * 100);
  background: var(--bg);
  color: var(--ink);
  padding: calc(var(--header-h) + 4vh) var(--gutter) 9vh calc(var(--gutter) + 3vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.ss-step--split { background: linear-gradient(to bottom, var(--bg) 0 var(--split, 58%), var(--bg2, #f7f5f1) var(--split, 58%)); }
.ss-step--top { justify-content: flex-start; padding-top: calc(var(--header-h) + 9vh); }
.ss-step--center { justify-content: flex-start; align-items: center; text-align: center; padding-top: calc(var(--header-h) + 8vh); }
.ss-step--center .ss-kicker { justify-content: center; }
.ss-step--center .ss-kicker::before { display: none; }
.ss-step--center .ss-title::after { content: ""; display: block; width: 64px; height: 1px; background: currentColor; margin: 18px auto 0; opacity: 0.7; }
.ss-step--center .ss-body { margin-left: auto; margin-right: auto; }
.ss-copy { position: relative; max-width: 30rem; }
.ss-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 18px;
}
.ss-title { font-size: clamp(46px, 6.6vw, 124px); margin: 0 0 26px; line-height: 0.93; }
/*
  Khung cắt để chữ trượt lên lúc hiện ra.

  Đệm phải đủ chỗ cho dấu tiếng Việt: engine gốc viết cho tiếng Anh nên chỉ
  chừa 0.05em/0.07em, vừa đủ cho chữ Latin trần. Tiếng Việt có dấu chồng hai
  tầng (Ừ, Ế, Ồ) nhô cao hơn nhiều, và dấu nặng tụt xuống dưới đường chân —
  với đệm cũ thì dấu bị cắt phẳng đầu. Đo trên Oswald: cần khoảng 0.26em trên
  và 0.16em dưới, lấy dư một chút cho các phông khác.
*/
.ss-line { display: block; overflow: hidden; padding: 0.3em 0 0.2em; margin: -0.3em 0 -0.2em; }
.ss-line > span { display: block; will-change: transform; }
.ss-body { color: var(--muted); max-width: 22rem; margin: 0 0 28px; font-size: 14px; line-height: 1.6; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-step .ss-btn { min-height: 44px; padding: 0 22px; font-size: 13.5px; gap: 8px; }
.ss-step .ss-btn-ico, .ss-pin-ui .ss-btn-ico { width: auto; height: auto; background: none; color: inherit; }
.ss-step .ss-btn:hover .ss-btn-ico, .ss-pin-ui .ss-btn:hover .ss-btn-ico { transform: translateX(3px); }
.ss-step .ss-btn--ghost { box-shadow: none; padding: 0 6px; text-decoration: underline; text-underline-offset: 6px; }
.ss-step--center .ss-actions { justify-content: center; }

/* Chi tiết trang trí theo section */
.ss-numeral { position: absolute; top: calc(var(--header-h) + 5vh); right: calc(var(--gutter) + 4vw); text-align: right; }
.ss-numeral b { display: block; font-size: clamp(34px, 3.8vw, 64px); line-height: 1; margin-bottom: 8px; }
.ss-numeral i { display: inline-block; width: 4px; height: 4px; margin-left: 5px; border-radius: 50%; background: currentColor; opacity: 0.3; }
.ss-numeral i:first-of-type { opacity: 1; }
.ss-frame {
  position: absolute;
  right: 9%;
  top: 20%;
  width: 34%;
  height: 58%;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  pointer-events: none;
}
.ss-frame::before { content: ""; position: absolute; left: -30%; right: -18%; top: 64%; height: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.ss-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-note);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1;
  white-space: nowrap;
}
.ss-note--col { flex-direction: column; align-items: flex-start; }
.ss-note svg {
  width: 64px;
  height: 40px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */
.ss-section { padding: clamp(80px, 11vw, 160px) var(--gutter); position: relative; }
.ss-section + .ss-section { border-top: 1px solid var(--line); }
.ss-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.ss-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--muted);
}
.ss-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.ss-h2 { font-size: clamp(44px, 6.6vw, 112px); margin: 0; }
.ss-head > p { max-width: 26rem; margin: 0; color: var(--muted); justify-self: end; }

/* Marquee */
.ss-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  white-space: nowrap;
}
.ss-marquee-track { display: inline-flex; animation: ss-marquee 38s linear infinite; }
.ss-marquee span { font-size: clamp(28px, 3.4vw, 52px); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ss-marquee span::after { content: "✦"; font-size: 0.45em; opacity: 0.5; }
@keyframes ss-marquee { to { transform: translateX(-50%); } }

/* Product cards */
.ss-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ss-pcard { display: flex; flex-direction: column; gap: 14px; }
.ss-pcard-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.ss-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ss-pcard:hover .ss-pcard-media img { transform: scale(1.06); }
.ss-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1a17;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ss-add {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1d1a17;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s, background 0.3s;
}
.ss-add svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.ss-add.is-added { background: #1d1a17; color: #fff; }
.ss-add.is-added svg { transform: rotate(45deg); }
.ss-pcard:hover .ss-add, .ss-add:focus-visible, .ss-add.is-added { transform: none; opacity: 1; }
.ss-pcard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ss-pcard h3 { font-size: 26px; margin: 0; }
.ss-price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-pcard p { margin: -6px 0 0; color: var(--muted); font-size: 14px; }

/* Feature (ảnh lớn + chữ) */
.ss-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.ss-feature--reverse .ss-feature-media { order: 2; }
.ss-feature-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.ss-feature-media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.ss-feature-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
}
.ss-feature-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ss-spin 20s linear infinite; }
.ss-feature-badge text { font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; fill: currentColor; font-family: var(--font-body); }
.ss-feature-badge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
@keyframes ss-spin { to { rotate: 360deg; } }
.ss-feature-text p { color: var(--muted); margin: 0 0 1em; max-width: 30rem; }
.ss-feature-text .ss-h2 { margin-bottom: 32px; }
.ss-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.ss-stat strong { display: block; font-size: clamp(34px, 3.6vw, 60px); white-space: nowrap; line-height: 1; text-transform: none; }
.ss-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Gallery */
.ss-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 280px); gap: 16px; }
.ss-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.ss-gallery figure:nth-child(1), .ss-gallery figure:nth-child(4) { grid-row: span 2; }
.ss-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ss-gallery figure:hover img { transform: scale(1.05); }

/* Quotes */
.ss-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ss-quote { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 28px; }
.ss-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; font-variation-settings: var(--display-opsz); }
.ss-quote figcaption { margin-top: auto; font-size: 14px; }
.ss-quote figcaption span { color: var(--muted); display: block; font-size: 12.5px; }
.ss-stars { letter-spacing: 3px; font-size: 13px; }

/* Info / visit */
.ss-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ss-info-block { padding: 28px 0; border-top: 1px solid var(--ink); }
.ss-info-block h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin: 0 0 16px; }
.ss-info-block p { margin: 0; font-size: 17px; line-height: 1.7; }

/* CTA band */
.ss-band { position: relative; overflow: hidden; padding: clamp(120px, 18vw, 240px) var(--gutter); color: #f7f2ea; text-align: center; isolation: isolate; }
.ss-band img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.ss-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, 0.3), rgba(10, 8, 6, 0.62)); z-index: -1; }
/*
  Tiêu đề dải cuối trang.

  `max-width` tính theo ký tự: bản gốc để 14ch vì tiêu đề tiếng Anh ngắn
  ("Your next bag"). Tiếng Việt dài hơn hẳn — "Túi cà phê tiếp theo" là 20 ký
  tự — nên với 14ch thì dòng tràn ra ngoài màn hình và mất chữ. Nới rộng và
  giảm cỡ chữ tối đa để câu dài vẫn nằm gọn.
*/
.ss-band .ss-h2 {
  font-size: clamp(40px, 7vw, 108px);
  margin: 0 auto 36px;
  max-width: 22ch;
}
.ss-band .ss-btn { --b: #f7f2ea; --c: #151311; }
.ss-band .ss-eyebrow { color: inherit; justify-content: center; opacity: 0.85; }

/* Footer */
.ss-footer { padding: clamp(72px, 9vw, 120px) var(--gutter) 28px; background: var(--ink); color: var(--bg); overflow: hidden; }
.ss-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ss-footer h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; opacity: 0.6; }
.ss-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ss-footer a { text-decoration: none; opacity: 0.85; }
.ss-footer a:hover { opacity: 1; text-decoration: underline; }
.ss-news p { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; margin: 0 0 22px; font-family: var(--font-display); font-variation-settings: var(--display-opsz); }
.ss-news form { display: flex; gap: 8px; max-width: 420px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); padding-bottom: 8px; }
.ss-news input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; padding: 10px 0; color: var(--bg); }
.ss-news input::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.ss-news button { border: 0; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 0 20px; font-size: 13px; font-weight: 500; cursor: pointer; }
.ss-news small { display: block; margin-top: 10px; font-size: 12px; opacity: 0.7; min-height: 1.2em; }
.ss-wordmark { font-size: 23vw; line-height: 0.8; margin: clamp(64px, 8vw, 120px) 0 24px -0.04em; white-space: nowrap; }
.ss-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; opacity: 0.55; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .ss-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-quotes { grid-template-columns: 1fr; }
  .ss-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ss-news { grid-column: 1 / -1; }
  .ss-header { gap: 28px; }
  .ss-nav { gap: 20px; }
}

/* ---------- Mobile: thiết kế riêng ---------- */
@media (max-width: 767px) {
  :root { --header-h: 60px; --radius: 18px; }
  .ss-nav, .ss-login, .ss-search, .ss-header-end .ss-btn { display: none; }
  .ss-burger { display: block; }
  .ss-brand b { font-size: 22px; }

  .ss-story { --product-size: min(100vw, 50svh, 50vh); }
  .ss-step, .ss-step--top, .ss-step--center {
    justify-content: flex-end;
    align-items: stretch;
    text-align: left;
    padding: calc(var(--header-h) + 12px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  }
  .ss-step--center .ss-kicker { justify-content: flex-start; }
  .ss-step--center .ss-title::after { margin: 14px 0 0; }
  .ss-step--center .ss-actions { justify-content: flex-start; }
  .ss-copy { max-width: none; }
  .ss-kicker { margin-bottom: 10px; font-size: 10px; }
  .ss-title { font-size: clamp(38px, 11.5vw, 56px); margin-bottom: 12px; }
  .ss-body { font-size: 14px; margin-bottom: 16px; line-height: 1.5; max-width: 30rem; }
  .ss-step .ss-btn { min-height: 44px; font-size: 13.5px; }
  .ss-step .ss-btn-ico { width: 32px; height: 32px; }
  .ss-numeral { top: calc(var(--header-h) + 14px); right: var(--gutter); }
  .ss-numeral b { font-size: 26px; }
  .ss-frame { display: none; }
  .ss-note { font-size: 17px; }
  .ss-note svg { width: 44px; height: 28px; }
  .ss-side-dots, .ss-counter, .ss-arrow, .ss-pin-ui > .ss-btn { display: none; }
  .ss-progress {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: 2px;
    background: color-mix(in srgb, currentColor 18%, transparent);
  }
  .ss-progress i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }

  .ss-head { grid-template-columns: 1fr; }
  .ss-head > p { justify-self: start; }
  .ss-h2 { font-size: clamp(42px, 12vw, 64px); }

  /* Danh sách vuốt ngang trên điện thoại */
  .ss-products, .ss-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .ss-products::-webkit-scrollbar, .ss-gallery::-webkit-scrollbar { display: none; }
  .ss-pcard { flex: 0 0 76%; scroll-snap-align: start; }
  .ss-add { opacity: 1; transform: none; }
  .ss-gallery figure { flex: 0 0 72%; height: 360px; scroll-snap-align: start; }

  .ss-feature { grid-template-columns: 1fr; }
  .ss-feature--reverse .ss-feature-media { order: 0; }
  .ss-feature-badge { width: 96px; height: 96px; }
  .ss-feature-badge b { font-size: 22px; }
  .ss-stats { gap: 12px; }
  .ss-info { grid-template-columns: 1fr; }
  .ss-quote { padding: 24px; }
  .ss-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}

/* Màn hình thấp (điện thoại xoay ngang) */
@media (max-height: 540px) and (min-width: 600px) {
  .ss-title { font-size: clamp(34px, 8vh, 60px); margin-bottom: 12px; }
  .ss-body, .ss-numeral { display: none; }
}

/* ---------- Chế độ tĩnh (giảm chuyển động) ---------- */
.ss-story.is-static .ss-pin { position: relative; height: auto; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 24px; }
.ss-story.is-static .ss-product { position: relative; width: min(100%, 520px); margin: 0 auto; }
.ss-story.is-static .ss-product-float { animation: none; }
.ss-story.is-static .ss-step { height: auto; padding-top: 64px; padding-bottom: 64px; }
.ss-story.is-static :is(.ss-pin-ui, .ss-note) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ss-product-float, .ss-marquee-track, .ss-feature-badge svg { animation: none; }
}

/* Footer: hoạ tiết chữ thương hiệu lặp lại rất mờ + khối logo */
.ss-footer.has-pattern { position: relative; isolation: isolate; }
.ss-footer.has-pattern > :not(.ss-footer-pattern) { position: relative; z-index: 1; }
.ss-footer-pattern {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.05;
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
}
.ss-footer-pattern span:nth-child(even) { margin-left: -2.2em; color: transparent; -webkit-text-stroke: 1px currentColor; }
.ss-footer-brand { margin-bottom: clamp(48px, 6vw, 88px); }
.ss-footer-brand b { display: block; font-size: clamp(44px, 6vw, 96px); line-height: 0.9; text-transform: none; }
.ss-footer-brand small { display: block; margin-top: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.ss-footer.has-pattern .ss-legal { margin-top: clamp(56px, 7vw, 96px); }


/* ---------- Thông số (specs) ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.sp-item { padding: 34px 24px 30px 0; border-right: 1px solid var(--line); }
.sp-item + .sp-item { padding-left: 24px; }
.sp-item:last-child { border-right: 0; }
.sp-item dd { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.sp-item b { font-size: clamp(56px, 7vw, 120px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.sp-unit { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sp-item dt { margin-top: 14px; color: var(--muted); font-size: 14px; }
.sp-note { margin: 28px 0 0; font-size: 12px; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: 1fr 1fr; }
  .sp-item:nth-child(2n) { border-right: 0; }
  .sp-item:nth-child(2n + 1) { padding-left: 0; }
  .sp-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Chọn màu (colors) ---------- */
.cl-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.cl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cl-img.is-on { opacity: 1; }
.cl-sweep {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.08) 70%, transparent);
  filter: blur(6px); transform: translateX(-120%) skewX(-12deg);
}
.cl-stage.is-sweep .cl-sweep { animation: cl-sweep 0.75s var(--ease) forwards; }
.cl-stage.is-sweep .cl-img.is-on { animation: cl-flash 0.75s ease; }
@keyframes cl-sweep { 0% { opacity: 1; transform: translateX(-120%) skewX(-12deg); } 100% { opacity: 1; transform: translateX(320%) skewX(-12deg); } }
@keyframes cl-flash { 0%, 100% { filter: none; } 45% { filter: brightness(1.6) contrast(0.9); } }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.cl-name b { display: block; font-size: clamp(26px, 3vw, 44px); }
.cl-name span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.cl-swatches { display: flex; gap: 14px; }
.cl-sw {
  width: 46px; height: 46px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--sw);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.35), inset 0 6px 10px rgba(255, 255, 255, 0.25);
  outline-offset: 5px; transition: transform 0.3s var(--ease);
}
.cl-sw:hover { transform: scale(1.08); }
.cl-sw[aria-checked="true"] { outline: 1px solid var(--ink); }
.cl-sw:focus-visible { outline: 2px solid var(--ink); }

/* ---------- Đặt lịch (booking) ---------- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.bk-text > p { color: var(--muted); max-width: 46ch; margin: 24px 0 0; }
.bk-media { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.bk-media img { width: 100%; height: 100%; object-fit: cover; }
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bk-field { display: grid; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bk-field--wide { grid-column: 1 / -1; }
.bk-field input, .bk-field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; font-size: 16px; letter-spacing: 0; text-transform: none;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); appearance: none; color-scheme: dark light;
}
.bk-field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.bk-field input:focus, .bk-field select:focus { outline: none; border-color: var(--ink); }
.bk-field.is-bad input, .bk-field.is-bad select { border-color: #e0574f; }
.bk-submit { grid-column: 1 / -1; justify-content: center; margin-top: 6px; border: 0; cursor: pointer; }
.bk-msg { grid-column: 1 / -1; min-height: 1.4em; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-form { grid-template-columns: 1fr; }
}
