:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --bg-3: #f1f3f4;
  --surface: #ffffff;
  --line: #dadce0;
  --line-2: #ebebeb;
  --text: #202124;
  --text-2: #4d5156;
  --text-3: #70757a;
  --link: #1a0dab;
  --link-visited: #681da8;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --good: #188038;
  --shadow: 0 1px 6px rgba(32, 33, 36, .28);
  --shadow-lg: 0 4px 16px rgba(32, 33, 36, .22);
  --brand-1: #4285f4;
  --brand-2: #ea4335;
  --brand-3: #fbbc05;
  --brand-4: #34a853;
  --radius: 24px;
  --font: Roboto, Arial, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f1f;
    --bg-2: #28292a;
    --bg-3: #303134;
    --surface: #202124;
    --line: #5f6368;
    --line-2: #3c4043;
    --text: #e8eaed;
    --text-2: #bdc1c6;
    --text-3: #9aa0a6;
    --link: #99c3ff;
    --link-visited: #c58af9;
    --accent: #8ab4f8;
    --accent-soft: #394457;
    --good: #81c995;
    --shadow: 0 1px 6px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
    --bg: #1f1f1f;
    --bg-2: #28292a;
    --bg-3: #303134;
    --surface: #202124;
    --line: #5f6368;
    --line-2: #3c4043;
    --text: #e8eaed;
    --text-2: #bdc1c6;
    --text-3: #9aa0a6;
    --link: #99c3ff;
    --link-visited: #c58af9;
    --accent: #8ab4f8;
    --accent-soft: #394457;
    --good: #81c995;
    --shadow: 0 1px 6px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .6);
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 14px/1.58 var(--font);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
/* The hidden attribute must win over every component's own display value,
   in every sheet on every page. A component that sets display (a modal, a
   drawer, a tab pane) otherwise beats the UA's [hidden] rule and paints
   from page load; the lightbox did exactly that. Components never carry
   their own [hidden] rule after this. */
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.small { font-size: var(--text-xs); }

.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  font-size: var(--text-xl); line-height: 1; display: inline-block; vertical-align: middle;
  -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; user-select: none;
}
.ms.xs { font-size: var(--text-md); }

/* ---- Progress bar (htmx indicator) ---- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-4)); background-size: 300% 100%; }
.progress.htmx-request { opacity: 1; animation: slide 1.1s linear infinite; }
@keyframes slide { to { background-position: -300% 0; } }

/* ---- Logo ---- */
/* Roboto is the only shipped family, so the wordmark uses it directly with
   tightened tracking rather than naming a font that was never bundled. */
.logo { font-family: var(--font); font-weight: 600; letter-spacing: -1.2px; white-space: nowrap; user-select: none; }
.logo-lg { font-size: clamp(56px, 12vw, 92px); margin: 0 0 26px; line-height: 1; letter-spacing: -4px; }
.logo-sm { font-size: var(--text-2xl); line-height: 1; letter-spacing: -1px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-1);
  border: 1px solid var(--bg-2); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: var(--text-body-s);
}
.btn:hover { border-color: var(--line); box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: var(--radius-pill); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary { color: #202124; }
}
:root[data-theme="dark"] .btn.primary { color: #202124; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; position: relative; list-style: none;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn::-webkit-details-marker { display: none; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-4); color: var(--accent); font-size: var(--text-sm);
}
.pill:hover { background: var(--accent-soft); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--brand-2); color: #fff; font-size: var(--text-2xs); font-weight: 500; line-height: 18px; text-align: center;
}

/* ---- Search box ---- */
.searchbox {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 692px; height: 46px;
  padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.searchbox:hover, .searchbox:focus-within { box-shadow: var(--shadow); border-color: transparent; }
.searchbox.open { border-radius: var(--radius-pill) 24px 0 0; box-shadow: var(--shadow); border-color: transparent; }
.searchbox-lg { max-width: 584px; height: 48px; }
.sb-icon { color: var(--text-3); font-size: var(--text-lg); margin-right: 10px; }
.sb-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: var(--text-base); }
.sb-input::-webkit-search-cancel-button { cursor: pointer; }
.sb-go { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--accent); cursor: pointer; }
.searchbox-lg .sb-go { display: none; }
.suggest {
  position: absolute; left: -1px; right: -1px; top: 100%; z-index: 30; background: var(--surface);
  border-radius: 0 0 24px 24px; box-shadow: 0 4px 6px rgba(32,33,36,.28); overflow: hidden; display: none;
}
.searchbox.open .suggest { display: block; }
.suggest ul { list-style: none; margin: 0; padding: 4px 0 12px; border-top: 1px solid var(--line-2); }
.sg { display: flex; align-items: center; gap: 12px; padding: 6px 20px; color: var(--text); }
.sg .ms { color: var(--text-3); }
.sg b { font-weight: 700; }
.sg span:last-child { font-weight: 400; }
.sg:hover, .sg.active { background: var(--bg-3); }

/* ---- Home & Curated Rolling Feed (X-Style) ---- */
.home { flex: 1; display: flex; flex-direction: column; }
.home-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 6px 16px; }
.home-top .actions { margin-left: 0; }
.home-links { display: flex; gap: 16px; font-size: var(--text-sm); }
.home-links a:hover { text-decoration: underline; }
.home-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 6vh 32px 40px; }
.home-btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: flex-start; }
.home-surfaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; width: 100%; max-width: 584px; margin-top: 40px; }
.surface-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: var(--radius-3); font-size: var(--text-sm); color: var(--text-2); }
.surface-tile:hover { background: var(--bg-3); }
.app-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }

/* Home Portal Layout & X-Style Rolling Feed */
.home-portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  max-width: 1080px;
  width: 100%;
  box-sizing: border-box;
  justify-content: start;
  gap: 28px;
  padding: 16px 24px 60px;
  flex: 1;
  background: var(--bg);
}
.home-timeline-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
}
/* X-Style Interactive Composer Card */
.x-composer-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.x-composer-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
}
.x-composer-avatar {
  flex: none;
}
.x-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  display: grid;
  place-items: center;
  user-select: none;
}
.x-avatar-circle.ph {
  background: var(--bg-3);
  color: var(--text-3);
}
.x-composer-body {
  flex: 1;
  min-width: 0;
}
.x-composer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.x-composer-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: var(--text-base);
  color: var(--text);
  outline: none;
  font-family: inherit;
  padding: 4px 0;
}
.x-composer-input::placeholder {
  color: var(--text-3);
}
.x-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.x-composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.x-composer-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.x-composer-tool-btn:hover {
  background: var(--accent-soft);
  transform: scale(1.08);
}
.x-composer-tool-btn .ms {
  font-size: 19px;
}
.x-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

/* 2. Live Rolling Stream Bar (like X) */
.x-stream-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.x-stream-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.x-new-updates-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.16s ease;
}
.x-new-updates-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}


