/* ==========================================================================
   Teh Asli Hub — storefront stylesheet
   Design tokens mirrored from the original storefront theme
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8f8;
  --c-bg-dark: #14161a;

  --c-heading: #1c1f23;
  --c-body: #6f7173;
  --c-body-strong: #4a4d50;

  --c-border: #e6e8ea;
  --c-border-strong: #d5d5d5;

  --c-btn: #1d1f23;
  --c-btn-hover: #45484b;
  --c-btn-fg: #ffffff;

  --c-highlight: #e91e63;
  --c-green: #4a7a3b;
  --c-green-soft: #eef4ea;
  --c-gold: #c8a227;
  --c-gold-soft: #fdf8ea;

  --font: "Lexend", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.14);

  --container: 1280px;
  --header-h: 68px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--c-heading);
  margin: 0;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--c-btn);
  outline-offset: 2px;
}

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

/* ---------- Form submission ----------
   蜜罐字段移出视口而不是 display:none —— 部分脚本会跳过 display:none 的输入框。 */
.hp-field {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 提交结果提示：成功 / 失败共用，靠修饰类区分颜色 */
.form-status {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-body);
}

.form-status:empty {
  margin: 0;
}

.form-status--center {
  text-align: center;
  margin-top: 10px;
}

.form-status--ok {
  color: var(--c-green);
}

.form-status--err {
  color: #c0392b;
}

/* 服务端判定不合格的字段 */
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #c0392b;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 920px;
}

.section {
  padding: 76px 0;
}

.section--soft {
  background: var(--c-bg-soft);
}

.section--tight {
  padding: 52px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--c-body);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 12px;
}

.text-center {
  text-align: center;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.12s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-btn);
  color: var(--c-btn-fg);
  border-color: var(--c-btn);
}

.btn--primary:hover {
  background: var(--c-btn-hover);
  border-color: var(--c-btn-hover);
}

.btn--outline {
  background: transparent;
  color: var(--c-heading);
  border-color: var(--c-border-strong);
}

.btn--outline:hover {
  background: var(--c-heading);
  color: #fff;
  border-color: var(--c-heading);
}

.btn--light {
  background: #fff;
  color: var(--c-heading);
  border-color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.86);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 38px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 5. Announcement bar ---------- */
.announce {
  background: var(--c-bg-dark);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}

.announce strong {
  font-weight: 600;
}

.announce-sep {
  opacity: 0.4;
  margin: 0 10px;
}

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav a {
  font-size: 14px;
  color: var(--c-heading);
  position: relative;
  padding: 6px 0;
  transition: opacity 0.2s;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--c-heading);
  transform: scaleX(0);
  transition: transform 0.24s ease;
}

.header__nav a:hover::after,
.header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  color: var(--c-heading);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--c-bg-soft);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-highlight);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-green), #2f5c25);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-heading);
}

.brand__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green);
}

.nav-toggle {
  display: none;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: #0f1114;
  overflow: hidden;
}

.hero__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide {
  min-width: 100%;
  position: relative;
  min-height: min(74vh, 620px);
  display: grid;
  align-items: center;
}

.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide--contain img {
  object-fit: contain;
  object-position: right center;
  background: #0c0d10;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 8, 10, 0.9) 0%,
    rgba(6, 8, 10, 0.72) 38%,
    rgba(6, 8, 10, 0.15) 66%,
    rgba(6, 8, 10, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: #fff;
  padding: 60px 0;
}

/* Hero 品牌防伪警示条 */
.brand-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid rgba(233, 30, 99, 0.28);
  border-left: 4px solid var(--c-highlight);
  border-radius: var(--radius-sm);
  background: rgba(233, 30, 99, 0.06);
  color: #b00039;
}

.brand-alert svg {
  flex: none;
  margin-top: 2px;
}

.brand-alert__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-alert p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
}

