:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f6f4;
  --surface-warm: #fff7ed;
  --ink: #121826;
  --ink-soft: #273244;
  --muted: #697386;
  --line: #dde5ef;
  --line-strong: #c8d3df;
  --accent: #0f8b7f;
  --accent-strong: #075f58;
  --coral: #e85d4f;
  --gold: #f5a623;
  --green: #1f9d63;
  --danger: #c23328;
  --warn: #b7791f;
  --shadow: 0 18px 45px rgba(18, 24, 38, 0.09);
  --shadow-soft: 0 10px 24px rgba(18, 24, 38, 0.07);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.public-site {
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fb 520px),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.public-site button::after,
.public-site .button::after,
.card-cta::after,
.text-link::after {
  content: ">";
  font-weight: 900;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button.ghost {
  background: #fff;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
}

.link-button::after {
  content: "";
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 139, 127, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

/* Public shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(221, 229, 239, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(18, 24, 38, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff;
  font-size: 0.82rem;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.public-nav a {
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.public-nav a:hover {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.site-search {
  grid-column: 1 / -1;
}

.search {
  position: relative;
  display: flex;
  gap: 8px;
}

.search input {
  min-width: 0;
  min-height: 48px;
  padding-left: 16px;
  border-color: rgba(200, 211, 223, 0.9);
}

.search button {
  min-width: 48px;
  padding: 0 14px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(420px, 70vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  transform-origin: top center;
  animation: menuIn 160ms ease both;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover {
  background: var(--surface-soft);
}

.search-result-image {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  color: var(--accent);
  font-weight: 900;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span,
.search-result-price {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-main {
  overflow: hidden;
}

.home-hero,
.collection-hero,
.product-hero,
.section,
.metric-strip {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.home-hero {
  display: grid;
  gap: 24px;
  padding: 34px 0 14px;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.collection-hero h1,
.product-summary h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  font-size: 2.55rem;
}

.hero-lead,
.collection-hero p,
.product-intro {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-search,
.page-search {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-showcase {
  display: grid;
  gap: 12px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  animation: floatUp 520ms ease both;
  animation-delay: var(--delay, 0ms);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 139, 127, 0.35);
  box-shadow: var(--shadow);
}

.spotlight-image {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f1f6f4, #fff7ed);
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 950;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.spotlight-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.spotlight-copy strong,
.spotlight-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-copy small {
  color: var(--muted);
}

.spotlight-copy em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 950;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-strip div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  color: var(--accent-strong);
  font-size: 1.25rem;
  line-height: 1;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.merchant-strip {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.merchant-strip > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.merchant-strip > div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.merchant-logo-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.merchant-logo-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 139, 127, 0.35);
  box-shadow: var(--shadow-soft);
}

.merchant-logo-card strong {
  color: var(--ink-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.merchant-logo-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 950;
  overflow: hidden;
}

.merchant-logo-badge img,
.merchant-logo-badge > span {
  grid-area: 1 / 1;
}

.merchant-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.merchant-logo-badge > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, rgba(15, 139, 127, 0.1), rgba(232, 93, 79, 0.1));
}

.merchant-logo-badge > span[hidden],
.merchant-logo-badge img[hidden] {
  display: none;
}

.table-logo {
  width: 46px;
  height: 46px;
}

.section {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2,
.detail-block h2,
.empty-state h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 900;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 14px;
}

.products-grid {
  grid-template-columns: 1fr;
}

.product-card,
.panel,
.auth-card,
.metric-grid article,
.validation-card,
.product-media,
.detail-block,
.chart-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 139, 127, 0.34);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 176px;
  background:
    linear-gradient(145deg, rgba(15, 139, 127, 0.1), rgba(245, 166, 35, 0.12)),
    #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image span,
.product-placeholder {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-strong);
  font-size: 2.2rem;
  font-weight: 950;
}

.product-card-body {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.product-meta,
.price-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.price,
.hero-price {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 950;
}

.price {
  font-size: 1.06rem;
}

.hero-price {
  font-size: 2rem;
  line-height: 1;
}

.offer-pill,
.count-pill,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 950;
}

.collection-hero {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 139, 127, 0.08), rgba(232, 93, 79, 0.08)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.collection-hero h1 {
  font-size: 2rem;
}

.discovery-band,
.detail-grid {
  display: grid;
  gap: 18px;
}

.discovery-band {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.link-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-cloud a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 139, 127, 0.35);
  background: var(--surface-soft);
}

.link-cloud span {
  color: var(--muted);
  font-weight: 800;
}

/* Product page */
.product-hero {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.product-media {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(15, 139, 127, 0.08), rgba(245, 166, 35, 0.12)),
    #fff;
}

.product-media img {
  width: min(100%, 460px);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(18, 24, 38, 0.12));
}

.product-summary {
  display: grid;
  align-content: start;
  gap: 16px;
}

.product-summary h1 {
  font-size: 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--accent-strong);
}

