/* ==========================================================================
   CETIG Outdoor — H5 mobile stylesheet
   Mobile-first app experience. Same identity as desktop:
   dark editorial theme, orange accent, Archivo/Inter type.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e12;
  --panel: #121217;
  --card: #16161c;
  --card-2: #1c1c23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --txt: #f4f4f5;
  --txt-2: #a5a5ae;
  --txt-3: #6e6e78;
  --accent: #ff6a1a;
  --accent-2: #ff8c42;
  --accent-deep: #e85d10;
  --accent-soft: rgba(255, 106, 26, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --font-head: "Archivo", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --appbar-h: 56px;
  --tabbar-h: 62px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #050507;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.45em; letter-spacing: -0.01em; }
p { margin: 0 0 0.9em; }
::selection { background: var(--accent); color: #fff; }

/* ---------- App shell ---------- */
.h5-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 560px;
  margin-inline: auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* ---------- App bar ---------- */
.h5-appbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: calc(var(--appbar-h) + var(--sat));
  padding: var(--sat) 14px 0;
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.h5-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.h5-brand-star { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.h5-brand-name { font-family: var(--font-head); font-weight: 900; font-size: 16px; letter-spacing: 0.02em; display: inline-flex; align-items: baseline; gap: 5px; }
.h5-brand-name em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.34em; color: var(--txt-2); }
.h5-appbar-actions { display: flex; align-items: center; gap: 8px; }

.h5-lang { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.h5-lang-btn { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--txt-2); transition: color .2s, background .2s; min-height: 26px; }
.h5-lang-btn.is-active { background: var(--accent); color: #fff; }

.h5-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--txt);
  transition: transform .15s, background .2s;
}
.h5-iconbtn:active { transform: scale(0.92); background: var(--card); }
.h5-iconbtn svg { width: 19px; height: 19px; }
.h5-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--bg);
}
.h5-cart-count[data-empty="1"] { display: none; }

/* ---------- Main / views ---------- */
.h5-main { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.h5-main::-webkit-scrollbar { display: none; }
.h5-view { display: none; }
.h5-view.is-active { display: block; animation: viewIn .32s cubic-bezier(.22,.8,.32,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

.h5-view-head { padding: 26px 18px 6px; }
.h5-view-title { font-size: 27px; font-weight: 900; margin-bottom: 6px; }
.h5-view-sub { color: var(--txt-2); font-size: 13.5px; margin: 0; }

.h5-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Hero ---------- */
.h5-hero { position: relative; min-height: 78dvh; display: flex; align-items: flex-end; overflow: hidden; }
.h5-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.h5-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,.34) 0%, rgba(5,5,8,.1) 34%, rgba(5,5,8,.88) 78%, var(--bg) 100%); }
.h5-hero-copy { position: relative; padding: 30px 20px calc(26px + var(--sab)); width: 100%; }
.h5-hero-title { font-size: clamp(34px, 10.5vw, 46px); font-weight: 900; margin-bottom: 12px; text-wrap: balance; }
.h5-hero-sub { color: var(--txt-2); font-size: 14.5px; max-width: 34ch; }
.h5-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }

.h5-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.h5-chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Buttons ---------- */
.h5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform .15s, filter .2s, background .2s;
  text-align: center;
}
.h5-btn:active { transform: scale(0.96); }
.h5-btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 11px; }
.h5-btn-block { width: 100%; }
.h5-btn-accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; box-shadow: 0 10px 26px rgba(255, 106, 26, 0.32); }
.h5-btn-accent:active { filter: brightness(1.08); }
.h5-btn-ghost { background: var(--card-2); color: var(--txt); border: 1px solid var(--line-2); }
.h5-btn-quiet { background: transparent; color: var(--txt-2); border: 1px solid var(--line); }

.h5-link { color: var(--accent); font-size: 12.5px; font-weight: 700; padding: 8px 2px; min-height: 34px; }
.h5-link:active { opacity: .7; }

