/* Payless2u v3 — high-energy teal + magenta, not Shopee orange, not Lazada blue */
:root {
  --accent: #007A6A;
  --accent-hover: #006257;
  --accent-text: #004C42;
  --bg: #F3FFFB;
  --bg-tint: #D9FFF3;
  --bg-muted: #E6FFF6;
  --text: #07141F;
  --text-muted: #3B4A55;
  --text-faint: #5C6B75;
  --border: #B7E8D8;
  --border-strong: #007A6A;
  --brand: #00C2A8;
  --brand-bright: #14E0BE;
  --brand-deep: #007A6A;
  --pop: #FF2E8A;
  --pop-deep: #C81E68;
  --sun: #FFD400;
  --ink: #07141F;
}

body { background: var(--bg); color: var(--text); }

.logo-word .two { color: var(--pop); }
a { color: var(--brand-deep); }

.site-header {
  background: linear-gradient(120deg, #003D36 0%, #007A6A 55%, #00C2A8 100%);
  border-bottom: 0;
  color: #fff;
}
.site-header .logo, .site-header .logo:hover { color: #fff; text-decoration: none; }
.site-header .logo-word { color: #fff; }
.site-header .logo-word .two { color: var(--sun); }
.site-header .logo-sub { color: rgba(255,255,255,0.8); }
.site-header .tool-link, .site-header .cart-link { color: #fff; font-weight: 800; }
.site-header .tool-link:hover { color: var(--sun); text-decoration: none; }
.lang-switch button {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.lang-switch button.is-on { background: var(--sun); color: #07141F; border-color: var(--sun); }

.mode-tabs { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.hero .mode-tabs { background: #fff; border-color: var(--border); }
.mode-tab { color: inherit; }
.site-header .mode-tab { color: rgba(255,255,255,0.9); }
.mode-tab.is-on {
  background: var(--pop) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #9C1652;
  outline-color: #9C1652;
}
.hero .mode-tab.is-on { background: var(--pop) !important; color: #fff !important; }

.search-form button, .btn-primary, .hero .hero-search button[type="submit"] {
  background: linear-gradient(180deg, #FF4DA0 0%, #FF2E8A 100%);
  color: #fff;
}
.search-form button:hover, .btn-primary:hover { background: var(--pop-deep); color: #fff; }
.btn-secondary { border-color: var(--brand-deep); color: var(--brand-deep); }

.hero.home-first {
  background:
    radial-gradient(1200px 400px at 100% -20%, rgba(255,46,138,0.18), transparent 50%),
    radial-gradient(900px 360px at -10% 0%, rgba(20,224,190,0.45), transparent 50%),
    linear-gradient(180deg, #E9FFF8 0%, #F3FFFB 100%);
  padding-bottom: 0.8rem;
}
.hero.home-first h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #003D36, #007A6A 50%, #C81E68);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 767px) {
  .hero.home-first h1 { font-size: 1.55rem; }
}

.price, .pending-amt { color: var(--pop-deep); font-weight: 900; letter-spacing: -0.02em; }

.badge-accent, .badge-free { background: var(--sun); color: #07141F; }
.badge-ad { background: var(--ink); color: var(--sun); }

.app-nav {
  background: #fff;
  border-top: 2px solid var(--brand);
  box-shadow: 0 -8px 24px rgba(0,122,106,0.08);
}
.app-nav a.is-on { color: var(--pop); }

/* Feature launch icons on home */
.feature-launch {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0 0.2rem;
}
.feature-launch a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}
.feature-launch a:hover { text-decoration: none; color: var(--pop); }
.feature-launch .ico {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.feature-launch .ico.live { background: linear-gradient(135deg, #FF2E8A, #FF7AB0); }
.feature-launch .ico.flash { background: linear-gradient(135deg, #FFD400, #FF9F1C); color: #07141F; }
.feature-launch .ico.coupon { background: linear-gradient(135deg, #007A6A, #14E0BE); }
.feature-launch .ico.mall { background: linear-gradient(135deg, #5B21B6, #C084FC); }
.feature-launch .ico.video { background: linear-gradient(135deg, #0F172A, #00C2A8); }

/* Live */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,46,138,0.8);
  animation: livePulse 1.2s infinite;
  margin-right: 0.3rem;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,46,138,0.75); }
  70% { box-shadow: 0 0 0 8px rgba(255,46,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,46,138,0); }
}
.live-badge {
  display: inline-flex; align-items: center;
  background: var(--pop); color: #fff;
  font-weight: 900; font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.live-card {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: 200px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.7rem;
}
.live-card:hover { text-decoration: none; color: #fff; }
.live-card h3 { font-size: 0.92rem; margin: 0.2rem 0 0; }
.live-viewers { font-size: 0.72rem; font-weight: 700; opacity: 0.95; }

.live-room {
  position: relative;
  min-height: calc(100dvh - 120px);
  background: #0B0B12;
  color: #fff;
  overflow: hidden;
}
.live-stage {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,46,138,0.45), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,194,168,0.4), transparent 42%),
    linear-gradient(160deg, #1A0A14, #06201C 50%, #12081A);
  animation: stageShift 10s ease-in-out infinite alternate;
}
@keyframes stageShift {
  from { filter: saturate(1); }
  to { filter: saturate(1.25) brightness(1.05); }
}
.live-host {
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(180deg, #FFD400, #FF2E8A);
  display: grid; place-items: center;
  font-size: 3.4rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.15), 0 20px 50px rgba(0,0,0,0.4);
}
.live-ui { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: calc(100dvh - 120px); padding: 0.7rem 0.75rem calc(7.5rem + env(safe-area-inset-bottom)); }
.live-top { display: flex; align-items: center; gap: 0.5rem; }
.live-top .shop { font-weight: 800; }
.danmu {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 0.35rem;
  max-width: 80%;
  max-height: 38vh;
  overflow: hidden;
}
.danmu .msg {
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }
.live-actions {
  position: absolute; right: 0.7rem; bottom: 7.2rem;
  display: flex; flex-direction: column; gap: 0.65rem; z-index: 3;
}
.live-actions button, .live-actions a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.16);
  color: #fff; font-size: 1.15rem; font-weight: 800;
  display: grid; place-items: center;
  text-decoration: none;
}
.live-actions .like-count { font-size: 0.68rem; text-align: center; margin-top: -0.35rem; }
.bag-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: #fff; color: var(--ink);
  border-radius: 16px 16px 0 0;
  padding: 0.8rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.25s ease;
  max-height: 55vh; overflow: auto;
}
.bag-sheet.is-open { transform: none; }
.bag-sheet h3 { margin: 0 0 0.5rem; }
.bag-item {
  display: flex; gap: 0.6rem; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.note-buy { font-size: 0.75rem; color: var(--text-muted); margin: 0.35rem 0 0; }

/* Video feed */
.video-feed { background: #05050A; color: #fff; min-height: calc(100dvh - 64px); }
.video-slide {
  position: relative;
  min-height: calc(100dvh - 130px);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem 1rem 6.5rem;
}
.video-slide .bg {
  position: absolute; inset: 0;
  animation: stageShift 8s ease-in-out infinite alternate;
}
.video-meta { position: relative; z-index: 2; max-width: 75%; }
.video-meta h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.product-sticker {
  position: relative; z-index: 2;
  margin-top: 0.7rem;
  background: #fff; color: var(--ink);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  max-width: 80%;
}
.video-side {
  position: absolute; right: 0.7rem; bottom: 6.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; z-index: 3;
}
.video-side button, .video-side a {
  background: none; border: 0; color: #fff; font-weight: 800; font-size: 0.72rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  text-decoration: none;
}
.video-side .big { font-size: 1.5rem; }
.video-nav {
  position: absolute; right: 0.5rem; top: 45%;
  display: flex; flex-direction: column; gap: 0.4rem; z-index: 3;
}
.video-nav button {
  background: rgba(255,255,255,0.16); color: #fff; border: 0;
  width: 36px; height: 36px; border-radius: 50%; font-weight: 900;
}

/* Flash / coupons / coins */
.flash-hero {
  background: linear-gradient(120deg, #FF2E8A, #FF7A00 60%, #FFD400);
  color: #07141F;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
}
.flash-hero h1 { color: #07141F; margin: 0.2rem 0; }
.countdown {
  display: flex; gap: 0.4rem; align-items: center;
  font-weight: 900; font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-sample > span {
  background: #07141F; color: var(--sun);
  border-radius: 8px; min-width: 1.7rem;
  text-align: center; padding: 0.15rem 0.25rem;
  display: inline-block;
}
.countdown .status-pill,
.countdown .cd-pending,
.countdown .sample-tag,
.countdown .cd-sample { white-space: nowrap; }
.countdown { flex-wrap: wrap; font-size: 0.95rem; }

.coupon-card {
  display: flex; gap: 0;
  background: #fff;
  border: 1.5px dashed var(--pop);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.coupon-card .amt {
  background: linear-gradient(180deg, #FF2E8A, #C81E68);
  color: #fff; font-weight: 900;
  padding: 0.85rem 0.8rem;
  min-width: 6.2rem;
  display: grid; place-items: center;
  text-align: center;
}
.coupon-card .body { padding: 0.7rem 0.8rem; flex: 1; }
.checkin-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.checkin-day {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; text-align: center;
  padding: 0.45rem 0.1rem; font-size: 0.68rem; font-weight: 800;
}
.checkin-day.is-on { background: var(--sun); border-color: #E6BE00; color: #07141F; }
.coin-balance {
  background: linear-gradient(120deg, #FFD400, #FFE566);
  color: #07141F;
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Brands / shop / chat */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.brand-tile {
  background: #fff; border-radius: 16px; padding: 1rem 0.8rem;
  text-align: center; text-decoration: none; color: inherit;
  border: 1px solid var(--border);
}
.brand-tile:hover { text-decoration: none; color: inherit; border-color: var(--pop); }
.brand-mark {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 0.45rem;
  display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 1.15rem;
}
.shop-hero {
  background: linear-gradient(135deg, #003D36, #00C2A8);
  color: #fff; border-radius: 18px; padding: 1.1rem;
}
.chat-thread { display: flex; flex-direction: column; gap: 0.45rem; min-height: 50vh; }
.chat-bubble { max-width: 80%; padding: 0.55rem 0.7rem; border-radius: 14px; font-size: 0.9rem; }
.chat-bubble.them { background: #fff; align-self: flex-start; }
.chat-bubble.me { background: var(--brand-deep); color: #fff; align-self: flex-end; }
.chat-compose {
  display: flex; gap: 0.4rem; position: sticky; bottom: calc(70px + env(safe-area-inset-bottom));
  background: var(--bg); padding: 0.4rem 0;
}
.chat-compose input { flex: 1; }

/* Games */
.wheel {
  width: 220px; height: 220px; margin: 1rem auto;
  border-radius: 50%;
  background: conic-gradient(#FF2E8A 0 25%, #FFD400 0 50%, #00C2A8 0 75%, #5B21B6 0 100%);
  border: 8px solid #07141F;
  position: relative;
  transition: transform 2.4s cubic-bezier(.2,.8,.2,1);
}
.wheel-pointer {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #07141F;
  margin: 0 auto;
}

.review-media {
  display: flex; gap: 0.4rem; margin-top: 0.35rem;
}
.review-media .ph {
  width: 64px; height: 64px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
}

@media (max-width: 767px) {
  .hero.home-first .feature-launch { margin-top: 0.55rem; }
  .feature-launch .ico { width: 44px; height: 44px; border-radius: 14px; font-size: 1.2rem; }
}
body[data-page="live-room"] .site-header,
body[data-page="video"] .site-header,
body[data-page="live-room"] .site-footer,
body[data-page="video"] .site-footer { display: none; }
body[data-page="live-room"],
body[data-page="video"] { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }


/* v3/p0 review + marketing module styles */
.feature-launch {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.feature-launch a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.72rem;
}
.feature-launch .feat-name { line-height: 1.2; }
.feature-launch .sub {
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted, #4b5563);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-actions, .bag-actions, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.6rem 0.7rem;
}
.why-this { font-size: 0.78rem; line-height: 1.35; margin: 0.35rem 0 0; }
.why-box { background: #E6FFF8; border: 1px solid #00C2A8; border-radius: 12px; padding: 0.7rem 0.8rem; margin: 0.6rem 0; }
.badge-oos { display: inline-block; background: #111827; color: #fff; border-radius: 999px; padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 700; }
.sample-tag, .status-pill {
  display: inline-block;
  background: #FFD400;
  color: #07141F;
  font-weight: 800;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.25rem;
}
.status-pill { background: #FF2E8A; color: #fff; }
.cd-pending { font-weight: 800; }
.cd-sample span {
  display: inline-block;
  min-width: 1.6rem;
  background: #07141F;
  color: #FFD400;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mod-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1rem; }
.mod-tab { border: 1px solid #d1d5db; border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.8rem; font-weight: 650; text-decoration: none; color: inherit; }
.mod-tab.is-on { background: #07141F; color: #fff; border-color: #07141F; }
.rules-fold { margin: 1.2rem 0 0.5rem; border-top: 1px solid #e5e7eb; padding-top: 0.8rem; }
.rules-fold summary { cursor: pointer; font-weight: 700; }
.rules-fold p { margin: 0.5rem 0 0; color: #4b5563; font-size: 0.86rem; line-height: 1.5; }
.added-sheet {
  position: fixed; inset: 0; background: rgba(7,20,31,0.45);
  display: none; align-items: flex-end; justify-content: center; z-index: 80;
}
.added-sheet.is-on { display: flex; }
.added-card { background: #fff; border-radius: 20px 20px 0 0; padding: 1.1rem 1rem 1.4rem; max-width: 420px; width: 100%; }
.sku-picks { margin: 0.8rem 0; }
.sku-picks p { font-weight: 700; margin: 0 0 0.4rem; }
.sku-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.sku-chip { border: 1px solid #d1d5db; border-radius: 999px; padding: 0.28rem 0.7rem; text-decoration: none; color: inherit; font-size: 0.8rem; }
.sku-chip.is-on { border-color: #007A6A; background: #E6FFF8; font-weight: 700; }
.sku-chip.is-oos { opacity: 0.7; }
.btn-mute { border: 0; border-radius: 999px; padding: 0.3rem 0.7rem; font-weight: 800; background: #FFD400; color: #07141F; }
.btn-mute.is-muted { background: #fff; }
.mute-chip { display: inline-block; background: rgba(0,0,0,0.45); color: #fff; border-radius: 999px; padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 700; }
.video-lead { position: relative; z-index: 3; background: rgba(7,20,31,0.75); color: #fff; padding: 0.6rem 0.8rem; font-size: 0.82rem; }
.upload-slots { margin: 1rem 0; display: grid; gap: 0.6rem; }
.upload-slot { text-align: left; border: 1px dashed #007A6A; background: #f8fffd; border-radius: 12px; padding: 0.8rem; cursor: pointer; font-weight: 650; }
.upload-slot.is-on { border-style: solid; background: #E6FFF8; }
.addr-list, .order-list, .faq-list, .track-steps { padding-left: 0; list-style: none; }
.addr-list li, .order-list li { border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.8rem; margin: 0.6rem 0; }
.human-bar { position: sticky; bottom: 4.5rem; background: #fff; padding: 0.8rem 0; }
.waybill-form { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.waybill-form .input { min-width: 8rem; }
.live-card .btn, .live-card a.btn { margin-top: 0.6rem; }
.filter-panel summary h2 { display: inline; }
.coupon-card .amt { font-size: 0.82rem; font-weight: 800; line-height: 1.3; }
@media (max-width: 767px) {
  #home-cards .why-this { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; }
  .feature-launch .ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
}


/* ——— v3 visual polish: 1-row nav, icon header, product art, no stacked i18n ——— */
.app-nav {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch;
}
@media (max-width: 767px), (display-mode: standalone) {
  .app-nav { display: grid !important; }
}
.app-nav a {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.62rem !important;
  line-height: 1.15;
  padding: 0.3rem 0.05rem !important;
  flex-shrink: 0;
}
.app-nav .ico { font-size: 1.05rem !important; }

.site-header .lang-switch {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.site-header .lang-switch button,
.site-header .lang-switch button + button {
  color: #fff !important;
  background: transparent;
  border-right-color: rgba(255,255,255,0.3);
  padding: 0.2rem 0.42rem;
  font-size: 0.68rem;
  cursor: pointer;
}
.site-header .lang-switch button.is-on {
  background: #FFD400 !important;
  color: #07141F !important;
}

.header-tools {
  flex-wrap: nowrap !important;
  gap: 0.3rem;
  align-items: center;
}
.icon-tool {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  flex-shrink: 0;
}
.icon-tool:hover { background: rgba(255,255,255,0.14); color: #FFD400; text-decoration: none; }
.icon-tool svg { width: 22px; height: 22px; display: block; }
.icon-tool-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.icon-tool .cart-count {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: #FF2E8A;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.icon-tool .cart-count.is-on { display: inline-flex; }

@media (max-width: 767px) {
  .header-tools {
    width: auto !important;
    max-width: none;
    position: static !important;
    margin: 0 !important;
  }
  .header-row { align-items: center !important; }
}

.feature-launch .sub { display: none !important; }
.feature-launch a { gap: 0.2rem; }
.feature-launch .feat-name {
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mode-tab .t-zh, .mode-tab .t-en, .mode-tab .t-ms { display: none; }
html[lang="zh-Hans"] .mode-tab .t-zh,
html[lang="zh"] .mode-tab .t-zh,
html:not([lang]) .mode-tab .t-zh { display: inline; }
html[lang="en"] .mode-tab .t-en { display: inline; }
html[lang="ms"] .mode-tab .t-ms { display: inline; }
.mode-tab { white-space: nowrap; }

.thumb {
  padding: 0 !important;
  overflow: hidden;
  background: #F3FFFB !important;
}
.thumb-art, .gallery-main .thumb-art, .line-thumb .thumb-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #F3FFFB;
}
.sample-art-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(7,20,31,0.72);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
  pointer-events: none;
}
.gallery-main { position: relative; padding: 0; overflow: hidden; background: #F3FFFB; }
.gallery-main .thumb-art { width: 100%; height: 100%; object-fit: cover; }
.line-thumb { position: relative; overflow: hidden; background: #F3FFFB; }

.price-note { overflow-wrap: anywhere; }
#home-cards .price-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.sort-bar, .hot-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.4rem;
  align-items: center;
}
.sort-bar::-webkit-scrollbar, .hot-row::-webkit-scrollbar { display: none; }
.sort-bar > *, .hot-row > * { flex-shrink: 0; }
.product-card .price-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live prototype notice — always visible, not the hidden .preview-banner */
.proto-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #FFD400;
  color: #07141F;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 650;
  padding: 0.55rem 0.85rem;
  padding-left: max(0.85rem, env(safe-area-inset-left));
  padding-right: max(0.85rem, env(safe-area-inset-right));
  border-bottom: 3px solid #07141F;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.55rem;
}
.proto-banner strong {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.proto-banner span { font-weight: 600; text-wrap: balance; }


.sample-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.sample-price { font-weight: inherit; color: inherit; }
.sample-price-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5b6b73 !important;
  background: #e8eef0;
  border-radius: 4px;
  padding: 0.1rem 0.38rem;
  line-height: 1.3;
  vertical-align: middle;
}
.price .sample-price-tag,
.summary-row .sample-price-tag {
  color: #5b6b73 !important;
  font-weight: 700;
}