/* Rolling Feed Cards */
.rolling-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feed-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  background: var(--surface);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-card:hover {
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.fcard-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fcard-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.fcard-avatar.deal-avatar { background: #fee2e2; color: #dc2626; }
.fcard-avatar.prod-avatar { background: #ede9fe; color: #7c3aed; }
.fcard-avatar.post-avatar { background: #e0e7ff; color: #4f46e5; }
.fcard-avatar.short-avatar { background: #fef3c7; color: #d97706; }
.fcard-avatar.market-avatar { background: #dcfce7; color: #16a34a; }
.fcard-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fcard-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fcard-author {
  font-weight: 600;
  font-size: var(--text-base-s);
  color: var(--text);
  text-decoration: none;
}
.fcard-author:hover {
  color: var(--accent);
  text-decoration: underline;
}
.verified-badge {
  color: var(--accent);
  display: inline-flex;
}
.fcard-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.deal-tag { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.prod-tag { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.market-tag { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; text-decoration: none; }
.short-tag { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.fcard-sub {
  font-size: var(--text-xs);
  color: var(--text-3);
}

.fcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fcard-deal-title {
  font-size: var(--text-md-s);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.fcard-deal-title:hover {
  color: var(--accent);
}
.fcard-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.deal-price-now {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}
.deal-price-was {
  font-size: var(--text-base-s);
  color: var(--text-3);
}
.deal-discount-pill {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: var(--radius-1);
}
.stock-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}
.stock-pill.in-stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.stock-pill.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.fcard-media {
  display: block;
  border-radius: var(--radius-3);
  overflow: hidden;
  max-height: 380px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.fcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 380px;
  display: block;
}
.fcard-post-title {
  font-size: var(--text-md-s);
  font-weight: 600;
  margin: 0;
}
.fcard-post-title a {
  color: var(--text);
  text-decoration: none;
}
.fcard-post-title a:hover {
  color: var(--accent);
}
.fcard-post-body {
  font-size: var(--text-base-s);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  white-space: pre-wrap;
}
.fcard-market-desc {
  font-size: var(--text-body-s);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.fcard-short-preview {
  position: relative;
  border-radius: var(--radius-4);
  overflow: hidden;
  background: #000;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 360px;
}
.fcard-short-preview img, .fcard-short-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fcard-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fcard-short-preview:hover .fcard-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent);
}
.fcard-short-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-weight: 600;
  font-size: var(--text-body-s);
}

.fcard-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.x-actions-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.x-actions-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.x-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-3);
  border: 1px solid transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.x-action-btn:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line-2);
}
.x-action-btn.like-btn:hover {
  background: #fdf2f8;
  color: #db2777;
  border-color: #fbcfe8;
}
.x-action-btn.like-btn.liked {
  color: #e11d48;
  background: #ffe4e6;
  border-color: #fecdd3;
}
.x-action-btn.like-btn.liked .ms {
  font-variation-settings: 'FILL' 1;
}
.icon-btn-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  margin-left: auto;
  transition: color 0.12s, background 0.12s;
}
.icon-btn-sm:hover {
  color: var(--text);
  background: var(--bg-2);
}

/* Home Right Sidebar */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  height: fit-content;
  min-width: 0;
  width: 100%;
}
.sidebar-box {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  padding: 18px 20px;
  background: var(--surface);
}
.sidebar-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-box-head h3 {
  font-size: var(--text-base-s);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.side-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.side-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar-markets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-market-item .sm-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-2);
  transition: background 0.12s;
}
.sidebar-market-item .sm-link:hover {
  background: var(--bg-2);
}
.sm-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-2);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.sm-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.safety-box {
  background: var(--bg-2);
}
.safety-icon {
  color: var(--good);
  margin-bottom: 6px;
}
.safety-box h4 {
  margin: 0 0 4px;
  font-size: var(--text-base-s);
  font-weight: 600;
}
.sidebar-footer {
  line-height: 1.8;
  padding: 0 8px;
}
.sidebar-footer a {
  color: var(--text-3);
  text-decoration: none;
}
.sidebar-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---- Actions / apps menu ---- */
.actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.apps { position: relative; }
.apps-menu {
  position: absolute; right: 0; top: 46px; z-index: 40; width: 320px; padding: 16px; border-radius: var(--radius-4);
  background: var(--surface); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius-2); font-size: var(--text-sm); }
.app:hover { background: var(--bg-3); }

/* ---- Top bar + tabs ---- */
.topbar {
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px 6px 24px;
}
.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 6px 0;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 6px 164px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-loc-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tabs-loc-slot .loc-chip {
  margin: 0 !important;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.tabs-loc-slot .loc-chip:hover {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--line);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: var(--text-body-s);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
}
.tab .ms {
  font-size: var(--text-md);
  color: var(--text-3);
  transition: color 0.16s ease, transform 0.16s ease;
}
.tab:hover {
  color: var(--text);
  background: var(--bg-2);
  border-color: var(--line-2);
}
.tab:hover .ms {
  color: var(--text);
  transform: scale(1.08);
}
.tab.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(26, 115, 232, 0.22);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tab.active .ms {
  color: var(--accent);
}

/* ---- Results page ---- */
.serp { display: grid; grid-template-columns: minmax(0, 652px) minmax(0, 372px); gap: 76px; padding: 12px 16px 40px 174px; flex: 1; }
.serp-images, .serp-shopping, .serp-maps, .serp-videos { grid-template-columns: minmax(0, 1fr); padding-left: 174px; padding-right: 32px; }
.serp-images, .serp-shopping { padding-left: 32px; }
.serp-news { grid-template-columns: minmax(0, 760px); }
.stats { color: var(--text-3); font-size: var(--text-sm); margin: 4px 0 18px; }
.notice { display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--radius-2); background: var(--accent-soft); color: var(--text-2); }
.empty { padding: 20px 0; color: var(--text-2); }
.empty a { color: var(--link); margin-right: 8px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip-drop { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius-2); color: var(--text-2); cursor: pointer; list-style: none; font-size: var(--text-body-s); background: var(--surface);
}
.chip::-webkit-details-marker { display: none; }
.chip:hover { background: var(--bg-3); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.clear { padding: 0 12px; }
.menu {
  position: absolute; top: 38px; left: 0; z-index: 25; min-width: 200px; max-height: 360px; overflow: auto;
  padding: 8px 0; border-radius: var(--radius-2); background: var(--surface); box-shadow: var(--shadow-lg);
}
.menu a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; color: var(--text); }
.menu a:hover { background: var(--bg-3); }
.menu a.on { color: var(--accent); font-weight: 500; }
/* Related searches */
.related-searches { margin: 28px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.related-searches h3 { font-size: var(--text-body-s); color: var(--text-2); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Web results */
.r { margin-bottom: 30px; }
.r-link { display: block; }
.r-site { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.favicon {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line-2); font-size: var(--text-sm); font-weight: 500; color: var(--text-2);
}
/* A 10px favicon glyph is an icon, not type: it is sized to the 18px box it
   sits in, so it stays a literal rather than a step on the text scale. */
.favicon.sm { width: 18px; height: 18px; font-size: 10px; margin-right: 8px; vertical-align: -4px; }
.r-site-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.r-src { font-size: var(--text-body-s); color: var(--text); }
.r cite { font-style: normal; font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r h3 { margin: 0; font-size: var(--text-lg); font-weight: 400; line-height: 1.3; color: var(--link); }
.r-link:hover h3 { text-decoration: underline; }
.r-link:visited h3 { color: var(--link-visited); }
.r-body { display: flex; gap: 16px; align-items: flex-start; margin-top: 4px; }
.r-snip { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.r-snip b { color: var(--text); }
.r-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius-2); flex: none; }

/* Modules on the All tab */
.module-slot { min-height: 1px; }
.module { margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.module-h { display: flex; align-items: center; gap: 8px; font-size: var(--text-lg); font-weight: 400; margin: 0 0 14px; }
.module-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.module-images .module-row { grid-auto-columns: minmax(140px, 1fr); }
.module-images .img-tile { height: 140px; width: auto; flex: none; }
.module-news .module-row, .module-videos .module-row { grid-auto-flow: row; grid-auto-columns: auto; }
.module-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--accent); }

/* Knowledge panel */
.serp-side:empty { display: none; }
.kp { border: 1px solid var(--line-2); border-radius: var(--radius-2); padding: 16px; position: sticky; top: 140px; }
.kp-img { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-2); margin-bottom: 12px; }
.kp-title { margin: 0; font-size: var(--text-2xl); font-weight: 400; line-height: 1.2; }
.kp p { color: var(--text-2); }
.kp-src { color: var(--link); }

/* Images */
.img-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.img-grid::after { content: ""; flex-grow: 1000; }
.img-tile {
  position: relative; display: flex; flex-direction: column; flex-grow: calc(var(--r) * 100);
  width: calc(var(--r) * 180px); max-width: 100%; cursor: pointer;
}
.img-tile img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-3); background: var(--bg-3); }
.img-tile:hover img { box-shadow: var(--shadow); }
.img-cap { display: flex; flex-direction: column; padding: 4px 2px 0; font-size: var(--text-xs); line-height: 1.35; min-width: 0; }
.img-src { color: var(--text-3); }
.img-title { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-images .img-tile img { height: 140px; }
.module-images .img-cap { display: none; }

/* Videos */
.vid { display: flex; gap: 16px; margin-bottom: 28px; max-width: 860px; }
.vid-thumb { position: relative; flex: none; width: 240px; aspect-ratio: 16/9; border-radius: var(--radius-3); overflow: hidden; background: var(--bg-3); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb .play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; font-size: var(--text-4xl); color: #fff; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.vid-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: var(--radius-1); background: rgba(0,0,0,.75); color: #fff; font-size: var(--text-xs); }
.vid-body { min-width: 0; }
.vid-title { display: block; color: var(--link); font-size: var(--text-md); line-height: 1.3; margin-bottom: 4px; }
.vid-title:hover { text-decoration: underline; }
.module-videos .vid { margin-bottom: 16px; }
.module-videos .vid-thumb { width: 160px; }

/* News */
.news { display: flex; gap: 16px; justify-content: space-between; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-3); }
.news:hover { box-shadow: var(--shadow); border-color: transparent; }
.news-src { font-size: var(--text-sm); color: var(--text-2); margin-bottom: 6px; }
.news h3 { margin: 0 0 6px; font-size: var(--text-md); font-weight: 400; line-height: 1.35; color: var(--link); }
.news .r-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.news-img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius-2); flex: none; }

