/* [BRAND] marketplace wireframes — internal preview only
   UX Architect + UI Designer foundation
   Greyscale + one teal accent (not Shopee orange, not Lazada blue) */

:root {
  --bg: #f4f4f5;
  --bg-elevated: #ffffff;
  --bg-muted: #ececee;
  --bg-tint: #ecfdf5;
  --text: #18181b;
  --text-muted: #3f3f46;
  --text-faint: #71717a;
  --border: #d4d4d8;
  --border-strong: #a1a1aa;
  --accent: #0b6b4f;
  --accent-hover: #085041;
  --accent-soft: #d1fae5;
  --accent-text: #064e3b;
  --banner-bg: #1c1917;
  --banner-text: #fafaf9;
  --banner-mark: #fbbf24;
  --ad-bg: #fafafa;
  --ad-border: #a1a1aa;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.05);
  --font: Inter, "Noto Sans CJK SC", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --container: 1120px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
h1 { font-size: var(--text-3xl); line-height: 1.25; font-weight: 700; }
h2 { font-size: var(--text-xl); line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: var(--text-base); line-height: 1.35; font-weight: 650; }

.preview-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.preview-banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--banner-mark);
  flex-shrink: 0;
}

.internal-nav {
  background: #e4e4e7;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  justify-content: center;
}
.internal-nav a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.internal-nav a:hover,
.internal-nav a.is-active {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ——— Site header (buyer) ——— */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); text-decoration: none; }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.search-form {
  flex: 1 1 240px;
  display: flex;
  min-width: 0;
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.6rem 0.85rem;
  background: #fff;
}
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 1rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.search-form button:hover { background: var(--accent-hover); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button,
.lang-switch span {
  border: 0;
  background: transparent;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: default;
  border-right: 1px solid var(--border);
}
.lang-switch span:last-child,
.lang-switch button:last-child { border-right: 0; }
.lang-switch .is-on {
  background: var(--accent);
  color: #fff;
}

.tool-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.45rem;
}
.tool-link:hover { color: var(--accent); text-decoration: none; }

.cat-bar {
  border-top: 1px solid var(--border);
  padding: 0.45rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}
.cat-bar a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
}
.cat-bar a:hover { color: var(--accent); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  font-weight: 650;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid transparent;
  cursor: default;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: var(--text-sm); }

/* ——— Cards / badges ——— */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  vertical-align: middle;
}
.badge-ad {
  background: #27272a;
  color: #fff;
  border-color: #27272a;
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: #a7f3d0;
}
.badge-free {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.badge-sample {
  background: #fef3c7;
  color: #78350f;
  border-color: #fcd34d;
}

.section { padding: var(--space-8) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.section-head p, .muted { color: var(--text-muted); font-size: var(--text-sm); }
.faint { color: var(--text-faint); font-size: var(--text-sm); }

/* ——— Grids ——— */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

/* Product card */
.product-card, .shop-card, .cat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.thumb {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, #e4e4e7 0%, #d4d4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  position: relative;
}
.thumb .badge { position: absolute; top: 8px; left: 8px; }
.product-card .body, .shop-card .body {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.product-card .name, .shop-card .name {
  font-weight: 650;
  font-size: var(--text-sm);
}
.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cat-tile {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
}
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-muted);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--accent-text);
  font-weight: 700;
}
.cat-tile span { font-weight: 650; font-size: var(--text-sm); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) 0 var(--space-8);
}
.hero h1 { margin-bottom: 0.4rem; }
.promise {
  font-size: var(--text-lg);
  color: var(--accent-text);
  font-weight: 650;
  margin-bottom: var(--space-5);
}
.hero .search-form { max-width: 640px; }

/* Guarantee strip / footer */
.guarantee {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.guarantee-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.g-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
}
.guarantee-item h3 { margin-bottom: 0.2rem; }
.guarantee-item p { color: var(--text-muted); font-size: var(--text-sm); }

