/* ============================================================
   AusBioLabs — concept storefront (style study)
   Black + gold "premium supplement e-commerce" visual language
   Reference palette extracted from the live site's theme CSS.
   ============================================================ */

:root {
  --gold: #D99A08;
  --gold-light: #d8bb72;
  --blue: #2F5DD4;
  --star: #EABE12;

  --title: #242424;
  --title-soft: #333333;
  --body: #767676;
  --line: #ececec;

  --dark: #111111;
  --dark-2: #0a0a0a;
  --white: #ffffff;
  --bg-tint: #faf7f0;

  --radius: 8px;
  --radius-btn: 35px;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "DM Sans", var(--font-body);
  --font-display: "Outfit", var(--font-head);
  --font-serif: Georgia, "Times New Roman", serif;

  --container: 1222px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--title); margin: 0; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px);
}
.container--narrow { max-width: 820px; }

/* ---------------- placeholder "blank photo" ---------------- */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  background:
    linear-gradient(135deg, #f2f2f2 0%, #e9e9e9 50%, #f4f4f4 100%);
  border: 1px dashed #cfcfcf;
  border-radius: var(--radius);
  color: #b7b7b7;
  text-align: center;
  overflow: hidden;
}
.ph svg { width: 34px; height: 34px; opacity: 0.7; }
.ph span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a8a8a8; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall   { aspect-ratio: 4 / 5; }
.ph--wide   { aspect-ratio: 4 / 3; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  padding: 0.72em 1.6em; border-radius: var(--radius-btn);
  border: 1.5px solid transparent; cursor: pointer; text-transform: capitalize;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--outline { background: transparent; color: var(--title); border-color: var(--title); }
.btn--outline:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--lg { padding: 0.9em 2.1em; font-size: 1rem; }
.btn--sm { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------------- header ---------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,0.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }

.logo {
  display: inline-flex; align-items: baseline; gap: 0.35em; flex-shrink: 0;
  font-family: var(--font-display), "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em;
  color: var(--dark); white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.logo em { font-style: normal; color: var(--gold); }
.logo--footer { color: #fff; }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.menu a { font-size: 0.95rem; font-weight: 500; color: var(--title-soft); position: relative; padding: 0.35em 0; }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width 0.28s var(--ease);
}
.menu a:hover, .menu a.is-active { color: var(--gold); }
.menu a:hover::after, .menu a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: none; border-radius: 50%; color: var(--title); cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: #f4f4f4; }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #fff; font-size: 0.68rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.3em;
  height: 42px; padding: 0 0.85em; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; color: var(--title-soft); letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle__opt { opacity: 0.45; transition: opacity 0.2s, color 0.2s; }
.lang-toggle__opt.is-active { opacity: 1; color: var(--gold); }
.lang-toggle__sep { opacity: 0.35; }

.header__cta { margin-left: 0.4rem; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; background: transparent; border: none; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #1a1a1a 0%, var(--dark-2) 60%, #050505 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 45% at 75% 30%, rgba(217,154,8,0.22), transparent 70%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__brand {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  letter-spacing: 0.2em; color: var(--gold-light); margin: 0 0 1.2rem; text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 1.1rem;
}
.hero__title span { display: block; }
.hero__title em {
  display: block; font-style: normal; font-size: 0.5em; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-light); margin-top: 0.45em;
}
.hero__sub { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 34em; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.hero__rating { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hero__rating-num { color: #fff; font-weight: 600; }
.hero__rating-txt { color: rgba(255,255,255,0.6); }

.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
.badge {
  position: absolute; right: -12px; bottom: -12px;
  width: clamp(110px, 14vw, 148px); aspect-ratio: 1; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(217,154,8,0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em;
}
.badge__num { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); font-weight: 700; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.badge__label { font-size: 0.62rem; letter-spacing: 0.28em; color: var(--gold-light); text-transform: uppercase; }

/* ---------------- sections ---------------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { text-align: center; }
.section__kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.7rem;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
.section__lead { color: var(--body); max-width: 36em; }
.section__more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------------- search & filter ---------------- */
.shop-tools { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
.search-input {
  width: 100%; max-width: 460px; margin-inline: auto;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--title);
  padding: 0.75em 1.1em; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fbfbfb; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,154,8,0.15); }
.letter-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.letter-btn {
  min-width: 38px; padding: 0.45em 0.85em; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--title-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.letter-btn:hover { border-color: var(--gold); color: var(--gold); }
.letter-btn.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.products__empty { grid-column: 1 / -1; text-align: center; color: #a9a9a9; font-size: 1rem; padding: 3rem 0; }

/* ---------------- products ---------------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.product:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(0,0,0,0.35); border-color: rgba(217,154,8,0.4); }
.product:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.product__media { position: relative; }
.product__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product__add {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none;
  font-size: 1.4rem; line-height: 1; font-weight: 700;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.45);
  transition: background 0.2s, transform 0.2s;
}
.product__add:hover { background: #000; transform: scale(1.1); }
.product__tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35em 0.8em; border-radius: 999px;
}
.product__tag--alt { background: #000; }
.product__body { padding: 1rem 1.1rem 1.2rem; }
.product__cat { margin: 0 0 0.3rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a9a9a9; }
.product__name { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.25rem; }
.product__specs { display: grid; gap: 0.3rem; margin: 0.25rem 0 0.6rem; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.85rem; }
.spec-row__spec { color: #a9a9a9; }
.spec-row__price { color: var(--title); font-weight: 700; white-space: nowrap; }
.product__view { display: block; text-align: center; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--gold); }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.price { color: var(--title); font-weight: 700; font-size: 1.05rem; }

/* ---------------- stars ---------------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }
.stars--sm { font-size: 0.85rem; letter-spacing: 1.5px; }

/* ---------------- marquee ---------------- */
.marquee { background: var(--gold); color: #fff; overflow: hidden; padding: 0.9rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; white-space: nowrap; }
.marquee__group span { font-weight: 600; letter-spacing: 0.1em; font-size: 0.9rem; }
.marquee__group i { font-style: normal; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- why us ---------------- */
.grid-why { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-why__media .ph { border-radius: 16px; }
.grid-why__copy > p:not(.section__kicker) { margin: 1.2rem 0 1.8rem; color: var(--body); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list li > span { flex: none; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 0.9rem; padding-top: 0.15em; }
.feature-list div { display: flex; flex-direction: column; }
.feature-list strong { color: var(--title); font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 0.15em; }
.feature-list div { color: var(--body); font-size: 0.94rem; }

/* ---------------- reviews carousel ---------------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 1.4rem; transition: transform 0.45s var(--ease); }
.review {
  flex: 0 0 calc(33.333% - 1rem); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem;
}
.review__quote { margin: 0; color: #2b2b2b; font-size: 1rem; line-height: 1.7; flex: 1; }
.review__name { margin: 0; color: var(--body); font-weight: 600; font-size: 0.9rem; }
.carousel__controls { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--title); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel__btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------------- accordion ---------------- */
.accordion { display: grid; gap: 0.8rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acc-item__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: transparent; border: none; cursor: pointer; text-align: left;
  padding: 1.1rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--title);
}
.acc-item__icon { flex: none; font-size: 1.4rem; font-weight: 400; color: var(--gold); transition: transform 0.3s var(--ease); }
.acc-item.is-open .acc-item__icon { transform: rotate(45deg); }
.acc-item__body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.acc-item__body p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--body); }

/* ---------------- contact ---------------- */
.grid-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; color: var(--title-soft); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 50px -34px rgba(0,0,0,0.35); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--title); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--title);
  padding: 0.8em 1em; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: #fbfbfb; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,154,8,0.15); }
.form__note { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--gold); min-height: 1.2em; }

/* ---------------- footer ---------------- */
.footer { background: var(--dark-2); color: #9a9a9a; padding: clamp(48px, 7vw, 72px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.6rem; }
.footer__brand p { margin: 1rem 0 0; max-width: 24em; font-size: 0.94rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer__col a { font-size: 0.92rem; color: #9a9a9a; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.4rem 0; font-size: 0.84rem;
}

/* ---------------- product modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 22, 30, 0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal__dialog { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; padding: 1.6rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5); }
.modal__close { position: absolute; top: 0.7rem; right: 0.7rem; width: 36px; height: 36px; border-radius: 50%; border: none; background: #f2f2f2; color: var(--title); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: var(--gold); color: #fff; }
.modal__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #f2f2f2; }
.modal__name { font-family: var(--font-head); font-size: 1.35rem; color: var(--title); margin: 1rem 0 0.3rem; }
.modal__heading { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a9a9a9; margin: 1rem 0 0.6rem; }
.form-mode { display: flex; gap: 0.4rem; margin: 0.9rem 0 0.4rem; }
.form-mode__opt {
  flex: 1; padding: 0.55em 0.4em; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--title-soft); font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; white-space: nowrap;
}
.form-mode__opt.is-active { border-color: var(--gold); color: var(--gold); background: rgba(217,154,8,0.08); }
.form-mode__opt.is-disabled:not(.is-active) { opacity: 0.4; cursor: not-allowed; }
.modal__specs { display: grid; gap: 0.55rem; }
.spec-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color 0.2s, background 0.2s; }
.spec-option:hover { border-color: var(--gold-light); }
.spec-option.is-selected { border-color: var(--gold); background: rgba(217,154,8,0.08); }
.spec-option input { accent-color: var(--gold); width: 16px; height: 16px; flex: none; cursor: pointer; }
.spec-option__spec { flex: 1; font-size: 0.9rem; color: var(--title); }
.spec-option__price { font-size: 0.98rem; font-weight: 700; color: var(--title); white-space: nowrap; }
.modal__add { margin-top: 1.1rem; }

/* ---------------- toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120; background: var(--dark); color: #fff; padding: 0.7rem 1.4rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- cart modal ---------------- */
.cart__items { display: grid; gap: 0.75rem; margin: 0.8rem 0 1.2rem; max-height: 46vh; overflow-y: auto; }
.cart__empty { text-align: center; color: #a9a9a9; font-size: 0.95rem; margin: 0; padding: 1.5rem 0; }
.cart-item { display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem; border: 1px solid var(--line); border-radius: 12px; }
.cart-item__img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; background: #f2f2f2; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { margin: 0; font-weight: 600; color: var(--title); font-size: 0.92rem; }
.cart-item__spec { margin: 0.15rem 0 0; font-size: 0.8rem; color: #a9a9a9; }
.cart-item__qty { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--gold); font-weight: 600; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.cart-item__price { font-weight: 700; color: var(--title); }
.cart-item__remove { border: none; background: transparent; color: #bbb; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.cart-item__remove:hover { color: #d33; }
.cart__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cart__total { display: flex; flex-direction: column; font-size: 0.82rem; color: #a9a9a9; text-transform: uppercase; letter-spacing: 0.06em; }
.cart__total b { font-size: 1.25rem; color: var(--title); }
.cart__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

/* ---------------- whatsapp modal ---------------- */
.modal__dialog--wa { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wa-modal__icon { width: 52px; height: 52px; color: #25d366; flex: none; }
.wa-modal__sub { margin: 0.5rem 0 0; color: var(--body); }
.wa-modal__number { margin: 0.5rem 0 1.1rem; font-family: var(--font-head); font-weight: 600; color: var(--title); }
.wa-modal__qr { width: 210px; height: 210px; object-fit: contain; border-radius: 12px; background: #f2f2f2; padding: 12px; box-sizing: border-box; }

/* ---------------- COA reports ---------------- */
.modal__dialog--coa { max-width: 920px; }
.coa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; max-height: 70vh; overflow-y: auto; padding: 0.4rem 0 0; }
.coa-search {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--title);
  padding: 0.7em 1.1em; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fbfbfb; margin: 0.8rem 0 0.6rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.coa-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,154,8,0.15); }
.coa-grid__empty { text-align: center; color: #a9a9a9; font-size: 0.95rem; padding: 2rem 0; }
.coa-item { margin: 0; cursor: pointer; }
.coa-thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f2f2f2; transition: transform 0.2s var(--ease), border-color 0.2s; }
.coa-item:hover .coa-thumb { transform: translateY(-2px); border-color: var(--gold); }
.coa-item__name { margin: 0.3rem 0 0; font-size: 0.72rem; color: var(--body); word-break: break-all; line-height: 1.3; }

.lightbox { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox__close:hover { background: rgba(255,255,255,0.3); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review { flex-basis: calc(50% - 1rem); }
}

@media (max-width: 820px) {
  /* 手机端把顶部导航行往下推一点，避免被状态栏/刘海遮挡显示不全 */
  .header { --header-offset: max(10px, env(safe-area-inset-top)); padding-top: var(--header-offset); }
  .menu {
    position: fixed; inset: calc(72px + var(--header-offset)) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0.6rem clamp(20px, 4vw, 32px) 1.2rem;
    gap: 0; transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .menu.is-open { transform: translateY(0); }
  .menu a { padding: 0.9em 0; border-bottom: 1px solid #f2f2f2; }
  .header__cta { display: none; }
  .header__actions .icon-btn:not(.icon-btn--cart) { display: none; }
  .burger { display: flex; }
  .header__inner { gap: 0.6rem; flex-wrap: nowrap; }
  .logo { font-size: 16px; line-height: 1.4; align-items: center; flex-shrink: 1; min-width: 0; overflow: visible; } /* 手机端：行高1.4+垂直居中防止上下裁切；极窄屏允许收缩、不遮挡右侧按钮，防止左右被裁 */
  .logo__en { display: none; } /* 手机端只显示“天成科技”，避免与右侧按钮拥挤/溢出 */

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; }
  .grid-why, .grid-contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header__inner { gap: 0.5rem; }
  /* 560px 以下品牌字号保持 16px，不再缩小 */
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__body { padding: 0.8rem; }
  .review { flex-basis: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   移动端统一重构（≤768px）
   集中覆盖：彻底隐藏 PC 专用元素、稳定导航高度、分离弹窗/灯箱按钮
   放文件末尾，用 !important 覆盖前面 820px / 560px 的零散规则
   ============================================================ */
@media (max-width: 768px) {
  /* ---- 1. 彻底隐藏 PC 专用元素，不留占位 ---- */
  #searchBtn,
  .header__cta {
    display: none !important;
  }

  /* ---- 2. 顶部导航：品牌靠左，右侧 语言→购物车→汉堡 且高度稳定 ---- */
  .header__inner {
    min-height: 60px;
    height: auto;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
  }

  /* 手机端：禁止首屏滚动浮现的“透明占位”，让 hero 文字/按钮立即可见；
     消除顶部看似“有隐藏内容”的透明残影 */
  .reveal { opacity: 1 !important; transform: none !important; }

  /* 手机端：汉堡抽屉菜单收起时必须彻底移出屏幕顶部，
     否则 translateY(-120%) 会残留一条菜单文字在顶部（看似“隐藏/看不清的文字”） */
  .menu {
    transform: translateY(-100vh) !important;
    visibility: hidden; /* 收起时彻底不渲染内容，杜绝任何顶部残影 */
    pointer-events: none;
  }
  .menu.is-open {
    transform: translateY(0) !important;
    visibility: visible;
    pointer-events: auto;
  }
  /* 抽屉里的“联系 WhatsApp 订购”入口：金色高亮 + 绿色圆点，视觉上作为订购主入口 */
  .menu a.menu__wa {
    color: var(--gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
  .menu a.menu__wa::before {
    content: ""; width: 8px; height: 8px; flex: none;
    background: #25d366; border-radius: 50%;
  }

  .logo {
    font-size: 16px;
    line-height: 1.4;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
  }
  .logo__en { display: none !important; } /* 手机端只显示“天成科技” */
  .header__actions { gap: 0.2rem; }
  .cart-count { left: auto; right: -2px; } /* 购物车角标贴图标右上，不与语言按钮碰撞 */

  /* ---- 3. 弹窗：关闭按钮固定在右上，触控区 ≥44px ---- */
  .modal__dialog { padding: 1.1rem; }
  .modal__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 44px;
    height: 44px;
    z-index: 3;
  }
  /* WhatsApp 二维码：手机端放大为完整 1:1 正方形，便于扫码 */
  .wa-modal__qr {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    margin-top: 0.8rem;
  }

  /* 购物车底部：窄屏下总计与按钮分组换行，避免拥挤 */
  .cart__foot { flex-wrap: wrap; row-gap: 0.6rem; }
  .cart__actions { flex-wrap: wrap; }

  /* ---- 4. COA 灯箱：图片在视口中垂直水平居中（超高时可滚动），关闭按钮醒目易点 ---- */
  .lightbox { justify-content: center; overflow-y: auto; padding: 0.6rem; overscroll-behavior: contain; }
  .lightbox__img { max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); margin: auto; }
  .lightbox__close {
    top: 0.6rem; right: 0.6rem; width: 48px; height: 48px; z-index: 5;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.8rem; font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  }
  .lightbox__close:hover { background: var(--gold); border-color: var(--gold); }
  .lightbox__nav { top: auto; bottom: 0.8rem; transform: none; width: 44px; height: 44px; z-index: 5; }
  .lightbox__nav--prev { left: 0.9rem; }
  .lightbox__nav--next { right: 0.9rem; }
}