/* ---------- Marquee ---------- */
.h5-marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 9px 0; }
.h5-marquee-track { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: h5Marquee 26s linear infinite; will-change: transform; }
.h5-marquee-track span { font-family: var(--font-head); font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; color: var(--txt-2); }
.h5-marquee-track i { color: var(--accent); font-style: normal; font-size: 7px; }
@keyframes h5Marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.h5-section { padding: 26px 0 6px; }
.h5-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 18px 14px; }
.h5-section-title { font-size: 21px; font-weight: 900; margin: 0; }

/* ---------- Horizontal scroll rails ---------- */
.h5-hscroll {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 18px 10px;
}
.h5-hscroll::-webkit-scrollbar { display: none; }
.h5-hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Product card (big) ---------- */
.h5-pcard {
  width: 272px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.h5-pcard:active { transform: scale(0.98); border-color: var(--line-2); }
.h5-pcard-media { position: relative; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.h5-pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.h5-pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 106, 26, 0.45);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h5-pcard-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.92);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 106, 26, 0.4);
  transition: transform .15s;
}
.h5-pcard-play:active { transform: scale(0.88); }
.h5-pcard-play svg { width: 19px; height: 19px; margin-left: 2px; }
.h5-pcard-body { padding: 14px 15px 15px; }
.h5-pcard-name { font-size: 15.5px; font-weight: 800; margin: 0 0 3px; }
.h5-pcard-tag { color: var(--txt-2); font-size: 12.5px; margin: 0 0 10px; }
.h5-pcard-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 13px; }
.price-now { font-family: var(--font-head); font-size: 18px; font-weight: 900; color: var(--accent); }
.price-was { font-size: 12.5px; color: var(--txt-3); text-decoration: line-through; }
.h5-pcard-actions { display: flex; gap: 9px; }
.h5-pcard-actions .h5-btn { flex: 1; }

/* ---------- Shop list ---------- */
.h5-plist { display: flex; flex-direction: column; gap: 16px; padding: 14px 18px 30px; }
.h5-plist .h5-pcard { width: 100%; }

/* ---------- Mini grid (TikTok) ---------- */
.h5-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 4px 18px 24px; }
.h5-mini { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: transform .18s; }
.h5-mini:active { transform: scale(0.97); }
.h5-mini-media { display: block; width: 100%; aspect-ratio: 1 / 1.06; position: relative; }
.h5-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.h5-mini-name { font-size: 12.5px; font-weight: 800; margin: 10px 12px 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.h5-mini-price { display: flex; align-items: baseline; gap: 6px; padding: 0 12px; }
.h5-mini-price .price-now { font-size: 15px; }
.h5-mini-price .price-was { font-size: 11px; }
.h5-mini-add { margin: 10px 12px 12px; min-height: 34px; border-radius: 9px; background: var(--accent-soft); border: 1px solid rgba(255, 106, 26, 0.35); color: var(--accent-2); font-size: 12px; font-weight: 800; width: calc(100% - 24px); }
.h5-mini-add:active { background: rgba(255, 106, 26, 0.22); }

/* ---------- Features ---------- */
.h5-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 8px; }
.h5-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 15px; }
.h5-f-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 11px; }
.h5-f-icon svg { width: 19px; height: 19px; }
.h5-f-icon-accent { background: var(--accent-soft); color: var(--accent); }
.h5-feature h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 5px; }
.h5-feature p { color: var(--txt-2); font-size: 12px; margin: 0; line-height: 1.5; }

/* ---------- Wholesale band ---------- */
.h5-wsband { position: relative; margin: 24px 18px 8px; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; }
.h5-wsband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-wsband-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.25), rgba(10,10,12,.92) 82%); }
.h5-wsband-copy { position: relative; padding: 24px 18px; }
.h5-wsband-copy h2 { font-size: 21px; font-weight: 900; }
.h5-wsband-copy p { color: var(--txt-2); font-size: 13px; margin-bottom: 15px; }