/* Shopping */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.prod { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-3); background: var(--surface); }
.prod:hover { box-shadow: var(--shadow); border-color: transparent; }
.prod-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-2); background: #fff; overflow: hidden; margin-bottom: 6px; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-title { color: var(--text); font-size: var(--text-base-s); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-title:hover { text-decoration: underline; }
.prod-price { display: flex; gap: 8px; align-items: baseline; font-size: var(--text-base-s); }
.prod-price.lg { font-size: var(--text-xl); }
.rating { font-size: var(--text-sm); color: var(--text-2); }
.stars { color: #e7711b; letter-spacing: 1px; }
.ship { color: var(--good); }
.btn-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-4); background: transparent; color: var(--accent); cursor: pointer; font-size: var(--text-sm); font-weight: 500;
}
.prod .btn-cart { margin-top: 8px; }
.btn-cart:hover { background: var(--accent-soft); }
.btn-cart.added { background: var(--accent-soft); border-color: transparent; }
.btn-cart.htmx-request { opacity: .6; }

/* Maps: closed by default to save space for listings & info */
.maps-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.maps-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-2); gap: 12px; }
.maps-summary-text { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--text-sm); color: var(--text-2); }
.map-toggle-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.maps { display: block; border: 1px solid var(--line-2); border-radius: var(--radius-3); overflow: hidden; }
.map-list { width: 100%; max-height: none; }
.map-canvas { display: none; height: 450px; background: var(--bg-3); }

/* When map is opened by user */
.maps.map-open { display: grid; grid-template-columns: 420px 1fr; gap: 0; height: calc(100vh - 220px); min-height: 480px; }
.maps.map-open .map-list { overflow-y: auto; height: 100%; border-right: 1px solid var(--line-2); }
.maps.map-open .map-canvas { display: block; height: 100%; min-height: 100%; }

.place { padding: 16px 20px; border-bottom: 1px solid var(--line-2); cursor: pointer; outline: none; transition: background 0.15s ease; }
.place:last-child { border-bottom: none; }
.place:hover, .place:focus, .place.active { background: var(--bg-2); }
.place h3 { margin: 0 0 4px; font-size: var(--text-base); font-weight: 600; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.place-actions .pill { cursor: pointer; border: 1px solid var(--line-2); background: var(--surface); padding: 5px 12px; border-radius: var(--radius-4); font-size: var(--text-xs); display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--text); font-family: inherit; }
.place-actions .pill:hover { background: var(--bg-2); border-color: var(--line); }
.place-actions .btn-show-on-map { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 500; }
.place-actions .btn-show-on-map:hover { filter: brightness(0.95); }
.module-maps .module-row { grid-auto-flow: row; }


/* Pager */
.pager { display: flex; justify-content: center; align-items: flex-end; margin: 36px 0 12px; }
.pg-link { display: flex; flex-direction: column-reverse; align-items: center; }
.pg-link:not(.cur):hover .pg-t { text-decoration: underline; }
.pg-link { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-items: center; }
.pg-l { grid-row: 1; font-family: var(--font); font-size: var(--text-3xl); font-weight: 600; line-height: 1; letter-spacing: -0.8px; }
.pg-t { grid-row: 2; grid-column: 1 / -1; display: inline-flex; align-items: center; font-size: var(--text-body-s); color: var(--link); min-width: 20px; justify-content: center; }
.cur .pg-t { color: var(--text); font-weight: 500; }
.c1 { color: var(--brand-1); } .c2 { color: var(--brand-2); } .c3 { color: var(--brand-3); } .c4 { color: var(--brand-4); }

