:root {
  color-scheme: light;
  /* Bảng màu theo logo EVER Việt Nam: đồng thau + ngà + xanh rừng */
  --canvas: #faf6ef;
  --white: #fff;
  --ink: #2b241c;
  --muted: #5f5649;
  --forest: #6e4a2a;
  --forest-dark: #4a3019;
  --line: #e8ddcc;
  --soft: #f5ede1;
  --lime: #ecd6ae;
  --lime-hover: #f4e4c6;
  --focus: #a0703f;
  --bronze: #9b7247;
  --bronze-grad: linear-gradient(135deg, #a8835a, #8a5c30);
  --deep: #1e3a2f;
  --deep-2: #2a4a3c;
  --shadow-soft: 0 1px 2px #3b2a1414, 0 10px 30px -12px #3b2a1430;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-height: 73px;
  --page-gutter: clamp(18px, 4vw, 52px);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 112.5%; /* 18px: dễ đọc cho người trung niên */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px); scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

.page-width {
  width: min(1216px, calc(100% - max(var(--page-gutter), env(safe-area-inset-left)) - max(var(--page-gutter), env(safe-area-inset-right))));
  margin-inline: auto;
}

.icon-library, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 160ms, border-color 160ms;
}

.button--primary { background: var(--forest); color: var(--white); }
.button--primary:hover { background: var(--forest-dark); }
.button--lime { background: var(--lime); color: var(--forest-dark); }
.button--lime:hover { background: var(--lime-hover); }
.button--secondary { border-color: #dccab0; background: var(--white); color: var(--forest); }
.button--secondary:hover { background: var(--soft); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header__inner {
  display: grid;
  min-height: calc(var(--header-height) - 1px);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: var(--forest-dark);
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -.065em;
}

.brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  color: var(--lime);
}
.brand__mark .icon { width: 25px; height: 25px; }

.aisle-back {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 5px;
  padding: 0 11px 0 6px;
  border-radius: 10px;
  color: var(--forest);
  font-weight: 700;
  white-space: nowrap;
}

.aisle-back .icon { transform: rotate(90deg); }
.aisle-back:hover { background: var(--soft); }

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-location, .header-cart {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--forest);
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-location .icon, .header-cart .icon { width: 20px; height: 20px; }
.header-location:hover, .header-cart:hover { background: var(--soft); }
#header-region { overflow: hidden; text-overflow: ellipsis; }
.header-cart { flex: none; border-color: var(--line); padding-inline: 12px; }
.cart-count {
  display: grid;
  min-width: 23px;
  min-height: 23px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--forest);
  font-size: .8rem;
}
.cart-count--filled { background: var(--lime); }

.hero {
  position: relative;
  display: grid;
  min-height: clamp(232px, 39svh, 318px);
  grid-template-columns: 1.06fr 1fr;
  margin-top: 16px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--forest);
  color: var(--white);
}

.hero__copy {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px clamp(24px, 4vw, 55px);
  overflow: hidden;
}

.hero__copy::before {
  position: absolute;
  z-index: -1;
  right: -215px;
  bottom: -398px;
  width: 630px;
  height: 630px;
  border: 1px solid #dcee9b25;
  border-radius: 50%;
  box-shadow: 0 0 0 31px #dcee9b0a, 0 0 0 63px #dcee9b08;
  content: "";
  pointer-events: none;
}

.hero__kicker {
  margin-bottom: 8px;
  color: #d8e8bd;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.hero__accent {
  display: block;
  color: var(--lime);
  font-size: .89em;
  font-weight: 700;
}

.hero__image { position: relative; min-height: 100%; background: #526955; }
.hero__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
}

.hero-search {
  display: flex;
  width: min(100%, 458px);
  align-items: stretch;
  gap: 5px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 13px;
  background: var(--white);
}

.hero-search__field {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding-inline: 10px 5px;
  border-radius: 9px;
  color: var(--forest);
}
.hero-search__field .icon { width: 20px; height: 20px; }
.hero-search__field:focus-within { outline: 2px solid var(--focus); outline-offset: -1px; }
.hero-search__field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.hero-search__field input::placeholder { color: var(--muted); opacity: 1; }
.hero-search__submit { min-width: 63px; min-height: 48px; flex: none; padding-inline: 12px; }