/* ---------- Reviews ---------- */
.h5-review { width: 262px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 15px; display: flex; flex-direction: column; gap: 9px; }
.h5-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.h5-review p { color: var(--txt-2); font-size: 12.8px; margin: 0; flex: 1; }
.h5-review footer { display: flex; align-items: center; gap: 10px; }
.h5-rv-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255,106,26,.35); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.h5-review footer strong { display: block; font-size: 12.5px; }
.h5-review footer small { color: var(--txt-3); font-size: 11px; }

/* ---------- Contact band / community ---------- */
.h5-contactband { margin: 24px 18px 10px; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.h5-contactband h2 { font-size: 18px; font-weight: 900; margin: 0; }
.h5-contactband p { color: var(--txt-2); font-size: 12.8px; margin: 4px 0 0; }
.h5-contactband .h5-btn { align-self: flex-start; }

.h5-community { margin: 8px 18px 26px; padding: 20px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,106,26,.16), rgba(255,106,26,.05)); border: 1px solid rgba(255,106,26,.3); display: flex; flex-direction: column; gap: 14px; }
.h5-community h2 { font-size: 18px; font-weight: 900; margin: 0; }
.h5-community p { color: var(--txt-2); font-size: 12.8px; margin: 4px 0 0; }
.h5-community .h5-btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.h5-foot { padding: 30px 18px calc(30px + var(--sab)); border-top: 1px solid var(--line); margin-top: 20px; text-align: center; }
.h5-foot-brand { font-family: var(--font-head); font-weight: 900; font-size: 18px; margin: 0 0 8px; }
.h5-foot-brand em { font-style: normal; font-size: 10px; letter-spacing: 0.3em; color: var(--txt-2); margin-left: 6px; }
.h5-foot-note { color: var(--txt-3); font-size: 12px; max-width: 40ch; margin: 0 auto 14px; }
.h5-foot-links { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.h5-copy { color: var(--txt-3); font-size: 11.5px; margin: 0; }

/* ---------- TikTok hero ---------- */
.h5-tt-hero { position: relative; min-height: 66dvh; display: flex; align-items: flex-end; overflow: hidden; }
.h5-tt-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-tt-copy { position: relative; padding: 30px 20px 26px; width: 100%; }

/* ---------- Wholesale view ---------- */
.h5-ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 18px 4px; }
.h5-ws-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 15px; }
.h5-ws-card h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 5px; }
.h5-ws-card p { color: var(--txt-2); font-size: 11.8px; margin: 0; line-height: 1.5; }

.h5-form { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 13px; }
.h5-form-row { display: flex; flex-direction: column; gap: 6px; }
.h5-form-row label { font-size: 12px; font-weight: 700; color: var(--txt-2); }
.h5-form-row input, .h5-form-row select, .h5-form-row textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--txt);
  outline: none;
  transition: border-color .2s;
  min-height: 46px;
}
.h5-form-row textarea { resize: vertical; min-height: 96px; }
.h5-form-row input:focus, .h5-form-row select:focus, .h5-form-row textarea:focus { border-color: var(--accent); }
.h5-form-row input::placeholder, .h5-form-row textarea::placeholder { color: var(--txt-3); }
.h5-form-note { color: var(--txt-3); font-size: 11.5px; text-align: center; margin: 2px 0 0; }

.h5-contact-list { list-style: none; margin: 18px 18px 34px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.h5-contact-list li { display: flex; align-items: flex-start; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 13px; color: var(--txt-2); }
.h5-contact-list svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.h5-contact-list a { color: var(--txt); font-weight: 600; }

/* ---------- Contact view ---------- */
.h5-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px 8px; }
.h5-contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 15px; display: flex; flex-direction: column; gap: 4px; transition: transform .18s, border-color .2s; }
.h5-contact-card:active { transform: scale(0.97); border-color: rgba(255,106,26,.4); }
.h5-contact-card strong { font-size: 13.5px; font-family: var(--font-head); }
.h5-contact-value { color: var(--txt-2); font-size: 12px; word-break: break-all; }

/* ---------- Tab bar ---------- */
.h5-tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(12, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--sab);
  position: relative;
  z-index: 30;
}
.h5-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--tabbar-h);
  color: var(--txt-3);
  font-size: 10px;
  font-weight: 700;
  transition: color .2s;
}
.h5-tab svg { width: 21px; height: 21px; }
.h5-tab.is-active { color: var(--accent); }
.h5-tab:active { opacity: .7; }