.site-footer {
  background: #18181b;
  color: #e4e4e7;
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-4);
}
.site-footer a { color: #a1a1aa; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
.site-footer h3 { color: #fff; margin-bottom: 0.7rem; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer li, .site-footer p { font-size: var(--text-sm); color: #a1a1aa; }
.legal {
  border-top: 1px solid #3f3f46;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  color: #71717a;
}

/* ——— Product page ——— */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
  align-items: start;
}
.gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e4e4e7, #d4d4d8);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-weight: 650;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem;
}
.gallery-thumbs div {
  aspect-ratio: 1;
  background: var(--bg-muted);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.buy-panel { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.buy-panel .card { padding: var(--space-5); }
.sku-label { font-size: var(--text-xs); color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.same-price {
  margin-top: 0.4rem;
  background: var(--bg-tint);
  border: 1px solid #a7f3d0;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
}
.option-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: var(--text-sm);
  font-weight: 600;
}
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.action-row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.meta-list { display: grid; gap: 0.45rem; font-size: var(--text-sm); }
.meta-list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; }
.meta-list dt, .meta-k { color: var(--text-faint); font-weight: 600; }

.seller-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.seller-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-muted);
  flex-shrink: 0;
}
.chat-entry {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.chat-preview {
  margin-top: var(--space-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.chat-preview header, .chat-preview footer {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  background: var(--bg-muted);
}
.chat-preview footer { border-bottom: 0; border-top: 1px solid var(--border); color: var(--text-faint); font-weight: 500; font-size: var(--text-sm); }
.chat-preview .msgs { padding: 1rem; color: var(--text-faint); font-size: var(--text-sm); }

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
select.input, .input, textarea.input {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  width: 100%;
  min-width: 0;
}
label.field { display: grid; gap: 0.3rem; font-size: var(--text-sm); font-weight: 650; }
.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  background: var(--bg);
  font-size: var(--text-sm);
}

/* ——— Checkout ——— */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: var(--space-6);
  padding: var(--space-8) 0 var(--space-12);
  align-items: start;
}
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.panel + .panel, .stack-gap { display: flex; flex-direction: column; gap: var(--space-4); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.pay-options { display: grid; gap: 0.5rem; }
.pay-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 650;
}
.pay-option.is-on { border-color: var(--accent); background: var(--bg-tint); }
.radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--accent);
  flex-shrink: 0;
}
.radio-off { background: #fff; box-shadow: none; border-color: var(--border-strong); }
.escrow-note {
  background: var(--bg-tint);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--accent-text);
  font-weight: 650;
  font-size: var(--text-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  padding: 0.35rem 0;
}
.summary-row.total {
  border-top: 1.5px solid var(--text);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.line-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.line-thumb { width: 64px; height: 64px; background: var(--bg-muted); border-radius: 6px; flex-shrink: 0; }

/* ——— Seller shell ——— */
.seller-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.seller-header .header-row { padding: 0.7rem 0; }
.seller-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: 70vh;
  align-items: stretch;
}
.seller-nav {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: var(--space-4);
}
.seller-nav a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
}
.seller-nav a:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }
.seller-nav a.is-active { background: var(--accent-soft); color: var(--accent-text); }
.seller-main { padding: var(--space-6) var(--space-5) var(--space-12); min-width: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.kpi .label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.kpi .value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.2rem; }

.progress {
  height: 10px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0;
}
.progress span { display: block; width: 0; height: 100%; background: var(--accent); }

