/* Layout: one column, phone-first. Photo-led hero; sections fade in on scroll; no tilt/parallax (bản sửa 05/11/2026). */
:root {
  --paper: #f5efe3;
  --ink: #1c1c1c;
  --thread: #8a8a8a;
  --silt: #8a5a3b;
  --coconut: #3e7c4a;
  --rice: #d9a441;
  --sky: #3b6ea5;
  --brick: #b23a2e;
  --paper-2: #ede5d4;
  --white: #ffffff;
  --line: #d8cfbc;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: inherit;
  color: var(--silt);
  font-weight: 500;
}
h2 {
  font-size: clamp(24px, 3.8vw, 34px);
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-go {
  background: var(--coconut);
  color: var(--paper);
}
.btn-go:hover {
  background: #346a3f;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* watermark scarf (đứng yên) */
#wm {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#wm svg {
  position: absolute;
  width: min(78vw, 620px);
  height: auto;
  opacity: 0.06;
}
#wm .a {
  right: -12%;
  top: 6%;
  transform: rotate(-35deg);
}
#wm .b {
  left: -22%;
  bottom: -8%;
  transform: rotate(22deg);
  width: min(60vw, 440px);
}
main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* header */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(245, 239, 227, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.12);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.brand svg {
  width: 48px;
  height: 48px;
}
.nav-links {
  display: none;
  gap: 22px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
}
.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.cart {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.cart .n {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--coconut);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }
}

/* hero: ảnh nhà Cô 8 mở đầu (IMG_6246, đổi 08/11/2026) */
.hero {
  position: relative;
  color: var(--paper);
  background: var(--ink);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  opacity: 0.6;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 29, 26, 0.82) 0%,
    rgba(31, 29, 26, 0.35) 55%,
    rgba(31, 29, 26, 0.05) 100%
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: 96px 64px;
  min-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* khổ rộng: ảnh tràn cả khung, giữ nét; riêng vùng sau chữ bên trái được làm mờ + tối nhẹ (An góp ý 08/11/2026) */
@media (min-width: 720px) {
  .hero {
    min-height: min(78vh, 620px);
    display: flex;
  }
  .hero {
    overflow: hidden;
  }
  .hero img {
    opacity: 1;
    object-position: 62% 60%;
    z-index: 0;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: 1;
    background: url(img/nha-co8.webp) 62% 60% / cover no-repeat;
    filter: blur(16px) brightness(0.85);
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 38%,
      transparent 56%
    );
    mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 56%);
    pointer-events: none;
  }
  .hero::after {
    z-index: 1;
    background: linear-gradient(
      to right,
      rgba(28, 28, 28, 0.62) 0%,
      rgba(28, 28, 28, 0.5) 38%,
      rgba(28, 28, 28, 0) 58%
    );
  }
  .hero .wrap {
    z-index: 2;
  }
  .hero .wrap {
    max-width: min(620px, 52%);
    margin: 0;
    min-height: 0;
    flex: 1;
    justify-content: center;
    padding: 64px clamp(24px, 3vw, 48px) 64px clamp(24px, 5vw, 96px);
  }
  .hero h1 {
    font-size: clamp(30px, 4.2vw, 64px);
    white-space: nowrap;
  }
}
/* khổ hẹp: ảnh 4:3 trọn trên, mờ dần sang nền tối, chữ nằm dưới ảnh (Điều phối đề xuất 08/11/2026) */
@media (max-width: 719px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-position: center;
    opacity: 1;
    display: block;
  }
  .hero::after {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vw * 3 / 4);
    background: linear-gradient(to bottom, transparent 62%, var(--ink));
  }
  .hero .wrap {
    min-height: 0;
    padding-block: 0 40px;
    margin-top: -8px;
  }
  .hero h1 {
    margin-top: 10px;
  }
}
.hero .eyebrow {
  color: #e9dfcb;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  margin-top: 12px;
  line-height: 1.1;
}
.hero .h1s {
  display: block;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  color: #e9dfcb;
  margin-top: 8px;
  line-height: 1.4;
}
.hero .usp {
  margin-top: 12px;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  max-width: 30ch;
}
.hero .heritage {
  margin-top: 22px;
}
.hero .sub {
  margin-top: 10px;
  font-size: 15px;
  color: #e9dfcb;
  max-width: 44ch;
}
.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.heritage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  border: 1px solid rgba(245, 239, 227, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  align-self: flex-start;
  text-decoration: none;
  min-height: 36px;
  cursor: pointer;
  transition: background 0.15s;
}
.heritage:hover {
  background: rgba(245, 239, 227, 0.15);
}
.heritage:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
#proof {
  scroll-margin-top: 70px;
}

/* photos */
.story .pics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.story .pics figure {
  margin: 0;
}
.story .pics img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.story .pics figcaption,
.vision .pics figcaption {
  font-size: 13px;
  color: var(--silt);
  margin-top: 6px;
}
.step img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-top: 8px;
}
.vision .pics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.vision .pics figure {
  margin: 0;
}
.vision .pics img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.vision .pics .wide {
  grid-column: 1/-1;
}