/* Infinite scroll */
.sentinel { display: grid; place-items: center; width: 100%; padding: 24px; grid-column: 1 / -1; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Preview side sheet */
.preview:empty { display: none; }
.preview { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(520px, 100vw); overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); animation: in .18s ease-out; }
@keyframes in { from { transform: translateX(30px); opacity: 0; } }
.pv { padding: 16px 24px 32px; }
.pv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pv-src { color: var(--text-2); }
.pv-media { border-radius: var(--radius-3); overflow: hidden; background: var(--bg-3); }
.pv-media:empty { display: none; }
.pv-media img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.pv-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.pv-title { font-size: var(--text-xl); font-weight: 400; line-height: 1.3; margin: 16px 0 8px; }
.pv-text { color: var(--text-2); }
.pv-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; font-size: var(--text-sm); }
.pv-meta dt { color: var(--text-3); }
.pv-meta dd { margin: 0; overflow-wrap: anywhere; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-actions .btn-cart { margin-top: 0; }
.item-page { flex: 1; max-width: 760px; width: 100%; margin: 0 auto 0 0; padding: 16px; }
.item-page .pv-head .icon-btn { display: none; }

/* Cart */
.cart-page { flex: 1; width: 100%; max-width: 860px; margin: 0 auto 0 0; padding: 24px 16px 48px; }
.cart-page h1 { font-weight: 400; font-size: var(--text-2xl); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-img { width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: var(--radius-2); border: 1px solid var(--line-2); }
.cart-img.ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cart-title { font-size: var(--text-base); color: var(--link); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-price { text-align: right; font-size: var(--text-base); font-weight: 500; }
.cart-total { display: flex; justify-content: space-between; padding: 20px 0; font-size: var(--text-md); }
.cart-checkout { text-align: right; }

/* Footer */
.footer { background: var(--bg-2); color: var(--text-3); border-top: 1px solid var(--line-2); font-size: var(--text-body-s); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .serp { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-left: 32px; padding-right: 32px; }
  .tabs { padding-left: 16px; }
  .kp { position: static; }
}
@media (max-width: 760px) {
  .topbar-row { flex-wrap: wrap; gap: 12px; padding: 12px 16px 6px; }
  .topbar-row .searchbox { order: 3; max-width: none; }
  .tabs-row { flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
  .tabs-loc-slot { padding-left: 16px; }
  .serp, .serp-images, .serp-shopping, .serp-maps, .serp-videos { padding: 12px 16px 32px; }
  .maps { display: block; height: auto; }
  .maps.map-open { display: flex; flex-direction: column; height: auto; }
  .maps.map-open .map-canvas { display: block; height: 320px; min-height: 320px; order: -1; border-bottom: 1px solid var(--line-2); }
  .maps.map-open .map-list { height: auto; max-height: 60vh; overflow-y: auto; border-right: 0; }
  .map-canvas { display: none; }
  .vid { flex-direction: column; }
  .vid-thumb { width: 100%; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-l { font-size: var(--text-2xl); }
  .pager .pg-col:nth-child(n+8):not(:last-child) { display: none; }
  .apps-menu { width: min(320px, calc(100vw - 32px)); }
}

/* Error pages */
.error-page { flex: 1; width: 100%; max-width: 640px; margin: 0 auto 0 0; padding: 48px 24px; }
.logo-md { font-size: var(--text-3xl); letter-spacing: -2px; }
.error-box { margin-top: 24px; font-size: var(--text-base); color: var(--text-2); }
.error-code { font-size: var(--text-lg); color: var(--text); }

/* Account menu */
.account { position: relative; }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; list-style: none;
  background: var(--brand-1); color: #fff; font-weight: 500; margin-left: 6px;
}
.avatar::-webkit-details-marker { display: none; }
.avatar.lg { width: 40px; height: 40px; margin: 0; cursor: default; }
.account-menu {
  position: absolute; right: 0; top: 44px; z-index: 40; width: 280px; padding: 8px 0; border-radius: var(--radius-4);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.account-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; overflow-wrap: anywhere; }
.account-menu a, .menu-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; cursor: pointer; font-size: var(--text-body-s); color: var(--text); text-align: left; }
.account-menu a:hover, .menu-btn:hover { background: var(--bg-3); }
.signin { margin-left: 8px; height: 36px; }

/* Flash */
.flash { display: flex; gap: 8px; align-items: center; justify-content: flex-start; padding: 10px 24px; background: var(--accent-soft); color: var(--text); font-size: var(--text-body-s); }

/* Forms */
.auth-page { flex: 1; display: grid; place-items: start start; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface); }
.auth-title { font-size: var(--text-xl); font-weight: 400; margin: 16px 0 20px; }
.auth-links { margin-top: 20px; font-size: var(--text-body-s); color: var(--text-2); }
.auth-links a, .check a, .form a { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-body-s); color: var(--text-2); }
.field input, .field textarea, .field select {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-1); background: var(--surface);
  color: var(--text); font: inherit; font-size: var(--text-base);
}
.field textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-body-s); color: var(--text-2); }
.check input { margin-top: 3px; }
.btn.wide { width: 100%; justify-content: center; height: 44px; }
.form-error { padding: 10px 14px; margin-bottom: 16px; border-radius: var(--radius-2); background: #fce8e6; color: #a50e0e; font-size: var(--text-body-s); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-error { background: #5c2b29; color: #f6aea9; }
}
:root[data-theme="dark"] .form-error { background: #5c2b29; color: #f6aea9; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.role-pick legend { font-size: var(--text-body-s); color: var(--text-2); margin-bottom: 6px; }
.role-opt { display: block; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-2); height: 100%; }
.role-opt small { color: var(--text-3); font-size: var(--text-xs); }
.role-opt input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.role-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Settings / account layout */
.settings-page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto 0 0; padding: 24px 16px 48px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.settings-main h1 { font-size: var(--text-2xl); font-weight: 400; margin: 0 0 20px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 0 20px 20px 0; color: var(--text-2); }
.side-nav a:hover { background: var(--bg-3); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.card { border: 1px solid var(--line-2); border-radius: var(--radius-3); padding: 20px 24px; margin-bottom: 20px; background: var(--surface); }
.card h2 { font-size: var(--text-md); font-weight: 500; margin: 0 0 16px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.ok { color: var(--good); display: inline-flex; align-items: center; gap: 4px; }
.form.narrow { max-width: 420px; }
form.inline { display: inline; }
@media (max-width: 760px) {
  .settings-page { grid-template-columns: 1fr; gap: 16px; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-nav a { border-radius: var(--radius-pill); white-space: nowrap; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* Storefront */
.shop-page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto 0 0; padding: 24px 16px 48px; }
.shop-hero { display: flex; gap: 20px; align-items: center; padding: 8px 0 24px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.shop-hero h1 { margin: 0 0 4px; font-size: var(--text-2xl); font-weight: 400; }
.shop-logo { width: 72px; height: 72px; border-radius: var(--radius-4); object-fit: cover; flex: none; background: var(--bg-3); }
.shop-logo.ph { display: grid; place-items: center; font-size: var(--text-2xl); color: #fff; background: var(--shop-accent, var(--brand-1)); }

/* Seller dashboard */
.dash { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto 0 0; padding: 24px 16px 48px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.dash-main h1 { font-size: var(--text-2xl); font-weight: 400; margin: 0 0 20px; }
.dash-side { display: flex; flex-direction: column; gap: 12px; }
.dash-shop { display: flex; gap: 12px; align-items: center; padding: 0 8px; overflow-wrap: anywhere; }
.shop-logo.sm { width: 40px; height: 40px; border-radius: var(--radius-2); font-size: var(--text-md); }
.view-shop { justify-content: center; }
.back-link { display: inline-flex; gap: 6px; align-items: center; padding: 8px; color: var(--text-3); font-size: var(--text-sm); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-3); background: var(--surface); }
a.stat[href]:hover { box-shadow: var(--shadow); border-color: transparent; }
.stat-label { color: var(--text-2); font-size: var(--text-sm); }
.stat-value { font-size: var(--text-2xl); }
.field input[type="color"] { width: 64px; padding: 2px; }
.field input[readonly] { background: var(--bg-2); color: var(--text-3); }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .dash-side .side-nav { flex-direction: row; overflow-x: auto; }
}

/* Dashboard tables and forms */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head h1 { margin: 0; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-3); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-body-s); }
.table th { text-align: left; font-weight: 500; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-prod { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.cell-prod img, .thumb-ph { width: 40px; height: 40px; border-radius: var(--radius-1); object-fit: cover; background: var(--bg-3); display: grid; place-items: center; flex: none; color: var(--text-3); }
.cell-prod a { color: var(--link); }
.row-actions { white-space: nowrap; text-align: right; }
.pill-status { display: inline-block; padding: 2px 10px; border-radius: var(--radius-3); font-size: var(--text-xs); background: var(--bg-3); color: var(--text-2); white-space: nowrap; }
.pill-status.live { background: #e6f4ea; color: #137333; }
.pill-status.warn { background: #fef7e0; color: #b06000; }
.pill-status.bad { background: #fce8e6; color: #a50e0e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-status.live { background: #0d3a1f; color: #81c995; }
  :root:not([data-theme="light"]) .pill-status.warn { background: #3d2e00; color: #fdd663; }
  :root:not([data-theme="light"]) .pill-status.bad { background: #5c2b29; color: #f6aea9; }
}
:root[data-theme="dark"] .pill-status.live { background: #0d3a1f; color: #81c995; }
  :root[data-theme="dark"] .pill-status.warn { background: #3d2e00; color: #fdd663; }
  :root[data-theme="dark"] .pill-status.bad { background: #5c2b29; color: #f6aea9; }
.simple-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 24px; color: var(--text-2); }
.empty-state .ms { font-size: var(--text-3xl); color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.status-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.status-pick legend { font-size: var(--text-body-s); color: var(--text-2); margin-bottom: 6px; }
.form-actions { display: flex; gap: 8px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d93025; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.report h3 { font-size: var(--text-base-s); font-weight: 500; margin: 20px 0 10px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: var(--text-xs); background: var(--bg-3); padding: 1px 4px; border-radius: var(--radius-1); }

/* Conversations */
.badge-slot .badge { top: 2px; right: 0; }
.msg-page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto 0 0; padding: 24px 16px 32px; display: flex; flex-direction: column; }
.msg-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.msg-head h1 { font-size: var(--text-xl); font-weight: 400; margin: 0 0 4px; }
.msg-head a { color: var(--link); }
.thread-body { display: flex; flex-direction: column; min-height: 0; }
.msg-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-3); background: var(--bg-2); max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: var(--radius-4); background: var(--surface); border: 1px solid var(--line-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.bubble.admin { align-self: center; background: #fef7e0; color: #5f4300; border-color: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bubble.admin { background: #3d2e00; color: #fdd663; }
}
:root[data-theme="dark"] .bubble.admin { background: #3d2e00; color: #fdd663; }
.bubble-meta { display: block; margin-top: 4px; font-size: var(--text-2xs); color: var(--text-3); }
.reply-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.reply-form textarea { flex: 1; min-height: 48px; max-height: 200px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.thread-closed { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-2); background: var(--bg-3); color: var(--text-2); }
.inbox { border: 1px solid var(--line-2); border-radius: var(--radius-3); overflow: hidden; }
.inbox-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--bg-2); }
.inbox-row.unread .inbox-subject { font-weight: 700; }
.inbox-subject { color: var(--text); }
.inbox-preview { grid-column: 1 / -1; color: var(--text-3); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--radius-2); background: var(--accent); color: #fff; font-size: var(--text-xs); text-align: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .count-pill { color: #202124; }
}
:root[data-theme="dark"] .count-pill { color: #202124; }

/* Daily bar charts */
.chart figcaption { font-weight: 500; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.bar { width: 100%; min-height: 0; background: var(--accent); border-radius: var(--radius-1) 4px 0 0; }
.bar-col:hover .bar, .bar-col:focus-visible .bar { filter: brightness(0.85); }
.bar-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 6px 10px; border-radius: var(--radius-1); background: var(--text); color: var(--bg); font-size: var(--text-xs); white-space: nowrap; pointer-events: none; }
.bar-tip b { margin-left: 8px; }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { display: block; }
.bar-col:first-child .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }
.bars-axis { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-3); margin-top: 6px; }
details.card summary { cursor: pointer; font-weight: 500; }
details.card[open] summary { margin-bottom: 12px; }

/* Storefront pages */
.shop-page { --shop-accent: var(--accent); }
.btn.accent { background: var(--shop-accent); border-color: var(--shop-accent); color: #fff; border-radius: var(--radius-pill); }
.btn.accent:hover { filter: brightness(0.92); }
.btn.big { height: 44px; padding: 0 20px; font-size: var(--text-base-s); }
.shop-hero-text { min-width: 0; }
.shop-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.shop-search { position: relative; display: flex; align-items: center; max-width: 480px; height: 44px; padding: 0 14px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.shop-search:focus-within { box-shadow: var(--shadow); border-color: transparent; }
.store-tile { color: var(--text); }
.store-tile .prod-img .ms { font-size: var(--text-3xl); color: var(--text-3); }
.delivery-note { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: var(--text-sm); margin-top: 24px; }
.crumbs { font-size: var(--text-sm); color: var(--text-3); margin-bottom: 16px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { font-size: var(--text-body-s); color: var(--text-3); }
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { position: sticky; top: 88px; }
.gallery-hero-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius-4); overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05); }
.gallery-main { width: 100%; height: 100%; object-fit: contain; transition: transform 200ms ease; }
.gallery-hero-wrap:hover .gallery-main { transform: scale(1.02); }
.gallery-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--radius-3); font-size: var(--text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gallery-badge.sale { background: var(--bad-bg); color: var(--bad-fg); }
.gallery-main.ph { display: grid; place-items: center; color: var(--text-3); width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-4); }
.gallery-main.ph .ms { font-size: var(--text-4xl); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-2); background: #fff; cursor: pointer; overflow: hidden; transition: all 140ms ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-1px); border-color: var(--line); }
.thumb.on { border-color: var(--shop-accent, var(--accent)); box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15); }
.product-info h1 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; line-height: 1.25; color: var(--text); }
.brand-tag { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 6px; }
.prod-price-row { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 8px; flex-wrap: wrap; }
.prod-price-row .prod-price { margin: 0; }
.prod-was { font-size: var(--text-md); text-decoration: line-through; color: var(--text-3); }
.sale-pill { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; }
.stock { margin-bottom: 16px; }
.product-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.product-trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-3); margin: 18px 0; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-2); font-weight: 500; }
.product-desc { color: var(--text-2); margin: 20px 0; line-height: 1.65; font-size: var(--text-base-s); }
.product-desc:not(.prose) { white-space: pre-wrap; }
.product-desc.prose p { margin: 0 0 12px; }
.product-desc.prose h2 { font-size: 19px; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.product-desc.prose h3 { font-size: var(--text-base); font-weight: 600; margin: 16px 0 6px; color: var(--text); }
.product-desc.prose ul, .product-desc.prose ol { margin: 0 0 14px; padding-left: 24px; }
.product-desc.prose li { margin-bottom: 4px; }
.product-desc.prose blockquote { margin: 14px 0; padding: 8px 16px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.product-desc.prose a { color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; gap: 20px; } .gallery { position: static; } }

/* Admin */
.link-strong { color: var(--link); font-weight: 500; }
.suspend-form { display: inline-flex; gap: 6px; align-items: center; }
.suspend-form .reason, .row-actions select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-1); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm); }
.row-actions form { margin-left: 6px; }

/* Grid children may shrink below their content width (scrolling rows stay inside). */
.dash > *, .settings-page > *, .serp > * { min-width: 0; }

/* Sponsored results */
.sponsored-block { margin-bottom: 24px; display: grid; gap: 12px; }
.ad { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-3); margin-bottom: 24px; }
.sponsored-block .ad { margin-bottom: 0; }
.ad-label { margin-bottom: 6px; }
.sponsored-tag { font-weight: 700; font-size: var(--text-xs); color: var(--text); }
.ad-link { display: flex; gap: 14px; align-items: flex-start; }
.ad-img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--radius-2); flex: none; }
.ad-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-title { color: var(--link); font-size: var(--text-md); line-height: 1.3; }
.ad-link:hover .ad-title { text-decoration: underline; }
.ad-price { font-weight: 500; }
.ad .r-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Docs & API keys */
.doc-page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto 0 0; padding: 32px 16px 56px; line-height: 1.65; }
.doc-page h1 { font-size: var(--text-2xl); font-weight: 400; margin: 0 0 8px; }
.doc-page h2 { font-size: var(--text-lg); font-weight: 500; margin: 32px 0 8px; }
.doc-page .lead { font-size: var(--text-md-s); color: var(--text-2); }
.doc-page pre { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-2); padding: 14px 16px; overflow-x: auto; }
.doc-page pre code { background: none; padding: 0; font-size: var(--text-sm); }
.doc-page .table { margin: 12px 0; }
.new-key { border-color: var(--good); }
.key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key-row code { font-size: var(--text-body-s); padding: 8px 10px; overflow-wrap: anywhere; }