/* ---------- Product detail view ---------- */
.h5-pview {
  position: fixed;
  inset: 0;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: pvIn .3s cubic-bezier(.22,.8,.32,1);
  overscroll-behavior: contain;
}
@keyframes pvIn { from { transform: translateX(28px); opacity: .4; } }
.h5-pview-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: calc(52px + var(--sat));
  padding: var(--sat) 12px 0;
  background: rgba(10, 10, 12, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.h5-pview-title { font-family: var(--font-head); font-weight: 800; font-size: 14.5px; }
.h5-pview-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(30px + var(--sab)); }

.h5-gallery { position: relative; }
.h5-gallery-main { aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; }
.h5-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.h5-thumbs { display: flex; gap: 8px; padding: 10px 14px 0; }
.h5-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line-2); opacity: .65; transition: opacity .2s, border-color .2s; flex: 0 0 auto; }
.h5-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h5-thumb.is-active { opacity: 1; border-color: var(--accent); }

.h5-pinfo { padding: 16px 18px 0; }
.h5-badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255,106,26,.4); color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.h5-badge-accent { background: rgba(255,106,26,.16); }
.h5-pname { font-size: 22px; font-weight: 900; margin: 0 0 5px; }
.h5-ptag { color: var(--txt-2); font-size: 13.5px; margin: 0 0 12px; }
.h5-pprice { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; }
.h5-pprice .price-now { font-size: 24px; }
.h5-opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.h5-opt {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: all .18s;
}
.h5-opt.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.h5-stock { display: flex; align-items: center; gap: 7px; color: var(--accent-2); font-size: 12.5px; font-weight: 700; margin: 0 0 16px; }
.h5-stock::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.h5-pactions { display: flex; gap: 10px; margin-bottom: 20px; }
.h5-pactions .h5-btn { flex: 1; }

.h5-pfeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 20px; }
.h5-pfeature { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--txt-2); }
.h5-pfeature svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

.h5-pdesc h3, .h5-related h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.h5-pdesc p { color: var(--txt-2); font-size: 13.5px; margin-bottom: 14px; }
.h5-specs { width: 100%; border-collapse: collapse; font-size: 12.8px; margin-bottom: 24px; }
.h5-specs td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--txt-2); }
.h5-specs td:first-child { color: var(--txt); font-weight: 700; width: 42%; }
.h5-related { padding-bottom: 10px; }
.h5-related .h5-hscroll { padding-inline: 0; }
.h5-related .h5-pcard { width: 220px; }

/* ---------- Mask + cart sheet ---------- */
.h5-mask { position: fixed; inset: 0; z-index: 70; background: rgba(5,5,8,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.h5-cartsheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 80;
  width: 100%;
  max-width: 560px;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: var(--shadow);
  animation: sheetUp .34s cubic-bezier(.22,.8,.32,1);
  padding-bottom: var(--sab);
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } }
.h5-sheet-grabber { width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 10px auto 4px; flex: 0 0 auto; }
.h5-sheet-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; border-bottom: 1px solid var(--line); }
.h5-sheet-head h2 { font-size: 17px; font-weight: 900; margin: 0; }
.h5-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px; min-height: 120px; }
.h5-sheet-foot { flex: 0 0 auto; padding: 14px 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.h5-sheet-foot[hidden] { display: none; }
.h5-subtotal-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; color: var(--txt-2); margin-bottom: 2px; }
.h5-subtotal-row strong { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--txt); }