.proof {
  background: var(--paper-2);
}
.proof .wrap {
  padding-block: 52px;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .proof .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.proof figure {
  margin: 0;
}
.proof img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.proof figcaption {
  font-size: 13px;
  color: var(--silt);
  margin-top: 8px;
}
.cmts {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.cmt {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
}
.cmt b {
  display: block;
  font-size: 13px;
  color: var(--silt);
  margin-top: 8px;
  font-weight: 500;
}

/* Be Chi: góc phải dưới, nút tròn 3D 56px (thu nhỏ 07/11); đứng trên thanh giỏ khi có hàng; mờ đi lúc khách đang cuộn */
.bc-fab {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: visible;
  transition:
    opacity 0.2s,
    bottom 0.2s;
  background: radial-gradient(
    circle at 35% 30%,
    #fff9ec 0%,
    #f5efe3 45%,
    #d9cdb4 100%
  );
  box-shadow:
    0 1px 0 #fff inset,
    0 -2px 0 rgba(28, 28, 28, 0.12) inset,
    0 10px 20px -6px rgba(28, 28, 28, 0.55),
    0 0 0 2px var(--coconut),
    0 0 0 5px rgba(62, 124, 74, 0.18);
}
.bc-fab svg {
  position: absolute;
  left: 9%;
  top: 4%;
  width: 82%;
  height: 82%;
  overflow: visible;
  filter: drop-shadow(0 3px 4px rgba(28, 28, 28, 0.35));
}
.bc-fab:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.bc-fab .bc-lbl {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  background: var(--coconut);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 3px 8px -2px rgba(28, 28, 28, 0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .bc-fab::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--coconut);
    opacity: 0;
    animation: ring 2.8s ease-out infinite;
  }
  @keyframes ring {
    0% {
      transform: scale(0.9);
      opacity: 0.7;
    }
    70% {
      transform: scale(1.25);
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
}
body.hasbar .bc-fab {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.bc-hint {
  position: fixed;
  right: calc(76px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 200px;
  box-shadow: 0 6px 16px -8px rgba(28, 28, 28, 0.4);
  transition: opacity 0.2s;
}
body.hasbar .bc-hint {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}
.bc-hint::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  border: 6px solid transparent;
  border-left-color: var(--ink);
  border-right: 0;
}
.bc-panel {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 36;
  width: min(360px, calc(100vw - 28px));
  max-height: min(70vh, 560px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 40px -18px rgba(28, 28, 28, 0.5);
}
body.hasbar .bc-panel {
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}
.bc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--white);
}
.bc-head svg {
  width: 44px;
  height: 44px;
  flex: none;
  overflow: visible;
}
.bc-head b {
  display: block;
  font-size: 15px;
}
.bc-head span {
  font-size: 12px;
  color: var(--silt);
}
.bc-head button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
}
.bc-q {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--ink);
}
.bc-q:hover,
.bc-q[aria-expanded="true"] {
  background: #fbf4e4;
}
.bc-a {
  padding: 0 16px 14px;
  font-size: 14px;
  color: #4a4336;
  border-bottom: 1px solid var(--line);
  background: #fbf4e4;
}
.bc-a p + p {
  margin-top: 6px;
}
.bc-say {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.bc-say svg {
  width: 64px;
  height: 64px;
  flex: none;
  overflow: visible;
}
.bc-say span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .bc-fab .bc-tail,
  .bc-say .bc-tail {
    animation: tail 3.2s ease-in-out infinite;
    transform-origin: 30px -2px;
  }
  .bc-fab svg {
    animation: bob 2.8s ease-in-out infinite;
  }
  @keyframes tail {
    0%,
    100% {
      transform: rotate(0);
    }
    50% {
      transform: rotate(-10deg);
    }
  }
  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }
  .bc-jump {
    animation: jump 0.6s ease;
  }
  @keyframes jump {
    0%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-16px) rotate(-6deg);
    }
  }
}
.hero .bc-say span {
  color: var(--ink);
}

/* reveal (nhẹ) */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

/* story */
.story .wrap {
  padding-block: 56px;
}
.story .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 58ch;
  color: #2b2622;
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.story .lead em {
  font-style: normal;
  color: var(--silt);
}
.story .quote {
  margin-top: 26px;
  border-left: 4px solid var(--silt);
  background: #fbf4e4;
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  font-weight: 500;
  max-width: 58ch;
}
.story .quote small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--silt);
  margin-top: 6px;
}
.story .vow {
  margin-top: 26px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
}
.story .vow span {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--silt);
  margin-top: 6px;
}