.notice, .callout {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border);
  background: #fff;
}
.callout-strong {
  background: var(--bg-tint);
  border: 2px solid var(--accent);
}
.callout-strong h2, .callout-strong p { color: var(--accent-text); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  position: relative;
}
.flow-step .n {
  width: 28px; height: 28px; margin: 0 auto 0.5rem;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: var(--text-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-grid .full { grid-column: 1 / -1; }
.upload {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.why-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
table.plain th, table.plain td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.plain th { color: var(--text-faint); font-weight: 650; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; }

.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.share-box code {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

/* Promo placement cards */
.place-card { padding: var(--space-4); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.place-card h3 { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .why-grid, .steps, .guarantee, .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout, .checkout-layout, .seller-shell, .form-grid, .flow {
    grid-template-columns: 1fr;
  }
  .seller-nav {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
  }
  .meta-list div { grid-template-columns: 1fr; gap: 0.1rem; }
  .action-row, .action-row-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .kpi .value { font-size: 1.6rem; }
  .hero { padding: var(--space-6) 0; }
  .section { padding: var(--space-6) 0; }
  .seller-main { padding: var(--space-4) var(--space-4) var(--space-10); }
}

@media (max-width: 520px) {
  .grid-2, .grid-4, .grid-5, .footer-grid { grid-template-columns: 1fr; }
  .header-row { gap: 0.6rem; }
  .cat-bar { gap: 0.3rem 0.7rem; }
  .container { padding: 0 0.85rem; }
}

/* Stacked tables on small screens — avoid page-level horizontal scroll */
@media (max-width: 900px) {
  table.plain thead { display: none; }
  table.plain, table.plain tbody, table.plain tr, table.plain th, table.plain td {
    display: block;
    width: 100%;
  }
  table.plain tr { margin-bottom: 0.75rem; }
  table.plain td {
    padding: 0.2rem 0 0.55rem;
    border-bottom: 0;
  }
  table.plain td:last-child { border-bottom: 1px solid var(--border); padding-bottom: 0.85rem; }
  table.plain td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    color: var(--text-faint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
  }
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.35rem;
}
.page-title .cn { font-size: var(--text-sm); color: var(--text-muted); font-weight: 650; }
.lead { color: var(--text-muted); max-width: 46rem; margin-bottom: var(--space-5); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.principle { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.principle h3 { margin-bottom: 0.35rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem; }
.stat .k { font-size: var(--text-xs); color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .v { font-size: 1.35rem; font-weight: 800; margin-top: 0.15rem; }

.later-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
}

.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.check .box { width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 4px; flex-shrink: 0; margin-top: 0.1rem; background: #fff; }

@media (max-width: 900px) {
  .principles, .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .principles, .stat-row { grid-template-columns: 1fr; }
}

/* Search + ad disclosure */
.why-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--accent);
  text-decoration: underline;
}
.ad-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 600;
}
.sponsored-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: var(--space-3);
}
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--space-4);
}
.sort-bar .lbl { font-size: var(--text-sm); color: var(--text-muted); font-weight: 650; margin-right: 0.25rem; }
.sort-chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--text);
}
.sort-chip.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.wire-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #fffbeb;
  border: 1px dashed #f6d38b;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 var(--space-5);
}
.video-block { overflow: hidden; }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  font-weight: 650;
  font-size: var(--text-sm);
  padding: 1rem;
}
.mute-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgb(0 0 0 / 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.play-mark {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #fff; display: grid; place-items: center;
  margin: 0 auto 0.4rem; font-size: 1.1rem;
}
.ad-row { margin: var(--space-6) 0; }
#why-ad { padding: var(--space-5); margin-top: var(--space-6); }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 767px) {
  .rank-grid { grid-template-columns: 1fr; }
  /* Keep mobile ads small: only one unit in a sponsored row */
  .ad-row .hide-on-mobile { display: none; }
}

/* Payless2u wordmark */
.logo-word {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1;
}
.logo-word .two { color: var(--accent); }
.logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-top: 0.15rem;
}