/* Destructive actions */
.danger-zone { border-color: #f5c2bd; }
.btn.danger { background: #d93025; border-color: #d93025; color: #fff; }
.btn.danger:hover { background: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .danger-zone { border-color: #5c2b29; }
}
:root[data-theme="dark"] .danger-zone { border-color: #5c2b29; }
.doc-page ul { padding-left: 20px; }
.doc-page li { margin-bottom: 6px; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-input:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: none; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 200; padding: 10px 16px; border-radius: var(--radius-2);
  background: var(--accent); color: #fff; font-weight: 500; transition: top .15s; }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Saved items (wishlist) */
.save-btn.saved { color: #d93025; border-color: #f6aea9; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.saved-card { border: 1px solid var(--line-2); border-radius: var(--radius-3); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.saved-card a { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.saved-card img, .saved-ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-3); display: grid; place-items: center; }
.saved-card b { padding: 0 12px; font-weight: 500; }
.saved-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px 12px; margin-top: auto; }

/* Storefront checkout */
.checkout-page { max-width: 1080px; }
.checkout-page h1 { font-size: var(--text-2xl); font-weight: 400; margin: 8px 0 20px; }
.shop-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.shop-mini-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.checkout-main { min-width: 0; display: flex; flex-direction: column; }
.checkout-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.checkout-side h2, .checkout-main h2 { font-size: var(--text-md-s); font-weight: 500; margin: 0 0 12px; }
.sum-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sum-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sum-img { position: relative; width: 52px; height: 52px; border-radius: var(--radius-2); border: 1px solid var(--line-2); background: var(--bg-3); display: grid; place-items: center; }
.sum-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-2); }
.sum-img i { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-2); background: var(--text-2); color: var(--bg); font-size: var(--text-2xs); font-style: normal; display: grid; place-items: center; }
.sum-img.lg { width: 84px; height: 84px; }
.sum-title { display: flex; flex-direction: column; min-width: 0; }
.sum-amt { font-variant-numeric: tabular-nums; }
.sum-totals { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.sum-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-totals dt { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.sum-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { padding-top: 8px; border-top: 1px solid var(--line-2); font-size: var(--text-md-s); font-weight: 500; }
.sum-total dt { color: var(--text); }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-lines li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.bag-lines li:first-child { border-top: 0; padding-top: 0; }
.bag-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bag-info a { color: var(--text); }
.bag-qty input { width: 72px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface); color: var(--text); font: inherit; }
.bag-amt { font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.discount-row { display: flex; gap: 8px; align-items: flex-end; }
.discount-row .field { flex: 1; }
.buy-box { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-3); }
.buy-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.qty-field { width: 90px; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; }
.pay-card { max-width: 520px; margin: 40px auto 40px 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
.pay-icon { font-size: var(--text-3xl); color: var(--shop-accent, var(--accent)); }
.order-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.order-hero h1 { margin: 4px 0 8px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pre { white-space: pre-wrap; }
.ship-list { list-style: none; margin: 0; padding: 0; }
.ship-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ship-list li:first-child { border-top: 0; }
.ship-list li > div { flex: 1; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .bag-lines li { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .bag-lines .sum-img.lg { width: 64px; height: 64px; }
  .bag-amt { grid-column: 2; text-align: left; }
}
.grid-2 > *, .grid-3 > * { min-width: 0; }
.checkout-page .field input, .checkout-page .field textarea, .checkout-page .field select { width: 100%; }
.checkout-side h2 + .sum-totals { border-top: 0; padding-top: 0; margin-top: 0; }

/* Product page: urgency, restock, bundles */
.urgency { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--text-sm); color: var(--text-2); }
.urgency li { display: inline-flex; align-items: center; gap: 4px; }
.urgency .u-low { color: #b06000; font-weight: 500; }
.urgency .u-fast { color: #c5221f; font-weight: 500; }
.restock-form { margin: 14px 0; }
.restock-row { display: flex; gap: 8px; }
.restock-row input { flex: 1; min-width: 0; }
.bundle-offer { margin: 20px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-3); display: flex; flex-direction: column; gap: 10px; }
.bundle-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bundle-items { display: flex; gap: 8px; }
.bundle-items a { width: 56px; height: 56px; border-radius: var(--radius-2); overflow: hidden; background: var(--bg-3); display: grid; place-items: center; border: 1px solid var(--line-2); }
.bundle-items img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Quotes and quick order (storefront) ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.center { text-align: center; }
.plain-lines { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-body-s); }
.quick-order { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.quick-order textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: var(--text-body-s); }

/* ---- Shop pages, blog and themes ---- */
.shop-page { background: var(--shop-bg, transparent); color: var(--shop-ink, var(--text)); font-family: var(--shop-font-body, inherit); }
.shop-page h1, .shop-page h2, .shop-page h3, .shop-page .post-title, .shop-page .shop-section-head h2 { font-family: var(--shop-font-heading, inherit); }
.shop-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 0 0 20px; font-size: var(--text-body-s); }
.shop-nav a { color: var(--text-2); }
.shop-nav a:hover { color: var(--text); }
.shop-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.shop-footer .shop-nav { margin: 0; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.shop-section { margin-top: 32px; }
.shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shop-section-head h2 { margin: 0; font-size: var(--text-lg); font-weight: 500; }
.partner-block { margin-top: 24px; }
.partner-block:first-of-type { margin-top: 4px; }
.partner-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.partner-head h3 { margin: 0; font-size: var(--text-md-s); font-weight: 500; }
.partner-head h3 a { color: inherit; }
.shop-content { max-width: 860px; }
.shop-content .content-article { padding: 28px 32px; }
.content-head { margin-bottom: 20px; }
.content-head h1 { font-size: var(--text-2xl); font-weight: 400; margin: 0 0 6px; line-height: 1.25; }
.content-title { font-size: var(--text-2xl); font-weight: 400; margin: 0 0 6px; line-height: 1.25; }
.content-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-3); margin: 12px 0 4px; }
.prose { line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: var(--text-lg); font-weight: 500; margin: 28px 0 8px; }
.prose h3 { font-size: var(--text-md-s); font-weight: 500; margin: 22px 0 6px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--radius-3); overflow: hidden; background: var(--surface); color: var(--text); }
.post-card:hover { border-color: var(--line); }
.post-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-3); color: var(--text-3); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .ms { font-size: var(--text-3xl); }
.post-body { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; min-width: 0; }
.post-title { font-size: var(--text-md-s); font-weight: 500; line-height: 1.35; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-3); }
.content-article .post-meta { margin: 0 0 16px; }