/* timeline */
.tl {
  background: var(--paper-2);
}
.tl .wrap {
  padding-block: 52px;
}
.gens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
@media (min-width: 760px) {
  .gens {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gen {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
}
.gen .yr {
  font-size: 12px;
  color: var(--silt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.gen h3 {
  font-size: 17px;
  margin-top: 6px;
}
.gen p {
  font-size: 14px;
  color: #4a4336;
  margin-top: 8px;
}
.gen.now {
  border-color: var(--coconut);
  box-shadow: inset 4px 0 0 var(--coconut);
}

/* process */
.proc .wrap {
  padding-block: 52px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  counter-reset: s;
}
.step {
  counter-increment: s;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.step::before {
  content: counter(s);
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 28px;
  font-weight: 700;
}
.step small {
  display: block;
  font-weight: 400;
  color: var(--silt);
  font-size: 11px;
  margin-top: 4px;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
  .step img {
    display: none;
  }
  .step.pic img {
    display: block;
  }
}
.proc .note {
  margin-top: 16px;
  font-size: 14px;
  color: #4a4336;
  border-left: 3px solid var(--silt);
  padding-left: 12px;
}

/* values + bw */
.vals {
  background: var(--paper-2);
}
.vals .wrap {
  padding-block: 52px;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .vals .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.vlist {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.vlist div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.vlist i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: 8px;
}
.vlist b {
  display: block;
}
.vlist span {
  color: #4a4336;
  font-size: 14px;
}
.bw {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}
.bw::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  background:
    repeating-linear-gradient(90deg, #f5efe3 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, #f5efe3 0 8px, transparent 8px 16px);
  opacity: 0.12;
  transform: rotate(-20deg);
}
.bw .eyebrow {
  color: #c9a88f;
}
.bw h3 {
  font-size: 20px;
  margin-top: 8px;
}
.bw p {
  margin-top: 10px;
  font-size: 15px;
  color: #d9d2c4;
  position: relative;
}

/* products */
.products .wrap {
  padding-block: 52px;
}
.products .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--thread);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .ph {
  aspect-ratio: 1;
  position: relative;
  background: var(--paper-2);
}
.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .ph .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}
.card .ph .tag.info {
  background: var(--sky);
}
.card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card h3 {
  font-size: 15px;
}
.card .meta {
  font-size: 12px;
  color: #6b6b6b;
}
.card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}
.price {
  font-weight: 700;
  color: var(--coconut);
  font-variant-numeric: tabular-nums;
}
.add {
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: var(--coconut);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.add:focus-visible {
  outline: 3px solid var(--sky);
}

.card .weave {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.card .weave.tay {
  background: var(--ink);
  color: var(--paper);
}
.more {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.more summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* film: ảnh bìa riêng, bấm mới tải YouTube. Nền tạm đen rằn; khi có ảnh nhà thì thêm background-image vào .poster */
.film .wrap {
  padding-block: 52px;
}
.film-sub {
  margin-top: 12px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 56ch;
  color: #2b2622;
}
.player {
  margin-top: 22px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.poster {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
  font: inherit;
  background: var(--ink) center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.poster > * {
  position: relative;
}
/* nền ảnh nhà Cô 8 (IMG_6244, An chọn 08/11/2026) + phủ tối dần xuống đáy */
.poster .pbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0.18) 0%,
    rgba(28, 28, 28, 0.28) 45%,
    rgba(28, 28, 28, 0.8) 100%
  );
  pointer-events: none;
}
.poster .pcap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  text-align: left;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.poster .pcap b {
  display: block;
  font-size: clamp(17px, 3.2vw, 28px);
  line-height: 1.2;
  color: var(--paper);
}
.poster .pcap small {
  display: block;
  margin-top: 3px;
  font-size: clamp(12px, 1.7vw, 15px);
  color: #e9dfcb;
}
.pbadge {
  width: clamp(56px, 12vw, 96px);
  height: auto;
}
.ptitle {
  font-weight: 700;
  font-size: clamp(20px, 4vw, 36px);
  line-height: 1.2;
}
.pbrand {
  font-size: clamp(11px, 1.6vw, 14px);
  color: #d9d2c4;
}
.pplay {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coconut);
  display: grid;
  place-items: center;
  margin-top: 4px;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pplay svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}
@media (max-width: 479px) {
  .pplay {
    width: 48px;
    height: 48px;
    transform: translateY(-16px);
  }
  .pplay svg {
    width: 22px;
    height: 22px;
  }
  .poster .pcap {
    left: 12px;
    right: 12px;
    bottom: 10px;
  }
  .poster .pcap small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.poster:hover .pplay {
  background: #346a3f;
}
.poster:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: -3px;
}

/* loom compare */
.loom .wrap {
  padding-block: 52px;
}
.cmp {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .cmp {
    grid-template-columns: 1fr 1fr;
  }
}
.cmp article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.cmp article:first-child {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--ink);
}
.cmp h3 {
  font-size: 18px;
}
.cmp h3 small {
  font-weight: 400;
  color: var(--silt);
  font-size: 13px;
}
.cmp dl {
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}
.cmp dt {
  font-size: 12px;
  color: var(--silt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.cmp dd {
  margin: 0;
  font-size: 15px;
}

/* about */
.about {
  background: var(--paper-2);
}
.about .wrap {
  padding-block: 52px;
}
.about .lead1 {
  margin-top: 14px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 56ch;
  color: #2b2622;
}
.people {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 760px) {
  .people {
    grid-template-columns: 1fr 1fr;
  }
}
.people article {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.people span {
  font-size: 22px;
  line-height: 1.2;
}
.people p {
  font-size: 14px;
  color: #4a4336;
  margin-top: 4px;
}
.bw p + p {
  margin-top: 10px;
}

/* vision */
.vision .wrap {
  padding-block: 52px;
}
.vision p {
  margin-top: 14px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 56ch;
  color: #2b2622;
}
/* Bước vào nhà Cô 8: khung kéo ảnh + 5 chấm (08/11/2026, theo mẫu Ghé nhà Cô 8 của Điều phối) */
.vision .hv-h3 {
  margin: 36px 0 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}
.vision p.hv-lead {
  margin-top: 6px;
  font-size: 15px;
  color: var(--thread);
}
.hv-view {
  position: relative;
  height: clamp(340px, 62vh, 460px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline-offset: 3px;
  margin-top: 14px;
}
.hv-view.drag {
  cursor: grabbing;
}
.hv-stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
}
.hv-stage img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
}
.hv-dot {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.hv-dot span {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--coconut);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.hv-dot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: hv-ring 1.8s ease-out infinite;
}
.hv-dot[aria-expanded="true"] span {
  background: var(--rice);
}
.hv-dot:focus-visible {
  outline: 3px solid var(--rice);
  border-radius: 50%;
}
@keyframes hv-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hv-dot::before {
    animation: none;
    opacity: 0.6;
  }
}
.hv-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(28, 28, 28, 0.78);
  color: var(--paper);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
}
.hv-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.hv-sheet h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  padding-right: 40px;
}
.hv-sheet .hv-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  margin: 6px 0 0;
  background: var(--paper-2);
  color: var(--silt);
}
.vision .hv-sheet p {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: none;
}
.hv-sheet .hv-x {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 22px;
  color: var(--thread);
  cursor: pointer;
  border-radius: 8px;
}
.hv-sheet .btn {
  display: flex;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding-block: 10px;
}
@media (min-width: 720px) {
  .hv-sheet {
    left: auto;
    right: 14px;
    top: 14px;
    bottom: auto;
    width: 290px;
  }
}

/* order: 4 bước có chuyển động + khung điện thoại nhỏ (07/11/2026, theo bản xem thử An duyệt) */
.order {
  background: var(--paper-2);
}
.order .wrap {
  padding-block: 52px;
  max-width: 760px;
}
.flowwrap {
  position: relative;
  margin-top: 22px;
  --p: 0;
}
.track {
  position: absolute;
  top: 19px;
  left: 12.5%;
  right: 12.5%;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}
.fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--p) * 100%);
  border-radius: 3px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--white) 0 50%) 0
    0/6px 6px;
  transition: width 0.9s ease;
}
.shuttle {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 30px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: left 0.9s ease;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: relative;
  z-index: 2;
}
.flow button {
  width: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
  background: none;
  border: 0;
  padding: 0 2px 4px;
  border-radius: 10px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.flow .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.flow b {
  font-size: 13px;
  line-height: 1.3;
}
.flow small {
  font-size: 12px;
  line-height: 1.35;
  color: #5e5a52;
}
.flow li.done .num {
  background: var(--coconut);
  border-color: var(--coconut);
  color: var(--paper);
}
.flow li.now .num {
  border-color: var(--coconut);
  color: #2c5a35;
  box-shadow: 0 0 0 6px #e3eedf;
}
.flow li.now b {
  color: #2c5a35;
}
@media (prefers-reduced-motion: no-preference) {
  .flow li.now .num {
    animation: beat 1.4s ease-in-out infinite;
  }
}
@keyframes beat {
  50% {
    box-shadow: 0 0 0 9px #e3eedf;
  }
}
.flowcap {
  display: none;
}
@media (max-width: 520px) {
  .flow small {
    display: none;
  }
  .flowcap {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #5e5a52;
    min-height: 1.6em;
  }
}
.mini {
  position: relative;
  width: 200px;
  height: 336px;
  margin: 22px auto 0;
  border: 7px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
}
.sc {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
  font-size: 12px;
  line-height: 1.4;
}
.sc.on {
  opacity: 1;
  visibility: visible;
}
.s2,
.s3,
.s4 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px;
}
.m-img {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: cover;
}
.m-pad {
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}
.m-tag {
  justify-self: start;
  font-size: 11px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 6px;
  line-height: 1.5;
}
.m-name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}
.m-price {
  font-weight: 700;
  color: #2c5a35;
  font-size: 14px;
}
.m-btn {
  position: relative;
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  background: var(--coconut);
  color: var(--paper);
  font-weight: 700;
  font-size: 12px;
  margin-top: 4px;
}
.m-ol {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--coconut);
  color: #2c5a35;
  font-weight: 700;
  font-size: 11px;
  margin-top: 4px;
}
.m-dim {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
}
.m-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: 14px 14px 0 0;
  padding: 6px 10px 12px;
  display: grid;
  gap: 8px;
}
.m-grab {
  justify-self: center;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}