.home-view { padding-bottom: max(15px, env(safe-area-inset-bottom)); }
.needs { margin-top: 22px; }
.needs h2 {
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: 1.25;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.category {
  --tile: #e7f1e3;
  --tile-ink: #366246;
  display: grid;
  min-height: 80px;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: border-color 160ms, background-color 160ms;
}

.category[data-category="xuong"] { --tile: #e4edf2; --tile-ink: #365d70; }
.category[data-category="tim"] { --tile: #f6e7e3; --tile-ink: #935044; }
.category[data-category="nao"] { --tile: #eeebf7; --tile-ink: #67558c; }
.category[data-category="mat"] { --tile: #e6efea; --tile-ink: #366c5d; }
.category[data-category="duong"] { --tile: #faf0da; --tile-ink: #865b20; }

.category__icon, .dialog__symbol, .empty-state__icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--tile, var(--soft));
  color: var(--tile-ink, var(--forest));
}

.category__icon .icon { width: 21px; height: 21px; }
.category:hover, .category:focus-visible { border-color: #c4a47c; background: #fbf4e8; }

.aisle {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: clamp(19px, 4vw, 37px) 0 max(23px, env(safe-area-inset-bottom));
}

.aisle__head { margin-bottom: 16px; }
.aisle__head h1 {
  color: var(--forest-dark);
  font-size: clamp(1.85rem, 4.9vw, 2.62rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.13;
}
.aisle__head p { margin-top: 6px; color: var(--muted); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }

.search-field {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
}
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-field .icon { width: 20px; height: 20px; }
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }

.shelf-display {
  --shelf-height: clamp(220px, 35svh, 318px);
  --shelf-slot-width: clamp(108px, 10vw, 144px);
  --shelf-pack-size: min(clamp(218px, 24vw, 304px), calc(var(--shelf-height) + 20px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.shelf-stage {
  position: relative;
  isolation: isolate;
  padding-bottom: 14px;
  background: #f7f0e3;
}

.shelf-stage::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 14px;
  border-top: 2px solid #ddc6a4;
  border-bottom: 1px solid #9b7850;
  background: linear-gradient(#cbae85, #b19166);
  box-shadow: 0 3px 9px #432e1c26;
  content: "";
  pointer-events: none;
}

.shelf-controls {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 0;
}

.shelf-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 9px;
  color: var(--forest);
  text-align: center;
}

.shelf-instruction { font-size: .9rem; font-weight: 600; }
.shelf-position {
  padding: 1px 8px;
  border-radius: 999px;
  background: #eee3d2;
  font-size: .83rem;
  font-weight: 800;
  white-space: nowrap;
}

.shelf-direction {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #dccab0;
  border-radius: 11px;
  background: var(--white);
  color: var(--forest);
}
.shelf-direction:hover:not([aria-disabled="true"]) { border-color: #c4a47c; background: var(--soft); }
.shelf-direction .icon { width: 20px; height: 20px; }
.shelf-direction--previous .icon { transform: rotate(90deg); }
.shelf-direction--next .icon { transform: rotate(-90deg); }
.shelf-direction[aria-disabled="true"] { border-color: #e6dbca; background: #f6efe4; color: #76695b; cursor: default; }

.shelf-viewport {
  isolation: isolate;
  container-type: inline-size;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background:
    radial-gradient(ellipse at 50% 46%, #fffaf4, #fffaf400 68%),
    linear-gradient(#f7f0e3 64%, #eaddc8);
  cursor: grab;
  user-select: none;
}
.shelf-viewport::-webkit-scrollbar { display: none; }
.shelf-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.shelf-viewport.is-dragging button { cursor: grabbing; }

.shelf-track {
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 8px;
  padding-inline: max(0px, calc((100cqw - var(--shelf-slot-width)) / 2));
}

.shelf-item {
  position: relative;
  flex: 0 0 var(--shelf-slot-width);
  height: var(--shelf-height);
  padding: 0;
  border: 0;
  background: transparent;
  mix-blend-mode: multiply;
  scroll-snap-align: center;
}

.shelf-item[aria-pressed="true"] { z-index: 1; }
.shelf-item:focus-visible { outline-offset: -4px; border-radius: 10px; }

.shelf-photo {
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: var(--shelf-pack-size);
  height: var(--shelf-pack-size);
  clip-path: inset(17.8% 0 0);
  mask-image:
    linear-gradient(transparent 17.8%, #000 21% 97%, transparent),
    linear-gradient(90deg, transparent, #000 9% 91%, transparent);
  mask-composite: intersect;
  opacity: .87;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--pack-shift, 0px))) perspective(700px)
    rotateY(var(--pack-turn, 0deg)) scale(var(--pack-scale, 1));
  transform-origin: center 90%;
  transition: opacity 140ms ease;
}
.shelf-item[aria-pressed="true"] .shelf-photo { opacity: 1; }
.shelf-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.09) contrast(1.04);
}

.shelf-caption {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px clamp(13px, 4vw, 28px) 19px;
  text-align: center;
}

.shelf-caption__info {
  display: grid;
  min-height: 60px;
  align-content: center;
  gap: 4px;
}

.shelf-caption h2 {
  color: var(--forest-dark);
  font-size: clamp(1.13rem, 4.45vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-wrap: balance;
}

.shelf-caption__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 1px 8px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.38;
}
.shelf-caption__meta strong { color: var(--forest); font-size: 1.13rem; white-space: nowrap; }
.shelf-detail { width: min(100%, 254px); min-height: 52px; border-radius: 12px; }

.product-category { color: #7b5330; font-size: .9rem; font-weight: 700; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 29px 15px;
  border: 1px dashed #dccab0;
  border-radius: 17px;
  background: var(--white);
  text-align: center;
}
.empty-state__icon { width: 48px; height: 48px; margin-bottom: 4px; }
.empty-state h2, .empty-state h3 { font-size: 1.25rem; }
.empty-state p { max-width: 460px; color: var(--muted); }
.empty-state .button { margin-top: 5px; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }

.dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 80px #2a1f1460;
}
.dialog::backdrop { background: #2a1f14a6; backdrop-filter: blur(3px); }
.dialog[open] { animation: show-dialog 180ms ease-out; }

@keyframes show-dialog {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog__inner { position: relative; padding: 24px; }

.close-button {
  display: inline-flex;
  min-height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid #dccab0;
  border-radius: 10px;
  background: var(--white);
  color: var(--forest);
  font-size: .95rem;
  font-weight: 700;
}
.close-button:hover { background: var(--soft); }
.close-button .icon { width: 19px; height: 19px; }
.dialog__close { position: absolute; z-index: 1; top: 15px; right: 15px; }

.dialog h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.25;
}

.dialog__symbol { width: 43px; height: 43px; margin-bottom: 11px; }
.region-dialog p { margin-top: 7px; color: var(--muted); }
.region-search { margin-top: 16px; }
.region-search input { font-size: 1rem; }
.region-options { display: grid; gap: 6px; margin-top: 11px; }

.region-option {
  display: grid;
  min-height: 57px;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--forest);
  font-size: 1rem;
  text-align: left;
}
.region-option:hover, .region-option[aria-pressed="true"] { border-color: #cfb48e; background: var(--soft); }
.region-option .icon { width: 20px; height: 20px; }
.region-option .region-option__check { grid-column: 4; }
.region-option strong { font-weight: 700; }
.region-option small { color: var(--muted); font-size: .875rem; text-align: right; }
#region-empty { padding-block: 4px; }

.product-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 640px);
  max-height: min(770px, calc(100dvh - max(14px, env(safe-area-inset-top))));
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.product-sheet[open] { animation: sheet-enter 260ms cubic-bezier(.21, .75, .32, 1); }

@keyframes sheet-enter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.product-sheet__layout {
  --sheet-gutter: clamp(15px, 5vw, 25px);
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.product-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 11px;
  padding: 14px var(--sheet-gutter);
  border-bottom: 1px solid var(--line);
}
.product-sheet__head h2 { margin-top: 2px; font-size: clamp(1.33rem, 5.8vw, 1.85rem); overflow-wrap: anywhere; }
.product-sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px var(--sheet-gutter) 17px;
}

.detail-overview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.detail-image {
  display: grid;
  height: 94px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f0e6;
}
.detail-image img { width: auto; height: 82px; object-fit: contain; }
.detail-unit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.detail-unit strong { color: var(--forest-dark); font-size: 1.23rem; white-space: nowrap; }
.detail-unit span { color: var(--muted); font-size: .94rem; }
.detail-location, .detail-demo { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.detail-location { display: flex; align-items: flex-start; gap: 5px; }
.detail-location .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--forest); }

.detail-info {
  display: grid;
  gap: 13px;
  margin-block: 14px;
  padding-block: 13px;
  border-block: 1px solid var(--line);
}
.detail-info dt, .pack-fieldset legend { color: var(--forest-dark); font-size: 1.06rem; font-weight: 800; }
.detail-info dd { margin-top: 3px; color: var(--ink); font-size: 1.06rem; line-height: 1.58; }

.pack-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pack-fieldset legend { margin-bottom: 7px; padding: 0; }
.pack-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pack-option { position: relative; cursor: pointer; }
.pack-option span {
  display: grid;
  min-height: 59px;
  place-content: center;
  padding: 5px 3px;
  border: 1px solid #dfcfb5;
  border-radius: 10px;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.pack-option small { color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.pack-option:hover span, .pack-option input:checked + span { border-color: #a8835a; background: var(--soft); }
.pack-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.detail-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: var(--forest-dark);
  font-weight: 800;
}

.detail-note {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f7f0e5;
  color: var(--muted);
  font-size: .9rem;
}

.product-sheet__footer {
  padding: 10px var(--sheet-gutter) max(11px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -4px 13px #3b2a140a;
}

.detail-buy__button {
  width: 100%;
  min-height: 55px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 7px;
}
.detail-buy__button strong { white-space: nowrap; }

.quantity-control {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.quantity-control button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
}
.quantity-control button[aria-disabled="true"] { color: #7a7368; cursor: default; }
.quantity-control button:hover:not([aria-disabled="true"]) { background: var(--soft); }
.quantity-control .icon { width: 17px; height: 17px; }
.quantity-control output, .quantity-control > span { min-width: 21px; color: var(--ink); font-size: 1rem; font-weight: 700; text-align: center; }

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(470px, 100%);
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 21px 0 0 21px;
}
.cart-layout { padding: max(16px, env(safe-area-inset-top)) 18px max(19px, env(safe-area-inset-bottom)); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { font-size: 1.55rem; }
.cart-region {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  text-align: left;
}
.cart-region .icon { width: 19px; height: 19px; }
.cart-region .icon:last-child { width: 16px; height: 16px; margin-left: auto; }
.cart-region:hover { border-color: #cfb48e; }

.cart-body { margin-top: 12px; }
.cart-empty { padding: 19px 8px 9px; border: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 69px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 69px; height: 66px; border-radius: 9px; object-fit: cover; }
.cart-item__content { display: grid; justify-items: start; gap: 2px; }
.cart-item__content h3 { font-size: .97rem; font-weight: 800; line-height: 1.35; }
.cart-item__content p { color: var(--muted); font-size: .9rem; }
.cart-item__content .quantity-control { margin-top: 4px; }
.cart-item__end { display: grid; justify-items: end; gap: 3px; }
.cart-item__end > strong { color: var(--forest); font-size: .9rem; white-space: nowrap; }
.cart-remove {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #8b463a;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item p.cart-unavailable { color: #8b463a; }
.cart-total { display: flex; justify-content: space-between; gap: 10px; padding-block: 14px; color: var(--forest); font-weight: 800; }
.cart-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--muted);
  font-size: .875rem;
}
.cart-status .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--forest); }
.cart-demo-order { width: 100%; margin-top: 10px; }

.toast {
  position: fixed;
  z-index: 8;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(440px, calc(100% - 36px));
  padding: 12px 17px;
  border-radius: 11px;
  background: var(--forest-dark);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms, transform 160ms;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --header-height: 66px; }
  .hero h1 { font-size: clamp(2.08rem, 4.4vw, 2.75rem); }
  .hero__copy { padding-inline: 22px; }
}

@media (max-width: 730px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    margin-top: clamp(8px, 1.65svh, 16px);
    border-radius: 20px;
  }
  .hero__copy { padding: clamp(13px, 2.35svh, 22px) clamp(13px, 4.4vw, 24px); }
  .hero__kicker { margin-bottom: 6px; font-size: .8rem; }
  .hero h1 { font-size: clamp(1.6rem, 6.85vw, 2.4rem); line-height: 1.12; }
  .hero-search { margin-top: 11px; }
  .hero__image { min-height: clamp(108px, 24svh, 230px); }
  .hero__image img { object-position: 50% 38%; }

  .needs { margin-top: clamp(13px, 2.3svh, 24px); }
  .needs h2 { font-size: clamp(1.22rem, 4.8vw, 1.65rem); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .category { min-height: clamp(73px, 11.5svh, 101px); gap: 6px; padding: 6px 4px; }
  .category__icon { width: 34px; height: 34px; }

  .shelf-display {
    --shelf-height: clamp(164px, 31svh, 237px);
    --shelf-slot-width: clamp(60px, 18vw, 99px);
    --shelf-pack-size: min(clamp(184px, 63vw, 275px), calc(var(--shelf-height) + 23px));
  }
  .shelf-caption { gap: 9px; padding-block: 12px 14px; }
}

@media (max-width: 550px) {
  :root { --page-gutter: 15px; }
  .site-header__inner { gap: 7px; }
  .brand { gap: 7px; font-size: 1.26rem; }
  .brand__mark { width: 37px; height: 37px; border-radius: 10px; }
  .brand__mark .icon { width: 24px; height: 24px; }
  .aisle-back { padding-inline: 0 5px; font-size: .94rem; }
  .aisle-back .icon { width: 19px; height: 19px; }
  .header-actions { gap: 4px; }
  .header-location { padding-inline: 6px; font-size: .875rem; }
  .header-location .icon { width: 18px; height: 18px; }
  .header-cart { gap: 4px; padding-inline: 7px; }
  .header-cart__label { display: none; }
  .cart-count { min-width: 22px; min-height: 22px; }

  .dialog__inner { padding: 17px; }
  .dialog__close { top: 11px; right: 11px; }
  .region-option { gap: 6px; padding-inline: 8px; }
  .region-option .icon { width: 18px; height: 18px; }
  .detail-overview { grid-template-columns: 79px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 375px) {
  .header-location { min-width: 45px; }
  #header-region { font-size: .82rem; }
  .header-location .icon { width: 17px; height: 17px; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .cart-item img { width: 48px; height: 53px; }
}

@media (max-width: 340px) {
  .site-header__inner { gap: 4px; }
  .header-location { min-width: 39px; gap: 3px; padding-inline: 3px; }
  .category { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   EVER Việt Nam – lớp giao diện "thế giới sức khỏe"
   ===================================================================== */

/* ---------- Thương hiệu ---------- */
.brand { gap: 12px; }
.brand__symbol { width: 42px; height: 42px; }
.brand__word { width: auto; height: 34px; }
.site-header { background: #fffdf9e6; backdrop-filter: saturate(1.4) blur(10px); }
.site-header::after {
  position: absolute; right: 0; bottom: -1px; left: 0; height: 2px;
  background: var(--bronze-grad); opacity: .55; content: "";
}

.header-hotline {
  display: inline-flex; min-height: 48px; align-items: center; gap: 9px;
  padding: 0 12px 0 8px; border-radius: 12px; color: var(--forest-dark); white-space: nowrap;
  transition: background-color 160ms;
}
.header-hotline:hover { background: var(--soft); }
.header-hotline .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--bronze-grad); color: #fff; }
.header-hotline span { display: grid; font-weight: 800; line-height: 1.15; }
.header-hotline small { color: var(--muted); font-size: .72rem; font-weight: 600; }

/* ---------- Nút ---------- */
.button { border-radius: 12px; transition: background-color 160ms, border-color 160ms, transform 160ms var(--ease), box-shadow 160ms; }
.button:active { transform: scale(.98); }
.button--primary { background: var(--bronze-grad); box-shadow: 0 6px 16px -6px #8a5c3080; }
.button--primary:hover { background: linear-gradient(135deg, #9a744b, #74491f); }

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(360px, 52svh, 470px);
  margin-top: 20px;
  border-radius: 28px;
  background: radial-gradient(120% 90% at 0% 0%, var(--deep-2), var(--deep) 60%);
  box-shadow: var(--shadow-soft);
}
.hero__copy { padding: 36px clamp(24px, 4.4vw, 60px); }
.hero__copy::before { border-color: #ecd6ae2e; box-shadow: 0 0 0 31px #ecd6ae0d, 0 0 0 63px #ecd6ae08; }
.hero__kicker { color: var(--lime); font-size: .8rem; letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.15rem); letter-spacing: -.045em; text-wrap: balance; }
.hero__accent { margin-top: 4px; background: linear-gradient(90deg, #f2dfba, #d9b27c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 30ch; margin-top: 14px; color: #e6ede7; font-size: 1.06rem; }
.hero-search { width: min(100%, 500px); margin-top: 22px; border-radius: 16px; box-shadow: 0 12px 30px -12px #0008; }
.hero-search__field input { font-size: 1rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; color: #e6ede7; font-size: .86rem; font-weight: 600; }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--lime); }
.hero__image::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 0, #1e3a2f00 22%); content: ""; }

/* ---------- Tiêu đề khu ---------- */
.section-head { display: grid; gap: 4px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; }
.section-kicker { color: var(--bronze); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.needs, .featured { margin-top: clamp(36px, 6vw, 64px); }
.needs h2, .featured h2 { color: var(--forest-dark); font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.04em; text-wrap: balance; }
.text-link { display: inline-flex; min-height: 48px; align-items: center; gap: 6px; color: var(--forest); font-weight: 800; }
.text-link .icon { transition: transform 200ms var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Bản đồ khu (zone) ---------- */
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.zone {
  --tile: #e8efe6; --tile-ink: #366246;
  position: relative; display: grid; grid-template-rows: auto 1fr;
  overflow: hidden; border: 1px solid var(--line); border-radius: 22px;
  background: var(--white); box-shadow: var(--shadow-soft);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 200ms;
}
.zone[data-category="xuong"] { --tile: #e3ecf1; --tile-ink: #2f5568; }
.zone[data-category="tim"] { --tile: #f6e5df; --tile-ink: #8d4637; }
.zone[data-category="nao"] { --tile: #ece8f6; --tile-ink: #5f4c86; }
.zone[data-category="mat"] { --tile: #f6eed8; --tile-ink: #7c5a15; }
.zone[data-category="duong"] { --tile: #e2efe9; --tile-ink: #2e6553; }
.zone[data-category="khang"] { --tile: #f8e6da; --tile-ink: #94461f; }

.zone__scene {
  position: relative; display: flex; height: 168px; align-items: flex-end; justify-content: center;
  padding: 0 18px 14px; background: radial-gradient(90% 120% at 50% 100%, #fff9, transparent 70%), var(--tile);
}
.zone__scene::after { /* thanh kệ */
  position: absolute; right: 18px; bottom: 10px; left: 18px; height: 8px; border-radius: 4px;
  background: linear-gradient(#cfb48e, #a8835a); box-shadow: 0 6px 10px -4px #5a3c1e55; content: "";
}
.zone__scene img {
  position: relative; z-index: 1; width: auto; height: 132px; margin-inline: -10px;
  filter: drop-shadow(0 6px 6px #3b2a1422);
  transition: transform 320ms var(--ease);
}
.zone__scene img:nth-child(2) { z-index: 2; height: 146px; }
.zone__scene[data-count="1"] img { height: 146px; }
.zone__body { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 2px 12px; padding: 18px 20px 20px; }
.zone__icon { display: grid; width: 46px; height: 46px; grid-row: span 2; place-items: center; border-radius: 14px; background: var(--tile); color: var(--tile-ink); }
.zone__icon .icon { width: 24px; height: 24px; }
.zone__name { align-self: end; color: var(--forest-dark); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.zone__note { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.zone__more {
  display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--forest); font-size: .95rem; font-weight: 800;
}
.zone__more .icon { width: 20px; height: 20px; transition: transform 220ms var(--ease); }
.zone:hover, .zone:focus-visible { transform: translateY(-4px); border-color: #d9c19c; box-shadow: 0 2px 4px #3b2a1414, 0 22px 40px -18px #3b2a1450; }
.zone:hover .zone__scene img:nth-child(1), .zone:focus-visible .zone__scene img:nth-child(1) { transform: translateY(-6px) rotate(-3deg); }
.zone:hover .zone__scene img:nth-child(2), .zone:focus-visible .zone__scene img:nth-child(2) { transform: translateY(-10px); }
.zone:hover .zone__scene img:nth-child(3), .zone:focus-visible .zone__scene img:nth-child(3) { transform: translateY(-6px) rotate(3deg); }
.zone:hover .zone__more .icon { transform: translateX(5px); }

/* ---------- Được chọn nhiều ---------- */
.featured-track {
  display: grid; grid-auto-columns: minmax(220px, 1fr); grid-auto-flow: column; gap: 16px;
  margin: 18px calc(var(--page-gutter) * -1) 0; padding: 4px var(--page-gutter) 18px;
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: var(--page-gutter);
  scroll-snap-type: x mandatory; scrollbar-color: #c4a47c transparent; scrollbar-width: thin;
}
.pick {
  display: grid; align-content: start; gap: 4px; padding: 14px 14px 16px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  scroll-snap-align: start; box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.pick__photo {
  display: grid; height: 190px; margin-bottom: 8px; place-items: end center; padding-bottom: 8px;
  border-radius: 14px; background: linear-gradient(#f6efe3, #efe4d2);
}
.pick__photo img { width: auto; height: 168px; filter: drop-shadow(0 6px 6px #3b2a1422); transition: transform 280ms var(--ease); }
.pick__cat { color: var(--bronze); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pick__name { color: var(--forest-dark); font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.pick__summary { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.pick__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 6px; }
.pick__price strong { color: var(--forest); font-size: 1.1rem; }
.pick__price span { color: var(--muted); font-size: .82rem; }
.pick:hover, .pick:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 4px #3b2a1414, 0 20px 36px -18px #3b2a1450; }
.pick:hover .pick__photo img, .pick:focus-visible .pick__photo img { transform: translateY(-6px) scale(1.03); }

/* ---------- Cam kết ---------- */
.promise {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-block: clamp(30px, 5vw, 52px) clamp(36px, 6vw, 64px);
  padding: 22px; border-radius: 24px; background: var(--soft);
}
.promise article { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-content: start; }
.promise span { display: grid; width: 46px; height: 46px; grid-row: span 2; place-items: center; border-radius: 14px; background: var(--white); color: var(--bronze); box-shadow: var(--shadow-soft); }
.promise h3 { align-self: end; color: var(--forest-dark); font-size: 1rem; font-weight: 800; }
.promise p { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Kệ (trang khu) ---------- */
.aisle__head h1 { letter-spacing: -.045em; }

/* ---------- Hộp thoại ---------- */
.dialog { border-radius: 24px; }
.product-sheet { border-radius: 26px 26px 0 0; }
.detail-image { height: 150px; border-radius: 16px; background: linear-gradient(#f6efe3, #efe4d2); }
.detail-image img { height: 134px; }
.detail-overview { grid-template-columns: 124px minmax(0, 1fr); gap: 16px; }
.detail-unit strong { font-size: 1.4rem; }

/* ---------- Chân trang ---------- */
.site-footer { margin-top: 24px; padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffdf9; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px 40px; }
.site-footer__logo { width: 150px; height: auto; }
.site-footer__copy { display: grid; gap: 8px; color: var(--muted); }
.site-footer__title { color: var(--forest-dark); font-size: 1.2rem; font-weight: 800; }
.site-footer a { color: var(--forest); }
.site-footer__legal { padding: 10px 14px; border-left: 3px solid var(--bronze); border-radius: 6px; background: var(--soft); color: var(--forest-dark); font-weight: 700; }
.site-footer__demo { font-size: .82rem; }

/* ---------- Nút gọi nổi ---------- */
.call-fab {
  position: fixed; z-index: 6; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; min-height: 58px; align-items: center; gap: 10px; padding: 0 22px 0 16px;
  border-radius: 999px; background: var(--bronze-grad); color: #fff; font-weight: 800;
  box-shadow: 0 12px 28px -10px #6e4a2aa0;
  transition: transform 200ms var(--ease), opacity 200ms;
}
.call-fab:hover { transform: translateY(-2px); }
.call-fab .icon { width: 24px; height: 24px; animation: ring 3s ease-in-out infinite; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 93% { transform: rotate(12deg); } 96% { transform: rotate(-6deg); } }
body:has(dialog[open]) .call-fab { opacity: 0; pointer-events: none; }
.toast { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); }

/* ---------- Chuyển cảnh mượt giữa trang chủ và kệ ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: header; }
.home-view > *, .aisle { animation: rise 420ms var(--ease) both; }
.home-view > :nth-child(2) { animation-delay: 60ms; }
.home-view > :nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Màn hình vừa ---------- */
@media (max-width: 1020px) {
  .header-hotline small { display: none; }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-hotline span { display: none; }
  .header-hotline { padding: 0 6px; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 730px) {
  .hero { margin-top: 12px; border-radius: 22px; }
  .hero__copy { padding: 24px 20px; }
  .hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .hero__lead { font-size: 1rem; }
  .hero__image { min-height: clamp(170px, 46vw, 260px); order: -1; }
  .hero__image::after { background: linear-gradient(0deg, var(--deep) 0, #1e3a2f00 40%); }
  .hero__facts { gap: 8px 14px; font-size: .8rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .zone { border-radius: 18px; }
  .zone__scene { height: 128px; padding-inline: 10px; }
  .zone__scene::after { right: 10px; left: 10px; }
  .zone__scene img { height: 100px; margin-inline: -14px; }
  .zone__scene img:nth-child(2), .zone__scene[data-count="1"] img { height: 112px; }
  .zone__body { grid-template-columns: 1fr; padding: 12px 14px 14px; }
  .zone__icon { display: none; }
  .zone__name { font-size: 1.05rem; }
  .zone__note { font-size: .84rem; }
  .zone__more { margin-top: 8px; font-size: .88rem; }
  .featured-track { grid-auto-columns: 68%; }
  .promise { grid-template-columns: 1fr; padding: 18px; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__legal { border-left: 0; }
  .call-fab { min-height: 56px; padding: 0 18px 0 14px; }
}
@media (max-width: 550px) {
  .brand { gap: 8px; }
  .brand__symbol { width: 34px; height: 34px; }
  .brand__word { height: 25px; }
  .header-hotline { display: none; }
  .hero__kicker { letter-spacing: .06em; }
  .call-fab span { display: none; }
  .call-fab { width: 58px; padding: 0; justify-content: center; }
}
@media (max-width: 340px) {
  .brand__word { display: none; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .call-fab .icon, .home-view > *, .aisle { animation: none; }
  .zone:hover, .pick:hover { transform: none; }
}

/* =====================================================================
   Trang mở đầu (landing) – gọn, sang, ít chữ
   ===================================================================== */
.landing-view { padding-block: 20px max(24px, env(safe-area-inset-bottom)); }
.landing-view .hero {
  min-height: calc(100svh - var(--header-height) - 44px);
  margin-top: 0;
  grid-template-columns: 1fr 1.08fr;
}
.landing-view .hero__copy { justify-content: center; gap: 0; padding: clamp(32px, 5vw, 72px); }
.landing-view .hero__kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  color: #d9be92; font-size: .78rem; letter-spacing: .32em;
}
.landing-view .hero__kicker::before { width: 36px; height: 1px; background: currentColor; content: ""; }
.landing-view .hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.landing-view .hero__accent { margin-top: 6px; font-weight: 600; font-size: .92em; }
.landing-view .hero__lead {
  margin-top: 22px; color: #d7e0da; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 400;
}
.hero__cta {
  display: inline-flex; min-height: 62px; align-items: center; gap: 14px; margin-top: 38px;
  padding: 0 14px 0 30px; border-radius: 999px;
  background: linear-gradient(135deg, #f3e2c2, #d9b27c); color: #3a2712;
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -14px #000a;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.hero__cta .icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 50%;
  background: var(--deep); color: #f3e2c2;
  transition: transform 260ms var(--ease);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px #000c; }
.hero__cta:hover .icon { transform: translateX(4px); }
.hero__cta:focus-visible { outline-color: #f3e2c2; }
.landing-view .hero__image::after { background: linear-gradient(90deg, var(--deep) 0, #1e3a2f00 30%); }

/* Ẩn chân trang ở trang mở đầu cho thoáng */
body[data-page="landing"] .site-footer { display: none; }

/* ---------- Trang các khu ---------- */
.home-view .needs { margin-top: clamp(24px, 4vw, 44px); }
.zones-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.zones-head h1 { color: var(--forest-dark); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.zones-head .hero-search { width: min(100%, 420px); margin-top: 0; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.zones-head .hero-search__submit { min-width: 72px; box-shadow: none; }

@media (max-width: 730px) {
  .landing-view { padding-top: 12px; }
  .landing-view .hero { min-height: calc(100svh - var(--header-height) - 36px); grid-template-columns: 1fr; grid-template-rows: minmax(200px, 1fr) auto; }
  .landing-view .hero__image { min-height: 0; }
  .landing-view .hero__image::after { background: linear-gradient(0deg, var(--deep) 0, #1e3a2f00 45%); }
  .landing-view .hero__copy { padding: 8px 24px 30px; }
  .landing-view .hero__kicker { margin-bottom: 14px; }
  .landing-view .hero h1 { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
  .landing-view .hero__lead { margin-top: 14px; }
  .hero__cta { width: 100%; justify-content: space-between; margin-top: 26px; }
  .zones-head .hero-search { width: 100%; }
}

/* ---------- Tiêu đề trang mở đầu: thoáng, có chữ có chân như logo ---------- */
.landing-view .hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.24; /* đủ chỗ cho dấu tiếng Việt (ỏ, ể, ố) */
}
.landing-view .hero__accent {
  display: block;
  margin-top: 4px;
  padding-right: .12em; /* không cắt nét nghiêng */
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}
.landing-view .hero__lead {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; color: #cfd9d2; font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}
.landing-view .hero__lead::before { width: 24px; height: 2px; flex: none; border-radius: 2px; background: #d9b27c; content: ""; }
.hero__cta { margin-top: 26px; }

@media (max-width: 730px) {
  /* Hero ngắn lại để nút "Khám phá ngay" nằm cao hơn, không bị nút gọi che */
  .landing-view .hero { min-height: calc(100svh - var(--header-height) - 130px); grid-template-rows: minmax(170px, 1fr) auto; }
  .landing-view .hero__copy { padding: 4px 22px 26px; }
  .landing-view .hero__kicker { margin-bottom: 10px; }
  .landing-view .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); line-height: 1.22; }
  .landing-view .hero__lead { margin-top: 12px; }
  .hero__cta { min-height: 58px; margin-top: 18px; }
}

/* =====================================================================
   Trang mở đầu: ảnh phủ toàn màn hình, chữ đè lên ảnh
   ===================================================================== */
html { overflow-x: clip; }
.landing-view {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0;
}
.landing-view .hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  margin: 0;
  border-radius: 0;
  background: var(--deep);
  box-shadow: none;
}
.landing-view .hero__image {
  position: absolute;
  z-index: -1;
  inset: 0;
  min-height: 0;
  order: 0;
}
.landing-view .hero__image img { object-position: 62% 32%; }
.landing-view .hero__image::after {
  background:
    linear-gradient(90deg, #12261ee6 0, #12261eb3 34%, #12261e33 62%, #12261e00 78%),
    linear-gradient(0deg, #12261e80 0, #12261e00 30%);
}
.landing-view .hero__copy {
  align-self: center;
  padding: 48px max(var(--page-gutter), calc((100vw - 1216px) / 2));
  overflow: visible;
}
.landing-view .hero__copy::before { display: none; }
.landing-view .hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.18;
  text-shadow: 0 2px 18px #0006;
}
.hero__line { display: block; white-space: nowrap; }
.landing-view .hero__accent { margin-top: 2px; font-size: 1.08em; text-shadow: none; }
.landing-view .hero__lead { text-shadow: 0 1px 10px #0008; color: #e3ebe5; }

@media (max-width: 730px) {
  .landing-view { padding: 0; }
  .landing-view .hero {
    min-height: calc(100svh - var(--header-height));
    grid-template-rows: 1fr;
  }
  .landing-view .hero__image img { object-position: 58% 20%; }
  .landing-view .hero__image::after {
    background: linear-gradient(0deg, #12261ef5 0, #12261ed9 30%, #12261e66 55%, #12261e00 72%);
  }
  .landing-view .hero__copy {
    align-self: end;
    /* chừa chỗ cho nút gọi nổi ở góc dưới */
    padding: 24px 22px calc(96px + env(safe-area-inset-bottom));
  }
  .landing-view .hero h1 { font-size: clamp(1.6rem, 8.1vw, 2.5rem); }
}

/* Điện thoại: lùi ảnh ra để thấy cả hộp thuốc lẫn khuôn mặt */
@media (max-width: 730px) {
  .landing-view .hero { background: #12261e; }
  .landing-view .hero__image { inset: 0 0 auto; height: 74%; }
  .landing-view .hero__image img { object-position: 50% 35%; }
  .landing-view .hero__image::after {
    background: linear-gradient(0deg, #12261e 0, #12261ecc 22%, #12261e00 55%);
  }
}

/* =====================================================================
   Trang các khu: màn hình đầu tiên vừa khít tiêu đề + đủ 6 khu
   ===================================================================== */
.home-view .needs {
  display: flex;
  height: calc(100svh - var(--header-height) - env(safe-area-inset-top));
  min-height: 560px;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 18px);
  margin-top: 0;
  padding-block: clamp(12px, 2.4vh, 28px) 6px;
}
.zones-head { flex: none; gap: 10px 28px; }
.zones-head h1 {
  font-size: min(clamp(1.7rem, 3.2vw, 2.6rem), 6.4vw);
  white-space: nowrap; /* luôn trên một dòng */
}
.zones-head .hero-search { width: min(100%, 400px); }
.zones-head .hero-search__field, .zones-head .hero-search__field input, .zones-head .hero-search__submit { min-height: 46px; }

.home-view .category-grid {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.zone { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.zone__scene { height: auto; min-height: 0; padding-bottom: 12px; }
.zone__scene img { height: 132px; max-height: calc(100% - 6px); }
.zone__scene img:nth-child(2), .zone__scene[data-count="1"] img { height: 146px; max-height: 100%; }
.zone__badge {
  position: absolute; z-index: 3; top: 10px; right: 10px;
  padding: 2px 9px; border-radius: 999px; background: #fffc;
  color: var(--tile-ink); font-size: .74rem; font-weight: 800;
}
.home-view .zone__body { padding: 14px 18px 16px; }
.home-view .zone__more { display: none; } /* số sản phẩm đã có ở nhãn góc ảnh */

.scroll-more {
  display: inline-flex; flex: none; align-self: center; min-height: 44px; align-items: center; gap: 6px;
  padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--forest); font-size: .9rem; font-weight: 700;
}
.scroll-more:hover { background: var(--soft); }
.scroll-more .icon { width: 20px; height: 20px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.home-view .featured { margin-top: 28px; scroll-margin-top: calc(var(--header-height) + 16px); }

@media (max-width: 900px) {
  .home-view .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .home-view .needs { min-height: 520px; }
  .zones-head .hero-search { width: 100%; }
  .home-view .category-grid { gap: 10px; }
  .zone__scene { padding: 0 10px 8px; }
  .zone__scene::after { bottom: 6px; height: 6px; }
  .zone__scene img { height: 104px; }
  .zone__scene img:nth-child(2), .zone__scene[data-count="1"] img { height: 116px; }
  .home-view .zone__body { padding: 9px 12px 11px; }
  .zone__name { font-size: 1rem; }
  .zone__note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .8rem; line-height: 1.35; }
  .scroll-more { min-height: 36px; font-size: .82rem; }
}
/* Màn hình thấp (iPhone SE, laptop nhỏ): bỏ câu mô tả để vẫn thấy đủ 6 khu */
@media (max-height: 720px) {
  .zone__note { display: none; }
  .zones-head .section-kicker { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-more .icon { animation: none; } }

/* =====================================================================
   Tư vấn sức khỏe cùng AI
   ===================================================================== */
.advisor {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 6vw, 64px);
  padding: clamp(24px, 4vw, 52px);
  border-radius: 28px;
  background: radial-gradient(120% 120% at 0% 0%, var(--deep-2), var(--deep) 60%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.advisor__intro { align-self: center; }
.advisor .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); }
.advisor .section-kicker .icon { width: 20px; height: 20px; }
.advisor h2 { margin-top: 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; }
.advisor__lead { margin-top: 12px; color: #d7e0da; font-size: 1.02rem; }
.advisor__steps { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; }
.advisor__steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; counter-increment: step; }
.advisor__steps li::before {
  display: grid; width: 40px; height: 40px; grid-row: span 2; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #f3e2c2, #d9b27c); color: #3a2712; font-weight: 800; content: counter(step);
}
.advisor__steps b { align-self: end; font-size: 1rem; }
.advisor__steps span { color: #b9c8bf; font-size: .88rem; }

.advisor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
}
.field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; color: var(--forest-dark); font-size: .92rem; font-weight: 800; }
.field small { color: var(--muted); font-weight: 600; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf9;
  color: var(--ink); font-size: 1.05rem;
  transition: border-color 160ms, box-shadow 160ms;
}
.field input::placeholder { color: #a89f92; }
.field input:focus { border-color: var(--bronze); outline: none; box-shadow: 0 0 0 4px #9b724722; }
.field input[aria-invalid="true"] { border-color: #b24a35; }
.field-error { color: #a63d29; font-size: .82rem; font-weight: 600; }
.field-error:empty { display: none; }

.segmented { grid-template-columns: 1fr 1fr; gap: 6px; }
.segmented legend { margin-bottom: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: grid; min-height: 52px; place-items: center; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fffdf9; color: var(--forest); font-weight: 700; cursor: pointer; transition: all 160ms;
}
.segmented input:checked + span { border-color: var(--bronze); background: var(--soft); color: var(--forest-dark); box-shadow: inset 0 0 0 1px var(--bronze); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Thanh BMI */
.bmi { padding: 14px 16px 12px; border-radius: 16px; background: var(--soft); }
.bmi__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bmi__top span { color: var(--muted); font-size: .88rem; font-weight: 700; }
.bmi__top strong { color: var(--forest-dark); font-size: 1.7rem; line-height: 1; }
.bmi__top em { padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 800; }
.bmi[data-level="under"] em { background: #dfeaf4; color: #2b5677; }
.bmi[data-level="normal"] em { background: #dcefe2; color: #25613b; }
.bmi[data-level="over"] em { background: #f7ead0; color: #82560f; }
.bmi[data-level="obese"] em { background: #f6dcd5; color: #94351f; }
.bmi__bar { position: relative; display: grid; height: 10px; grid-template-columns: 17.5fr 22.5fr 10fr 50fr; gap: 3px; margin-top: 12px; }
.bmi__seg { border-radius: 4px; }
.bmi__seg--under { background: #9cc0dc; }
.bmi__seg--normal { background: #7fbf93; }
.bmi__seg--over { background: #e5bf6e; }
.bmi__seg--obese { background: #df9580; }
.bmi__marker {
  position: absolute; top: 50%; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%;
  background: var(--forest-dark); box-shadow: 0 2px 6px #0004; transform: translate(-50%, -50%);
  transition: left 300ms var(--ease);
}
.bmi__scale { position: relative; height: 18px; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.bmi__scale span { position: absolute; transform: translateX(-50%); }
.bmi__scale span:nth-child(1) { left: 17.5%; }
.bmi__scale span:nth-child(2) { left: 40%; }
.bmi__scale span:nth-child(3) { left: 50%; }
.bmi__hint { margin-top: 2px; color: var(--muted); font-size: .84rem; }

.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--bronze); }
.advisor-submit { min-height: 58px; font-size: 1.05rem; }
.advisor-submit .icon { width: 22px; height: 22px; }
.advisor-note { color: var(--muted); font-size: .78rem; text-align: center; }
.button--danger { background: #b2321f; color: #fff; }
.button--danger:hover { background: #962816; }

/* ---------- Popup trò chuyện ---------- */
.advisor-dialog {
  width: min(600px, calc(100% - 24px));
  height: min(760px, calc(100dvh - 32px));
  max-height: none;
  overflow: hidden;
  border-radius: 26px;
}
.advisor-chat { display: grid; height: 100%; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #fbf8f2; }
.advisor-chat__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--white);
}
.advisor-chat__avatar { width: 44px; height: 44px; border-radius: 12px; }
.advisor-chat__head h2 { font-size: 1.08rem; letter-spacing: -.02em; }
.advisor-chat__head p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.advisor-chat__head .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 3px #3fae6a33; }
.advisor-chat__progress { height: 4px; background: var(--line); }
.advisor-chat__progress i { display: block; width: 0; height: 100%; background: var(--bronze-grad); transition: width 400ms var(--ease); }
.advisor-chat__log { position: relative; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; }

.bubble {
  max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 1rem; line-height: 1.5;
  animation: bubble-in 260ms var(--ease) both;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.bubble--bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--white); }
.bubble--user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--bronze-grad); color: #fff; font-weight: 600; }
.bubble--wide { width: 100%; max-width: 100%; padding: 0; overflow: hidden; }
.advisor-chat__log > * { flex-shrink: 0; } /* tin nhắn dài không bị co lại */
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #c4a47c; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.advisor-chat__answers { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.advisor-chat__answers:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  min-height: 50px; padding: 8px 16px; border: 1.5px solid #dccab0; border-radius: 999px;
  background: #fffdf9; color: var(--forest-dark); font-size: .98rem; font-weight: 700; text-align: left;
  transition: background-color 150ms, border-color 150ms, transform 150ms;
}
.choice:hover { border-color: var(--bronze); background: var(--soft); }
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; }
.choices__next { width: 100%; margin-top: 10px; }
.choices__next:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.choices--end { display: grid; grid-template-columns: 1fr 1fr; }

/* Kết quả tư vấn */
.advice { display: grid; gap: 10px; padding: 16px; font-size: .95rem; }
.advice__bmi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.advice__bmi span { color: var(--muted); font-weight: 700; }
.advice__bmi strong { color: var(--forest-dark); font-size: 1.6rem; line-height: 1; }
.advice__bmi em { color: var(--forest); font-style: normal; font-weight: 800; }
.advice__bmi small { flex-basis: 100%; color: var(--muted); }
.advice__title { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--forest-dark); font-weight: 800; }
.advice__title .icon { width: 20px; height: 20px; color: var(--bronze); }
.advice__title--warn .icon { color: #b2321f; }
.advice__products { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.advice-product { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.advice-product img { width: 44px; height: 64px; object-fit: contain; }
.advice-product div { display: grid; gap: 2px; }
.advice-product b { color: var(--forest-dark); }
.advice-product span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.advice-product strong { color: var(--forest); font-size: .92rem; }
.advice-product small { color: var(--muted); font-weight: 600; }
.advice-add { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bronze-grad); color: #fff; font-weight: 800; }
.advice-add:disabled { background: var(--soft); color: var(--forest); cursor: default; }
.advice__list { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--ink); }
.advice__list li::marker { color: var(--bronze); }
.advice__list--warn li::marker { color: #b2321f; }
.advice__call { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #e6f1ea; color: #1f4d36; }
.advice__call .icon { width: 20px; height: 20px; margin-top: 2px; }
.advice__legal { color: #8a4b12; font-size: .82rem; font-weight: 700; }
.advice--urgent { border-left: 5px solid #b2321f; background: #fdf3f0; }
.advice--urgent .advice__title { color: #94351f; font-size: 1.1rem; }
.advice--urgent .advice__title .icon { color: #b2321f; }
.advice__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

@media (max-width: 900px) {
  .advisor { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .advisor { margin-inline: calc(var(--page-gutter) * -1); padding: 32px var(--page-gutter); border-radius: 0; }
  .advisor-form { padding: 18px 16px; }
  .advisor-dialog { width: 100%; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .advisor-chat__head .close-button span { display: none; }
  .choices--end, .advice__actions { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .advice-product { grid-template-columns: 40px 1fr; align-items: start; }
  .advice-add { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .typing i { animation: none; }
}

/* ---------- Khu tư vấn: gọn lại, tiêu đề 1 dòng, 3 bước nằm ngang ---------- */
.advisor__intro { container-type: inline-size; }
.advisor .section-kicker { font-size: .72rem; }
.advisor .section-kicker .icon { width: 16px; height: 16px; }
.advisor h2 {
  margin-top: 6px;
  font-size: min(2rem, 6cqi);
  white-space: nowrap; /* luôn trên 1 dòng */
  text-wrap: nowrap;
}
.advisor__lead { margin-top: 8px; color: #c9d5cd; font-size: .9rem; }

.advisor__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}
.advisor__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.advisor__steps li::before {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  grid-row: auto;
  font-size: .9rem;
}
/* đường nối 1 → 2 → 3 */
.advisor__steps li:not(:last-child)::after {
  position: absolute;
  top: 17px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d9b27c, #d9b27c55);
  content: "";
}
.advisor__steps b { align-self: start; font-size: .84rem; font-weight: 700; line-height: 1.3; }

/* Khu tư vấn ngay sau màn hình các khu */
.home-view .advisor { margin-top: 28px; scroll-margin-top: calc(var(--header-height) + 16px); }

/* =====================================================================
   Khu tư vấn AI: vừa khít một màn hình, không phải cuộn trong khu
   ===================================================================== */
.home-view .advisor {
  min-height: calc(100svh - var(--header-height) - 32px);
  align-items: center;
  padding-block: clamp(18px, 3.2vh, 40px);
}
.advisor-form { gap: 10px 12px; padding: clamp(16px, 2.4vh, 26px) clamp(16px, 2.4vw, 26px); }
.field { gap: 4px; }
.field label, .field legend { font-size: .82rem; }
.field input, .segmented span { min-height: 46px; }
.field input { font-size: 1rem; }
.segmented legend { margin-bottom: 4px; }

/* BMI gọn: 1 dòng số + thanh màu + 1 dòng gợi ý */
.bmi { padding: 10px 14px; border-radius: 14px; }
.bmi__top strong { font-size: 1.35rem; }
.bmi__top em { font-size: .76rem; }
.bmi__bar { height: 8px; margin-top: 8px; }
.bmi__marker { width: 16px; height: 16px; border-width: 2px; }
.bmi__scale { height: 14px; margin-top: 2px; font-size: .66rem; }
.bmi__hint { font-size: .76rem; line-height: 1.35; }

.consent { gap: 8px; font-size: .8rem; line-height: 1.4; }
.consent input { width: 20px; height: 20px; }
.advisor-submit { min-height: 52px; }
.advisor-note { font-size: .7rem; line-height: 1.35; }

@media (max-width: 900px) {
  .home-view .advisor { gap: 16px; align-content: center; }
  .advisor__steps { margin-top: 14px; }
}

@media (max-width: 550px) {
  .home-view .advisor {
    min-height: calc(100svh - var(--header-height));
    margin-top: 20px;
    padding: 16px var(--page-gutter) 18px;
    gap: 12px;
  }
  .advisor__lead { display: none; }
  .advisor h2 { margin-top: 4px; }
  .advisor__steps { margin-top: 10px; }
  .advisor__steps li { gap: 4px; }
  .advisor__steps li::before { width: 28px; height: 28px; font-size: .8rem; }
  .advisor__steps li:not(:last-child)::after { top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); }
  .advisor__steps b { font-size: .76rem; }
  .advisor-form { padding: 14px 14px 12px; border-radius: 18px; }
}

/* Màn hình thấp: bỏ bớt phần phụ để vẫn thấy trọn khu */
@media (max-height: 760px) {
  .bmi__scale { display: none; }
  .advisor-note { display: none; }
}
@media (max-width: 550px) and (max-height: 700px) {
  .advisor__steps { display: none; }
  .field input, .segmented span { min-height: 42px; }
  .advisor-submit { min-height: 48px; }
  .advisor-form { gap: 8px 10px; }
}

/* Cuộn tới khu tư vấn: đỉnh khu sát ngay dưới thanh logo */
.home-view .advisor { scroll-margin-top: -14px; }

@media (max-width: 550px) {
  .bmi__scale { display: none; }
  .bmi__bar { margin-top: 6px; }
  .bmi { padding: 9px 12px; }
  .advisor-form { gap: 8px 10px; }
  .home-view .advisor { padding-block: 12px 14px; gap: 10px; }
}

body.advisor-in-view .call-fab { opacity: 0; pointer-events: none; transform: translateY(16px); }

/* =====================================================================
   Lựa chọn trong popup tư vấn: thẻ nổi, có biểu tượng và dấu chọn
   ===================================================================== */
.advisor-chat__answers {
  position: relative;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 0;
  background: linear-gradient(#f7f1e7, #f3ebde);
  box-shadow: 0 -10px 24px -14px #3b2a1440;
}
.choices__hint { margin-bottom: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.choices { display: grid; gap: 10px; }
.choices--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--list { grid-template-columns: 1fr; }
.choices--list.choices--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice--none { grid-column: 1 / -1; }

.choice {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #eadfcd;
  border-radius: 16px;
  background: var(--white);
  color: var(--forest-dark);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 1px 2px #3b2a1414, 0 8px 18px -10px #3b2a1440;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 160ms, background-color 160ms;
  animation: choice-in 360ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes choice-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.choice:hover { border-color: #d9c19c; transform: translateY(-2px); box-shadow: 0 2px 4px #3b2a1414, 0 14px 26px -12px #3b2a1455; background: var(--white); }
.choice:active { transform: translateY(0) scale(.98); }
.choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__label { flex: 1; min-width: 0; }

/* Biểu tượng khu chăm sóc */
.choice { --tile: #e8efe6; --tile-ink: #366246; }
.choice[data-cat="xuong"] { --tile: #e3ecf1; --tile-ink: #2f5568; }
.choice[data-cat="tim"] { --tile: #f6e5df; --tile-ink: #8d4637; }
.choice[data-cat="nao"] { --tile: #ece8f6; --tile-ink: #5f4c86; }
.choice[data-cat="mat"] { --tile: #f6eed8; --tile-ink: #7c5a15; }
.choice[data-cat="duong"] { --tile: #e2efe9; --tile-ink: #2e6553; }
.choice[data-cat="khang"] { --tile: #f8e6da; --tile-ink: #94461f; }
.choice__icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 12px; background: var(--tile); color: var(--tile-ink); transition: transform 220ms var(--ease); }
.choice__icon .icon { width: 21px; height: 21px; }
.choice:hover .choice__icon { transform: scale(1.06) rotate(-4deg); }

/* Dấu chọn: tròn (chọn 1) hoặc vuông bo (chọn nhiều) */
.choice__mark {
  display: grid; width: 24px; height: 24px; flex: none; place-items: center;
  border: 2px solid #d6c3a5; border-radius: 50%; background: #fffdf9; color: transparent;
  transition: all 180ms var(--ease);
}
.choices--multi .choice__mark { border-radius: 7px; }
.choice__mark .icon { width: 15px; height: 15px; stroke-width: 3; }
.choice__tick {
  position: absolute; top: -7px; right: -7px; display: grid; width: 24px; height: 24px; place-items: center;
  border: 2px solid var(--white); border-radius: 50%; background: var(--bronze-grad); color: #fff;
  opacity: 0; transform: scale(.4); transition: opacity 180ms, transform 220ms var(--ease);
}
.choice__tick .icon { width: 13px; height: 13px; stroke-width: 3; }

/* Trạng thái đã chọn */
.choice[aria-pressed="true"] {
  border-color: var(--bronze);
  background: #fbf4e8;
  color: var(--forest-dark);
  box-shadow: 0 0 0 2px #9b724733, 0 10px 22px -12px #6e4a2a66;
  transform: translateY(-2px);
}
.choice[aria-pressed="true"] .choice__mark { border-color: transparent; background: var(--bronze-grad); color: #fff; }
.choice[aria-pressed="true"] .choice__tick { opacity: 1; transform: scale(1); }

.choices__next { width: 100%; min-height: 54px; margin-top: 12px; border-radius: 16px; transition: opacity 200ms, background 200ms; }
.choices__next:disabled { background: #e9dfd0; color: #8a7f70; opacity: 1; box-shadow: none; }

@media (max-width: 380px) {
  .choice { gap: 9px; padding: 9px 11px; font-size: .92rem; }
  .choice__icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .choice { animation: none; }
}

/* Trạng thái đã chọn rõ ràng hơn */
.choice__tick { position: static; flex: none; border: 0; margin-left: auto; }
.choice[aria-pressed="true"] {
  border-color: var(--bronze);
  background: linear-gradient(135deg, #fbf1df, #f5e4c8);
  box-shadow: inset 0 0 0 1.5px var(--bronze), 0 12px 24px -12px #6e4a2a80;
}
.choice[aria-pressed="true"] .choice__icon { background: var(--white); }

/* Thẻ khu chăm sóc trong popup: bố cục dọc, chữ không bị vỡ dòng */
.choices--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choices--grid .choice {
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px 12px;
  text-align: center;
}
.choices--grid .choice__icon { width: 42px; height: 42px; border-radius: 14px; }
.choices--grid .choice__icon .icon { width: 22px; height: 22px; }
.choices--grid .choice__label { flex: none; font-size: .95rem; line-height: 1.3; text-wrap: balance; }
.choices--grid .choice__tick { position: absolute; top: 8px; right: 8px; margin: 0; }

/* Danh sách chọn nhiều: chữ cân dòng, dấu chọn luôn canh giữa */
.choices--list .choice__label { text-wrap: balance; }

/* =====================================================================
   Kết quả tư vấn tổng hợp
   ===================================================================== */
.choice__sub { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.choice[aria-pressed="true"] .choice__sub { color: #7b5330; }

.advice { gap: 14px; }
.advice__block { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed #e6d9c4; }
.advice > .advice__block:first-child, .advice__priority + .advice__block { border-top: 0; padding-top: 0; }
.advice__block .advice__title { margin-top: 0; }
.advice__small { color: var(--muted); font-size: .82rem; }
.advice__list b { color: var(--forest-dark); }
.advice__block--warn .advice__title .icon { color: #b2321f; }
.advice__block--warn .advice__list li::marker { color: #b2321f; }

/* Bảng chỉ số */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.metric {
  display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 12px; background: #fffdf9;
}
.metric__label { color: var(--muted); font-size: .76rem; font-weight: 700; }
.metric__value { color: var(--forest-dark); font-size: 1.02rem; line-height: 1.3; }
.metric__note { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-style: normal; font-weight: 800; }
.metric--good { border-left-color: #6fb487; }
.metric--good .metric__note { background: #dcefe2; color: #25613b; }
.metric--warn { border-left-color: #e0b558; }
.metric--warn .metric__note { background: #f7ead0; color: #82560f; }
.metric--bad { border-left-color: #d9775f; }
.metric--bad .metric__note { background: #f6dcd5; color: #94351f; }
.metric--unknown { border-left-color: #cfc4b3; }
.metric--unknown .metric__note { background: #efe9df; color: #6e675c; }

/* Khung ưu tiên đi khám: 3 mức */
.advice__priority { display: grid; gap: 8px; padding: 14px; border-radius: 14px; }
.advice__priority .advice__title { margin: 0; }
.advice__priority--week { border: 1px solid #ecd9b4; background: #fbf5e9; }
.advice__priority--week .advice__title, .advice__priority--week .advice__title .icon { color: #82560f; }
.advice__priority--soon { border: 1px solid #f0c9a8; background: #fdf1e6; }
.advice__priority--soon .advice__title, .advice__priority--soon .advice__title .icon { color: #a2481c; }
.advice__priority--emergency { border: 1px solid #efc1b6; border-left: 5px solid #b2321f; background: #fdf3f0; }
.advice__priority--emergency .advice__title, .advice__priority--emergency .advice__title .icon { color: #94351f; font-size: 1.05rem; }
.advice__priority--emergency > p:not(.advice__title) { font-weight: 700; }

@media (max-width: 380px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Kết quả tư vấn v2: gọn trên điện thoại, không tràn
   ===================================================================== */
.bubble--wide { min-width: 0; }
.advice { gap: 10px; padding: 12px; background: #fbf8f2; }
.advice, .advice * { overflow-wrap: anywhere; }

/* Mỗi nhóm lời khuyên là một thẻ */
.advice__block {
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.advice > .advice__block:first-child, .advice__priority + .advice__block { padding-top: 12px; border-top: 1px solid var(--line); }
.advice__title { gap: 8px; font-size: .98rem; }
.advice__title .icon { width: 18px; height: 18px; }

/* Danh sách: chấm tròn + đường phân cách mảnh */
.advice__list { display: block; margin: 0; padding: 0; list-style: none; }
.advice__list li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-top: 1px solid #f1e8da;
  font-size: .92rem;
  line-height: 1.5;
}
.advice__list li:first-child { border-top: 0; padding-top: 2px; }
.advice__list li::before {
  position: absolute; top: 15px; left: 2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bronze); content: "";
}
.advice__list li:first-child::before { top: 10px; }
.advice__block--warn .advice__list li::before, .advice__priority--emergency .advice__list li::before { background: #c0412b; }
.advice__priority--soon .advice__list li::before { background: #c46a2f; }
.advice__priority--week .advice__list li::before { background: #c99a3c; }
.advice__priority .advice__list li { border-top-color: #00000010; }

/* Bảng chỉ số: mỗi chỉ số một hàng */
.metrics { grid-template-columns: 1fr; gap: 6px; }
.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 12px;
  border-radius: 12px;
}
.metric__body { display: grid; min-width: 0; gap: 1px; }
.metric__label { font-size: .74rem; }
.metric__value { font-size: .98rem; line-height: 1.3; overflow-wrap: normal; }
.metric__note {
  max-width: 11em;
  margin: 0;
  padding: 3px 10px;
  font-size: .74rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: normal;
}

/* Ô dược sĩ gọi lại */
.advice__call { align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; }
.advice__call .icon { flex: none; margin-top: 3px; }
.advice__call span { min-width: 0; }
.advice__call b { white-space: nowrap; }

.advice__priority { padding: 12px 14px; }
.advice__priority > p { font-size: .9rem; }
.advice__small { font-size: .8rem; line-height: 1.45; }
.advice__legal { font-size: .78rem; line-height: 1.45; }

/* Sản phẩm trong kết quả */
.advice__products { gap: 6px; }
.advice-product { gap: 10px; padding: 10px; }
.advice-product span { font-size: .84rem; }

@media (min-width: 560px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) {
  .advice { padding: 10px; }
  .advice__block, .advice__priority { padding: 11px 12px; }
}

/* Chỉ số: dòng trên = tên + nhãn, dòng dưới = giá trị trải hết bề ngang */
.metric { grid-template-areas: "label note" "value value"; row-gap: 2px; }
.metric__body { display: contents; }
.metric__label { grid-area: label; align-self: center; }
.metric__value { grid-area: value; }
.metric__note { grid-area: note; justify-self: end; max-width: none; white-space: nowrap; }

/* Điện thoại: bỏ một lớp khung để nội dung rộng hơn */
@media (max-width: 550px) {
  .advisor-chat__log { padding: 14px 10px; }
  .bubble--wide { border: 0; background: transparent; }
  .advice { padding: 0; background: transparent; }
}

/* Chỉ số luôn 1 cột cho dễ đọc */
@media (min-width: 560px) { .metrics { grid-template-columns: 1fr; } }

/* =====================================================================
   Chỉ số gọn: [tên ........ giá trị] trên 1 dòng, cảnh báo nhỏ ở dưới
   ===================================================================== */
.metrics { gap: 4px; }
.metric {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value" "note note";
  align-items: baseline;
  gap: 1px 10px;
  padding: 7px 10px 7px 11px;
  border-width: 1px 1px 1px 3px;
  border-radius: 10px;
}
.metric__label { grid-area: label; color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric__value { grid-area: value; justify-self: end; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.metric__note {
  grid-area: note;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0; border-radius: 0;
  background: none !important;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.metric__note::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }

/* Phần kết quả trên điện thoại: chữ nhỏ gọn hơn */
@media (max-width: 550px) {
  .advice { gap: 8px; }
  .advice__block, .advice__priority { gap: 4px; padding: 10px 11px; border-radius: 12px; }
  .advice__title { font-size: .9rem; }
  .advice__title .icon { width: 16px; height: 16px; }
  .advice__list li { padding: 5px 0 5px 15px; font-size: .84rem; line-height: 1.45; }
  .advice__list li::before { top: 12px; width: 6px; height: 6px; }
  .advice__list li:first-child::before { top: 8px; }
  .advice__small, .advice__priority > p { font-size: .76rem; }
  .advice-product { grid-template-columns: 34px 1fr auto; gap: 8px; padding: 8px; }
  .advice-product img { width: 34px; height: 50px; }
  .advice-product b { font-size: .88rem; }
  .advice-product span { font-size: .78rem; line-height: 1.35; }
  .advice-product strong { font-size: .82rem; }
  .advice-add { grid-column: auto; min-height: 38px; padding: 0 12px; font-size: .82rem; }
  .advice__call { padding: 10px 11px; font-size: .82rem; }
  .advice__legal { font-size: .72rem; }
}

/* =====================================================================
   Kho thật EVER LIFE 360: ảnh sản phẩm nền trắng + 9 khu chăm sóc
   ===================================================================== */
/* Ảnh nền trắng hòa vào màu nền thẻ */
.zone__scene img, .detail-image img, .advice-product img, .cart-item img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.zone__scene { gap: 0; }
.zone__scene img,
.zone__scene img:nth-child(2),
.zone__scene[data-count="1"] img {
  width: 34%;
  height: auto;
  max-height: calc(100% - 10px);
  aspect-ratio: 1;
  margin-inline: -2%;
  border-radius: 10px;
}
.zone__scene img:nth-child(2) { width: 40%; }
.zone__scene[data-count="1"] img { width: 44%; }
.cart-item img { background: #f6efe3; }

/* Chi tiết sản phẩm */
.detail-image { height: 150px; background: #fff; }
.detail-image img { width: 100%; height: 140px; }
.detail-brand { margin-top: 2px; color: var(--bronze); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-brand:empty { display: none; }
.detail-link { display: inline-flex; min-height: 40px; align-items: center; color: var(--forest); font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 9 khu trên một màn hình: lưới 3 × 3 */
.home-view .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-view .zone__body { padding: 10px 14px 12px; }
.home-view .zone__note { font-size: .82rem; line-height: 1.35; }
@media (max-width: 900px) {
  .home-view .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .home-view .category-grid { gap: 8px; }
  .home-view .zone { border-radius: 14px; }
  .home-view .zone__scene { padding: 6px 4px 8px; }
  .home-view .zone__scene::after { right: 6px; left: 6px; bottom: 5px; height: 5px; }
  .home-view .zone__badge { top: 5px; right: 5px; padding: 1px 6px; font-size: .62rem; }
  .home-view .zone__body { padding: 6px 6px 8px; text-align: center; }
  .home-view .zone__name { font-size: .8rem; line-height: 1.25; text-wrap: balance; }
  .home-view .zone__note { display: none; }
}
@media (max-width: 340px) {
  .home-view .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand__word { display: block; }
}

/* Màu cho 3 khu mới */
.zone[data-category="gan"], .choice[data-cat="gan"] { --tile: #efe6d6; --tile-ink: #7a5a1e; }
.zone[data-category="dep"], .choice[data-cat="dep"] { --tile: #f7e4ea; --tile-ink: #8c3d5a; }
.zone[data-category="can"], .choice[data-cat="can"] { --tile: #e4efe0; --tile-ink: #3f6b2f; }

/* Điện thoại: mỗi khu chỉ hiện 2 ảnh, to và chồng nhẹ lên nhau */
@media (max-width: 730px) {
  .home-view .zone__scene { align-items: flex-end; }
  .home-view .zone__scene img:nth-child(3) { display: none; }
  .home-view .zone__scene img,
  .home-view .zone__scene img:nth-child(2) {
    width: 56%;
    max-height: calc(100% - 4px);
    margin-inline: -7%;
  }
  .home-view .zone__scene img:nth-child(2) { z-index: 2; transform: translateY(2px); }
  .home-view .zone__scene[data-count="1"] img { width: 66%; margin: 0; }
}

/* Ảnh nền của các khu chăm sóc */
.zone--photo .zone__scene {
  background: var(--zone-photo) center / cover no-repeat, var(--tile);
}
.zone--photo .zone__scene::after { display: none; }
.zone--photo .zone__badge { background: var(--white); }
.zone__emblem {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 11px;
  background: var(--white);
  color: var(--tile-ink);
  box-shadow: 0 2px 8px #3b2a142a;
}
.zone__emblem .icon { width: 54%; height: 54%; stroke-width: 1.75; }
.zone--photo .zone__body { grid-template-columns: 1fr; text-align: left; }

@media (max-width: 730px) {
  .zone__emblem { bottom: 6px; left: 6px; width: 28px; border-radius: 8px; }
  .home-view .zone--photo .zone__body { text-align: center; }
  .home-view .zone--photo:nth-child(n + 4) .zone__name {
    display: grid;
    min-height: 2.5em;
    align-content: center;
  }
}

@media (max-width: 730px) and (max-height: 620px) {
  .aisle { padding-top: 12px; }
  .aisle__head { margin-bottom: 10px; }
  .aisle__head h1 { font-size: clamp(1.42rem, 5vw, 1.65rem); }
  .aisle__head p { margin-top: 4px; font-size: .91rem; }
  .shelf-display { --shelf-height: clamp(140px, 29svh, 186px); }
  .shelf-controls { padding-top: 5px; }
  .shelf-caption { gap: 8px; padding-block: 10px 11px; }
  body[data-page="aisle"] .call-fab { position: static; margin: 10px var(--page-gutter); }
}

/* =====================================================================
   Kệ sản phẩm: sản phẩm chính to rõ, bên cạnh lùi ra sau, chuyển mượt
   ===================================================================== */
.shelf-display {
  --shelf-height: clamp(280px, 44svh, 420px);
  --shelf-slot-width: clamp(130px, 14vw, 190px);
  --shelf-pack-size: min(clamp(280px, 34vw, 440px), calc(var(--shelf-height) + 60px));
}

/* Đèn chiếu + bóng đổ dưới chân sản phẩm chính (luôn ở giữa kệ) */
.shelf-viewport {
  background:
    radial-gradient(ellipse 46% 62% at 50% 42%, #ffffff 0, #fffaf3 40%, #fffaf300 75%),
    linear-gradient(#f6eee1 60%, #e9dbc5);
}
.shelf-stage::before {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  width: min(62%, 300px);
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #4a301933, #4a301900);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

.shelf-item { mix-blend-mode: multiply; }
.shelf-photo {
  bottom: -6px;
  opacity: var(--pack-fade, 1);
  filter: blur(var(--pack-blur, 0px));
  clip-path: none;
  mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  transform: translateX(calc(-50% + var(--pack-shift, 0px))) perspective(900px)
    rotateY(var(--pack-turn, 0deg)) scale(var(--pack-scale, 1));
  transform-origin: center 92%;
  transition: none;
  will-change: transform, opacity;
}
.shelf-item[aria-pressed="true"] .shelf-photo { opacity: var(--pack-fade, 1); }

/* Ảnh EVER có viền trắng và dải "Official store" ở trên: phóng to để hộp thuốc chiếm trọn khung */
.shelf-photo img,
.shelf-viewport:not(.is-dragging) .shelf-item:hover .shelf-photo img {
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 62%;
  transform: scale(1.2);
  transform-origin: 50% 64%;
  filter: brightness(1.06) contrast(1.05) saturate(1.05);
}

/* Tên và giá */
.shelf-caption { gap: 10px; padding: 14px clamp(14px, 4vw, 28px) 18px; }
.shelf-caption__info { min-height: 64px; will-change: transform, opacity; }
.shelf-caption h2 { font-size: clamp(1.2rem, 4.8vw, 1.75rem); }

/* Nút trước/sau rõ hơn */
.shelf-direction { border-radius: 50%; box-shadow: 0 4px 12px -6px #3b2a1440; }
.shelf-direction:active:not([aria-disabled="true"]) { transform: scale(.94); }

@media (max-width: 730px) {
  .shelf-display {
    --shelf-height: clamp(250px, 40svh, 360px);
    --shelf-slot-width: clamp(96px, 30vw, 132px);
    --shelf-pack-size: min(84vw, calc(var(--shelf-height) + 50px));
  }
}
@media (max-width: 730px) and (max-height: 620px) {
  .shelf-display { --shelf-height: clamp(200px, 36svh, 240px); }
}
@media (prefers-reduced-motion: reduce) {
  .shelf-photo { filter: none; }
}

/* Ẩn dải "Official store" ở đầu ảnh EVER (sau khi phóng 1.2 nó nằm trong ~10% trên cùng) */
.shelf-photo {
  overflow: hidden;
  clip-path: inset(11% 0 0);
  mask-image:
    linear-gradient(transparent 11%, #000 17% 97%, transparent),
    linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Màn hình rộng: giãn khoảng cách để sản phẩm bên cạnh không đè lên sản phẩm chính */
@media (min-width: 731px) {
  .shelf-display { --shelf-slot-width: clamp(220px, 24vw, 300px); }
}

/* Khung ảnh không cao hơn kệ, để hộp sản phẩm không bị cắt mép trên */
.shelf-display { --shelf-pack-size: min(clamp(280px, 34vw, 440px), calc(var(--shelf-height) - 4px)); }
@media (max-width: 730px) {
  .shelf-display { --shelf-pack-size: min(84vw, calc(var(--shelf-height) - 4px)); }
}

/* =====================================================================
   Chân trang: logo ngang, 4 cam kết, hotline, lưu ý pháp lý
   ===================================================================== */
.site-footer {
  margin-top: 32px;
  padding: 32px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 0;
  background: linear-gradient(#f7efe2, #f2e7d6);
}
.site-footer::before {
  display: block;
  height: 2px;
  margin-top: -32px;
  margin-bottom: 30px;
  background: var(--bronze-grad);
  opacity: .5;
  content: "";
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

/* Logo ngang + tiêu đề 1 dòng */
.site-footer__brand { display: grid; justify-items: center; gap: 10px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__logo img:first-child { width: 46px; height: 46px; }
.site-footer__logo img:last-child { width: auto; height: 38px; }
.site-footer__title {
  color: var(--forest-dark);
  font-size: min(1.3rem, 4.6vw);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* 4 cam kết */
.footer-promise {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.footer-promise li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 12px;
  border: 1px solid #eadcc6;
  border-radius: 14px;
  background: #fffdf9;
}
.footer-promise span {
  display: grid;
  width: 40px;
  height: 40px;
  grid-row: span 2;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--bronze);
}
.footer-promise .icon { width: 20px; height: 20px; }
.footer-promise b { align-self: end; color: var(--forest-dark); font-size: .9rem; line-height: 1.3; }
.footer-promise small { align-self: start; color: var(--muted); font-size: .78rem; line-height: 1.35; }

/* Hotline */
.site-footer__hotline {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest-dark);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 200ms var(--ease);
}
.site-footer__hotline:hover { transform: translateY(-2px); }
.site-footer__hotline .icon {
  width: 38px; height: 38px; grid-row: span 2; padding: 9px;
  border-radius: 50%; background: var(--bronze-grad); color: #fff;
}
.site-footer__hotline span { font-size: .92rem; }
.site-footer__hotline strong { color: var(--forest); font-size: 1.05rem; }
.site-footer__hotline small { color: var(--muted); font-size: .76rem; }

.site-footer__legal {
  max-width: 640px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #fffdf9;
  color: var(--forest-dark);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}
.site-footer__demo { color: var(--muted); font-size: .74rem; }

@media (max-width: 900px) {
  .footer-promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .site-footer { padding-top: 26px; }
  .site-footer::before { margin-top: -26px; margin-bottom: 24px; }
  .site-footer__inner { gap: 16px; }
  .site-footer__logo img:first-child { width: 38px; height: 38px; }
  .site-footer__logo img:last-child { height: 31px; }
  .footer-promise { gap: 8px; }
  .footer-promise li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; padding: 9px; border-radius: 12px; }
  .footer-promise span { width: 32px; height: 32px; border-radius: 10px; }
  .footer-promise .icon { width: 17px; height: 17px; }
  .footer-promise b { font-size: .78rem; }
  .footer-promise small { font-size: .7rem; }
  .site-footer__legal { font-size: .8rem; }
  body:not([data-page="landing"]) .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Điện thoại: cam kết dạng biểu tượng trên, chữ căn giữa để không vỡ dòng */
@media (max-width: 550px) {
  .footer-promise li {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 4px;
    padding: 12px 8px;
    text-align: center;
  }
  .footer-promise span { grid-row: auto; margin-bottom: 2px; }
  .footer-promise b, .footer-promise small { align-self: auto; text-wrap: balance; }
  .footer-promise b { font-size: .82rem; }
}
.site-footer__demo { text-wrap: balance; }

.site-footer__legal { max-width: 720px; text-wrap: balance; }

/* Chân trang trên điện thoại: chữ trải hết bề ngang ô, các ô thẳng hàng */
@media (max-width: 550px) {
  .footer-promise { grid-auto-rows: 1fr; }
  .footer-promise li { align-content: start; padding: 12px 8px 13px; }
  .footer-promise b, .footer-promise small { text-wrap: wrap; }
  .footer-promise b { font-size: .84rem; white-space: nowrap; }
  .footer-promise small { font-size: .74rem; line-height: 1.4; }

  /* Lưu ý pháp lý: đúng 2 dòng */
  .site-footer__legal { width: 100%; padding: 10px 8px; font-size: min(.84rem, 3.45vw); text-wrap: wrap; }
  .site-footer__legal span { display: block; white-space: nowrap; }
}

@media (max-width: 550px) { .footer-promise b { white-space: normal; } }

/* Điện thoại: 4 cam kết thành 4 hàng ngang, mỗi chữ trải trên 1 dòng */
@media (max-width: 550px) {
  .footer-promise { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 6px; }
  .footer-promise li {
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: start;
    align-content: center;
    column-gap: 12px;
    row-gap: 1px;
    padding: 9px 14px 9px 10px;
    text-align: left;
  }
  .footer-promise span { width: 38px; height: 38px; grid-row: span 2; margin: 0; }
  .footer-promise .icon { width: 19px; height: 19px; }
  .footer-promise b { align-self: end; font-size: .9rem; white-space: nowrap; }
  .footer-promise small { align-self: start; font-size: .78rem; white-space: nowrap; }
}

/* Nút gọi nổi mờ đi khi đè lên nội dung, sáng lại khi chạm hoặc rê chuột */
.call-fab { transition: transform 200ms var(--ease), opacity 260ms ease, box-shadow 260ms ease; }
.call-fab.is-over-content { opacity: .35; box-shadow: 0 6px 16px -10px #6e4a2a80; }
.call-fab.is-over-content:hover,
.call-fab.is-over-content:focus-visible,
.call-fab.is-over-content:active { opacity: 1; }

/* =====================================================================
   Nút gọi: số hotline trượt ra từ biểu tượng điện thoại
   ===================================================================== */
.call-fab,
.call-fab span {
  display: inline-flex;
}
.call-fab {
  width: auto;
  min-height: 58px;
  max-width: 240px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 5px 20px 5px 5px;
  overflow: hidden;
  border: 2px solid #fff6;
  white-space: nowrap;
  animation: fab-open 700ms 600ms var(--ease) both;
}
.call-fab .icon {
  width: 46px;
  height: 46px;
  flex: none;
  padding: 12px;
  border-radius: 50%;
  background: #00000022;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.call-fab .call-fab__text {
  display: grid;
  line-height: 1.15;
  text-align: left;
  animation: fab-text 500ms 900ms ease both;
}
.call-fab__text small { font-size: .7rem; font-weight: 600; opacity: .9; }
.call-fab__text b { font-size: 1.1rem; font-weight: 800; letter-spacing: .01em; }

/* Lúc mở trang: chỉ là nút tròn, rồi số điện thoại trượt ra */
@keyframes fab-open { from { max-width: 60px; padding-right: 5px; } }
@keyframes fab-text { from { opacity: 0; transform: translateX(-8px); } }

@media (max-width: 550px) {
  .call-fab,
  .call-fab:where(*) { width: auto; padding: 4px 16px 4px 4px; justify-content: flex-start; }
  .call-fab span.call-fab__text { display: grid; }
  .call-fab { min-height: 52px; }
  .call-fab .icon { width: 42px; height: 42px; padding: 11px; }
  .call-fab__text small { font-size: .64rem; }
  .call-fab__text b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab, .call-fab .call-fab__text { animation: none; }
}

/* Ảnh đã được chuẩn hóa (nền trắng, cắt sát, căn đáy): hiển thị nguyên vẹn, không phóng, không cắt */
.shelf-photo {
  clip-path: none;
  mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
  overflow: visible;
}
.shelf-photo img,
.shelf-viewport:not(.is-dragging) .shelf-item:hover .shelf-photo img {
  object-fit: contain;
  object-position: 50% 100%;
  transform: none;
  filter: none;
}

/* Điện thoại: "Địa chỉ giao hàng" xếp 2 dòng thay vì bị cắt */
@media (max-width: 550px) {
  .header-location { white-space: normal; }
  #header-region {
    display: -webkit-box;
    max-width: 6.6em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .8rem;
    line-height: 1.15;
    text-align: left;
    text-overflow: clip;
  }
}

/* Nút "Địa chỉ giao hàng": bỏ nền, hòa vào thanh trên cùng */
.header-location {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.header-location:hover { background: #f5ede180; }

/* Điện thoại: "Địa chỉ giao hàng" nằm trên 1 dòng */
@media (max-width: 550px) {
  .brand { gap: 7px; }
  .brand__word { height: 22px; }
  .header-location { gap: 5px; padding-inline: 4px 2px; white-space: nowrap; }
  #header-region {
    display: block;
    max-width: none;
    overflow: hidden;
    -webkit-line-clamp: unset;
    font-size: clamp(12px, 3.45vw, 14px);
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* Màn hình rất hẹp: chỉ giữ biểu tượng logo để "Địa chỉ giao hàng" vẫn đủ 1 dòng */
@media (max-width: 350px) { .brand__word { display: none; } }

/* =====================================================================
   Hộp chọn địa chỉ giao hàng (tỉnh/thành → phường/xã → số nhà)
   ===================================================================== */
.address-dialog { width: min(520px, calc(100% - 24px)); overflow: visible; }
.address-form { display: grid; gap: 14px; }
.address-form > p#region-intro { margin-top: -6px; font-size: .86rem; }
.addr-loading { color: var(--muted); font-size: .86rem; }

.addr-field { position: relative; display: grid; gap: 6px; transition: opacity 200ms; }
.addr-field.is-locked { opacity: .55; }
.addr-label { display: flex; align-items: center; gap: 8px; color: var(--forest-dark); font-size: .9rem; font-weight: 800; }
.addr-step {
  display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%;
  background: var(--soft); color: var(--forest); font-size: .72rem; font-weight: 800;
  transition: background 200ms, color 200ms;
}
.addr-field.is-done .addr-step { background: var(--bronze-grad); color: #fff; }

.addr-combo {
  display: flex; min-height: 52px; align-items: center; gap: 8px; padding: 0 6px 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf9; color: var(--muted);
  transition: border-color 160ms, box-shadow 160ms;
}
.addr-combo:focus-within { border-color: var(--bronze); box-shadow: 0 0 0 4px #9b724722; }
.addr-combo .icon { width: 18px; height: 18px; flex: none; }
.addr-combo input {
  min-width: 0; flex: 1; min-height: 48px; padding: 0; border: 0; outline: 0;
  background: transparent; color: var(--ink); font-size: 1rem;
}
.addr-combo input:disabled { cursor: not-allowed; }
.addr-combo input::placeholder, .addr-input::placeholder { color: #a89f92; }
.addr-clear {
  display: grid; width: 36px; height: 36px; flex: none; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.addr-clear:hover { background: var(--soft); }
.addr-clear .icon { width: 16px; height: 16px; }

.addr-input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fffdf9; color: var(--ink); font-size: 1rem;
}
.addr-input:focus { border-color: var(--bronze); outline: 0; box-shadow: 0 0 0 4px #9b724722; }
.addr-input:disabled { cursor: not-allowed; }

/* Danh sách tự xổ ra */
.addr-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0;
  max-height: min(300px, 46dvh); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: 0 2px 4px #3b2a1414, 0 18px 40px -16px #3b2a1466;
  list-style: none;
  animation: addr-drop 160ms var(--ease);
}
@keyframes addr-drop { from { opacity: 0; transform: translateY(-4px); } }
.addr-list li[data-i] {
  display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: .95rem; cursor: pointer;
}
.addr-list li[aria-selected="true"], .addr-list li[data-i]:hover { background: var(--soft); }
.addr-list mark { padding: 0; background: none; color: var(--forest); font-weight: 800; }
.addr-opt__main { min-width: 0; }
.addr-opt__hint {
  flex: none; padding: 2px 8px; border-radius: 999px; background: #f3ebde;
  color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.addr-empty { padding: 12px; color: var(--muted); font-size: .9rem; }

.addr-preview {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #e6f1ea; color: #1f4d36; font-size: .9rem; line-height: 1.45;
}
.addr-preview .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.addr-error { color: #a63d29; font-size: .86rem; font-weight: 700; }
.addr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.addr-actions .button { min-width: 140px; }
#addr-save:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 550px) {
  .address-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .address-form { gap: 12px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .addr-actions { display: grid; grid-template-columns: 1fr; }
  .addr-actions #addr-save { order: -1; }
  .addr-list { max-height: 40dvh; }
}

/* Danh sách địa chỉ bật lên trên khi bên dưới không đủ chỗ */
.addr-list.is-up { top: auto; bottom: 58px; animation-name: addr-rise; }
@keyframes addr-rise { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 550px) { .addr-list { max-height: none; } }

.addr-retry {
  margin-left: 6px; padding: 4px 12px; border: 1px solid var(--bronze); border-radius: 999px;
  background: var(--white); color: var(--forest); font-size: .85rem; font-weight: 800;
}
.addr-retry:hover { background: var(--soft); }
.addr-loading { line-height: 1.6; }

/* =====================================================================
   Người nhận + mời tạo tài khoản + hộp tạo tài khoản
   ===================================================================== */
.addr-person { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.addr-field--plain .addr-label .icon { width: 17px; height: 17px; color: var(--bronze); }
.addr-label small { color: var(--muted); font-weight: 600; }
.addr-input[aria-invalid="true"] { border-color: #b24a35; }
.addr-person__error { grid-column: 1 / -1; margin: -2px 0 0; color: #a63d29; font-size: .84rem; font-weight: 700; }

/* Thẻ mời tạo tài khoản: hiện khi số điện thoại hợp lệ */
.addr-invite {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid #e4cfa9;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf2e1, #f6e6c9);
  animation: invite-in 320ms var(--ease);
}
@keyframes invite-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.addr-invite__icon {
  display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px;
  background: var(--white); color: var(--bronze); box-shadow: var(--shadow-soft);
}
.addr-invite__icon .icon { width: 20px; height: 20px; }
.addr-invite__text { display: grid; gap: 2px; min-width: 0; }
.addr-invite__text b { color: var(--forest-dark); font-size: .92rem; line-height: 1.3; }
.addr-invite__text small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.addr-invite__btn { min-height: 42px; padding: 0 16px; font-size: .9rem; white-space: nowrap; }
.addr-invite.is-member { border-color: #b9d8c4; background: #e9f4ee; grid-template-columns: 40px minmax(0, 1fr); }
.addr-invite.is-member .addr-invite__icon { color: #2f7a4c; }

/* Hộp tạo tài khoản */
.account-dialog { width: min(460px, calc(100% - 24px)); }
.account-form { display: grid; gap: 12px; }
.account-form h2 { margin-top: -2px; }
.account-perks { display: grid; gap: 8px; margin: 0 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--soft); list-style: none; }
.account-perks li { display: flex; align-items: center; gap: 10px; color: var(--forest-dark); font-size: .88rem; font-weight: 600; }
.account-perks .icon { width: 18px; height: 18px; flex: none; color: var(--bronze); }
.account-form .consent { font-size: .84rem; }
.account-submit { min-height: 54px; margin-top: 4px; }
.account-note { color: var(--muted); font-size: .76rem; text-align: center; }

@media (max-width: 550px) {
  .address-dialog { overflow-y: auto; overscroll-behavior: contain; }
  .addr-person { grid-template-columns: 1fr 1fr; gap: 8px; }
  .addr-person .addr-input { padding: 0 12px; font-size: .95rem; }
  .addr-invite { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
  .addr-invite__icon { width: 36px; height: 36px; }
  .addr-invite__btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
  .account-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
}
@media (max-width: 340px) {
  .addr-person { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .addr-invite { animation: none; } }

/* Thẻ mời: mỗi dòng nằm gọn trên 1 dòng, cỡ chữ cân theo bề ngang */
.addr-invite__text b,
.addr-invite__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.addr-invite__text b { font-size: min(.94rem, 3.5vw); line-height: 1.35; }
.addr-invite__text small { font-size: min(.76rem, 3.1vw); line-height: 1.4; }

/* =====================================================================
   Tạo tài khoản: mật khẩu + quyền lợi gọn 1 dòng
   ===================================================================== */
.account-perks { gap: 6px; padding: 10px 12px; }
.account-perks li {
  overflow: hidden;
  font-size: min(.84rem, 3.6vw);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-perks .icon { width: 16px; height: 16px; }

.pw-wrap { position: relative; }
.pw-wrap .addr-input { padding-right: 70px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px;
  min-width: 56px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 10px; background: var(--soft);
  color: var(--forest); font-size: .82rem; font-weight: 800;
  transform: translateY(-50%);
}
.pw-toggle:hover { background: #efe3cf; }

.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -4px 0 0; padding: 0; list-style: none; }
.pw-rules li {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: .76rem; font-weight: 600;
  transition: color 160ms;
}
.pw-rules li::before {
  display: grid; width: 15px; height: 15px; place-items: center; border: 1.5px solid #cdbfa9; border-radius: 50%;
  font-size: .6rem; line-height: 1; content: "";
  transition: background 160ms, border-color 160ms;
}
.pw-rules li.is-ok { color: #25613b; }
.pw-rules li.is-ok::before { border-color: #3f9a62; background: #3f9a62; color: #fff; content: "✓"; }

/* Thẻ mời trên màn hình rộng: nút gọn "Tạo ngay", chữ cỡ cố định cân đối */
.addr-invite__btn .lbl-long { display: none; }
@media (min-width: 551px) {
  .addr-invite { gap: 4px 12px; }
  .addr-invite__btn { min-height: 40px; padding: 0 16px; font-size: .84rem; }
  .addr-invite__text b { font-size: .78rem; }
  .addr-invite__text small { font-size: .69rem; }
}
@media (max-width: 550px) {
  .addr-invite__btn .lbl-long { display: inline; }
  .addr-invite__btn .lbl-short { display: none; }
}

/* =====================================================================
   Tài khoản: nút trên thanh đầu, đăng nhập, đăng ký thành công, hồ sơ
   ===================================================================== */
.header-account {
  position: relative;
  display: grid; width: 44px; height: 44px; flex: none; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--forest);
  transition: background 160ms, border-color 160ms;
}
.header-account:hover { background: var(--soft); }
.header-account .icon { width: 20px; height: 20px; }
.header-account__avatar {
  display: grid; width: 100%; height: 100%; place-items: center; border-radius: 50%;
  background: var(--bronze-grad); color: #fff; font-size: .95rem; font-weight: 800;
}
.header-account.is-member { border-color: transparent; padding: 2px; box-shadow: 0 0 0 2px #e8d2ad; }

/* Điện thoại: giỏ hàng gọn (số lượng dạng chấm), màn hẹp chỉ giữ biểu tượng logo */
@media (max-width: 550px) {
  .header-cart { position: relative; width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; border-radius: 50%; }
  .header-cart .cart-count {
    position: absolute; top: -3px; right: -3px; min-width: 19px; min-height: 19px; padding: 0 4px;
    border: 2px solid var(--white); font-size: .66rem;
  }
  .header-account { width: 42px; height: 42px; }
}
@media (max-width: 380px) { .brand__word { display: none; } }

/* Hộp đăng nhập / thành công / hồ sơ */
.auth-dialog { width: min(420px, calc(100% - 24px)); }
.auth-form { display: grid; gap: 12px; }
.auth-logo { width: 52px; height: 52px; margin-bottom: -2px; }
.auth-dialog h2 { margin-top: 0; }
.auth-lead { margin-top: -6px; color: var(--muted); font-size: .9rem; }
.auth-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.auth-help { padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--forest-dark); font-size: .84rem; line-height: 1.45; }
.auth-help a { color: var(--forest); }
.auth-submit { width: 100%; min-height: 54px; }
.auth-switch { color: var(--muted); font-size: .88rem; text-align: center; }
.link-button {
  min-height: 36px; padding: 0 4px; border: 0; background: none;
  color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button:hover { color: var(--forest-dark); }
.addr-error .link-button { min-height: 0; padding: 0; color: #a63d29; }

/* Màn đăng ký thành công */
.success-inner { display: grid; justify-items: center; gap: 12px; padding-top: 30px; text-align: center; }
.success-mark { width: 84px; height: 84px; }
.success-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle {
  stroke: #3f9a62; stroke-width: 3; fill: #e6f4eb;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: success-ring 600ms var(--ease) forwards;
}
.success-mark path {
  stroke: #2f7a4c; stroke-width: 4;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: success-tick 360ms 480ms var(--ease) forwards;
}
@keyframes success-ring { to { stroke-dashoffset: 0; } }
@keyframes success-tick { to { stroke-dashoffset: 0; } }
.success-dialog[open] .success-mark { animation: success-pop 620ms var(--ease) both; }
@keyframes success-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.success-inner h2 { color: var(--forest-dark); }
.success-inner .auth-lead { margin-top: -8px; }

.success-card {
  display: grid; width: 100%; gap: 0; margin: 4px 0 0; padding: 4px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; text-align: left;
}
.success-card div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f1e8da; }
.success-card div:first-child { border-top: 0; }
.success-card dt { flex: none; color: var(--muted); font-size: .84rem; }
.success-card dd { margin: 0; color: var(--forest-dark); font-size: .88rem; font-weight: 700; text-align: right; }
.success-perks { display: grid; width: 100%; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; }
.success-perks li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.success-perks .icon { width: 16px; height: 16px; flex: none; color: var(--bronze); }
.success-secondary { justify-self: center; }

/* Thẻ tài khoản */
.profile-dialog .dialog__inner { display: grid; gap: 14px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding-right: 90px; }
.profile-avatar {
  display: grid; width: 56px; height: 56px; flex: none; place-items: center; border-radius: 50%;
  background: var(--bronze-grad); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: var(--shadow-soft);
}
.profile-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.profile-head p { color: var(--muted); font-size: .9rem; }
.profile-logout { justify-self: center; color: #a63d29; }

@media (max-width: 550px) {
  .auth-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .success-mark circle, .success-mark path { animation: none; stroke-dashoffset: 0; }
  .success-dialog[open] .success-mark { animation: none; }
}

/* =====================================================================
   Điện thoại: giao diện kiểu ứng dụng (trang các khu + kệ)
   Trên: biểu tượng + ô tìm kiếm, dòng "Giao tới". Dưới: thanh 4 mục.
   ===================================================================== */
.top-search, .tabbar, .loc-prefix, .loc-chevron { display: none; }

@media (max-width: 730px) {
  body:not([data-page="landing"]) {
    --header-height: 100px;
    --tabbar-h: calc(60px + env(safe-area-inset-bottom));
  }

  /* ---------- Thanh trên ---------- */
  body:not([data-page="landing"]) .site-header { background: linear-gradient(#fffaf2, #fbf3e6); }
  body:not([data-page="landing"]) .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand search" "loc loc";
    row-gap: 4px;
    min-height: 0;
    padding-block: 8px 6px;
  }
  body:not([data-page="landing"]) .brand,
  body:not([data-page="landing"]) .aisle-back { grid-area: brand; }
  body:not([data-page="landing"]) .brand__word { display: none; }
  body:not([data-page="landing"]) .brand__symbol { width: 40px; height: 40px; }
  body:not([data-page="landing"]) .aisle-back span { display: none; }
  body:not([data-page="landing"]) .aisle-back { min-width: 40px; padding: 0; justify-content: center; }

  body:not([data-page="landing"]) .top-search { display: block; grid-area: search; }
  .top-search__field {
    display: flex; min-height: 46px; align-items: center; gap: 8px; padding: 0 14px;
    border: 1.5px solid #e3cfac; border-radius: 999px; background: var(--white); color: var(--bronze);
    box-shadow: 0 4px 14px -10px #6e4a2a66;
    transition: border-color 160ms, box-shadow 160ms;
  }
  .top-search__field:focus-within { border-color: var(--bronze); box-shadow: 0 0 0 4px #9b724722; }
  .top-search__field .icon { width: 20px; height: 20px; flex: none; }
  .top-search__field input {
    width: 100%; min-width: 0; min-height: 42px; padding: 0; border: 0; outline: 0;
    background: transparent; color: var(--ink); font-size: .95rem;
  }
  .top-search__field input::placeholder { color: #a08f78; }

  body:not([data-page="landing"]) .header-actions { display: contents; }
  body:not([data-page="landing"]) .header-hotline,
  body:not([data-page="landing"]) .header-account,
  body:not([data-page="landing"]) .header-cart { display: none; }
  body:not([data-page="landing"]) .header-location {
    grid-area: loc; justify-self: stretch; min-height: 30px; gap: 5px; padding: 0 2px;
    color: var(--forest-dark); font-size: .8rem; font-weight: 600; white-space: nowrap;
  }
  body:not([data-page="landing"]) .header-location .icon { width: 15px; height: 15px; color: var(--bronze); }
  body:not([data-page="landing"]) .loc-prefix { display: inline; flex: none; color: var(--muted); font-weight: 600; }
  body:not([data-page="landing"]) #header-region {
    display: block; min-width: 0; flex: 0 1 auto; overflow: hidden;
    font-size: .8rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis;
  }
  body:not([data-page="landing"]) .loc-chevron { display: block; width: 14px; height: 14px; flex: none; transform: rotate(-90deg); color: var(--muted); }

  /* ---------- Thanh dưới ---------- */
  body:not([data-page="landing"]) .tabbar {
    position: fixed; z-index: 7; right: 0; bottom: 0; left: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line); background: #fffdf9f2;
    backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: 0 -8px 24px -18px #3b2a1466;
  }
  .tabbar__item {
    position: relative; display: grid; place-content: center; justify-items: center; gap: 3px;
    padding: 6px 2px 4px; border: 0; background: none; color: var(--muted);
    font-size: .68rem; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: color 160ms;
  }
  .tabbar__item > span:last-child { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tabbar__item .icon { width: 24px; height: 24px; transition: transform 200ms var(--ease); }
  .tabbar__icon { position: relative; display: grid; width: 26px; height: 26px; place-items: center; }
  .tabbar__item.is-active { color: var(--forest); }
  .tabbar__item.is-active::before {
    position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--bronze-grad); content: "";
  }
  .tabbar__item.is-active .icon { transform: translateY(-1px); stroke-width: 2.1; }
  .tabbar__item:active .icon { transform: scale(.9); }
  .tabbar__badge {
    position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
    border: 2px solid #fffdf9; border-radius: 999px; background: #c0412b; color: #fff;
    font-size: .6rem; font-weight: 800; line-height: 14px; text-align: center;
  }
  .tabbar__avatar {
    display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%;
    background: var(--bronze-grad); color: #fff; font-size: .78rem; font-weight: 800;
  }
  [data-tab="ai"] .icon { color: var(--bronze); }

  /* Nút gọi, thông báo, chân trang nằm trên thanh dưới */
  body:not([data-page="landing"]) .call-fab { bottom: calc(var(--tabbar-h) + 12px); }
  body:not([data-page="landing"]) .toast { bottom: calc(var(--tabbar-h) + 76px); }
  body:not([data-page="landing"]) .site-footer { padding-bottom: calc(var(--tabbar-h) + 24px); }

  /* ---------- Trang các khu: 1 màn hình không cuộn (đã trừ 2 thanh) ---------- */
  body[data-page="zones"] .home-view .needs {
    height: calc(100svh - var(--header-height) - var(--tabbar-h));
    min-height: 470px;
    gap: 10px;
    padding-block: 12px 6px;
  }
  body[data-page="zones"] .zones-head .hero-search { display: none; }
  body[data-page="zones"] .zones-head .section-kicker { display: none; }
  body[data-page="zones"] .zones-head h1 { font-size: min(1.5rem, 6.2vw); }
  body[data-page="zones"] .home-view .advisor { min-height: calc(100svh - var(--header-height) - var(--tabbar-h)); }
  body[data-page="zones"] .scroll-more { min-height: 32px; }
}

@media (max-width: 730px) {
  /* Thanh trên cao hơn: cuộn tới mục nào cũng không bị che */
  :root:has(body:not([data-page="landing"])) { scroll-padding-top: 114px; }
}

/* =====================================================================
   Điện thoại: thanh trên gọn (không logo) — ô tìm kiếm + giỏ hàng bên phải
   ===================================================================== */
@media (max-width: 730px) {
  body:not([data-page="landing"]) { --header-height: 92px; }
  body:not([data-page="landing"]) .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search cart" "loc loc loc";
    column-gap: 8px;
    padding-block: 8px 4px;
  }
  body[data-page="zones"] .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "search cart" "loc loc";
  }
  body:not([data-page="landing"]) .brand { display: none; }
  body:not([data-page="landing"]) .aisle-back { width: 40px; height: 40px; min-height: 40px; }
  .top-search__field { min-height: 40px; padding: 0 12px; gap: 7px; }
  .top-search__field .icon { width: 18px; height: 18px; }
  .top-search__field input { min-height: 36px; font-size: .9rem; }

  body:not([data-page="landing"]) .header-cart {
    grid-area: cart; position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; min-height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--forest);
  }
  body:not([data-page="landing"]) .header-cart:active { background: var(--soft); }
  body:not([data-page="landing"]) .header-cart .icon { width: 26px; height: 26px; }
  body:not([data-page="landing"]) .header-cart__label { display: none; }
  body:not([data-page="landing"]) .header-cart .cart-count {
    position: absolute; top: 0; right: -2px; min-width: 18px; min-height: 18px; padding: 0 4px;
    border: 2px solid #fffaf2; background: #c0412b; color: #fff; font-size: .6rem; line-height: 14px;
  }
  /* Nút hotline nổi đã chuyển thành mục "Liên hệ" ở thanh dưới */
  body:not([data-page="landing"]) .call-fab { display: none; }
  :root:has(body:not([data-page="landing"])) { scroll-padding-top: 104px; }
}

/* =====================================================================
   Trang Liên hệ — gọn, nhẹ, rõ ràng
   Thang chữ: tiêu đề 1.45rem · mục .98rem · nhãn .8rem · ô nhập .92rem
   Khoảng cách: 4 · 8 · 12 · 16 · 24 · 32
   ===================================================================== */
.contact {
  display: grid; gap: 28px; width: min(640px, calc(100% - 32px));
  margin: 0 auto; padding: 28px 0 56px;
}
.contact [hidden] { display: none !important; }

.ct-head { display: grid; gap: 6px; }
.ct-head h1 { margin: 0; color: var(--forest-dark); font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.ct-head h1:focus { outline: none; }
.ct-head p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.ct-part { display: grid; gap: 12px; }
.ct-part__title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  color: var(--forest-dark); font-size: .98rem; font-weight: 800; white-space: nowrap;
}
.ct-part__num {
  display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%;
  background: var(--forest-dark); color: #fff; font-size: .72rem; font-weight: 800;
}

.ct-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--white);
  box-shadow: 0 1px 2px #3b2a140a, 0 12px 32px -24px #3b2a1440;
}

/* 1 · Liên hệ nhanh: danh sách 3 dòng */
.ct-quicklist { display: grid; overflow: hidden; }
.ct-quick {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px;
  border: 0; border-top: 1px solid #f1e9dc; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background 140ms;
}
.ct-quick:first-child { border-top: 0; }
.ct-quick:hover { background: #fcf8f2; }
.ct-quick:active { background: var(--soft); }
.ct-quick:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ct-quick__icon {
  display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px;
  background: var(--soft); color: var(--forest);
}
.ct-quick__icon .icon { width: 20px; height: 20px; }
.ct-zalo { color: #0068ff; font-size: .62rem; font-weight: 900; letter-spacing: .01em; }
.ct-quick__text { display: grid; min-width: 0; flex: 1; gap: 2px; }
.ct-quick__text b { color: var(--forest-dark); font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-quick__text small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-quick__chev { width: 16px; height: 16px; flex: none; color: #b9a58a; transform: rotate(-90deg); }

/* 2 · Mẫu gửi yêu cầu */
.ct-form { display: grid; gap: 18px; padding: 20px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 6px; min-width: 0; }
.ct-field > label, .ct-fieldset legend {
  display: flex; align-items: baseline; gap: 8px; padding: 0;
  color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.ct-fieldset { margin: 0; padding: 0; border: 0; }
.ct-fieldset legend { margin-bottom: 6px; }
.ct-optional { color: #9a8b76; font-size: .72rem; font-weight: 500; }

.ct-input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid #ddd0bc; border-radius: 12px; background: #fff;
  color: var(--ink); font: inherit; font-size: .92rem;
  transition: border-color 140ms, box-shadow 140ms;
}
.ct-input::placeholder { color: #b1a28c; }
.ct-input:hover { border-color: #cdb999; }
.ct-input:focus { border-color: var(--bronze); outline: 0; box-shadow: 0 0 0 3px #9b72472a; }
.ct-input[aria-invalid="true"] { border-color: #c0412b; box-shadow: 0 0 0 3px #c0412b1c; }
.ct-textarea { min-height: 84px; padding-block: 12px; line-height: 1.5; resize: vertical; }

.ct-select { position: relative; display: block; }
.ct-select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis; }
.ct-select::after {
  position: absolute; top: 50%; right: 16px; width: 7px; height: 7px; margin-top: -5px;
  border: solid #8a7258; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
  pointer-events: none; content: "";
}

/* Lựa chọn chủ đề: 2×2, nhẹ nhàng */
.ct-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-option { position: relative; display: grid; cursor: pointer; }
.ct-option input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ct-option__body {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px;
  border: 1px solid #ddd0bc; border-radius: 12px; background: #fff;
  color: var(--ink); font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: border-color 140ms, background 140ms, box-shadow 140ms;
}
.ct-option__body > span { overflow: hidden; text-overflow: ellipsis; }
.ct-option__body .icon { width: 18px; height: 18px; flex: none; color: #a8916f; transition: color 140ms; }
.ct-option:hover .ct-option__body { border-color: #cdb999; }
.ct-option input:checked + .ct-option__body {
  border-color: var(--bronze); background: #fbf5ec; color: var(--forest-dark);
  box-shadow: inset 0 0 0 1px var(--bronze);
}
.ct-option input:checked + .ct-option__body .icon { color: var(--bronze); }
.ct-option input:focus-visible + .ct-option__body { outline: 2px solid var(--focus); outline-offset: 2px; }

.ct-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdf0ec; color: #a63d29; font-size: .8rem; font-weight: 600; }
.ct-submit {
  display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center;
  border: 0; border-radius: 14px; background: var(--forest-dark); color: #fff;
  font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -12px #4a3019aa;
  transition: background 140ms, transform 120ms;
}
.ct-submit:hover { background: #5a3b20; }
.ct-submit:active { transform: scale(.985); }
.ct-submit:focus-visible { outline: 3px solid #9b724766; outline-offset: 2px; }
.ct-note { margin: -6px 0 0; color: #8a7b66; font-size: .72rem; line-height: 1.55; text-align: center; }

/* Đã gửi */
.ct-done { display: grid; justify-items: center; gap: 10px; padding: 28px 20px 20px; text-align: center; }
.ct-done .success-mark { width: 64px; height: 64px; }
.ct-done h2 { margin: 4px 0 0; color: var(--forest-dark); font-size: 1.15rem; }
.ct-done h2:focus { outline: none; }
.ct-done__lead { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.ct-summary { display: grid; width: 100%; margin: 6px 0 4px; padding: 2px 14px; border-radius: 12px; background: #faf6ef; text-align: left; }
.ct-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #efe5d6; }
.ct-summary div:first-child { border-top: 0; }
.ct-summary dt { color: var(--muted); font-size: .78rem; }
.ct-summary dd { margin: 0; color: var(--forest-dark); font-size: .8rem; font-weight: 700; text-align: right; }
.ct-done__actions { display: grid; width: 100%; gap: 6px; }
.ct-ghost {
  min-height: 44px; border: 0; background: none; color: var(--forest);
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
}
.ct-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__contact {
  display: inline-block; margin-top: 10px; color: var(--bronze); font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 730px) {
  .contact { width: calc(100% - 28px); gap: 24px; padding: 18px 0 calc(var(--tabbar-h, 0px) + 28px); }
  .ct-head h1 { font-size: 1.3rem; }
  .ct-form { gap: 16px; padding: 16px; }
  .ct-grid:not(.ct-grid--even) { grid-template-columns: 1fr; }
  .ct-grid--even { gap: 10px; }
}
@media (max-width: 360px) {
  .ct-quick { gap: 12px; padding-inline: 14px; }
  .ct-option__body { gap: 8px; padding: 0 10px; font-size: .8rem; }
  .ct-form { padding: 14px; }
}
.ct-option, .ct-option__body { min-width: 0; }
/* Ô tròn chọn ở bên phải mỗi dòng */
.ct-option__body::after {
  width: 18px; height: 18px; margin-left: auto; flex: none; border: 1.5px solid #cdbda5; border-radius: 50%;
  background: #fff; content: ""; transition: border-color 140ms, box-shadow 140ms;
}
.ct-option input:checked + .ct-option__body::after { border-color: var(--bronze); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--bronze); }
@media (max-width: 730px) {
  .ct-options { grid-template-columns: 1fr; gap: 6px; }
  .ct-option__body { min-height: 48px; font-size: .86rem; }
}
.ct-head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .ct-head p { font-size: .8rem; } }
body[data-page="contact"] .site-footer { display: none; }

/* Trang Tư vấn AI riêng (#tu-van-ai) */
.advisor-view .advisor { margin-top: 0; }
#advisor-title:focus { outline: none; }
.scroll-more .icon { transform: rotate(-90deg); animation: none; }
@media (max-width: 730px) {
  body[data-page="advisor"] .advisor-view .advisor {
    min-height: calc(100svh - var(--header-height) - var(--tabbar-h));
    margin-top: 0;
  }
}
body[data-page="advisor"] .site-footer { display: none; }
@media (max-width: 730px) { body[data-page="advisor"] main { padding-bottom: var(--tabbar-h); } }

/* =====================================================================
   Trang Giỏ hàng (#gio-hang) và Đơn đã mua (#don-hang)
   ===================================================================== */
.shop-page {
  display: grid; align-content: start; gap: 12px; width: min(720px, calc(100% - 32px));
  min-height: calc(100svh - var(--header-height)); margin: 0 auto; padding: 22px 0 40px;
}
.shop-page [hidden] { display: none !important; }
.shop-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-page__head h1 { margin: 0; color: var(--forest-dark); font-size: 1.35rem; font-weight: 800; }
.shop-page__head h1:focus { outline: none; }
.shop-page__head h1 span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.shop-page__link {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px;
  color: var(--forest); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.shop-page__link .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
#cart-page-body { display: grid; gap: 12px; }

.shop-card {
  display: grid; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px #3b2a140a, 0 10px 28px -24px #3b2a1440;
}
.shop-card__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #f1e9dc; color: var(--forest-dark); font-size: .86rem; }
.shop-badge {
  flex: none; padding: 2px 6px; border-radius: 4px; background: var(--forest-dark); color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .02em;
}

/* Địa chỉ */
.shop-address { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font: inherit; text-align: left; cursor: pointer; }
.shop-address:hover { border-color: #d9c6a6; }
.shop-address__icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--soft); color: var(--bronze); }
.shop-address__icon .icon { width: 18px; height: 18px; }
.shop-address__text { display: grid; gap: 2px; min-width: 0; }
.shop-address__text b { color: var(--forest-dark); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-address__text span { color: var(--muted); font-size: .76rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-address__change { color: var(--forest); font-size: .78rem; font-weight: 700; }

/* Dòng sản phẩm trong giỏ */
.shop-item { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid #f1e9dc; }
.shop-card__head + .shop-item { border-top: 0; }
.shop-item:last-child { padding-bottom: 2px; }
.shop-item__img, .order-item img {
  width: 80px; height: 80px; border: 1px solid #f0e7d9; border-radius: 10px; background: #faf7f2; object-fit: contain;
}
.shop-item__main { display: grid; align-content: start; gap: 2px; min-width: 0; padding-right: 28px; }
.shop-item__name, .order-item h3 {
  margin: 0; color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-item__meta { margin: 0; color: #8a7b66; font-size: .74rem; }
.shop-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.shop-item__price { color: var(--forest-dark); font-size: .92rem; }
.shop-item__remove {
  position: absolute; top: 10px; right: -6px; display: grid; width: 32px; height: 32px; place-items: center;
  border: 0; border-radius: 50%; background: none; color: #a8987f; cursor: pointer;
}
.shop-item__remove:hover { background: var(--soft); color: #a63d29; }
.shop-item__remove .icon { width: 16px; height: 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #ddd0bc; border-radius: 10px; overflow: hidden; }
.stepper button { display: grid; width: 34px; height: 32px; place-items: center; border: 0; background: #fff; color: var(--forest-dark); cursor: pointer; }
.stepper button:hover { background: var(--soft); }
.stepper button[aria-disabled="true"] { color: #cfc3b0; cursor: default; background: #fff; }
.stepper .icon { width: 14px; height: 14px; }
.stepper span { min-width: 34px; border-inline: 1px solid #ddd0bc; color: var(--ink); font-size: .84rem; font-weight: 700; line-height: 32px; text-align: center; }

/* Thanh toán */
.shop-pay { gap: 8px; }
.shop-pay div { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.shop-pay span { color: var(--muted); }
.shop-pay b { color: var(--ink); font-weight: 600; }
.shop-free { color: #2f7a4c !important; }
.shop-checkout {
  position: sticky; z-index: 3; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-inline: -4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: #fffdf9f5; backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -22px #3b2a1466;
}
.shop-checkout__sum { display: grid; }
.shop-checkout__sum span { color: var(--muted); font-size: .74rem; }
.shop-checkout__sum strong { color: #a63d29; font-size: 1.12rem; }

.shop-btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px;
  border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: .86rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 140ms, border-color 140ms, color 140ms;
}
.shop-btn--solid { background: var(--forest-dark); color: #fff; }
.shop-btn--solid:hover { background: #5a3b20; }
.shop-btn--line { min-height: 38px; border-color: var(--bronze); background: #fff; color: var(--forest); }
.shop-btn--line:hover { background: #fbf5ec; }
.shop-btn--ghost { min-height: 38px; border-color: #e2d6c3; background: #fff; color: var(--muted); }
.shop-btn--ghost:hover { border-color: #cdb999; color: var(--ink); }

.shop-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; text-align: center; }
.shop-empty__icon { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 4px; border-radius: 50%; background: var(--soft); color: var(--bronze); }
.shop-empty__icon .icon { width: 28px; height: 28px; }
.shop-empty h2 { margin: 0; color: var(--forest-dark); font-size: 1.02rem; }
.shop-empty p { margin: 0 0 8px; color: var(--muted); font-size: .82rem; }

/* Tab trạng thái đơn */
.order-tabs {
  position: sticky; z-index: 3; top: var(--header-height); display: flex; gap: 4px;
  margin-inline: -16px; padding: 0 12px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--canvas);
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tab {
  position: relative; display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 46px; padding: 0 10px;
  color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.order-tab:hover { color: var(--ink); }
.order-tab.is-active { color: var(--forest-dark); font-weight: 800; }
.order-tab.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2.5px; border-radius: 2px; background: var(--bronze); content: ""; }
.order-tab i {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c0412b; color: #fff;
  font-size: .62rem; font-style: normal; font-weight: 800; line-height: 18px; text-align: center;
}

.order-list { display: grid; gap: 12px; }
.order-card {
  display: grid; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px #3b2a140a, 0 10px 28px -24px #3b2a1440;
}
.order-card__head { display: flex; align-items: center; gap: 8px; color: var(--forest-dark); font-size: .86rem; }
.order-status { margin-left: auto; color: var(--bronze); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.order-status--da-giao { color: #2f7a4c; }
.order-status--da-huy, .order-status--tra-hang { color: #8a7b66; }
.order-card__code { margin: 4px 0 0; padding-bottom: 10px; border-bottom: 1px solid #f1e9dc; color: #9a8b76; font-size: .7rem; }
.order-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0 0; }
.order-item img { width: 72px; height: 72px; }
.order-item__main { display: grid; align-content: start; gap: 3px; min-width: 0; }
.order-item p { display: flex; justify-content: space-between; margin: 0; color: #8a7b66; font-size: .74rem; }
.order-item strong { justify-self: end; color: var(--ink); font-size: .86rem; font-weight: 600; }
.order-toggle {
  display: inline-flex; justify-self: center; align-items: center; gap: 4px; min-height: 36px; margin-top: 4px; padding: 0 10px;
  border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer;
}
.order-toggle .icon { width: 14px; height: 14px; transition: transform 160ms; }
.order-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.order-total { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f1e9dc; color: var(--ink); font-size: .8rem; text-align: right; }
.order-total strong { color: var(--forest-dark); font-size: .95rem; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.order-demo { margin: 4px 0 0; color: #9a8b76; font-size: .7rem; text-align: center; }

body[data-page="cart"] .site-footer, body[data-page="orders"] .site-footer { display: none; }

/* Hồ sơ: nút Đơn đã mua */
#profile-orders { display: flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 730px) {
  .shop-page { width: calc(100% - 24px); min-height: calc(100svh - var(--header-height) - var(--tabbar-h)); padding: 14px 0 calc(var(--tabbar-h) + 16px); }
  .shop-page__head h1 { font-size: 1.2rem; }
  .shop-card, .order-card { padding-inline: 14px; }
  .shop-checkout { bottom: calc(var(--tabbar-h) + 8px); }
  .order-tabs { margin-inline: -12px; top: var(--header-height); }
}
@media (max-width: 370px) {
  .shop-item { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .shop-item__img { width: 68px; height: 68px; }
  .shop-checkout .shop-btn { padding: 0 14px; }
}
.shop-item__price, .order-item strong, .shop-checkout__sum strong, .shop-pay b, .order-total strong { white-space: nowrap; }
.order-card__head b, .shop-card__head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card__head { gap: 6px; font-size: .8rem; } .order-status { font-size: .76rem; }

/* =====================================================================
   Giỏ hàng có tích chọn + Thanh toán (#thanh-toan)
   Chữ gọn hơn: thân .78rem (≈14px), tiêu đề thẻ .84rem, tổng tiền .98rem
   ===================================================================== */
.shop-page { gap: 10px; }
.shop-page__head h1 { font-size: 1.12rem; }
.shop-page__head h1 span { font-size: .78rem; }
#cart-page-body, #checkout-body { display: grid; gap: 10px; }
.shop-card { padding: 12px 14px; border-radius: 14px; }
.shop-card__head { gap: 8px; padding-bottom: 8px; font-size: .8rem; }
.shop-item { grid-template-columns: auto 72px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; }
.shop-item__img { width: 72px; height: 72px; }
.shop-item__name { font-size: .8rem; }
.shop-item__meta { font-size: .7rem; }
.shop-item__row { margin-top: 6px; }
.shop-item.is-off .shop-item__img, .shop-item.is-off .shop-item__main { opacity: .55; }
.stepper button { width: 30px; height: 28px; }
.stepper span { min-width: 30px; font-size: .78rem; line-height: 28px; }

/* Ô tích tròn */
.shop-check { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer; font-size: .78rem; color: var(--ink); }
.shop-item > .shop-check { align-self: center; }
.shop-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shop-check span {
  display: grid; width: 20px; height: 20px; place-items: center; border: 1.5px solid #cdbda5; border-radius: 6px; background: #fff;
  transition: background 140ms, border-color 140ms;
}
.shop-check input:checked + span { border-color: var(--forest-dark); background: var(--forest-dark); }
.shop-check input:checked + span::after { width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); content: ""; }
.shop-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Giá: giá gốc gạch ngang + giá bán */
.shop-price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.shop-price s { color: #a8987f; font-size: .7rem; }
.shop-price b { color: #a63d29; font-size: .86rem; font-weight: 700; }

.shop-hint { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 4px; color: var(--muted); font-size: .72rem; }
.shop-hint .icon { width: 15px; height: 15px; color: #2f7a4c; }

/* Thanh dưới (giỏ + thanh toán) */
.shop-bar {
  position: sticky; z-index: 3; bottom: 0; display: flex; align-items: center; gap: 10px;
  margin-inline: -4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: #fffdf9f7; backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -22px #3b2a1466;
}
.shop-bar__all { flex: none; }
.shop-bar__sum { display: grid; flex: 1; justify-items: end; min-width: 0; text-align: right; }
.shop-bar__sum span { color: var(--ink); font-size: .76rem; white-space: nowrap; }
.shop-bar__sum strong { color: #a63d29; font-size: .98rem; }
.shop-bar__sum small { color: #a63d29; font-size: .68rem; white-space: nowrap; }
.shop-bar .shop-btn { min-height: 42px; padding: 0 16px; font-size: .82rem; }
.shop-btn[aria-disabled="true"] { opacity: .45; cursor: default; }

/* Địa chỉ */
.shop-address { grid-template-columns: auto minmax(0, 1fr) auto; }
.shop-address__text b { font-size: .8rem; }
.shop-address__text b em { margin-left: 4px; color: var(--muted); font-style: normal; font-weight: 500; }
.shop-address__text span { font-size: .72rem; }
.shop-chev { width: 16px; height: 16px; color: #b9a58a; transform: rotate(-90deg); }

/* Thanh toán: sản phẩm */
.co-card { gap: 0; }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1e9dc; }
.co-item img { width: 64px; height: 64px; border: 1px solid #f0e7d9; border-radius: 10px; background: #faf7f2; object-fit: contain; }
.co-item__main { display: grid; align-content: start; gap: 2px; min-width: 0; }
.co-item h3 { margin: 0; color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item p { margin: 0; color: #8a7b66; font-size: .7rem; }
.co-item__row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.co-qty { color: var(--muted); font-size: .74rem; }

.co-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid #f1e9dc; font-size: .78rem; color: var(--ink); }
.co-row:last-child { border-bottom: 0; }
.co-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0; border: 0; background: none; color: #9a8b76; font: inherit; font-size: .76rem; cursor: pointer; }
.co-chev { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform 160ms; }
.co-link[aria-expanded="true"] .co-chev { transform: rotate(0deg); }
.co-tag { padding: 2px 8px; border: 1px dashed #c0412b; border-radius: 6px; color: #a63d29; font-style: normal; font-weight: 700; font-size: .72rem; }
.co-row--note label { flex: none; }
.co-row--note input {
  flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; background: none; outline: 0;
  color: var(--ink); font: inherit; font-size: .76rem; text-align: right;
}
.co-row--note input::placeholder { color: #a8987f; }

/* Mã giảm giá */
.co-voucher { display: grid; gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid #f1e9dc; }
.co-code { display: flex; gap: 8px; }
.co-code .ct-input { min-height: 40px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.co-code .ct-input::placeholder { text-transform: none; letter-spacing: 0; }
.co-code .shop-btn { min-height: 40px; padding: 0 14px; font-size: .78rem; }
.co-msg { margin: 0; font-size: .72rem; }
.co-msg:empty { display: none; }
.co-msg.is-error { color: #a63d29; }
.co-vlist { display: grid; gap: 6px; }
.co-vou {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px 8px 8px;
  border: 1px solid #ecdcc4; border-radius: 10px; background: #fffaf2; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.co-vou.is-on { border-color: #c0412b; background: #fff5f1; }
.co-vou[aria-disabled="true"] { opacity: .5; cursor: default; }
.co-vou__l { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; background: #c0412b; color: #fff; }
.co-vou__l .icon { width: 18px; height: 18px; }
.co-vou__t { display: grid; gap: 1px; min-width: 0; }
.co-vou__t b { color: var(--ink); font-size: .78rem; }
.co-vou__t small { color: var(--muted); font-size: .68rem; }
.co-vou__t code { color: #a63d29; font-family: inherit; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.co-vou__r { color: #a63d29; font-size: .72rem; font-weight: 700; }

/* Vận chuyển */
.co-title { margin: 0 0 10px; color: var(--forest-dark); font-size: .84rem; font-weight: 800; }
.co-ship {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 10px 12px;
  border: 1px solid #e2d6c3; border-radius: 10px; cursor: pointer;
}
.co-ship.is-on { border-color: #2f7a4c; background: #f3faf5; }
.co-ship.is-on::before {
  position: absolute; top: -1px; left: -1px; width: 0; height: 0; border-top: 18px solid #2f7a4c; border-right: 18px solid transparent;
  border-top-left-radius: 10px; content: "";
}
.co-ship input { position: absolute; opacity: 0; }
.co-ship__main { display: grid; gap: 2px; }
.co-ship__main b { display: inline-flex; align-items: center; gap: 6px; color: #2f7a4c; font-size: .8rem; }
.co-ship__main b .icon { width: 16px; height: 16px; }
.co-ship__main small { color: var(--muted); font-size: .72rem; }
.co-ship__fee { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: .78rem; white-space: nowrap; }
.co-ship__fee s { color: #a8987f; font-size: .7rem; }
.co-ship__fee em { color: #2f7a4c; font-style: normal; font-weight: 700; }
.co-ship input:focus-visible ~ .co-ship__main { outline: 2px solid var(--focus); outline-offset: 2px; }
.co-sub { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.co-sub .icon { width: 14px; height: 14px; color: #2f7a4c; }

/* Thanh toán */
.co-pay { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid #f1e9dc; cursor: pointer; }
.co-title + .co-pay { border-top: 0; }
.co-pay__icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: var(--soft); color: var(--forest); }
.co-pay__icon .icon { width: 17px; height: 17px; }
.co-pay__main { display: grid; flex: 1; gap: 1px; min-width: 0; }
.co-pay__main b { color: var(--ink); font-size: .8rem; font-weight: 600; }
.co-pay__main small { color: var(--muted); font-size: .7rem; }
.co-pay input { position: absolute; opacity: 0; }
.co-pay i { width: 20px; height: 20px; flex: none; border: 1.5px solid #cdbda5; border-radius: 50%; }
.co-pay input:checked + i { border-color: #a63d29; background: #a63d29; box-shadow: inset 0 0 0 4px #fff; }
.co-pay input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Chi tiết thanh toán */
.co-detail { gap: 7px; }
.co-detail .co-title { margin-bottom: 2px; }
.co-detail div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .76rem; }
.co-detail div b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.co-detail .co-minus { color: #a63d29; }
.co-detail__total { margin-top: 4px; padding-top: 9px; border-top: 1px solid #f1e9dc; }
.co-detail__total span { color: var(--ink); font-size: .8rem; font-weight: 700; }
.co-detail__total b { color: #a63d29 !important; font-size: .92rem; font-weight: 800 !important; }
.co-legal { margin: 0; padding: 0 6px; color: #9a8b76; font-size: .68rem; line-height: 1.5; text-align: center; }

body[data-page="checkout"] .site-footer { display: none; }

@media (max-width: 730px) {
  .shop-bar { bottom: calc(var(--tabbar-h) + 8px); }
}
@media (max-width: 370px) {
  .shop-item { grid-template-columns: auto 60px minmax(0, 1fr); }
  .shop-item__img { width: 60px; height: 60px; }
  .shop-bar .shop-btn { padding: 0 12px; }
}
.co-ship__main b { white-space: nowrap; } .co-ship__main { min-width: 0; }

/* =====================================================================
   Điện thoại: Giỏ hàng / Thanh toán / Đơn đã mua — đầu trang chỉ còn
   nút quay lại + tên trang (bỏ ô tìm kiếm, địa chỉ, giỏ hàng)
   ===================================================================== */
.header-title { display: none; }
@media (max-width: 730px) {
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) { --header-height: 56px; }
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) .site-header__inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "brand title .";
    align-items: center;
    min-height: 56px;
    padding-block: 6px;
  }
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) :is(.top-search, .header-location, .header-cart) { display: none; }
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) .header-title {
    display: block; grid-area: title; margin: 0; overflow: hidden;
    color: var(--forest-dark); font-size: 1.05rem; font-weight: 800; text-align: center;
    white-space: nowrap; text-overflow: ellipsis;
  }
  /* Tên trang đã lên đầu: ẩn tiêu đề lặp lại trong trang */
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) .shop-page__head h1 {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"]) .shop-page__head { justify-content: flex-end; min-height: 0; }
  :root:has(body:is([data-page="cart"], [data-page="checkout"], [data-page="orders"])) { scroll-padding-top: 68px; }
}

/* Chống tràn ngang: phần tử trong lưới được co lại, thanh dưới xếp 2 dòng */
.shop-page > *, #cart-page-body > *, #checkout-body > *, .order-list > * { min-width: 0; }
.shop-bar { gap: 8px; }
.shop-bar__sum { gap: 0; line-height: 1.25; }
.shop-bar__sum span { color: var(--muted); font-size: .68rem; }
.shop-bar__sum strong { display: block; font-size: .95rem; white-space: nowrap; }
.shop-bar__all { gap: 6px; font-size: .74rem; }
@media (max-width: 380px) {
  .shop-bar { padding: 8px 10px; }
  .shop-bar__sum strong { font-size: .86rem; }
  .shop-bar .shop-btn { padding: 0 12px; font-size: .78rem; }
}
/* Thanh dưới: tổng tiền bên trái, nút bên phải */
.shop-bar__sum { justify-items: start; text-align: left; overflow: hidden; }
.shop-bar__sum strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.shop-bar .shop-btn { flex: none; }
.shop-item__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-ship__fee { display: grid; justify-items: end; gap: 0; flex: none; line-height: 1.3; } .co-ship__main b { overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Hộp chọn voucher — trượt từ dưới lên (điện thoại), giữa màn (máy tính)
   ===================================================================== */
.voucher-sheet {
  width: min(480px, calc(100% - 32px)); max-width: none; max-height: min(640px, 86dvh); margin: auto; padding: 0;
  overflow: hidden; border: 0; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px -30px #1e140a99;
}
.voucher-sheet[open] { display: flex; flex-direction: column; animation: vs-in 260ms var(--ease); }
.voucher-sheet::backdrop { background: #1e140a66; animation: vs-fade 200ms ease; }
@keyframes vs-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes vs-fade { from { opacity: 0; } }

.voucher-sheet__head { position: relative; display: grid; place-items: center; min-height: 54px; padding: 0 52px; border-bottom: 1px solid #f1e9dc; }
.voucher-sheet__head h2 { margin: 0; color: var(--forest-dark); font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voucher-sheet__close {
  position: absolute; top: 50%; right: 8px; display: grid; width: 40px; height: 40px; place-items: center; transform: translateY(-50%);
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.voucher-sheet__close:hover { background: var(--soft); }
.voucher-sheet__close .icon { width: 20px; height: 20px; }

.voucher-sheet__form { display: flex; margin: 14px 16px 0; border: 1px solid #ddd0bc; border-radius: 10px; overflow: hidden; }
.voucher-sheet__form:focus-within { border-color: var(--bronze); box-shadow: 0 0 0 3px #9b72472a; }
.voucher-sheet__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: 0; background: #fff;
  color: var(--ink); font: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
}
.voucher-sheet__form input::placeholder { color: #a8987f; text-transform: none; letter-spacing: 0; }
.voucher-sheet__form button {
  flex: none; padding: 0 16px; border: 0; border-left: 1px solid #ddd0bc; background: var(--forest-dark); color: #fff;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.voucher-sheet__form button:disabled { background: #e9e1d4; color: #a8987f; cursor: default; }
.voucher-sheet__msg { margin: 6px 16px 0; font-size: .72rem; }
.voucher-sheet__msg:empty { display: none; }
.voucher-sheet__msg.is-error { color: #a63d29; }
.voucher-sheet__msg.is-ok { color: #2f7a4c; }

.voucher-sheet__body { display: grid; align-content: start; gap: 10px; flex: 1; min-height: 220px; padding: 14px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }

/* Vé voucher */
.ticket {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; align-items: stretch;
  min-height: 92px; padding: 0; border: 1px solid #eadcc6; border-radius: 10px; background: #fffaf3;
  color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color 140ms, box-shadow 140ms;
}
.ticket:hover { border-color: #d6bd97; }
.ticket.is-on { border-color: #a63d29; box-shadow: inset 0 0 0 1px #a63d29; }
.ticket[aria-disabled="true"] { cursor: default; }
.ticket[aria-disabled="true"] .ticket__stub { background: #cfc3b0; }
.ticket[aria-disabled="true"] .ticket__body b, .ticket[aria-disabled="true"] .ticket__body small { color: #a8987f; }
.ticket__stub {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 4px;
  background: linear-gradient(160deg, #b9553c, #8f2f1f); color: #fff;
}
.ticket__stub::after {
  position: absolute; top: 0; right: -4px; bottom: 0; width: 8px; content: "";
  background: radial-gradient(circle at 4px 6px, #fffaf3 3px, transparent 3.5px) 0 0 / 8px 12px repeat-y;
}
.ticket__stub .icon { width: 22px; height: 22px; }
.ticket__stub b { font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.ticket__body { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 10px 6px 10px 14px; }
.ticket__body b { color: var(--ink); font-size: .84rem; font-weight: 700; }
.ticket__body small { color: var(--muted); font-size: .7rem; }
.ticket__body em { color: #a63d29; font-size: .68rem; font-style: normal; font-weight: 600; }
.ticket[aria-disabled="true"] .ticket__body em { color: #8a7b66; }
.ticket__body code { margin-top: 2px; color: #9a8b76; font-family: inherit; font-size: .64rem; letter-spacing: .04em; }
.ticket__radio { align-self: center; justify-self: center; width: 20px; height: 20px; border: 1.5px solid #cdbda5; border-radius: 50%; background: #fff; }
.ticket.is-on .ticket__radio { border-color: #a63d29; background: #a63d29; box-shadow: inset 0 0 0 4px #fff; }
.ticket[aria-disabled="true"] .ticket__radio { background: #f1ebe1; }
.ticket:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.voucher-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 12px; text-align: center; }
.voucher-empty svg { width: 120px; height: 90px; fill: none; stroke: #cdbda5; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.voucher-empty h3 { margin: 8px 0 0; color: var(--ink); font-size: .9rem; }
.voucher-empty p { margin: 0; color: var(--muted); font-size: .76rem; }

.voucher-sheet__foot {
  display: grid; gap: 8px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #f1e9dc; background: #fff;
}
.voucher-sheet__foot p { margin: 0; color: var(--muted); font-size: .74rem; text-align: center; }
.voucher-sheet__foot p b { color: #a63d29; }
.voucher-sheet__foot .shop-btn { width: 100%; min-height: 48px; font-size: .9rem; }

@media (max-width: 730px) {
  .voucher-sheet {
    width: 100%; max-height: 82dvh; margin: auto 0 0; border-radius: 20px 20px 0 0;
  }
  .voucher-sheet[open] { animation: vs-up 300ms var(--ease); }
  @keyframes vs-up { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .voucher-sheet[open], .voucher-sheet::backdrop { animation: none; }
}

/* =====================================================================
   Trang Tài khoản (#tai-khoan)
   ===================================================================== */
.profile-page { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 40px; }
#profile-body { display: grid; gap: 12px; }
#profile-title:focus { outline: none; }

.pf-hero {
  display: grid; gap: 14px; padding: 20px 18px 16px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, #b48a5c 0%, #8a5c30 48%, #5a3b1f 100%); color: #fff;
  box-shadow: 0 18px 40px -26px #3b2a14aa;
}
.pf-hero__top { display: flex; align-items: center; gap: 12px; }
.pf-avatar {
  display: grid; width: 60px; height: 60px; flex: none; place-items: center; border: 2.5px solid #ffffffcc; border-radius: 50%;
  background: #fff3; color: #fff; font-size: 1.45rem; font-weight: 800; backdrop-filter: blur(4px);
}
.pf-avatar--guest .icon { width: 28px; height: 28px; }
.pf-who { display: grid; flex: 1; gap: 4px; min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-name b { overflow: hidden; font-size: 1.02rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.pf-who p { margin: 0; color: #ffffffd0; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tier {
  flex: none; padding: 2px 9px; border-radius: 999px; background: #fff; color: #6e4a2a;
  font-size: .64rem; font-weight: 800; letter-spacing: .02em;
}
.pf-tier--silver { background: linear-gradient(135deg, #f3f3f3, #c9ccd1); color: #3d4248; }
.pf-tier--gold { background: linear-gradient(135deg, #fde7a8, #e2b04a); color: #5a3b0a; }
.pf-tier--diamond { background: linear-gradient(135deg, #e3f3ff, #9fc9ec); color: #1c3c5a; }
.pf-auth { display: flex; gap: 8px; }
.pf-auth__btn {
  min-height: 34px; padding: 0 14px; border: 1px solid #ffffffb3; border-radius: 999px; background: transparent; color: #fff;
  font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer;
}
.pf-auth__btn--solid { border-color: #fff; background: #fff; color: #6e4a2a; }
.pf-hero__icons { display: flex; flex: none; align-self: flex-start; gap: 2px; }
.pf-icon { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; }
.pf-icon:hover { background: #ffffff1f; }
.pf-icon .icon { width: 24px; height: 24px; }
.pf-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px;
  background: #c0412b; color: #fff; font-size: .58rem; font-style: normal; font-weight: 800; line-height: 14px; text-align: center;
}
.pf-hero .pf-badge { border-color: #8a5c30; }

.pf-save {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 0; overflow: hidden;
  border-radius: 12px; background: #fffaf2; color: var(--ink); text-decoration: none;
}
.pf-save__tag {
  display: grid; align-self: stretch; place-items: center; padding: 0 12px;
  background: linear-gradient(135deg, #f6d48a, #d9a441); color: #5a3b0a; font-size: .66rem; font-weight: 900; letter-spacing: .12em;
}
.pf-save__text { flex: 1; min-width: 0; overflow: hidden; font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; }
.pf-save__text b { color: #a63d29; }
.pf-chev { width: 15px; height: 15px; flex: none; color: #b9a58a; transform: rotate(-90deg); }

.pf-card {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px #3b2a140a, 0 10px 28px -24px #3b2a1440;
}
.pf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-card__head h2 { margin: 0; color: var(--forest-dark); font-size: .92rem; font-weight: 800; }
.pf-card__head a { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: .74rem; text-decoration: none; }
.pf-statuses { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.pf-status { display: grid; justify-items: center; gap: 8px; padding: 4px 2px; color: var(--ink); font-size: .72rem; text-align: center; text-decoration: none; }
.pf-status:hover { color: var(--forest); }
.pf-status__icon { position: relative; display: grid; width: 30px; height: 30px; place-items: center; color: var(--forest-dark); }
.pf-status__icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.pf-status .pf-badge { top: -6px; right: -12px; }
.pf-status > span:last-child { white-space: nowrap; }

.pf-list { display: grid; padding-block: 4px; }
.pf-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0;
  border: 0; border-top: 1px solid #f1e9dc; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.pf-row:first-child { border-top: 0; }
.pf-row__icon { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; background: var(--soft); color: var(--forest); }
.pf-row__icon .icon { width: 17px; height: 17px; }
.pf-row__label { flex: none; font-size: .82rem; }
.pf-row__value { flex: 1; min-width: 0; overflow: hidden; color: #9a8b76; font-size: .74rem; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.pf-row:hover .pf-row__label { color: var(--forest); }
.pf-logout {
  min-height: 48px; border: 0; border-top: 1px solid #f1e9dc; background: none; color: #a63d29;
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.pf-note { margin: 0; color: #9a8b76; font-size: .68rem; text-align: center; }

body[data-page="profile"] .site-footer { display: none; }

@media (max-width: 730px) {
  /* Điện thoại: phần đầu màu đồng thay cho thanh trên */
  body[data-page="profile"] { --header-height: 0px; }
  body[data-page="profile"] .site-header { display: none; }
  .profile-page { width: 100%; padding: 0 0 calc(var(--tabbar-h) + 18px); }
  #profile-body { gap: 10px; }
  #profile-body > :not(.pf-hero) { margin-inline: 12px; }
  .pf-hero { padding: calc(18px + env(safe-area-inset-top)) 16px 14px; border-radius: 0 0 22px 22px; }
  .pf-avatar { width: 56px; height: 56px; font-size: 1.3rem; }
}
@media (max-width: 370px) {
  .pf-status { font-size: .66rem; }
  .pf-row__label { font-size: .78rem; }
}
.pf-auth__btn { white-space: nowrap; }
.pf-statuses { margin-inline: -10px; }
.pf-status { font-size: .66rem; letter-spacing: -.01em; }
.pf-who p { display: flex; align-items: center; gap: 8px; }
.pf-hero__icons { align-self: center; }

/* =====================================================================
   Trang Tài khoản v2: phần đầu tràn hết bề ngang, trang rộng toàn màn
   ===================================================================== */
.profile-page { width: 100%; padding: 0 0 40px; }
#profile-body { gap: 12px; }
#profile-body > :not(.pf-hero) { margin-inline: var(--page-gutter); }
.pf-hero {
  gap: 12px; padding: 18px var(--page-gutter) 14px; border-radius: 0;
  background: linear-gradient(135deg, #b8875a 0%, #96633a 55%, #7a4d28 100%);
  box-shadow: none;
}
.pf-hero__top { align-items: center; gap: 12px; }
.pf-avatar { width: 58px; height: 58px; border: 2px solid #fff; background: #ffffff2e; }
.pf-who { gap: 6px; }
.pf-name { gap: 10px; }
.pf-name b { font-size: 1.05rem; }
.pf-tier {
  display: inline-flex; align-items: center; gap: 1px; min-height: 22px; padding: 0 6px 0 10px;
  border: 0; border-radius: 999px; font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer;
}
.pf-tier__chev { width: 12px; height: 12px; transform: rotate(-90deg); }
.pf-tier--basic { background: #fff3e2; color: #6e4a2a; }
.pf-who p { gap: 18px; color: #ffffffe0; font-size: .76rem; }
.pf-who p b { color: #fff; font-weight: 800; }
.pf-hero__icons { gap: 0; }
.pf-icon { width: 42px; height: 42px; }
.pf-icon .icon { width: 25px; height: 25px; }
.pf-hero .pf-badge { top: 1px; right: -2px; border-color: #fff; background: #c0412b; }
.pf-save { min-height: 42px; border-radius: 10px; background: #fff8ec; box-shadow: 0 4px 14px -10px #3b2a1466; }
.pf-save__tag {
  position: relative; padding: 0 14px 0 12px; background: linear-gradient(135deg, #f8dc95, #d9a441);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.pf-save__text { font-size: .78rem; }

@media (min-width: 731px) {
  .pf-hero { padding-block: 26px 18px; }
  .pf-avatar { width: 68px; height: 68px; font-size: 1.6rem; }
  .pf-name b { font-size: 1.2rem; }
  .pf-statuses { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 730px) {
  .pf-hero { padding: calc(16px + env(safe-area-inset-top)) 14px 12px; border-radius: 0; }
  #profile-body > :not(.pf-hero) { margin-inline: 12px; }
}
.pf-icon { border: 0; background: none; padding: 0; cursor: pointer; }
.pf-name b { flex: 0 1 auto; min-width: 0; }
.pf-tier { flex: none; }
@media (max-width: 730px) {
  .pf-icon { width: 36px; height: 36px; }
  .pf-icon .icon { width: 23px; height: 23px; }
  .pf-avatar { width: 54px; height: 54px; }
  .pf-name { gap: 8px; }
  .pf-name b { font-size: .98rem; }
  .pf-who p { gap: 12px; font-size: .72rem; }
  .pf-save__text { font-size: .72rem; }
}
/* Trang Tài khoản: bỏ khung giới hạn bề rộng, tràn hết 2 bên */
body[data-page="profile"] main.page-width { width: 100%; max-width: none; margin-inline: 0; padding-inline: 0; }

/* Tài khoản: phần đầu tràn sát 2 mép màn hình, bo tròn góc dưới (theo tỉ lệ màn, không cố định px) */
body[data-page="profile"] main.page-width { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.profile-page, #profile-body { width: 100%; max-width: 100%; }
.pf-hero { width: 100%; box-sizing: border-box; border-radius: 0 0 clamp(16px, 6vw, 32px) clamp(16px, 6vw, 32px); }
#profile-body > :not(.pf-hero) { margin-inline: 3.5%; }
@media (max-width: 730px) {
  .pf-hero { padding-inline: 4%; border-radius: 0 0 6vw 6vw; }
  #profile-body > :not(.pf-hero) { margin-inline: 3%; }
}

/* Điện thoại: trang Tư vấn AI — đầu trang gọn (nút quay lại + tên trang), phần giới thiệu căn giữa */
@media (max-width: 730px) {
  body[data-page="advisor"] { --header-height: 56px; }
  body[data-page="advisor"] .site-header__inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "brand title .";
    align-items: center; min-height: 56px; padding-block: 6px;
  }
  body[data-page="advisor"] :is(.top-search, .header-location, .header-cart) { display: none; }
  body[data-page="advisor"] .header-title {
    display: block; grid-area: title; margin: 0; overflow: hidden;
    color: var(--forest-dark); font-size: 1.05rem; font-weight: 800; text-align: center;
    white-space: nowrap; text-overflow: ellipsis;
  }
  body[data-page="advisor"] .advisor__intro { text-align: center; justify-items: center; }
  body[data-page="advisor"] .advisor__intro .section-kicker { justify-content: center; }
  body[data-page="advisor"] .advisor__intro h2 { text-align: center; }
}