/* Offline page */
.offline-page { text-align: center; }
.offline-icon { font-size: var(--text-4xl); color: var(--text-3); }

/* Shop home blocks */
.home-banner { position: relative; border-radius: var(--radius-4); overflow: hidden; margin: 16px 0; background: var(--shop-accent, var(--accent)); color: #fff; min-height: 180px; display: grid; }
.home-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-banner.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1)); }
.home-banner-text { position: relative; z-index: 1; padding: 32px 24px; align-self: center; max-width: 560px; }
.home-banner-text h2 { font-size: var(--text-2xl); margin: 0 0 8px; font-weight: 500; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.home-split img { width: 100%; border-radius: var(--radius-3); object-fit: cover; aspect-ratio: 4/3; }
.home-text { max-width: 760px; }
.review-row, .branch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.review-card { margin: 0; padding: 16px; display: grid; gap: 8px; }
.review-card blockquote { margin: 0; }

/* ---- Product reviews (shopper) ---- */
.product-reviews { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.product-reviews-h { font-size: var(--text-lg); margin: 0 0 12px; }
.product-reviews .review-list { margin-top: 12px; }
.review-form { margin-top: 20px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-3); background: var(--bg-2); display: grid; gap: 12px; }
.review-form h3 { margin: 0; font-size: var(--text-base); }
.review-form .field { display: grid; gap: 4px; }
.review-form input, .review-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-2);
  background: var(--surface); color: var(--text); font: inherit;
}
.review-form .btn { justify-self: start; }
.review-stars-input { display: grid; gap: 4px; }
/* A star picker drawn from the icon font, so it needs no image and inherits
   the current colour. Selection runs right-to-left so hovering any star fills
   the ones before it, which is what people expect from a rating control. */
.review-star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.review-star-picker label { cursor: pointer; line-height: 1; }
.review-star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-star-picker .ms { font-size: 30px; color: var(--text-3); transition: color .12s ease; }
.review-star-picker label:hover .ms,
.review-star-picker label:hover ~ label .ms { color: var(--warn-fg); }
.review-star-picker input:checked ~ .ms,
.review-star-picker input:checked ~ label .ms { color: var(--warn-fg); }
.review-star-picker input:focus-visible ~ .ms { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-1); }
.review-star-picker input:checked ~ .ms { font-variation-settings: "FILL" 1; }
.branch-card { padding: 16px; display: grid; gap: 4px; }
@media (max-width: 760px) { .home-split { grid-template-columns: 1fr; } .home-banner-text h2 { font-size: var(--text-xl); } }

/* Trade Wire */
.wire { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.wire .composer { display: grid; gap: 10px; padding: 16px; margin: 16px 0; }
.wire .composer textarea { width: 100%; font: inherit; }
.request-card { padding: 16px; margin-bottom: 12px; display: grid; gap: 6px; }
.request-link { color: inherit; text-decoration: none; }
.request-text { font-size: var(--text-md-s); margin: 0; white-space: pre-line; }
.request-title { font-size: var(--text-2xl); font-weight: 400; white-space: pre-line; }
.request-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.request-meta .ms { vertical-align: -3px; margin-right: 2px; }
.trend-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.offer-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.offer-price { font-weight: 500; margin-left: 8px; }
@media (max-width: 860px) { .wire { grid-template-columns: 1fr; } }

.did-you-mean { margin: 4px 0 12px; font-size: var(--text-md); }
.did-you-mean .small { font-size: var(--text-body-s); }

/* Ask Shoppage */
.ask-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ask-history-drop { position: relative; }
.ask-box { display: flex; gap: 8px; align-items: flex-end; margin: 16px 0; }
.ask-box textarea { flex: 1; font: inherit; font-size: var(--text-base); padding: 12px 14px; border-radius: var(--radius-4); border: 1px solid var(--line); background: var(--bg); color: inherit; resize: vertical; }
.ask-reply { font-size: var(--text-md); }
.ask-results { margin: 20px 0; }
.ask-conversation { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 20px; }
.ask-msg { display: flex; gap: 10px; max-width: 85%; }
.ask-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ask-msg.user .bubble { background: var(--accent); color: #fff; border-radius: var(--radius-4) 16px 4px 16px; padding: 10px 16px; }
.ask-msg.user .bubble p { margin: 0; }
.ask-msg.assistant { align-self: flex-start; }
.ask-msg.assistant .bubble { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-4) 16px 16px 4px; padding: 12px 16px; font-size: var(--text-base); }
.ask-msg.assistant .bubble p { margin: 0; }
.ask-avatar { color: var(--accent); font-size: var(--text-lg); margin-top: 4px; }
.ask-followup-card { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-4); background: var(--surface); }
.ask-followup-title { font-size: var(--text-base-s); margin: 0 0 10px; font-weight: 500; color: var(--text-2); }
.ask-followup-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ask-followup-chips .chip { cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 12px; font-size: var(--text-sm); }
.ask-followup-chips .chip:hover { background: var(--bg-3); }
.ask-input-row { display: flex; gap: 8px; }
.ask-input-row input { flex: 1; border-radius: var(--radius-3); }
.power-plan .table { margin-top: 12px; }