/* 第二行（马来文）收一档，形成主次层次 */
.brand-alert p + p {
  font-size: 12.5px;
  font-weight: 500;
  color: #c2185b;
}

.brand-alert b {
  font-weight: 800;
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-gold);
  border: 1px solid rgba(200, 162, 39, 0.45);
  background: rgba(200, 162, 39, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero__title {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero__title em {
  font-style: normal;
  color: var(--c-gold);
}

.hero__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__stat b {
  display: block;
  font-size: 26px;
  color: var(--c-gold);
  font-weight: 700;
  line-height: 1.2;
}

.hero__stat span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.24s;
}

.hero__dot.is-active {
  background: #fff;
  width: 26px;
  border-radius: 5px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero__arrow--prev {
  left: 20px;
}

.hero__arrow--next {
  right: 20px;
}

/* Light hero variant (split layout) */
.hero--light {
  background: linear-gradient(180deg, #f7f8f8 0%, #ffffff 100%);
  overflow: visible;
}

.hero--light .hero__tag {
  color: var(--c-green);
  border-color: #d3e3c9;
  background: var(--c-green-soft);
}

.hero--light .hero__stats {
  border-top-color: var(--c-border);
}

.hero--light .hero__stat b {
  color: var(--c-green);
}

.hero--light .hero__stat span {
  color: var(--c-body);
}

/* ---------- 8. Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.trust__item {
  background: #fff;
  padding: 30px 22px;
  text-align: center;
}

.trust__item svg {
  width: 30px;
  height: 30px;
  color: var(--c-heading);
  margin-bottom: 12px;
}

.trust__item h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.trust__item p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 9. Product card ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.pcard {
  display: flex;
  flex-direction: column;
}

.pcard__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcard:hover .pcard__media img {
  transform: scale(1.045);
}

.pcard__quick {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.28s ease;
}

.pcard:hover .pcard__quick {
  opacity: 1;
  transform: translateY(0);
}

.pcard__title {
  font-size: 15px;
  margin-bottom: 6px;
}

.pcard__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pcard__foot {
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.badge-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--c-highlight);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  z-index: 2;
  letter-spacing: 0.02em;
}

.badge-flag--green {
  background: var(--c-green);
}

.badge-flag--gold {
  background: var(--c-gold);
  color: #2b2205;
}

/* ---------- 10. Price ---------- */
.price {
  font-weight: 600;
  color: var(--c-heading);
  font-size: 16px;
}

.price--lg {
  font-size: 26px;
  letter-spacing: -0.01em;
}

.price-compare {
  color: #a7a9ab;
  text-decoration: line-through;
  font-size: 14px;
}

.price-off {
  color: var(--c-highlight);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(233, 30, 99, 0.09);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

[hidden] {
  display: none !important;
}

/* ---------- 10b. Pack / bundle selector ---------- */
.packs__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 11px;
}

.packs {
  display: grid;
  gap: 17px;
  margin-bottom: 20px;
}

.pack {
  position: relative;
  display: block;
  cursor: pointer;
}

.pack input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pack__box {
  position: relative;
  display: block;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 18px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.pack:hover .pack__box {
  border-color: #9fa2a5;
}

.pack input:checked + .pack__box {
  border-color: var(--c-heading);
  background: #fcfcfd;
  box-shadow: inset 0 0 0 1px var(--c-heading);
}

.pack input:focus-visible + .pack__box {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.pack__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.pack__top b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-heading);
}

.pack__top em {
  font-style: normal;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c-heading);
}

.pack__unit {
  display: block;
  font-size: 12.5px;
  color: var(--c-body);
  margin-top: 3px;
}

.pack__flag {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--c-highlight);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.pack__flag--green {
  background: var(--c-green);
}

.pdp__unit {
  font-size: 13px;
  color: var(--c-heading);
  margin-bottom: 4px;
}

.pdp__save {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-green);
  margin-bottom: 16px;
}

.pdp__save:empty {
  margin-bottom: 0;
}

/* pack cell in a pcard foot */
.pcard__note {
  display: block;
  font-size: 12.5px;
  color: var(--c-body);
  margin-top: 4px;
}

.pcard__tiers {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.pcard__tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13.5px;
}

.pcard__tier b {
  font-weight: 600;
  color: var(--c-heading);
}

.pcard__tier span {
  color: var(--c-body);
  font-size: 12.5px;
}

.pcard__tier em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-heading);
}