/* Always-visible 自己逗 entry */
.ai-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 750;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
}
.ai-entry:hover { background: var(--accent-hover); color: #fff !important; }
.ai-entry .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: #bbf7d0; flex-shrink: 0;
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.example-chip {
  display: inline-block;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}
.example-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* AI guide conversation */
.ai-wrap { max-width: 720px; margin: 0 auto; }
.ai-head { margin-bottom: 1rem; }
.bubble {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0.65rem 0;
  max-width: 100%;
}
.bubble-ai { background: #fff; border: 1px solid var(--border); }
.bubble-you {
  background: var(--accent-soft);
  border: 1px solid #a7f3d0;
  color: var(--accent-text);
  margin-left: 1.5rem;
  font-weight: 650;
}
.bubble .who { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; }
.opts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.opt {
  border: 1.5px solid var(--border-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 650;
}
.opt.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.opt-alt { border-style: dashed; color: var(--text-muted); }

.reco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.reco-card { padding: 0; }
.reco-card .body { padding: 0.7rem 0.75rem 0.85rem; }
.why-this {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.why-this strong { color: var(--accent-text); }
.confirm-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.step-rail {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1rem;
}
.phase-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}
.phase1-tag {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: #a7f3d0;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.coming-soon-banner {
  background: #fffbeb;
  border: 1.5px dashed #f6d38b;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.coming-soon-banner h2 { margin-bottom: 0.25rem; }
.muted-block { opacity: 0.72; }

@media (max-width: 900px) {
  .reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 1.1rem 0 1.25rem; }
  .header-row { padding: 0.65rem 0 0.5rem; }
  .site-header .search-form { flex: 1 1 100%; }
  .ai-entry { width: 100%; }
  .header-tools { width: 100%; justify-content: space-between; }
  .tool-link.hide-narrow { display: none; }
  .preview-banner { font-size: 0.65rem; padding: 0.4rem 0.6rem; }
  .internal-nav { padding: 0.3rem 0.5rem; gap: 0.15rem; }
  .internal-nav a { padding: 0.2rem 0.4rem; font-size: 0.68rem; }
  .logo-word { font-size: 1.12rem; }
  .promise { font-size: 1rem; margin-bottom: 0.75rem; }
}

@media (max-width: 520px) {
  .reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bubble-you { margin-left: 0.6rem; }
  .cat-bar { display: none; } /* first screen stays clean on phone; categories appear in page body */
}

.logo { flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word .two { color: #6ee7b7; }
.site-footer .logo-sub { color: #a1a1aa; }
.seller-header .logo-sub { margin-top: 0.1rem; }

/* Keep first screen tight: hide bulky tools, not the search or 自己逗 */
@media (max-width: 767px) {
  .header-tools .tool-link.hide-narrow { display: none; }
  .header-row { align-items: flex-start; }
  .header-tools { margin-left: 0; width: auto; position: absolute; right: 0.85rem; top: 0.7rem; }
  .site-header .container { position: relative; }
  .header-row { padding-top: 0.55rem; padding-bottom: 0.7rem; }
}

.greet-alt { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; margin: 0.25rem 0 0.85rem; }
.turn-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.7rem; }
.turn-links a { font-size: 0.8rem; font-weight: 700; }
.search-form.hero-search { max-width: none; }
.voice-btn {
  border: 1.5px solid var(--border-strong);
  border-right: 0;
  background: #fff;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.browse-link { display: inline-block; margin-top: 0.85rem; font-size: 0.9rem; font-weight: 700; }
.page-home .site-header .search-form,
.page-home .site-header .ai-entry { display: none; } /* hero is the AI opening; keeps first screen clean */
@media (max-width: 767px) {
  .page-home .site-header .ai-entry { display: none; }
  .reco-grid { grid-template-columns: 1fr; }
}

/* Search / Ask AI switch */
.search-block { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mode-tabs {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.mode-tab {
  padding: 0.28rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--text-muted);
  text-decoration: none;
  border-right: 1px solid var(--border);
}
.mode-tab:last-child { border-right: 0; }
.mode-tab:hover { color: var(--accent); text-decoration: none; }
.mode-tab.is-on { background: var(--accent); color: #fff; }
.hot-row, .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.35rem 0 0.8rem;
}
.hot-row .lbl, .filter-bar .lbl { font-size: 0.75rem; font-weight: 750; color: var(--text-faint); margin-right: 0.15rem; }
.hot-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}
.hot-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.filter-chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
}
/* Do not hide header search — both modes stay visible */
.page-home .site-header .search-form,
.page-home .site-header .ai-entry { display: revert; }
.page-home .site-header .search-form { display: flex; }
@media (max-width: 767px) {
  .page-home .site-header .ai-entry { display: none; }
  .search-block { flex-basis: 100%; }
  .header-tools { position: static; width: 100%; justify-content: flex-start; }
  .site-header .container { position: static; }
  .header-row { padding-right: 0; }
}

.turn-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.7rem; }
.turn-links a { font-size: 0.8rem; font-weight: 700; }
.greet-alt { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; margin: 0.25rem 0 0.85rem; }
.browse-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 700; }
.voice-btn {
  border: 1.5px solid var(--border-strong);
  border-right: 0;
  background: #fff;
  padding: 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Trilingual Search / Ask AI tabs — selected state is not colour-only */
.mode-tabs { width: 100%; max-width: 420px; }
.mode-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.45rem 0.4rem 0.5rem;
  text-align: center;
  text-decoration: none !important;
  position: relative;
  line-height: 1.15;
  min-width: 0;
  white-space: normal;
}
.mode-tab .t-en { font-size: 0.8rem; font-weight: 800; }
.mode-tab .t-zh, .mode-tab .t-ms { font-size: 0.62rem; font-weight: 650; }
.mode-tab.is-on {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -3px 0 #064e3b;
  outline: 2px solid var(--accent-hover);
  outline-offset: -2px;
}
.mode-check {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
}
.mode-hint { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.85rem; }
.noads-note {
  font-size: 0.8rem;
  background: var(--bg-tint);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 1rem;
  color: var(--accent-text);
}
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 900px) {
  .results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.card-actions { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.card-actions .btn { width: 100%; }
.sort-chip { white-space: normal; text-align: center; }

@media (max-width: 767px) {
  .search-form { flex-wrap: wrap; }
  .search-form input {
    flex: 1 1 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    border-right: 1.5px solid var(--border-strong);
  }
  .voice-btn {
    flex: 1 1 auto;
    border: 1.5px solid var(--border-strong);
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 var(--radius);
  }
  .search-form button {
    flex: 1 1 auto;
    border-radius: 0 0 var(--radius) 0;
  }
}

/* Mobile header: logo + language/cart on one row, search switcher below */
@media (max-width: 767px) {
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.45rem 0.6rem;
    padding-right: 0;
  }
  .logo { grid-column: 1; grid-row: 1; }
  .header-tools {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    position: static;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .search-block { grid-column: 1 / -1; grid-row: 2; }
  .search-form input { font-size: 0.75rem; }
}
/* Home already has the switcher in the hero — don't repeat it in the header */
.page-home .site-header .search-block { display: none; }

/* fix: header search bar height inside column search-block */
.search-block .search-form { flex: 0 0 auto; height: 46px; }
.search-block .search-form input, .search-block .search-form button { height: 46px; }

/* ——— Prototype v2: clickable + app shell ——— */
.btn, .opt, .example-chip, .lang-switch button, .pay-option,
.search-form button, .tool-link, .chip, button, .qty-btn, .icon-btn,
.hot-chip, .sort-chip, .mode-tab, .voice-btn, .seller-nav a, .browse-link {
  cursor: pointer;
}
.preview-banner, .internal-nav { display: none !important; }
.pending-amt { font-weight: 800; color: var(--text); }

body.has-app-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.app-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.25rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 767px), (display-mode: standalone) {
  .app-nav { display: grid; }
  body.has-app-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
.app-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
}
.app-nav a:hover { color: var(--accent); text-decoration: none; }
.app-nav a.is-on { color: var(--accent); }
.app-nav .ico { font-size: 1.15rem; line-height: 1; }

.share-box {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.7rem;
}
.share-box code { font-size: 0.8rem; word-break: break-all; }

body.seller-page .app-nav { display: none; }
body.seller-page { padding-bottom: 0; }

.upload {
  border: 1.5px dashed var(--border-strong);
  border-radius: 8px;
  padding: 1.1rem 0.8rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  background: var(--bg);
}
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.875rem; }
.check .box {
  width: 18px; height: 18px; border: 1.5px solid var(--border-strong);
  border-radius: 4px; flex-shrink: 0; margin-top: 0.1rem; background: #fff;
}
.check.is-on .box { background: var(--accent); border-color: var(--accent); }
.check.is-on .box::after { content: "✓"; color: #fff; display: block; text-align: center; font-size: 0.75rem; line-height: 16px; font-weight: 800; }

.install-hint {
  display: none;
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (display-mode: standalone) {
  .install-hint { display: none !important; }
}

.home-panel[hidden] { display: none !important; }
.voice-btn.is-listening { background: var(--accent); color: #fff; border-color: var(--accent); }
.voice-hint { min-height: 1em; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
@media (max-width: 767px) {
  .logo-sub { display: none; }
  .hero.home-first { padding-top: 0.9rem; }
  .hero.home-first h1 { font-size: 1.45rem; }
}


/* v2 layout fixes: header search stays one row; home composer is two contained rows;
   first-screen rec cards are compact so 3–4 are visible. */
.search-block .search-form,
.search-block .search-form.header-search,
.search-block .search-form.hero-search {
  height: auto !important;
  min-height: 46px;
  flex-wrap: nowrap !important;
  display: flex;
  width: 100%;
}
.search-block .search-form input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 46px;
  border-right: 0 !important;
  border-radius: var(--radius) 0 0 var(--radius) !important;
}
.search-block .search-form button[type="submit"] {
  flex: 0 0 auto !important;
  height: 46px;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}

.hero .search-form.hero-search {
  display: grid !important;
  grid-template-columns: auto 1fr;
  height: auto !important;
  flex-wrap: unset !important;
  max-width: 640px;
}
.hero .hero-search input {
  grid-column: 1 / -1;
  height: 46px;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}
.hero .hero-search .voice-btn {
  flex: unset !important;
  height: 44px;
  border: 1.5px solid var(--border-strong) !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-radius: 0 0 0 var(--radius) !important;
  background: #fff;
  color: var(--text);
}
.hero .hero-search button[type="submit"] {
  flex: unset !important;
  height: 44px;
  border-radius: 0 0 var(--radius) 0 !important;
}

@media (max-width: 767px) {
  .hero.home-first { padding: 0.65rem 0 0.45rem !important; }
  .hero.home-first h1 { font-size: 1.35rem; margin-bottom: 0.3rem; }
  .hero.home-first .lead { display: none; }
  .hero.home-first .example-row { margin-top: 0.55rem; }
  .hero.home-first .browse-link { margin-top: 0.45rem; }
  #home-recs { padding-top: 0.2rem; padding-bottom: 0.4rem; }
  #home-recs .section-head { margin-bottom: 0.45rem; }
  #home-recs .section-head p { font-size: 0.78rem; }
  #home-cards.grid-4,
  #home-cards.grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem;
  }
  #home-cards .thumb { aspect-ratio: 4 / 3; font-size: 0.7rem; }
  #home-cards .product-card .body { padding: 0.4rem 0.5rem 0.5rem; }
  #home-cards .product-card .name { font-size: 0.78rem; }
  #home-cards .why-this {
    font-size: 0.68rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 767px) {
  .hero .mode-tabs { max-width: 100%; }
  .hero .mode-tab { padding: 0.28rem 0.3rem 0.32rem; }
  #home-recs .section-head p { display: none; } /* note remains in footer/elsewhere; first screen keeps cards */
  #home-cards .why-this { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; } /* must stay visible on mobile */
  #home-cards .thumb { aspect-ratio: 16 / 10; }
  #home-cards .price { font-size: 0.92rem; }
}
@media (max-width: 767px) {
  .hero.home-first .example-row { gap: 0.3rem; margin-top: 0.4rem !important; }
  .hero.home-first .example-chip { padding: 0.18rem 0.5rem; font-size: 0.75rem; }
  .hero.home-first .hero-search input { height: 42px; }
  .hero.home-first .hero-search .voice-btn,
  .hero.home-first .hero-search button[type="submit"] { height: 40px; }
  #home-cards .thumb { aspect-ratio: 16 / 9; }
  #home-cards .product-card .body { padding: 0.3rem 0.45rem 0.4rem; }
}
@media (max-width: 767px) {
  #home-cards .thumb { aspect-ratio: 16 / 8.6; }
  #home-cards.grid-4, #home-cards.grid { gap: 0.4rem; }
}