/* 360° shop tours */
.tour-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 12px 0; }
.tour-head h1 { margin: 0; font-weight: 400; }
.tour-view { position: relative; width: 100%; height: min(70vh, 560px); border-radius: var(--radius-4); overflow: hidden; background: #111; touch-action: none; cursor: grab; user-select: none; }
.tour-view:active { cursor: grabbing; }
.tour-view:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tour-view canvas { display: block; width: 100%; height: 100%; }
.tour-view.loading::after { content: "Loading…"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.4); }
.tour-view.flat { background-size: auto 100%; background-repeat: repeat-x; overflow-x: auto; }
.tour-view.flat canvas { display: none; }
.tour-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: #fff; text-decoration: none; font: inherit; cursor: pointer; margin: -14px 0 0 -14px; }
.hs-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(26,115,232,.9); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); flex: none; }
.hs-scene .hs-dot { background: rgba(255,255,255,.85); border-color: #1a73e8; }
.hs-note .hs-dot { background: rgba(251,188,4,.95); }
.hs-new .hs-dot { background: rgba(234,67,53,.95); animation: hs-pulse 1s infinite alternate; }
@keyframes hs-pulse { to { transform: scale(1.25); } }
.hs-label { background: rgba(0,0,0,.72); border-radius: var(--radius-2); padding: 6px 10px; font-size: var(--text-sm); line-height: 1.3; display: grid; max-width: 200px; }
.hs-note .hs-label { display: none; }
.hs-note.open .hs-label { display: grid; }
.tour-caption { position: absolute; left: 12px; top: 8px; margin: 0; color: #fff; text-shadow: 0 1px 4px #000; font-weight: 500; }
.tour-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; color: #fff; font-size: var(--text-xs); background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: var(--radius-3); white-space: nowrap; pointer-events: none; }
.tour-scenes { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tour-scenes .chip.on { background: var(--accent); color: #fff; }
.tour-tools { margin-top: 16px; }
.hs-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.hs-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 760px) { .hs-label { max-width: 150px; font-size: var(--text-xs); } .tour-view { height: 62vh; } }
.ar-buttons { display: inline-flex; align-items: center; }
.ar-img { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Shopping result facts */
.cond-tag { display: inline-block; font-size: var(--text-2xs); font-weight: 500; padding: 1px 6px; border-radius: var(--radius-1); background: var(--bg-3); color: var(--text-2); }
.shop-trust .verified { color: #188038; font-weight: 500; }
.promo-tag { font-size: var(--text-xs); color: #b3261e; }
.prod .ms.xs { vertical-align: -2px; margin-right: 2px; }
.verified-badge { font-size: var(--text-sm); font-weight: 500; color: #188038; vertical-align: middle; white-space: nowrap; }

/* Data saver, voice and photo search, language picker */
img.lite-img { min-height: 120px; background: var(--bg-3) center / 32px no-repeat url("/static/favicon.svg"); cursor: pointer; }
.sb-mic, .sb-cam { border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 0 6px; text-decoration: none; }
.sb-mic.on { color: #d93025; }
.footer-prefs { flex-wrap: wrap; gap: 8px 16px; font-size: var(--text-sm); }
.footer-prefs nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.footer-prefs a.on { font-weight: 600; }

/* WhatsApp Brand Button */
.btn.wa-btn {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn.wa-btn:hover {
  background: #20ba59;
  border-color: #20ba59;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, .35);
  transform: translateY(-1px);
}
.btn.wa-btn:active {
  transform: translateY(0);
}

/* Community Market Kind Switcher & Verified Price Banner */
.verified-market-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-3);
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  margin-bottom: 16px;
  font-size: var(--text-body-s);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verified-market-banner {
    background: #0d3a1f;
    color: #81c995;
    border-color: #137333;
  }
}
:root[data-theme="dark"] .verified-market-banner {
  background: #0d3a1f;
  color: #81c995;
  border-color: #137333;
}
.market-kind-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: all .15s ease;
}
.kind-pill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.kind-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(26, 115, 232, .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kind-pill.active {
    color: #202124;
  }
}
:root[data-theme="dark"] .kind-pill.active {
  color: #202124;
}

/* Market Moat: Safe Zones, Anti-Scam Shield, Price Compass, Offers & Handshake */
.compass-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.compass-metrics > div {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 10px 14px;
  border-radius: var(--radius-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #e0f2fe;
  color: #0369a1;
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid #bae6fd;
}
:root[data-theme="dark"] .badge-trust {
  background: #082f49;
  color: #7dd3fc;
  border-color: #0284c7;
}
.trader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.vouch-dropdown {
  position: relative;
}
.vouch-form {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  width: 280px;
  padding: 14px;
  box-shadow: var(--shadow-3);
  margin-top: 6px;
}
.shield-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-2);
}
.handshake-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  padding: 6px 12px;
  border-radius: var(--radius-2);
}
.handshake-code-display {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #15803d;
}
.handshake-code-in {
  width: 100px;
  text-align: center;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 6px;
}
.inline-handshake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.host-moat-cockpit {
  border-left: 4px solid #16a34a;
  margin-bottom: 20px;
}

/* Master Product Comparison Header */
.master-compare-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: var(--radius-2);
  margin-bottom: 12px;
  font-size: var(--text-sm);
  color: var(--text-2);
}

/* ==========================================================================
   Full Merchant Storefront Website Experience
   ========================================================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--shop-bg, var(--bg));
  color: var(--shop-ink, var(--text));
  font-family: var(--shop-font-body, inherit);
}

/* Dedicated Storefront Website Navigation Bar */
.site-nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.site-nav-inner {
  max-width: 1240px;
  margin: 0 auto 0 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.site-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-3);
  object-fit: cover;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  background-color: var(--shop-accent, var(--brand-1));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.site-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-brand-name {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.site-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--good);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-verified-chip .ms {
  font-size: var(--text-body-s);
}
.site-menu-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-menu-links a {
  font-size: var(--text-body-s);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .12s ease;
}
.site-menu-links a:hover,
.site-menu-links a.active {
  color: var(--shop-accent, var(--accent));
}
.site-nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.site-search-input {
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-5);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: var(--text-sm);
  width: 170px;
  transition: all .2s ease;
  font-family: inherit;
  color: var(--text);
}
.site-search-input:focus {
  width: 240px;
  border-color: var(--shop-accent, var(--accent));
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  outline: none;
}
.site-search-icon {
  position: absolute;
  left: 10px;
  font-size: var(--text-base);
  color: var(--text-3);
  pointer-events: none;
}
.site-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-5);
  background: #25d366;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: all .15s ease;
}
.site-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}
.site-bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-5);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all .12s ease;
}
.site-bag-btn:hover {
  border-color: var(--accent);
  background: var(--info-bg);
}
.site-bag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--shop-accent, var(--accent));
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
}
.site-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  padding: 6px 8px;
  border-radius: var(--radius-2);
  cursor: pointer;
  color: var(--text);
}

/* Storefront Network Top Utility Bar */
.storefront-network-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  font-size: var(--text-xs);
  line-height: 1;
}
.storefront-network-inner {
  max-width: 1240px;
  margin: 0 auto 0 0;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.storefront-network-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color .12s ease;
}
.storefront-network-back:hover {
  color: var(--shop-accent, var(--accent));
}
.storefront-network-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-weight: 500;
}
.storefront-network-trust .secure-icon {
  color: #137333;
}
.storefront-network-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.storefront-theme-toggle {
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: var(--radius-1);
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
  transition: color .12s ease;
}
.storefront-theme-toggle:hover {
  color: var(--text);
}
.storefront-user-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: color .12s ease;
}
.storefront-user-link:hover {
  color: var(--shop-accent, var(--accent));
}

@media (max-width: 960px) {
  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-menu-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
    z-index: 60;
  }
  .site-menu-links.open {
    display: flex;
  }
  .storefront-network-trust {
    display: none;
  }
  .site-search-input { width: 140px; }
  .site-search-input:focus { width: 180px; }
}
@media (max-width: 600px) {
  .site-search-form { display: none; }
}

/* Full Hero Section */
.site-hero-full {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(52, 168, 83, 0.05) 50%, var(--surface) 100%);
  border-bottom: 1px solid var(--line-2);
  padding: 64px 20px 56px;
}
.site-hero-inner {
  max-width: 1240px;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.site-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-4);
  background: var(--surface);
  border: 1px solid var(--line-2);
  width: fit-content;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.site-hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.site-hero-desc {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 600px;
  margin: 0;
}
.site-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.site-hero-actions .btn.primary {
  height: 44px;
  padding: 0 24px;
  font-size: var(--text-base-s);
  border-radius: var(--radius-pill);
}
.site-hero-actions .btn {
  height: 44px;
  padding: 0 20px;
  font-size: var(--text-base-s);
  border-radius: var(--radius-pill);
}
.site-hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-hero-showcase {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 4px solid var(--surface);
  background: var(--bg-2);
  position: relative;
}
.site-hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .site-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-hero-content {
    align-items: center;
  }
  .site-hero-title {
    font-size: var(--text-2xl);
  }
  .site-hero-actions {
    justify-content: center;
  }
  .site-hero-preview {
    display: none;
  }
}

/* Storefront 4-Pillar Trust & Assurance Strip */
.site-trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  padding: 24px 20px;
}
.site-trust-inner {
  max-width: 1240px;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.site-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--info-bg);
  color: var(--accent);
}
.site-trust-icon .ms {
  font-size: var(--text-xl);
}
.site-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-trust-title {
  font-size: var(--text-body-s);
  font-weight: 600;
  color: var(--text);
}
.site-trust-sub {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .site-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }
}
@media (max-width: 540px) {
  .site-trust-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Main Storefront Container */
.site-main-content {
  max-width: 1240px;
  margin: 0 auto 0 0;
  padding: 40px 20px 64px;
  width: 100%;
}

/* Category Filter Bar */
.site-cat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.site-cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.site-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: all .15s ease;
}
.site-cat-chip:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line);
}
.site-cat-chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 600;
}

/* Modern Store Tile Grid */
.prod-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.store-tile-modern {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.store-tile-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--line);
}
.store-tile-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.store-tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.store-tile-modern:hover .store-tile-img-wrap img {
  transform: scale(1.05);
}
.store-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-3);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bad-fg);
  color: #fff;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.store-tile-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-2);
  font-size: var(--text-2xs);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.store-tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.store-tile-title {
  font-size: var(--text-base-s);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-tile-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.store-tile-price {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}
.store-tile-compare {
  font-size: var(--text-sm);
  color: var(--text-3);
  text-decoration: line-through;
}
.store-tile-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.store-tile-btn {
  flex: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-2);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: all .12s ease;
  cursor: pointer;
  text-decoration: none;
}
.store-tile-btn:hover {
  background: var(--info-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.store-tile-wa-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-2);
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .12s ease;
}
.store-tile-wa-btn:hover {
  background: #1eb757;
}

/* Brand Editorial Story Section */
.site-story-section {
  margin-top: 56px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.site-story-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-story-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--shop-accent, var(--accent));
}
.site-story-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}
.site-story-body {
  font-size: var(--text-base-s);
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}
.site-story-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}
.site-story-stat-item b {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  display: block;
}
.site-story-stat-item span {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.site-story-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-4);
  overflow: hidden;
  background: var(--bg-2);
}
.site-story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 800px) {
  .site-story-section {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

/* Customer Reviews / Testimonials Section */
.site-reviews-section {
  margin-top: 56px;
}
.site-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.site-section-head h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
}
.site-section-sub {
  font-size: var(--text-body-s);
  color: var(--text-3);
  margin: 4px 0 0;
}
.site-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.site-review-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.site-review-stars {
  color: #fbbc05;
  font-size: var(--text-md);
  letter-spacing: 2px;
}
.site-review-quote {
  font-size: var(--text-body-s);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  font-style: italic;
}
.site-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.site-review-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--info-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
}
.site-review-author-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.site-review-verified {
  font-size: var(--text-2xs);
  color: var(--good);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Buyer FAQ Accordions */
.site-faq-section {
  margin-top: 56px;
}
.site-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-faq-item {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-4);
  overflow: hidden;
  transition: border-color .15s ease;
}
.site-faq-item[open] {
  border-color: var(--accent);
}
.site-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  font-size: var(--text-base-s);
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.site-faq-summary::-webkit-details-marker {
  display: none;
}
.site-faq-chev {
  font-size: var(--text-lg);
  color: var(--text-3);
  transition: transform .2s ease;
}
.site-faq-item[open] .site-faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.site-faq-content {
  padding: 0 20px 20px;
  font-size: var(--text-body-s);
  line-height: 1.65;
  color: var(--text-2);
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
}