.pcard__tier--best {
  border-color: var(--c-green);
  background: var(--c-green-soft);
}

/* on narrow screens the tier note drops to its own line */
@media (max-width: 600px) {
  .pcard__tier {
    flex-wrap: wrap;
    row-gap: 3px;
  }

  .pcard__tier b {
    flex: 1 1 auto;
  }

  .pcard__tier em {
    flex: 0 0 auto;
  }

  .pcard__tier span {
    flex: 1 1 100%;
    order: 3;
  }
}

/* pack switch on a cart line */
.line__pack {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.line__pack label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7a9ab;
}

.line__pack select {
  font-family: inherit;
  font-size: 13px;
  color: var(--c-heading);
  padding: 7px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.line__pack select:focus {
  outline: none;
  border-color: var(--c-heading);
}

.line__unit {
  font-size: 12.5px;
  color: var(--c-body);
}

/* ---------- 11. Feature / benefit cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: box-shadow 0.28s, transform 0.28s;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--c-green-soft);
  color: var(--c-green);
  margin-bottom: 18px;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.feature p {
  font-size: 14px;
  margin: 0;
}

/* ---------- 12. Story / split media ---------- */
.split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.split h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 16px;
}

.split p {
  font-size: 15px;
}

.check-list {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  color: var(--c-body-strong);
}

.check-list svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--c-green);
  margin-top: 3px;
}

/* ---------- 13. Detail gallery (long images) ---------- */
.detail-grid {
  columns: 2;
  column-gap: 26px;
}

.detail-grid img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 26px;
  break-inside: avoid;
  border: 1px solid var(--c-border);
}

.detail-strip {
  display: grid;
  gap: 0;
}

.detail-strip img {
  width: 100%;
}

/* ---------- 14. Spec table ---------- */
.spec {
  border-top: 1px solid var(--c-border);
}

.spec__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}

.spec__row dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.spec__row dd {
  margin: 0;
  font-size: 14px;
}

/* ---------- 15. Reviews ---------- */
.review {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 14px;
}

.review p {
  font-size: 14px;
  margin: 0;
  flex: 1;
}

.review__who {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--c-heading);
  font-weight: 500;
}

.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-green-soft);
  color: var(--c-green);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}

.review__meta {
  font-size: 12px;
  color: #a7a9ab;
  font-weight: 400;
}

/* ---------- 16. Newsletter ---------- */
.newsletter {
  background: var(--c-bg-dark);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}

.newsletter h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 26px;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter__form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter__form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- 17. Footer ----------
   ⚠️ 当前未使用：页脚已从 6 个页面的 HTML 中整块移除（2026-10-08）。
   样式刻意保留，若要恢复页脚，把删掉的 <footer class="footer">…</footer>
   粘回各页 </main> 之后即可，无需改 CSS。 */