.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-qty {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 700;
}
.m-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.3);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.m-h {
  font-weight: 700;
  font-size: 13px;
}
.m-f {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  display: grid;
}
.m-f small {
  font-size: 11px;
  color: #5e5a52;
  line-height: 1.3;
}
.ty {
  white-space: nowrap;
  overflow: hidden;
  font-weight: 500;
  line-height: 1.5;
}
.m-tot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}
.m-tot b {
  color: var(--brick);
}
.m-amt {
  font-size: 20px;
  font-weight: 700;
  color: var(--brick);
  text-align: center;
}
.m-qr {
  position: relative;
  align-self: center;
  width: 112px;
  height: 112px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.m-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scan {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8px;
  height: 2px;
  background: var(--coconut);
  opacity: 0;
}
.m-ok {
  align-self: center;
  background: #e3eedf;
  color: #2c5a35;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.s3 .m-btn {
  margin-top: auto;
}
.m-check {
  display: block;
  width: 64px;
  height: 64px;
  margin: 18px auto 4px;
  fill: none;
  stroke: var(--coconut);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-check circle {
  stroke-dasharray: 145;
}
.m-check path {
  stroke-dasharray: 34;
}
.c {
  text-align: center;
}
.m-p {
  color: #5e5a52;
}
.m-tl {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 11.5px;
}
.m-tl li {
  display: flex;
  gap: 6px;
  align-items: center;
}
.m-tl li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
}
.m-tl li.ok::before {
  background: var(--coconut);
  border-color: var(--coconut);
}
.s1.on .m-pad .tap {
  animation: tap 0.7s ease 0.45s both;
}
.s1.on .m-dim {
  animation: fadeIn 0.3s ease 1.1s both;
}
.s1.on .m-sheet {
  animation: up 0.4s ease 1.1s both;
}
.s1.on .m-sheet .tap {
  animation: tap 0.7s ease 1.9s both;
}
.s2.on .ty1 {
  animation: type 0.6s steps(9) 0.15s both;
}
.s2.on .ty2 {
  animation: type 0.6s steps(10) 0.85s both;
}
.s2.on .ty3 {
  animation: type 0.7s steps(14) 1.55s both;
}
.s2.on .tap {
  animation: tap 0.7s ease 2.35s both;
}
.s3.on .scan {
  animation: scan 1.5s ease-in-out 0.2s both;
}
.s3.on .m-ok {
  animation: pop 0.35s ease 1.75s both;
}
.s3.on .tap {
  animation: tap 0.7s ease 2.2s both;
}
.s4.on .m-check circle {
  animation: dc 0.6s ease 0.1s both;
}
.s4.on .m-check path {
  animation: dp 0.4s ease 0.6s both;
}
.s4.on .m-h,
.s4.on .m-p,
.s4.on .m-tl {
  animation: fadeIn 0.4s ease 0.8s both;
}
@keyframes tap {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes up {
  from {
    transform: translateY(105%);
  }
}
@keyframes type {
  from {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes scan {
  0% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 100px;
    opacity: 1;
  }
  100% {
    top: 8px;
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes dc {
  from {
    stroke-dashoffset: 145;
  }
}
@keyframes dp {
  from {
    stroke-dashoffset: 34;
  }
}
.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: center;
  margin-top: 18px;
}
.assure span {
  font-size: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.pol {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
}
.pol summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  color: #2c5a35;
}
.pol ul {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 14px;
  color: #4a4336;
  display: grid;
  gap: 6px;
}
.order-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .mini * {
    animation: none !important;
  }
  .fill,
  .shuttle,
  .sc {
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
/* An (06/11): ảnh + 3 dòng, đọc thêm */
.an {
  padding-block: 48px 0;
}
.an-card {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 30px -22px rgba(28, 28, 28, 0.4);
  padding: 0;
}
@media (min-width: 760px) {
  .an-card {
    grid-template-columns: 1fr 2fr;
  }
}
.an-pic {
  margin: 0;
  background: var(--paper-2);
}
.an-pic img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (max-width: 759px) {
  .an-pic img {
    height: auto;
    max-height: none;
    aspect-ratio: 4/3;
    object-position: center 20%;
  }
}
.an-txt {
  padding: 28px 24px;
}
@media (min-width: 760px) {
  .an-txt {
    padding: 40px 44px;
  }
}
.an h2 {
  font-size: clamp(28px, 4.4vw, 40px);
}
.an-more {
  margin: 16px 0 0 !important;
  border: 0 !important;
  padding: 0 !important;
}
.an-more summary {
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
}
.an-more[open] summary {
  margin-bottom: 14px;
}
.an-full-card {
  display: grid;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 30px -22px rgba(28, 28, 28, 0.4);
}
@media (min-width: 760px) {
  .an-full-card {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 32px 36px;
    align-items: center;
  }
}
.an-full {
  display: grid;
  gap: 14px;
  font-size: 16px;
  color: #2b2622;
}
.an-con {
  margin: 0;
}
.an-con img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
  display: block;
}
.an-con figcaption {
  font-size: 13px;
  color: var(--silt);
  margin-top: 6px;
  text-align: center;
}
.an-wrapbottom {
  padding-bottom: 48px;
}
.h2s {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--silt);
  margin-top: 6px;
  line-height: 1.4;
}
.an-lines {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.5;
  color: #2b2622;
  max-width: fit-content;
  font-style: italic;
}
.an-sign {
  margin-top: 16px;
  font-weight: 700;
  font-size: 15px;
}
.an-more summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--coconut);
}
/* why */
.why {
  background: var(--paper-2);
}
.why .wrap {
  padding-block: 48px;
}
.why-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.why-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.why-grid span {
  font-size: 28px;
  display: block;
}
.why-grid b {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}
.why-grid p {
  margin-top: 8px;
  font-size: 14px;
  color: #4a4336;
}
/* buy info */
.buyinfo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .buyinfo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.buyinfo div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 2px;
}
.buyinfo span {
  font-size: 22px;
}
.buyinfo b {
  font-size: 14px;
}
.buyinfo small {
  font-size: 12px;
  color: #6b6b6b;
}
/* family (thu gọn) */
.fam .wrap {
  padding-block: 48px;
}
.fam .lead1 {
  margin-top: 14px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 58ch;
  color: #2b2622;
}
.fam-more {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.fam-more summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--coconut);
}
.story-lead {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  font-size: 16px;
  max-width: 58ch;
  color: #2b2622;
}
.fam-h3 {
  font-size: 18px;
  margin-top: 26px;
}
.fam .gens {
  margin-top: 20px;
}
.fam .steps {
  margin-top: 14px;
}
/* thẻ sản phẩm: 1 nút "Chọn mua" (07/11) */
.card .kbuy {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  font-size: 14px;
  padding: 0 10px;
}
/* thanh giỏ hàng ở đáy màn hình (07/11, thay giỏ nổi) */
.fbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px max(16px, env(safe-area-inset-right, 0px))
    calc(8px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  border: 0;
  background: var(--coconut);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 -8px 24px -12px rgba(28, 28, 28, 0.5);
  text-align: left;
}
.fbar b {
  font-variant-numeric: tabular-nums;
}
.fbar svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.fbar .go-t {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
body.hasbar {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
body.lock,
body.sheet-open {
  overflow: hidden;
}
.lock .bc-fab,
.lock .bc-hint,
.lock .bc-panel,
.lock .fbar,
.sheet-open .bc-fab,
.sheet-open .bc-hint,
.sheet-open .fbar {
  display: none !important;
}
.scrolling .bc-fab,
.scrolling .bc-hint {
  opacity: 0;
  pointer-events: none;
}
.gal {
  display: flex;
  gap: 6px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.gal button {
  width: 44px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.gal button[aria-pressed="true"] {
  border-color: var(--ink);
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vbar {
  background: var(--silt);
  color: #f5efe3;
  font-size: 13px;
  line-height: 1.4;
}
.vbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.vbar button {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}
/* ===== Mua kiểu sàn (07/11/2026): bảng chọn mẫu, giỏ, thanh toán, chuyển khoản, thành công ===== */
.kscrim {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(28, 28, 28, 0.45);
  display: none;
}
.kscrim.on {
  display: block;
}
.kv {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  background: var(--paper);
}
.kv.on {
  display: flex;
}
@media (min-width: 700px) {
  .kv {
    left: 50%;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: min(560px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(28, 28, 28, 0.6);
  }
}
.kh {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 5px 8px 5px 14px;
  padding-top: calc(5px + env(safe-area-inset-top, 0px));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.kh h3 {
  font-size: 16px;
  flex: 1;
  outline: none;
}
.ib {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex: none;
  padding: 0;
}
.kh .ib[data-back] {
  margin-left: -10px;
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ib .ic {
  width: 23px;
  height: 23px;
}
.kb {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.kbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.kbar .btn {
  flex: none;
}
.kbtn-w {
  width: 100%;
}
.btn-ol {
  background: var(--white);
  border: 1.5px solid var(--coconut);
  color: var(--coconut);
}
.weave {
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.weave.tay {
  background: var(--ink);
  color: var(--paper);
}
.mu {
  color: #5e5a52;
}
.sm {
  font-size: 12px;
}
.box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.box h4 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.addr {
  position: relative;
  overflow: hidden;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.rn {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--white) 0 50%) 0
    0/10px 10px;
}
.fld {
  display: grid;
  gap: 4px;
}
.fld label,
.gmsg label {
  display: block;
}
.ferr {
  color: var(--brick);
  font-size: 12.5px;
}
.ferr:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: var(--brick) !important;
}
.list {
  padding: 2px 12px;
}
.cl {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cl:last-child {
  border-bottom: 0;
}
.ck {
  width: 20px;
  height: 20px;
  margin: 22px 0 0;
  accent-color: var(--coconut);
}
.th {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--paper-2);
  display: block;
  overflow: hidden;
  flex: none;
}
.th img,
.th svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kl .th {
  width: 52px;
  height: 52px;
}
.cl-b {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cl-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}
.cl-n {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.cl-v {
  font-size: 12px;
  color: #5e5a52;
}
.cl-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.del {
  border: 0;
  background: none;
  color: #5e5a52;
  font: inherit;
  font-size: 12px;
  min-height: 32px;
  padding: 0 0 0 6px;
  flex: none;
  cursor: pointer;
}
.kl {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--white);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.stepper output {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 44px;
  font-variant-numeric: tabular-nums;
}
.stepper.sm button {
  width: 38px;
  height: 38px;
  font-size: 16px;
}
.stepper.sm output {
  min-width: 32px;
  line-height: 38px;
  font-size: 13px;
}
/* Trang chọn sản phẩm: thêm/bớt ngay trên thẻ + ô "Đơn của bạn" bên phải (13/11/2026) */
.card .kstep {
  display: flex;
  margin-top: 8px;
  width: 100%;
}
.card .kstep button {
  flex: none;
  width: 44px;
}
.card .kstep output {
  flex: 1;
}
.card .inord {
  font-size: 12px;
  color: var(--silt);
  margin-top: 6px;
}
.osum {
  display: none;
}
[data-voucher][hidden] {
  display: none !important;
}
@media (min-width: 1024px) {
  .shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
  }
  .shop .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .osum {
    display: block;
    position: sticky;
    top: 84px;
    margin-top: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }
  .osum h3 {
    font-size: 19px;
    margin: 0 0 12px;
  }
  .os-l {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .os-l .th {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background: var(--paper-2);
  }
  .os-l .th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .os-n {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
  }
  .os-v {
    font-size: 12px;
    color: var(--silt);
    margin: 2px 0 0;
  }
  .os-r {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
  }
  .os-r b {
    font-variant-numeric: tabular-nums;
    font-size: 14px;
  }
  .os-r .stepper.sm button {
    width: 32px;
    height: 32px;
  }
  .os-r .stepper.sm output {
    line-height: 32px;
    min-width: 28px;
  }
  .os-x {
    border: 1px solid var(--silt);
    border-radius: 12px;
    background: none;
    color: var(--silt);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
  }
  .os-e {
    font-size: 14px;
    color: var(--silt);
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .os-t {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--paper-2);
  }
  .os-t div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
  }
  .os-t dt {
    color: var(--silt);
  }
  .os-t dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .os-t .os-g {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 10px;
  }
  .os-t .os-g dt {
    color: var(--ink);
    font-weight: 700;
  }
  .os-t .os-g dd {
    font-size: 20px;
    font-weight: 800;
    color: var(--leaf, #2f6b3a);
  }
  .os-go {
    width: 100%;
    height: 48px;
    margin-top: 14px;
  }
  .os-note {
    margin: 10px 0 0;
  }
}
@media (min-width: 1280px) {
  .shop .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .inshop .fbar {
    display: none !important;
  }
}
.giftrow {
  padding-top: 10px;
}
.gift {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}
.gift input {
  width: 20px;
  height: 20px;
  accent-color: var(--coconut);
  margin: 2px 0 0;
  flex: none;
}
.gift b {
  display: block;
  font-size: 13.5px;
}
.gift small {
  color: #2c5a35;
  font-weight: 700;
  font-size: 12px;
}
.gmsg {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.rowlink {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  min-height: 48px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.box.rowlink {
  padding: 0 12px;
}
.rl-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.rl-r {
  color: #5e5a52;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 2px;
  text-align: right;
}
.vtxt.on {
  color: var(--brick);
  font-weight: 700;
}
.k-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 12px;
  color: #5e5a52;
  text-align: center;
}
.cbar .all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
  flex: none;
  font-weight: 400;
}
.cbar input {
  width: 20px;
  height: 20px;
  accent-color: var(--coconut);
  margin: 0;
}
.tot {
  margin-left: auto;
  text-align: right;
  display: grid;
  line-height: 1.25;
  min-width: 0;
}
.tot small {
  font-size: 11.5px;
  color: #5e5a52;
}
.tot b {
  font-size: 16px;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}
.kbar2 .tot {
  margin-left: 0;
  text-align: left;
  flex: 1;
}
.rows {
  display: grid;
  padding: 0 12px;
}
.rows .r {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  font-size: 13.5px;
  color: inherit;
  background: none;
  text-align: left;
  width: 100%;
}
.rows button.r {
  cursor: pointer;
}
.rows .r:last-child {
  border-bottom: 0;
}
.rows .r > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  flex: none;
}
.rval {
  text-align: right;
  display: grid;
  gap: 2px;
}
.rval small {
  font-size: 11.5px;
  color: #5e5a52;
}
.k-sum {
  display: grid;
  gap: 6px;
}
.k-sum .s {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.k-sum .big {
  font-size: 16px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.k-sum .big span:last-child,
.neg {
  color: var(--brick);
}
.priv {
  font-size: 12px;
  color: #5e5a52;
  text-align: center;
  padding: 0 8px 4px;
}
.knote summary {
  font-size: 13px;
  color: #2c5a35;
  min-height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ms {
  list-style: none;
  margin: 0 0 2px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ms li {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 11px;
  color: #5e5a52;
  text-align: center;
  position: relative;
  line-height: 1.3;
}
.ms li::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.ms li:first-child::before {
  display: none;
}
.ms li.done::before,
.ms li.now::before {
  background: var(--coconut);
}
.ms i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--line);
  position: relative;
  z-index: 1;
}
.ms .done i {
  background: var(--coconut);
  border-color: var(--coconut);
  color: var(--paper);
}
.ms .now i {
  border-color: var(--coconut);
  color: #2c5a35;
}
.ms .now span {
  color: var(--ink);
  font-weight: 700;
}
.k-pay {
  display: grid;
  gap: 12px;
}
.amt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.amt span {
  color: #5e5a52;
  flex: none;
  width: 70px;
}
.amt b {
  flex: 1;
  font-size: 16px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cp {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  flex: none;
  cursor: pointer;
}
.qrbox {
  justify-self: center;
  width: min(100%, 280px);
}
.qrbox img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 8px 4px;
}
.bigcheck {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: var(--coconut);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bigcheck circle {
  stroke-dasharray: 145;
}
.bigcheck path {
  stroke-dasharray: 34;
}
@media (prefers-reduced-motion: no-preference) {
  .bigcheck.draw circle {
    animation: dc 0.6s ease both;
  }
  .bigcheck.draw path {
    animation: dp 0.4s ease 0.5s both;
  }
}
.done h3 {
  font-size: 19px;
}
.done p {
  font-size: 14px;
  color: #5e5a52;
}
.k-tl {
  list-style: none;
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
}
.k-tl li {
  position: relative;
  padding: 0 0 14px 26px;
  display: grid;
  gap: 1px;
}
.k-tl li:last-child {
  padding-bottom: 0;
}
.k-tl li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  box-sizing: border-box;
}
.k-tl li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 21px;
  bottom: -1px;
  width: 2px;
  background: var(--line);
}
.k-tl li:last-child::after {
  display: none;
}
.k-tl li.ok::before {
  background: var(--coconut);
  border-color: var(--coconut);
}
.k-tl b {
  font-size: 13.5px;
}
.k-tl small {
  font-size: 12px;
  color: #5e5a52;
}
/* bảng trượt từ dưới lên: chọn mẫu, mã giảm giá */
.sw {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 560px);
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  padding: 16px 14px env(safe-area-inset-bottom, 0px);
  transform: translate(-50%, 100%);
  transition: transform 0.28s ease;
  display: grid;
  gap: 12px;
}
.sw.open .scrim {
  opacity: 1;
}
.sw.open .sheet {
  transform: translate(-50%, 0);
}
.grab {
  justify-self: center;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin-top: -8px;
}
.sh-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sh-top .th {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.sh-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.sh-price {
  font-size: 20px;
  color: var(--coconut);
  font-weight: 700;
}
.sh-name {
  font-size: 14px;
  font-weight: 500;
}
.x {
  margin: -8px -8px 0 0;
  font-size: 26px;
  line-height: 1;
}
.sh-lab {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink);
}
.chip.pic {
  padding-left: 5px;
}
.chip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
}
.chip[aria-pressed="true"] {
  border-color: var(--coconut);
  background: #e3eedf;
  color: #2c5a35;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--coconut);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-row .sh-lab {
  margin: 0;
}
.sh-act {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 6px 0 14px;
  margin-top: -4px;
}
.sh-act .btn {
  width: 100%;
  padding: 0 8px;
  font-size: 14px;
}
.sh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-head h4 {
  font-size: 16px;
  margin: 0;
}
.vin {
  display: flex;
  gap: 8px;
}
.vin input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}
.vcard {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 34px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.vstub {
  background: var(--coconut);
  color: var(--paper);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
  position: relative;
  padding: 10px 8px 10px 4px;
}
.vstub::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--white) 0 50%) 0
    0/10px 10px;
}
.vstub b {
  font-size: 20px;
  line-height: 1;
}
.vstub small {
  font-size: 11px;
}
.vtx {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  font-size: 12.5px;
}
.vtx b {
  font-size: 13.5px;
}
.vtx small {
  color: #5e5a52;
  font-size: 11.5px;
}
.vr {
  align-self: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.vcard[aria-pressed="true"] {
  border-color: var(--coconut);
  box-shadow: inset 0 0 0 1px var(--coconut);
}
.vcard[aria-pressed="true"] .vr {
  border-color: var(--coconut);
  background: radial-gradient(var(--coconut) 0 40%, transparent 46%);
}
.vsheet-act {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 6px 0 14px;
}
@media (prefers-reduced-motion: reduce) {
  .sheet,
  .scrim {
    transition: none !important;
  }
}
form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
#coForm {
  margin-top: 0;
}
label {
  font-size: 13px;
  font-weight: 500;
  display: grid;
  gap: 4px;
}
input,
textarea {
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--thread);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--sky);
  border-color: var(--sky);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fail {
  border-left: 4px solid var(--brick);
  background: #f8e9e6;
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}
.fail a {
  color: var(--ink);
  font-weight: 700;
}
.note {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 8px;
}

/* footer */
footer {
  background: var(--ink);
  color: var(--paper);
}
footer .wrap {
  padding-block: 40px;
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  footer .wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}
footer h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
footer p {
  font-size: 14px;
  color: #d9d2c4;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
footer .cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: center;
}
footer .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.copy {
  font-size: 12px;
  color: #b5b0a6;
  grid-column: 1/-1;
  border-top: 1px solid #3a3a38;
  padding-top: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 70;
  max-width: 90vw;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .toast {
    transition: none;
  }
}