.h5-cart-empty { text-align: center; color: var(--txt-2); font-size: 13.5px; padding: 34px 0 26px; margin: 0; }
.h5-ci { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.h5-ci:last-child { border-bottom: 0; }
.h5-ci img { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; background: var(--bg-2); flex: 0 0 auto; }
.h5-ci-info { flex: 1; min-width: 0; }
.h5-ci-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.h5-ci-meta { color: var(--txt-3); font-size: 11.5px; margin-bottom: 7px; }
.h5-ci-qty { display: inline-flex; align-items: center; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.h5-ci-qty button { width: 28px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--txt-2); font-size: 15px; font-weight: 700; }
.h5-ci-qty button:active { background: var(--card); color: var(--accent); }
.h5-ci-qty span { min-width: 22px; text-align: center; font-size: 12.5px; font-weight: 700; }
.h5-ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.h5-ci-price { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--accent); }
.h5-ci-remove { color: var(--txt-3); font-size: 11px; font-weight: 600; padding: 4px; }
.h5-ci-remove:active { color: var(--accent); }

/* ---------- Video modal ---------- */
.h5-vmodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; }
.h5-vm-mask { position: absolute; inset: 0; background: rgba(4, 4, 7, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .25s; }
.h5-vm-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: vmPop .32s cubic-bezier(.22,.9,.32,1.1);
}
@keyframes vmPop { from { opacity: 0; transform: scale(.9) translateY(16px); } }
.h5-vm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 11, 0.78);
  border: 1px solid var(--line-2);
  color: #fff;
  transition: transform .15s, background .2s;
}
.h5-vm-close:active { transform: scale(0.85); background: var(--accent); }
.h5-vm-close svg { width: 20px; height: 20px; }
.h5-vm-media { position: relative; aspect-ratio: 16 / 10.5; background: #000; }
.h5-vm-media img { width: 100%; height: 100%; object-fit: cover; }
.h5-vm-live { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 106, 26, 0.9); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; }
.h5-vm-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.h5-vm-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); animation: vmPlay 4s linear forwards; }
@keyframes vmPlay { to { width: 100%; } }
.h5-vm-copy { padding: 18px 18px 20px; }
.h5-vm-copy h3 { font-size: 19px; font-weight: 900; margin: 8px 0 6px; }
.h5-vm-copy p { color: var(--txt-2); font-size: 13px; margin: 0 0 15px; }
.h5-vm-copy .h5-btn-quiet { margin-top: 8px; }

/* ---------- Toast ---------- */
.h5-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--sab));
  transform: translateX(-50%);
  z-index: 120;
  background: var(--panel);
  border: 1px solid rgba(255, 106, 26, 0.5);
  color: var(--txt);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn .28s cubic-bezier(.22,.9,.32,1.1);
  max-width: calc(100% - 40px);
  text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.32,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Lock scroll when overlay open ---------- */
body.h5-locked { overflow: hidden; touch-action: none; }

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 480px) {
  body { font-size: 16px; }
  .h5-hero-title { font-size: 44px; }
  .h5-pcard { width: 300px; }
}

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

/* ---------- Brand Story view (H5) ---------- */
.h5-story-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 18px 8px;
}
.h5-story-card {
  display: flex;
  gap: 15px;
  padding: 18px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.h5-letter-mark {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 28px; font-weight: 900;
  color: #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(255, 106, 26, 0.32);
}
.h5-story-body { min-width: 0; }
.h5-story-word { font-size: 17px; font-weight: 800; color: var(--txt); margin: 2px 0 6px; }
.h5-story-text { color: var(--txt-2); font-size: 13px; line-height: 1.62; margin: 0; }
.h5-story-closing {
  margin: 6px 18px 22px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
}
.h5-story-closing p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--txt);
}

/* ---------- TikTok banner (inside Shop view) ---------- */
.h5-tt-banner {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: calc(100% - 36px);
  margin: 22px 18px 8px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  text-align: left;
  color: var(--txt);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, border-color .2s;
}
.h5-tt-banner:active { transform: scale(.985); border-color: var(--accent); }
.h5-tt-banner-media { position: relative; flex: 0 0 38%; min-height: 116px; }
.h5-tt-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-tt-banner-copy { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.h5-tt-banner-copy h3 { font-size: 16px; font-weight: 900; margin: 5px 0 4px; }
.h5-tt-banner-copy p { color: var(--txt-2); font-size: 12.5px; margin: 0 0 8px; }
.h5-tt-banner-cta { color: var(--accent); font-size: 13px; font-weight: 800; }