.footer {
  background: #0f1114;
  color: #9a9c9e;
  padding: 60px 0 0;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__tag {
  color: var(--c-gold);
}

.footer__about p {
  margin: 16px 0 0;
  max-width: 300px;
  font-size: 13.5px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer__pay {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer__pay span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 4px 9px;
  color: #d3d5d6;
}

/* ---------- 17b. 页面底部安全留白（原页脚位置）----------
   页脚移除后，页面底部原本由 footer 撑开的空间没有了，最后一个区块会直接
   贴到视口底边；而右下角固定的 WhatsApp 悬浮按钮（桌面 58px 高 + 22px 边距
   ≈ 占满底部 80px，手机 56px + 15px ≈ 71px）会压住末尾的可点元素造成误触。

   做法：加在「最后一个区块自己」的底部内边距上，而不是 main 上 ——
   这样新区块自身的背景色会把留白一起覆盖，不会在深色区块下方露出一条浅色带。 */
main > section:last-of-type {
  padding-bottom: 100px;
}

@media (max-width: 640px) {
  main > section:last-of-type {
    padding-bottom: 104px;
  }
}

/* ---------- 18. Breadcrumb ---------- */
.crumbs {
  padding: 20px 0 0;
  font-size: 13px;
  color: #a7a9ab;
}

.crumbs a:hover {
  color: var(--c-heading);
}

.crumbs span {
  margin: 0 8px;
  opacity: 0.6;
}

/* ---------- 19. Product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  padding: 34px 0 20px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.gallery__thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gallery__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 1;
  background: var(--c-bg-soft);
  transition: border-color 0.2s;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb.is-active {
  border-color: var(--c-heading);
}

.gallery__main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

.gallery__main img {
  width: 100%;
  height: auto;
}

.pdp__title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.pdp__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}

.pdp__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.pdp__viewers {
  font-size: 13px;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
}

.pdp__viewers::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.pdp__desc {
  font-size: 14.5px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 22px;
}

.pdp__stock {
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp__stock b {
  color: var(--c-heading);
}

.stockbar {
  flex: 1;
  max-width: 180px;
  height: 5px;
  border-radius: 3px;
  background: var(--c-border);
  overflow: hidden;
}

.stockbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-green), #7fb069);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 52px;
}

.qty button {
  width: 48px;
  height: 100%;
  font-size: 18px;
  color: var(--c-heading);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.qty button:hover {
  background: var(--c-bg-soft);
}

.qty input {
  width: 54px;
  height: 100%;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-heading);
  background: transparent;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp__buy {
  display: flex;
  gap: 12px;
  margin: 22px 0 10px;
  flex-wrap: wrap;
}

.pdp__buy .qty {
  flex: none;
}

.pdp__buy .btn {
  flex: 1;
  min-width: 160px;
}

.pdp__badges {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--c-border);
}

.pdp__badge {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.pdp__badge svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--c-heading);
  margin-top: 2px;
}

.pdp__badge b {
  display: block;
  font-size: 13.5px;
  color: var(--c-heading);
  font-weight: 600;
}

.pdp__badge span {
  font-size: 12.5px;
}

/* ---------- 20. Accordion ---------- */
.acc {
  border-top: 1px solid var(--c-border);
  margin-top: 26px;
}

.acc__item {
  border-bottom: 1px solid var(--c-border);
}

.acc__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-heading);
  text-align: left;
}

.acc__head svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.28s;
  color: var(--c-body);
}

.acc__item.is-open .acc__head svg {
  transform: rotate(180deg);
}

.acc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.acc__body-inner {
  padding: 0 0 20px;
  font-size: 14px;
}

.acc__body-inner ul {
  display: grid;
  gap: 8px;
  list-style: disc;
  padding-left: 20px;
}

/* ---------- 21. Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 16, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 90;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
}

.drawer__head h3 {
  font-size: 16px;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer__foot {
  border-top: 1px solid var(--c-border);
  padding: 20px 24px 24px;
}

.drawer__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.drawer__row--total {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-heading);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--c-border);
  margin-bottom: 16px;
}

.drawer__note {
  font-size: 12.5px;
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- 22. Line items ---------- */
.line {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}

.line__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--c-border);
}

.line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 4px;
}

.line__meta {
  font-size: 12.5px;
  margin-bottom: 10px;
}

.line__remove {
  font-size: 12.5px;
  text-decoration: underline;
  color: #a7a9ab;
  text-underline-offset: 3px;
}

.line__remove:hover {
  color: var(--c-highlight);
}

