/* ============================================================
   Google Shopping page — feed console, mapping, validation
============================================================ */

:root {
  --gsh: #4285F4;        /* Google blue */
  --gsh-tint: color-mix(in srgb, #4285F4 13%, transparent);
}

/* shared subnav */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--pad-x);
  overflow-x: auto;
}
.subnav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.subnav-inner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.kicker.gsh { background: var(--gsh-tint); border-color: rgba(66,133,244,0.35); color: #8FB4F8; }
.kicker .dot.gsh { background: var(--gsh); box-shadow: 0 0 0 3px rgba(66,133,244,0.22); }
.hero-gsh .display { font-size: clamp(54px, 8.8vw, 114px); line-height: 0.94; }

/* ============================================================
   HERO PEEK — Merchant Center feed console
============================================================ */
.gs-console { background: var(--bg-card); }
.gsc-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.gsc-g {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #4285F4;
  flex-shrink: 0;
}
.gsc-id { display: flex; flex-direction: column; gap: 2px; }
.gsc-id b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; }
.gsc-id span { font-size: 11.5px; color: var(--muted); }
.gsc-spacer { flex: 1; }
.gsc-next { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.gsc-markets { display: flex; flex-direction: column; }
.gsc-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.gsc-row:last-child { border-bottom: none; }
.gsc-row.dim { color: var(--muted); }
.gsc-mkt { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.gsc-flag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--gsh-tint);
  color: var(--gsh);
  border: 1px solid rgba(66,133,244,0.25);
}
.gsc-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.gsc-items { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-mid); }

.gsc-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--muted);
}
.gsc-foot b { color: var(--ok); font-weight: 500; }
.gsc-foot .sep { color: var(--line); }

@media (max-width: 720px){
  .gsc-row { grid-template-columns: 1fr auto; }
  .gsc-row .gsc-meta { display: none; }
}

/* ============================================================
   STAT STRIP
============================================================ */
.gsh-trust { padding: 50px 0 30px; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px){ .trust-stats { grid-template-columns: 1fr 1fr; gap: 30px; } }
.ts { display: flex; flex-direction: column; gap: 6px; }
.ts b {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.ts span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   ATTRIBUTE MAPPING VISUAL
============================================================ */
.gmap-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.gmap-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
  align-items: center;
}
.gmap-src, .gmap-dst {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gmap-src { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-mid); }
.gmap-dst {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--gsh-tint);
  border: 1px solid rgba(66,133,244,0.3);
  color: var(--gsh);
}
.gmap-arr { color: var(--gsh); font-size: 12px; }
.gmap-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   PRE-FLIGHT VALIDATION GRID
============================================================ */
.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .val-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .val-grid { grid-template-columns: 1fr; } }
.val-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.val-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.val-card b { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.val-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.val-stat {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.val-stat.fix { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* ============================================================
   TAXONOMY VISUAL
============================================================ */
.tax-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tax-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tax-prod b { font-weight: 500; }
.tax-prod .mono { font-size: 11px; color: var(--muted); }
.tax-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.tax-crumb .sep { color: var(--line); }
.tax-crumb .leaf {
  color: var(--gsh);
  font-weight: 500;
  background: var(--gsh-tint);
  border: 1px solid rgba(66,133,244,0.3);
  border-radius: 6px;
  padding: 3px 8px;
}
.tax-conf { display: flex; flex-direction: column; gap: 5px; }
.tax-conf-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.tax-conf-top .mono { color: var(--gsh); }
.tax-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(var(--ink-rgb),0.08);
  overflow: hidden;
}
.tax-bar > span { display: block; height: 100%; width: 98%; background: var(--gsh); border-radius: 2px; }
.tax-alt {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   MARKET FEEDS SCHEDULER (dark)
============================================================ */
.sched-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.sched-card::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.sc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.sc-name { font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,0.85); }
.sc-conn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #6ED27A;
}
.sc-conn i {
  width: 7px; height: 7px;
  background: #6ED27A;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(110,210,122,0.20);
  animation: pulse 1.4s ease-in-out infinite;
}
.sc-row {
  display: grid;
  grid-template-columns: 110px 1.4fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.sc-row:last-child { border-bottom: none; }
.sc-row.dim { color: rgba(255,255,255,0.45); border-style: dashed; }
.sc-time { color: rgba(255,255,255,0.65); }
.sc-feed { display: inline-flex; align-items: center; gap: 8px; }
.sc-tgt { color: rgba(255,255,255,0.55); }
@media (max-width: 720px){
  .sc-row { grid-template-columns: 1fr auto; gap: 6px; padding: 10px 14px; }
  .sc-row .sc-tgt { display: none; }
}

/* ============================================================
   SIGNALS GRID (labels · supplemental · sale windows)
============================================================ */
.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){ .sig-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px){ .sig-grid { grid-template-columns: 1fr; } }
.sig-card { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.sig-card h4 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.018em; }
.sig-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.sig-chip {
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-mid);
}
.sig-chip.hi { background: var(--gsh-tint); border-color: rgba(66,133,244,0.3); color: var(--gsh); }

/* light tick variant */
.tick.light li { color: rgba(255,255,255,0.78); }
.tick.light li::before { background: var(--bg-card); }
.tick.light li::after { border-color: var(--ink); }

/* ============================================================
   COMPARE
============================================================ */
.compare-table { padding: 0; overflow: hidden; }
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-row .hl {
  background: rgba(var(--ink-rgb),0.04);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
}
.cmp-row.cmp-head {
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 24px;
}
.cmp-row.cmp-head .hl {
  background: var(--ink);
  color: var(--bg);
  margin: -14px 0;
  padding: 14px 14px;
}
.cmp-row .dim { color: var(--muted-2); }
.cmp-row .dim.partial { color: var(--warn); }
.cmp-row .dt { width: 9px; height: 9px; }
.cmp-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 32px auto 0;
  max-width: 720px;
}
@media (max-width: 720px){
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 14px; font-size: 12.5px; }
  .cmp-row.cmp-head { padding: 12px 14px; }
  .cmp-row .hl { padding: 12px 8px; margin: -12px 0; }
}

.foot-cols a.on { color: #fff; }

/* ── White mode (html[data-theme="light"]) overrides ── */
html[data-theme="light"] {
  --gsh-tint: #E8F0FE;
}
html[data-theme="light"] .kicker.gsh {
  border-color: rgba(66,133,244,0.22);
  color: #1A47A0;
}