/* Comprehensive Store Website Footer */
.site-footer-full {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line-2);
  padding: 56px 20px 28px;
}
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer-desc {
  font-size: var(--text-body-s);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 360px;
  margin: 0;
}
.site-footer-socials {
  display: flex;
  gap: 8px;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin: 0;
}
.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer-links a {
  font-size: var(--text-body-s);
  color: var(--text-2);
  text-decoration: none;
  transition: color .12s ease;
}
.site-footer-links a:hover {
  color: var(--shop-accent, var(--accent));
}
.site-footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-3);
}
.site-payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-badge {
  padding: 4px 8px;
  border-radius: var(--radius-1);
  font-size: var(--text-2xs);
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
@media (max-width: 860px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}
@media (max-width: 520px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Customer Immersive Experience: 360° Spin Turntable, Video Shows & Virtual Tour
   ========================================================================== */

/* 1. Product Images 360° Turntable */
.gallery-hero-wrap {
  cursor: default;
  user-select: none;
}
.gallery-hero-wrap.spin-active {
  cursor: grab;
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.18);
  border-color: var(--primary);
}
.gallery-hero-wrap.is-scrubbing {
  cursor: grabbing;
}
.gallery-360-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 160ms ease;
}
.gallery-360-badge:hover, .gallery-360-badge.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}
.spin-drag-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: var(--radius-4);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
.gallery-hero-wrap.spin-active .spin-drag-hint,
.gallery-hero-wrap:hover .spin-drag-hint {
  opacity: 1;
}
.spin-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 4px 2px;
}
.spin-auto-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: var(--radius-4);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.spin-auto-btn:hover, .spin-auto-btn.active {
  background: var(--primary-bg, #e8f0fe);
  color: var(--primary, #1a73e8);
  border-color: rgba(26, 115, 232, 0.4);
}
.spin-auto-btn.active .ms {
  animation: spinRotate 1.5s linear infinite;
}
@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-frame-count {
  font-size: var(--text-xs);
}

/* 2. Product Page Video Shows & Demonstrations */
.product-video-showcase {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.pvideo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pvideo-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pvideo-icon {
  font-size: var(--text-2xl);
  color: #ea4335;
}
.pvideo-title-row h3 {
  margin: 0;
  font-size: var(--text-md-s);
  font-weight: 700;
}
.pvideo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.pvideo-card {
  border-radius: var(--radius-4);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.pvideo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.pvideo-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9/14;
  background: #000;
  overflow: hidden;
}
.pvideo-media video,
.pvideo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pvideo-link-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.15);
  transition: background 150ms ease;
}
.pvideo-card:hover .pvideo-link-overlay {
  background: rgba(0, 0, 0, 0.05);
}
.pvideo-play-btn {
  font-size: var(--text-3xl);
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 150ms ease;
}
.pvideo-card:hover .pvideo-play-btn {
  transform: scale(1.15);
}
.pvideo-sound-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.pvideo-info {
  padding: 10px 12px;
}
.pvideo-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pvideo-name:hover {
  color: var(--primary);
}

/* 3. Storefront Virtual 360° Showroom Banner */
.site-tour-section {
  margin: 40px 0;
}
.site-tour-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
}
.site-tour-content {
  position: relative;
  z-index: 2;
}
.site-tour-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.site-tour-desc {
  font-size: var(--text-base-s);
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}
.site-tour-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-tour-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: var(--text-sm);
  font-weight: 500;
}
.site-tour-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.tour-visual-card {
  width: 100%;
  max-width: 380px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.tour-visual-360-icon {
  font-size: var(--text-4xl);
  color: #60a5fa;
  animation: pulseRotate 3s ease-in-out infinite;
}
@keyframes pulseRotate {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.tour-visual-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #93c5fd;
  margin-top: 8px;
  letter-spacing: .03em;
}
.tour-pulse-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotspot-tooltip {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: var(--text-2xs);
  padding: 3px 8px;
  border-radius: var(--radius-2);
  white-space: nowrap;
}

/* 4. Storefront Video Shows & Maker Reels */
.site-videos-section {
  margin: 48px 0;
}
.site-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.site-video-card {
  border-radius: var(--radius-4);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}
.site-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}
.site-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9/14;
  background: #000;
  overflow: hidden;
}
.site-video-thumb video,
.site-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  transition: background 150ms ease;
}
.site-video-card:hover .site-video-overlay {
  background: rgba(0, 0, 0, 0.05);
}
.site-video-play {
  font-size: var(--text-4xl);
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  transition: transform 160ms ease;
}
.site-video-card:hover .site-video-play {
  transform: scale(1.15);
}
.site-video-duration {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-3);
  backdrop-filter: blur(4px);
}
.site-video-sound {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.site-video-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.site-video-name {
  font-size: var(--text-base-s);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-video-name:hover {
  color: var(--primary);
}
.site-video-caption {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.site-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: var(--text-xs);
  color: var(--text-3);
}
.site-video-tagged-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-video-likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 800px) {
  .site-tour-banner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

/* ==========================================================================
   Universal Page Layout Alignment: All pages except for shorts must left-align
   ========================================================================== */
body > main:not(.shorts-page),
#main:not(.shorts-page):not(.home-timeline-main),
.home-portal-layout,
.home-main,
.master-page,
.feed-page,
.loc-page,
.item-page,
.cart-page,
.error-page,
.settings-page,
.shop-page,
.dash,
.msg-page,
.doc-page,
.chat-wrap,
.services-hub,
.deals-hub,
.deals-page,
.markets-hub,
.markets-page,
.site-main-content,
.site-hero-inner,
.site-nav-inner,
.site-trust-inner,
.site-footer-inner,
.storefront-network-inner {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Explicit exemption: shorts page remains centered */
body > main.shorts-page,
#main.shorts-page,
.shorts-page {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---- Storefront Password Gate & Cookie Consent ---- */
.shop-password-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.shop-password-card {
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.shop-password-brand {
  margin-bottom: 24px;
}
.shop-password-logo {
  max-width: 80px;
  max-height: 80px;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
}
.shop-password-logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--primary, #1a73e8);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 12px;
}
.shop-password-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-color, #1f2937);
}
.shop-password-notice {
  margin-bottom: 24px;
}
.shop-password-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary, #1a73e8);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.shop-password-desc {
  font-size: 15px;
  color: var(--muted, #6b7280);
  line-height: 1.5;
  margin: 0;
}
.shop-password-form {
  margin-bottom: 28px;
  text-align: left;
}
.shop-password-form .field-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.shop-password-form input[type="password"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}
.shop-password-form input[type="password"]:focus {
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}
.shop-password-foot {
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #f3f4f6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-password-powered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, #9ca3af);
}

.shop-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  z-index: 9999;
}
.shop-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-color, #374151);
  flex: 1;
  min-width: 240px;
}
.shop-cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Master Product Intelligence Components ---- */
.master-eco-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px; color: #047857;
}
.master-grade-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.25); font-size: 12px; color: #6d28d9; }
.master-radar-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px;
  background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 12px; color: #1d4ed8;
}

.master-bundles-card { margin-top: 24px; }
.bundle-items-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px;
}
.bundle-item-card {
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2, var(--canvas));
}
.bundle-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bundle-price { font-weight: 700; color: var(--text); }

.master-diagnostic-card { margin-top: 24px; }
.master-diag-details summary::-webkit-details-marker { display: none; }
.master-diag-details summary { list-style: none; }

.master-substitutes-card { margin-top: 24px; }
.substitutes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 14px 0 0;
}
.substitute-card {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: var(--surface);
}
.sub-card-body { display: flex; flex-direction: column; gap: 4px; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sub-foot { margin-top: 6px; }

.review-sentiment-aspects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 16px 0 14px;
}
.aspect-chip {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 10px;
  border-radius: 8px; background: var(--surface-2, var(--canvas)); border: 1px solid var(--line-2); font-size: 11px;
}
.aspect-name { color: var(--text-2); }
.aspect-score { font-weight: 700; color: #10b981; }





/* Notice banners on public pages (sold, expired, removed, held for review). The
   Merchant Center has its own copy in console.css. */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.banner > .ms { font-size: 20px; flex: none; margin-top: 1px; }
.banner.info { background: var(--info-bg); color: var(--info-fg); }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner.bad { background: var(--bad-bg); color: var(--bad-fg); }
.banner.good { background: var(--good-bg); color: var(--good-fg); }
.banner a { color: inherit; text-decoration: underline; }