.best-price-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 139, 127, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 139, 127, 0.1), rgba(245, 166, 35, 0.1));
}

.best-price-panel small {
  color: var(--muted);
  font-weight: 800;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 850;
  text-align: right;
}

.offers {
  display: grid;
  gap: 10px;
}

.offer-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.offer-row:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 127, 0.34);
  box-shadow: var(--shadow);
}

.merchant-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}


.offer-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.offer-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 750;
}

.offer-title small,
.offer-price small {
  color: var(--muted);
}

.offer-price small {
  display: block;
  text-decoration: line-through;
}

.badge.available {
  background: #edf9f1;
  color: #17633a;
}

.badge.soldout {
  background: #fff1ef;
  color: var(--danger);
}

.badge.unknown {
  background: #fff7ed;
  color: var(--warn);
}

.chart-shell {
  padding: 12px;
  overflow: hidden;
}

.price-chart {
  display: block;
  width: 100%;
  height: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  background: #fff;
}

.detail-block {
  padding: 18px;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.spec-box {
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 12px;
  color: var(--ink-soft);
  font: inherit;
}

.muted {
  color: var(--muted);
}

.empty-state,
.auth-card {
  width: min(460px, calc(100% - 36px));
  margin: 10vh auto;
  padding: 24px;
  text-align: center;
}

.inline-empty {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(var(--container), calc(100% - 32px));
  margin: 56px auto 0;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 900;
}

/* Admin and auth */
.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--bg);
}

.admin-shell {
  display: grid;
  background: var(--bg);
}

.admin-sidebar {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #121826;
  color: #fff;
}

.admin-sidebar .brand {
  color: #fff;
}

.admin-sidebar nav {
  display: grid;
  gap: 4px;
}