.line__right {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-heading);
}

.qty--sm {
  height: 38px;
}

.qty--sm button {
  width: 34px;
  font-size: 15px;
}

.qty--sm input {
  width: 40px;
  font-size: 13.5px;
}

.empty {
  text-align: center;
  padding: 34px 0;
}

.empty svg {
  width: 44px;
  height: 44px;
  color: var(--c-border-strong);
  margin: 0 auto 14px;
}

.empty p {
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---------- 23. Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.cart-table__head {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7a9ab;
}

.cart-table .line {
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  padding: 22px 0;
  margin: 0;
}

.summary {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.summary h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 9px 0;
}

.summary__row--total {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-heading);
  border-top: 1px solid var(--c-border);
  margin-top: 12px;
  padding-top: 18px;
}

.promo {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.promo input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13.5px;
  background: #fff;
  color: var(--c-heading);
}

.promo input:focus {
  outline: none;
  border-color: var(--c-heading);
}

.promo .btn {
  padding: 12px 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--c-heading);
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-heading);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa0a6;
}

/* 州未选时城市下拉不可用 */
.field select:disabled {
  background: var(--c-bg-soft);
  color: #9aa0a6;
  cursor: not-allowed;
}

/* ---------- 24. Page hero ---------- */
.page-hero {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- 25. Notice ---------- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--c-gold-soft);
  border: 1px solid #eddfb5;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13.5px;
  color: #6b551a;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--c-gold);
  margin-top: 2px;
}

.notice--green {
  background: var(--c-green-soft);
  border-color: #d3e3c9;
  color: #35592a;
}

.notice--green svg {
  color: var(--c-green);
}

/* ---------- 26. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 24px);
  background: var(--c-btn);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- 27. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gallery {
    position: static;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .summary {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .header__nav {
    display: none;
    position: fixed;
    inset: 0 0 0 0;
    top: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 80px 32px 40px;
    z-index: 70;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav a {
    font-size: 20px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 54px 0;
  }

  .container {
    padding: 0 18px;
  }

  .hero__slide {
    min-height: 560px;
  }

  .hero__slide--contain img {
    object-position: center bottom;
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(6, 8, 10, 0.82) 0%,
      rgba(6, 8, 10, 0.6) 45%,
      rgba(6, 8, 10, 0.75) 100%
    );
  }

  .hero__arrow {
    display: none;
  }

  .hero__stats {
    gap: 24px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    max-height: none;
    order: 2;
  }

  .brand__tag {
    display: none;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .cart-table__head {
    display: none;
  }

  .cart-table .line {
    grid-template-columns: 80px 1fr;
  }

  .cart-table .line__right {
    grid-column: 2;
    text-align: left;
    margin-top: 8px;
  }
}

/* ---------- 27. WhatsApp floating chat button ---------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  /* 低于购物车遮罩(90)与 toast(200)：抽屉打开时会被自动盖住，不会打架 */
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px 0 15px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 26px rgba(11, 82, 43, 0.3);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.15),
    background 0.2s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.wa-fab.is-in {
  opacity: 1;
  transform: none;
}

.wa-fab:hover,
.wa-fab:focus-visible {
  background: #1ebe5b;
  box-shadow: 0 13px 34px rgba(11, 82, 43, 0.42);
  transform: translateY(-2px);
}

.wa-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.wa-fab__icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}

.wa-fab__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 呼吸光环：轻轻向外扩散，提示「这里可以点」 */
.wa-fab__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: wa-ring 2.8s ease-out infinite;
}

@keyframes wa-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* 手机：只留圆形图标，少占地方 */
@media (max-width: 640px) {
  .wa-fab {
    right: 15px;
    bottom: 15px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .wa-fab__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: opacity 0.01s linear;
    transform: none;
  }

  .wa-fab__ring {
    animation: none;
  }
}

@media print {
  .wa-fab {
    display: none;
  }
}