.admin-sidebar a {
  border-radius: var(--radius);
  padding: 10px;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  min-width: 0;
  padding: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.8rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span {
  font-size: 2rem;
  font-weight: 950;
  color: var(--accent);
}

.panel {
  padding: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 12px;
}

.form-grid,
.checkbox-grid,
.validation-list {
  display: grid;
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.success {
  border: 1px solid #a9d9bd;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #effaf3;
  color: #17633a;
  font-weight: 800;
}

.alert {
  border: 1px solid #f1b7b2;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff1ef;
  color: var(--danger);
  font-weight: 800;
}

.scrape-progress-panel {
  display: grid;
  gap: 18px;
}

.scrape-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.loader-ring {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.scrape-run-list {
  display: grid;
  gap: 10px;
}

.scrape-run-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.scrape-run-item p {
  margin: 4px 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf1f5;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.running {
  background: #fff7ed;
  color: var(--warn);
}

.status-pill.done {
  background: #edf9f1;
  color: #17633a;
}

.status-pill.warning,
.status-pill.error {
  background: #fff1ef;
  color: var(--danger);
}

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 460ms ease, transform 460ms ease;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 620px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: 190px auto;
  }

  .product-image {
    min-height: 190px;
  }

  .best-price-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto minmax(320px, 640px) auto;
    padding-inline: 24px;
  }

  .site-search {
    grid-column: auto;
  }

  .home-hero {
    padding-top: 56px;
  }

  .home-hero h1 {
    font-size: 3.7rem;
  }

  .collection-hero h1,
  .product-summary h1 {
    font-size: 2.8rem;
  }

  .hero-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spotlight-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .spotlight-image {
    width: 100%;
    height: 150px;
  }

  .discovery-band,
  .detail-grid,
  .product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .offer-row {
    grid-template-columns: 190px minmax(0, 1.5fr) auto auto auto;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    align-items: center;
    min-height: 580px;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-hero {
    gap: 36px;
    margin-top: 42px;
  }

  .product-media {
    min-height: 520px;
  }

  .admin-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .admin-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
  }
}

@media (min-width: 1180px) {
  .home-hero h1 {
    font-size: 4.55rem;
  }
}

@media (max-width: 420px) {
  .public-nav a {
    padding-inline: 7px;
    font-size: 0.9rem;
  }

  .search button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .search button::after {
    content: ">";
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
.legal-hero {
  margin-bottom: 24px;
}

.legal-page {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.legal-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.legal-block p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.legal-facts div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.legal-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 750;
}

.legal-facts a,
.legal-block a {
  color: var(--accent-strong);
  font-weight: 900;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .legal-block {
    padding: 22px;
  }

  .legal-facts div {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.info-hero {
  margin-bottom: 24px;
}

.info-page {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.info-lead-panel,
.info-steps article,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.info-lead-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.info-lead-panel h2,
.info-steps h2,
.trust-grid h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

.info-lead-panel p,
.info-steps p,
.trust-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.info-lead-panel .button {
  width: fit-content;
}

.info-steps,
.trust-grid {
  display: grid;
  gap: 14px;
}

.info-steps article,
.trust-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.info-steps span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff;
  font-weight: 950;
}

.faq-block {
  display: grid;
  gap: 8px;
}

.faq-block details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 12px;
}

.faq-block summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-block details p {
  margin-top: 10px;
}

@media (min-width: 760px) {
  .info-steps,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-lead-panel,
  .info-steps article,
  .trust-grid article {
    padding: 22px;
  }
}

@media (min-width: 980px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ad-slot {
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto;
  overflow: hidden;
  text-align: center;
}

.ad-slot > * {
  max-width: 100%;
}

.monetization-panel textarea.code-field {
  min-height: 130px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.monetization-panel textarea.tall-code-field {
  min-height: 170px;
}

.monetization-switches {
  grid-template-columns: 1fr;
}

.compact-title {
  margin-bottom: 0;
}

.ad-help-grid {
  display: grid;
  gap: 12px;
}

.ad-help-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.ad-help-grid strong {
  color: var(--ink);
}

.ad-help-grid span {
  color: var(--muted);
}

@media (min-width: 760px) {
  .monetization-switches,
  .ad-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.validation-feedback p {
  margin: 6px 0;
}

.validation-feedback ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.validation-feedback li + li {
  margin-top: 4px;
}
/* Admin sidebar stability fixes */
.admin-shell {
  align-items: start;
  min-height: 100vh;
}

.admin-sidebar {
  align-content: start;
  grid-template-rows: auto 1fr;
}

.admin-sidebar nav {
  align-content: start;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.price-updated {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

@media (min-width: 980px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
/* Inline icon system */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button .icon,
.button .icon,
.card-cta .icon,
.text-link .icon,
.public-nav .icon,
.footer-links .icon,
.admin-sidebar .icon,
.link-button .icon,
.offer-pill .icon,
.count-pill .icon,
.price-label .icon,
.actions .icon,
.link-cloud .icon {
  width: 18px;
  height: 18px;
}

.public-site button::after,
.public-site .button::after,
.card-cta::after,
.text-link::after {
  content: none;
}

.public-nav a,
.footer-links a,
.price-label,
.offer-pill,
.count-pill,
.actions a,
.link-button,
.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-sidebar .brand,
.admin-sidebar nav a {
  gap: 10px;
}

.admin-sidebar .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.search button .icon {
  width: 20px;
  height: 20px;
}

.link-button:hover,
.actions a:hover {
  color: var(--accent-strong);
}

@media (max-width: 420px) {
  .search button::after {
    content: none;
  }
}
/* ChofPrix logo */
.logo-brand {
  min-height: 42px;
  align-self: center;
}

.brand-logo {
  display: block;
  width: clamp(158px, 21vw, 212px);
  height: auto;
  flex: 0 0 auto;
}

.admin-sidebar .logo-brand {
  padding: 6px 10px 14px;
}

.admin-sidebar .brand-logo {
  width: min(204px, 100%);
}

@media (max-width: 420px) {
  .brand-logo {
    width: 148px;
  }
}
.auth-logo {
  display: block;
  width: min(220px, 78vw);
  height: auto;
  margin: 0 auto 18px;
}
