﻿:root {
  color-scheme: light;
  --blue: #2874f0;
  --blue-dark: #1550b8;
  --yellow: #ffe500;
  --orange: #fb641b;
  --green: #16863a;
  --ink: #172337;
  --muted: #667085;
  --line: #dbe3ef;
  --page: #f1f3f6;
  --surface: #ffffff;
  --accent-purple: #6d5dfc;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --deep-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.commerce-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 10px 18px;
}

.brand {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 12px;
  min-width: 214px;
  line-height: 1;
}

.brand::before {
  width: 54px;
  height: 54px;
  background: url("assets/deals2think-logo.svg") center / contain no-repeat;
  content: "";
}

.brand-name {
  color: white;
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
}

.brand-sub {
  width: fit-content;
  grid-column: 2;
  margin-top: 3px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.search {
  display: grid;
  grid-template-columns: 1fr 94px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 3px;
  background: white;
}

.search input {
  min-width: 0;
  border: 0;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

.search button {
  border: 0;
  background: white;
  color: var(--blue);
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.post-button {
  min-height: 38px;
  border: 0;
  border-radius: 3px;
  background: white;
  color: var(--blue);
  padding: 0 14px;
  font-weight: 900;
}

main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 12px 18px 36px;
}

.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 3px;
  background: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f8fbff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
}

.category-pill.is-active {
  border-color: #bfd5ff;
  background: #eaf2ff;
  color: var(--blue);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 18px;
  align-items: stretch;
  min-height: 390px;
  margin-bottom: 14px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 4px;
  color: white;
  background:
    radial-gradient(circle at 83% 18%, rgba(255, 229, 0, 0.32), transparent 24%),
    radial-gradient(circle at 58% 84%, rgba(109, 93, 252, 0.42), transparent 28%),
    linear-gradient(120deg, #2874f0, #1550b8 55%, #101f5d);
  overflow: hidden;
  position: relative;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-copy {
  align-self: center;
}

.hero-copy p,
.section-head p,
.bottom-row p {
  margin: 0 0 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
}

.hero-copy span {
  display: block;
  max-width: 680px;
  color: #eaf2ff;
  font-size: 18px;
  line-height: 1.5;
}

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

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 3px;
  padding: 0 16px;
  font-weight: 900;
}

.hero-actions a:first-child {
  background: var(--orange);
}

.hero-actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.hero-showcase {
  position: relative;
  min-height: 310px;
  z-index: 1;
}

.showcase-card {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--deep-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  z-index: 10;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.showcase-card.main {
  inset: 28px 116px 22px 14px;
  padding: 18px;
}

.showcase-card.mini {
  right: 10px;
  width: 176px;
  min-height: 142px;
  padding: 14px;
}

.showcase-card.top {
  top: 4px;
}

.showcase-card.bottom {
  bottom: 18px;
}

.showcase-card span {
  justify-self: start;
  border-radius: 999px;
  background: #fff2dc;
  color: #9a3412;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.showcase-card img {
  max-width: 220px;
  max-height: 150px;
}

.showcase-card.mini img {
  max-width: 110px;
  max-height: 74px;
}

.showcase-card strong {
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.showcase-card[data-title]:hover::after,
.showcase-card[data-title]:focus-visible::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: -12px;
  z-index: 20;
  width: min(320px, calc(100vw - 36px));
  transform: translate(-50%, 100%);
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

.showcase-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.trust-strip button {
  display: grid;
  gap: 2px;
  min-height: 78px;
  align-content: center;
  border: 0;
  padding: 14px;
  background: white;
  text-align: center;
}

.trust-strip button:hover {
  background: #eef5ff;
}

.trust-strip strong {
  color: var(--blue);
  font-size: 26px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.lane {
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 14px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lane:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lane span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lane strong {
  color: var(--ink);
  font-size: 18px;
}

.lane.is-active {
  border-color: #bfd5ff;
  background: #eef5ff;
}

.spotlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  min-height: 160px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  padding: 20px;
  color: white;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--deep-shadow);
}

.spotlight-card.blue {
  background: linear-gradient(135deg, #185abc, #2874f0);
}

.spotlight-card.orange {
  background: linear-gradient(135deg, #c2410c, #fb641b);
}

.spotlight-card.green {
  background: linear-gradient(135deg, #166534, #16a34a);
}

.spotlight-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.05;
}

.spotlight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.4;
}

.spotlight-card img {
  max-width: 122px;
  max-height: 100px;
  justify-self: center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #ffd7bd;
  border-radius: 4px;
  background: #fff7ed;
  padding: 11px 14px;
}

.ticker span {
  border-radius: 999px;
  background: var(--orange);
  color: white;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker p {
  margin: 0;
  color: #7c2d12;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.filter-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.panel-card,
.deal-section,
.bottom-row {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.panel-card {
  padding: 16px;
}

#deal-radar,
#alerts,
#deals {
  scroll-margin-top: 180px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head strong,
.radar-title strong {
  font-size: 17px;
}

.panel-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
}

.panel-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-card select,
.panel-card input[type="number"],
.panel-card input[type="text"] {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
}


.price-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-filter {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  min-height: 40px;
  color: var(--ink) !important;
  font-size: 13px !important;
  text-transform: none !important;
}

.check-filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.radar-panel {
  background:
    linear-gradient(180deg, #ffffff, #fbfcff),
    white;
}

.radar-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(22, 134, 58, 0.13);
}

.radar-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.radar-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.radar-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

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

.radar-panel dd {
  margin: 0;
  font-weight: 900;
}

.deal-section {
  overflow: hidden;
  position: relative;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.deal-scroll-controls {
  position: sticky;
  right: 14px;
  bottom: 16px;
  z-index: 12;
  display: grid;
  justify-content: end;
  justify-items: center;
  gap: 8px;
  width: fit-content;
  margin: -94px 14px 18px auto;
  pointer-events: none;
}

.deal-scroll-controls.is-hidden {
  display: none;
}

.deal-scroll-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40, 116, 240, 0.28);
  border-radius: 999px;
  background: #2874f0;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
}

.deal-scroll-controls button:hover {
  background: #1550b8;
}

.deal-scroll-controls button:disabled {
  cursor: default;
  opacity: 0.38;
}

.section-head p {
  color: var(--blue);
}

.section-head h2,
.bottom-row h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
}

#resultCount {
  color: var(--muted);
  font-weight: 900;
}

.result-tools {
  display: grid;
  justify-items: end;
  gap: 6px;
}

#activeFilter {
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 1px;
  background: var(--line);
}

.product-card {
  display: grid;
  min-height: 364px;
  background: white;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card::before {
  content: "D2T PICK";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  background: #111827;
  color: white;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
}

.product-card:hover {
  z-index: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 174px;
  padding: 18px;
  background: #ffffff;
  border-bottom: 1px solid #edf1f5;
}

.product-image img {
  max-width: 176px;
  max-height: 146px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(15, 23, 42, 0.12));
}

.product-card:has(.store-chip)::after {
  content: "";
}

.product-body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
}

.store-chip {
  width: fit-content;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.store-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

.product-body h3 {
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.price-row strong {
  font-size: 22px;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.price-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 88px;
  gap: 8px;
  margin-top: 4px;
}

.card-actions a,
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 3px;
  padding: 0 10px;
  font-weight: 900;
}

.card-actions a {
  background: linear-gradient(135deg, var(--orange), #ff8a1c);
  color: white;
}

.card-actions button {
  border: 1px solid #c7d7ff;
  background: #eef5ff;
  color: var(--blue);
}

.bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 540px);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 24px;
}

.bottom-row p {
  color: var(--blue);
}

.alert-form {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.alert-form input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: none;
}

.alert-form button {
  border: 0;
  background: var(--blue);
  color: white;
  padding: 0 14px;
  font-weight: 900;
}

#alertMessage {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

dialog {
  width: min(620px, calc(100% - 30px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 24px;
}

.dialog-card {
  padding: 28px;
}

.dialog-card img {
  display: block;
  max-width: 220px;
  max-height: 160px;
  margin: 0 auto 18px;
}

.detail-shell {
  width: min(1180px, 100%);
}

.back-link {
  display: inline-flex;
  margin: 4px 0 14px;
  color: var(--blue);
  font-weight: 900;
}

.deal-detail {
  display: grid;
  gap: 14px;
}

.detail-main {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.detail-image-panel,
.detail-card,
.comments-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.detail-image-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  align-content: start;
  min-height: 420px;
  padding: 24px;
}

.detail-image-panel img {
  max-width: 290px;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.14));
}

.image-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.detail-score {
  justify-self: start;
  border-radius: 999px;
  background: #fff2dc;
  color: #c2410c;
  padding: 7px 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.12);
  z-index: 1;
}

.vote-row {
  display: flex;
  gap: 8px;
}

.vote-row button,
.detail-actions button,
.detail-secondary-button,
.comment-form button {
  min-height: 38px;
  border: 1px solid #c7d7ff;
  border-radius: 4px;
  background: #eef5ff;
  color: var(--blue);
  padding: 0 12px;
  font-weight: 900;
}

.vote-row button.is-selected {
  border-color: #174ea6;
  background: #174ea6;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 78, 166, 0.22);
}

.vote-status {
  margin: 8px 0 0;
  color: #526078;
  font-size: 13px;
  font-weight: 800;
}

.detail-card {
  padding: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-meta span + span::before {
  content: "-";
  margin-right: 8px;
  color: #98a2b3;
}

.deal-strength {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  background: #eaf7ee;
  color: #137333;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.missing-deal-card {
  display: grid;
  gap: 18px;
}

.missing-deal-list {
  display: grid;
  gap: 10px;
}

.missing-deal-list a {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 13px;
  color: #172033;
  text-decoration: none;
}

.missing-deal-list span {
  color: #2874f0;
  font-size: 12px;
  font-weight: 900;
}

.missing-deal-list strong {
  font-size: 16px;
}

.missing-deal-list em {
  color: #137333;
  font-style: normal;
  font-weight: 900;
}

.detail-card h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.detail-price strong {
  font-size: 34px;
}

.detail-price span {
  color: var(--muted);
  font-size: 18px;
  text-decoration: line-through;
}

.detail-price em {
  color: var(--green);
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.detail-insight {
  margin: 0 0 18px;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--blue-dark);
  padding: 14px;
  line-height: 1.5;
}

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

.merchant-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--orange), #ff8a1c);
  color: white;
  padding: 0 16px;
  font-weight: 900;
}

.detail-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 14px;
}

.detail-card h2,
.comments-card h2 {
  margin: 0 0 12px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

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

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

.signal-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.comments-card {
  padding: 20px;
}

.comments-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.comments-head span {
  color: var(--muted);
  font-weight: 900;
}

.comment {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.user-comment {
  border-radius: 8px;
  border: 1px solid #c7d7ff;
  background: #eef5ff;
  padding: 14px;
}

.comment-status {
  margin: 8px 0 0;
  color: #174ea6;
  font-size: 13px;
  font-weight: 800;
}

.comment p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.comment-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comment-form textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  font: inherit;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--blue-dark);
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .header-inner,
  .hero-band,
  .main-grid,
  .detail-main,
  .detail-grid,
  .bottom-row {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spotlight-row,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main,
  .header-inner {
    padding-inline: 12px;
  }

  .header-actions {
    overflow-x: auto;
  }

  .filter-panel,
  .quick-lanes,
  .spotlight-row,
  .trust-strip,
  .bottom-row,
  .alert-form {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .showcase-card.main {
    inset: 12px 12px 170px;
  }

  .showcase-card.mini {
    width: calc(50% - 18px);
    right: auto;
    bottom: 12px;
    top: auto;
  }

  .showcase-card.top {
    left: 12px;
  }

  .showcase-card.bottom {
    right: 12px;
    left: auto;
  }

  .hero-copy h1 {
    font-size: 38px;
  }
}

/* Premium visual polish */
body {
  background:
    radial-gradient(circle at top left, rgba(40, 116, 240, 0.12), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(255, 193, 7, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2f8 42%, #f8fafc 100%);
  color: #172033;
}

.commerce-header {
  background: linear-gradient(135deg, #0d47a1 0%, #2874f0 46%, #1259c3 100%);
  box-shadow: 0 14px 38px rgba(13, 71, 161, 0.22);
}

.brand-name {
  letter-spacing: -0.5px;
}

.search {
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(12, 40, 92, 0.16);
}

.category-bar,
.trust-strip,
.panel-card,
.deal-section,
.bottom-row {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-pill {
  border-radius: 999px;
  background: #ffffff;
  border-color: #dbe7fb;
  color: #17315f;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.category-pill span {
  color: inherit;
  white-space: nowrap;
}

.category-pill:hover {
  transform: translateY(-2px);
  background: #eef5ff;
  color: #174ea6;
  border-color: #b9d2ff;
  box-shadow: 0 10px 22px rgba(40, 116, 240, 0.18);
}

.category-pill.is-active {
  background: #174ea6;
  border-color: #174ea6;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 78, 166, 0.28);
}

.category-pill.is-active:hover {
  background: #0d47a1;
  color: #ffffff;
}

.hero-band {
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(10, 32, 82, 0.18);
}

.hero-copy h1 {
  letter-spacing: -1px;
}

.hero-actions a,
.ticker,
.card-actions a,
.card-actions button,
.alert-form,
.alert-form button {
  border-radius: 999px;
}

.showcase-card {
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.showcase-card img,
.spotlight-card img,
.product-image img {
  filter: drop-shadow(0 16px 18px rgba(15, 23, 42, 0.14));
}

.lane,
.spotlight-card {
  border-radius: 18px;
}

.lane {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.lane:hover,
.spotlight-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}

.deal-grid {
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6edf7;
  border-radius: 16px;
}

.product-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2874f0, #ffc107, #16a34a);
  content: "";
}

.product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), transparent 44%),
    linear-gradient(145deg, #eef5ff, #f8fafc 55%, #fff7df);
}

.product-body h3 {
  color: #111827;
}

.store-chip {
  background: linear-gradient(135deg, #eef5ff, #fff8df);
}

.bottom-row {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 55%, #fff9e6 100%);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 24px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: #526078;
}

.site-footer strong {
  display: block;
  color: #172033;
  font-size: 18px;
  margin-bottom: 6px;
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer a {
  color: #174ea6;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 0 20px 40px;
}

.legal-page section {
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.legal-page section > p:first-child {
  margin: 0 0 8px;
  color: #2874f0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-page h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.legal-page h2 {
  margin: 26px 0 8px;
  color: #17315f;
  font-size: 21px;
  line-height: 1.25;
}

.legal-page h1 + h2 {
  margin-top: 22px;
}

.legal-page p {
  color: #526078;
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 22px 16px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .legal-page section {
    padding: 24px;
  }
}



.post-deal-form {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.post-deal-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-deal-form input,
.post-deal-form select,
.post-deal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.post-deal-form textarea {
  min-height: 88px;
  resize: vertical;
}

.post-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 620px) {
  .post-deal-grid {
    grid-template-columns: 1fr;
  }
}


.empty-card {
  grid-column: 1 / -1;
  min-height: 180px;
}

.empty-card::before {
  content: "";
}

.empty-card .product-body {
  align-content: center;
  max-width: 720px;
}

.location-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}

.location-filter small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.location-chip {
  width: fit-content;
  border-radius: 999px;
  background: #fff8df;
  color: #7a4b00;
  border: 1px solid #ffe0a3;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}


/* Mobile and tablet responsive hardening */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

.header-inner,
main,
.detail-shell {
  width: min(1240px, 100%);
}

.commerce-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.category-bar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.category-pill {
  scroll-snap-align: start;
  min-width: max-content;
}

.hero-copy h1,
.section-head h2,
.bottom-row h2 {
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  letter-spacing: 0;
}

.product-card,
.panel-card,
.deal-section,
.hero-band,
.quick-lanes,
.spotlight-row,
.trust-strip,
.bottom-row {
  min-width: 0;
}

.product-body,
.product-body h3,
.product-body p,
.price-row,
.card-actions {
  min-width: 0;
}

.product-body h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(170px, auto) minmax(320px, 1fr);
    gap: 12px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }

  .deal-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 900px) {
  main {
    padding-inline: 14px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .brand {
    width: fit-content;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) 84px;
    width: 100%;
  }

  .search input {
    font-size: 16px;
  }

  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-actions a,
  .post-button {
    white-space: nowrap;
  }

  .category-bar {
    margin-inline: -14px;
    padding-inline: 14px;
    border-radius: 0;
  }

  .hero-band {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-showcase {
    min-height: 280px;
  }

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

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .filter-panel .panel-card:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .panel-head,
  .price-filter-row,
  .location-filter,
  .check-filter {
    grid-column: 1 / -1;
  }

  .radar-panel {
    display: none;
  }

  .quick-lanes,
  .spotlight-row,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
    gap: 12px;
  }

  .result-tools {
    justify-items: start;
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    gap: 10px;
  }

  .product-card {
    min-height: 0;
  }

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

  .product-image img {
    max-width: 145px;
    max-height: 120px;
  }
}

@media (max-width: 1040px) {
  .main-grid {
    display: grid;
  }

  .deal-section {
    order: 1;
  }

  .filter-panel {
    order: 2;
  }
}

@media (max-width: 700px) {
  .deal-scroll-controls {
    display: none;
  }
}

@media (max-width: 620px) {
  main {
    padding-inline: 10px;
  }

  .commerce-header {
    position: sticky;
  }

  .header-inner {
    padding: 10px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) 72px;
    min-height: 42px;
    border-radius: 8px;
  }

  .search input {
    padding-inline: 12px;
    font-size: 16px;
  }

  .search button {
    font-size: 13px;
  }

  .header-actions {
    margin-inline: -2px;
    padding-bottom: 4px;
  }

  .header-actions a,
  .post-button {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .category-bar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .category-pill {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero-band {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .hero-copy span {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    justify-content: center;
    width: 100%;
  }

  .hero-showcase {
    min-height: 235px;
  }

  .showcase-card.main {
    width: min(72%, 250px);
  }

  .showcase-card.mini {
    width: min(48%, 160px);
  }

  .quick-lanes,
  .spotlight-row,
  .trust-strip,
  .filter-panel,
  .filter-panel .panel-card:first-child,
  .price-filter-row,
  .location-filter,
  .bottom-row,
  .alert-form {
    grid-template-columns: 1fr;
  }

  .panel-card {
    padding: 13px;
    border-radius: 12px;
  }

  .panel-card label {
    margin-top: 0;
  }

  .panel-card select,
  .panel-card input[type="number"],
  .panel-card input[type="text"] {
    min-height: 44px;
    font-size: 16px;
  }

  .check-filter {
    min-height: 42px;
  }

  .deal-section {
    border-radius: 12px;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .deal-grid {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .product-card {
    min-height: 0;
    border-radius: 14px;
  }

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

  .product-image img {
    max-width: 165px;
    max-height: 130px;
  }

  .product-body {
    padding: 13px;
  }

  .product-body h3 {
    min-height: auto;
    font-size: 16px;
  }

  .price-row strong {
    font-size: 21px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions a,
  .card-actions button {
    min-height: 42px;
    width: 100%;
  }

  .spotlight-card {
    min-height: 145px;
  }

  .spotlight-card img {
    max-width: 92px;
  }

  dialog {
    width: min(94vw, 620px);
    margin: auto;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 28px;
  }

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

  .search button {
    min-height: 38px;
  }

  .trust-strip button,
  .lane {
    min-height: 68px;
  }
}

/* Production mobile polish */
@media (max-width: 700px) {
  body {
    background: #f4f7fb;
  }

  .deal-page .commerce-header {
    position: static;
  }

  .deal-page .detail-shell {
    padding-top: 14px;
  }

  .deal-page .deal-detail,
  .deal-page .detail-card {
    scroll-margin-top: 16px;
  }

  .commerce-header {
    top: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }

  .header-inner {
    gap: 9px;
  }

  .brand {
    justify-self: center;
    text-align: center;
  }

  .search {
    order: 2;
    grid-template-columns: 1fr 76px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .search input::placeholder {
    color: #6b7890;
  }

  .header-actions {
    order: 3;
    overflow-x: auto;
    padding: 1px 2px 5px;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar,
  .category-bar::-webkit-scrollbar,
  .quick-lanes::-webkit-scrollbar {
    display: none;
  }

  .header-actions a,
  .post-button {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #d9e7ff;
    color: #174ea6;
  }

  main {
    padding-top: 10px;
  }

  .category-bar {
    position: sticky;
    top: 126px;
    z-index: 6;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 0 -10px 10px;
    padding: 8px 10px;
    background: rgba(244, 247, 251, 0.94);
    backdrop-filter: blur(12px);
    border: 0;
  }

  .category-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  }

  .hero-band {
    display: block;
    padding: 16px;
    min-height: 0;
    background: linear-gradient(135deg, #174ea6 0%, #2874f0 58%, #0f766e 100%);
    box-shadow: 0 18px 36px rgba(23, 78, 166, 0.2);
  }

  .hero-band::after {
    display: none;
  }

  .hero-copy p {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin-bottom: 9px;
    font-size: 27px;
    line-height: 1.08;
  }

  .hero-copy span {
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 999px;
  }

  .hero-showcase {
    display: none;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
    border: 0;
    background: transparent;
  }

  .trust-strip button {
    min-height: 58px;
    padding: 8px 4px;
    border: 1px solid #dfe9f7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .trust-strip strong {
    font-size: 18px;
    line-height: 1;
  }

  .trust-strip span {
    font-size: 9px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .quick-lanes {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin: 0 -10px 10px;
    padding: 2px 10px 8px;
  }

  .lane {
    flex: 0 0 138px;
    min-height: 62px;
    border-radius: 14px;
    padding: 10px;
    text-align: left;
  }

  .lane span {
    font-size: 11px;
  }

  .lane strong {
    font-size: 15px;
  }

  .spotlight-row {
    display: none;
  }

  .main-grid {
    gap: 10px;
  }

  .filter-panel {
    gap: 10px;
  }

  .filter-panel .panel-card:first-child {
    padding: 12px;
    border-radius: 14px;
  }

  .panel-head strong {
    font-size: 16px;
  }

  .panel-card label {
    gap: 5px;
    font-size: 12px;
  }

  .panel-card select,
  .panel-card input[type="number"],
  .panel-card input[type="text"] {
    min-height: 40px;
    border-radius: 10px;
  }

  .price-filter-row,
  .location-filter {
    gap: 8px;
  }

  .section-head {
    padding: 12px;
    gap: 8px;
  }

  .section-head p {
    font-size: 12px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .result-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .result-tools span {
    min-width: 0;
    font-size: 12px;
  }

  .deal-grid {
    padding: 8px;
    gap: 9px;
    background: #f4f7fb;
  }

  .product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 14px;
    border: 1px solid #e2eaf5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .product-card::before {
    content: "D2T";
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .product-image {
    min-height: 100%;
    padding: 10px;
    border-right: 1px solid #eef2f7;
    border-bottom: 0;
    background: #fbfdff;
  }

  .product-image img {
    max-width: 92px;
    max-height: 92px;
  }

  .product-body {
    gap: 6px;
    padding: 10px 10px 10px 11px;
  }

  .chip-row {
    gap: 5px;
  }

  .store-chip,
  .location-chip {
    max-width: 100%;
    padding: 3px 7px;
    font-size: 10px;
  }

  .product-body h3 {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .price-row {
    gap: 4px 6px;
  }

  .price-row strong {
    flex-basis: 100%;
    font-size: 18px;
    line-height: 1.05;
  }

  .price-row span,
  .price-row em,
  .product-body p {
    font-size: 11px;
  }

  .product-body p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 2px;
  }

  .card-actions a,
  .card-actions button {
    min-height: 34px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
  }

  .bottom-row,
  .site-footer {
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .search {
    grid-template-columns: 1fr 68px;
  }

  .search button {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-copy span {
    font-size: 13px;
  }

  .trust-strip {
    gap: 6px;
  }

  .trust-strip button {
    min-height: 54px;
  }

  .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .product-image img {
    max-width: 82px;
    max-height: 82px;
  }

  .product-body {
    padding: 9px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}

/* Keep desktop filter rail visible while browsing deals */
@media (min-width: 1041px) {
  .main-grid {
    align-items: start;
  }

  .filter-panel {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .filter-panel::-webkit-scrollbar {
    width: 8px;
  }

  .filter-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40, 116, 240, 0.35);
  }

  .filter-panel::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* Desktop split-scroll deals layout: left rail stays while deals scroll */
@media (min-width: 1041px) {
  .main-grid {
    align-items: stretch;
    min-height: calc(100vh - 96px);
  }

  .filter-panel {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

  .deal-section {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 104px);
    overflow: hidden;
  }

  .deal-section .section-head {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
    border-bottom: 1px solid #e6edf7;
  }

  .deal-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .deal-grid::-webkit-scrollbar {
    width: 10px;
  }

  .deal-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40, 116, 240, 0.35);
  }

  .deal-grid::-webkit-scrollbar-track {
    background: #eef2f7;
  }
}

/* Left rail stays fixed without its own scrollbar */
@media (min-width: 1041px) {
  .filter-panel {
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
    scrollbar-width: auto;
  }

  .filter-panel::-webkit-scrollbar {
    display: none;
  }
}

/* Match right deals frame height to the left filter/radar rail */
@media (min-width: 1041px) {
  .deal-section {
    height: var(--deal-frame-height, calc(100vh - 104px));
    max-height: var(--deal-frame-height, calc(100vh - 104px));
  }
}

/* Ensure bottom deal cards and actions are fully reachable in split-scroll panel */
@media (min-width: 1041px) {
  .deal-grid {
    align-content: start;
    padding-bottom: 96px;
    scroll-padding-bottom: 96px;
  }

  .product-card {
    min-height: 0;
  }

  .product-body {
    align-content: start;
  }

  .card-actions {
    align-self: end;
  }
}

/* Desktop deal frame matches the left filters/radar height */
@media (min-width: 1041px) {
  .main-grid {
    align-items: start;
    min-height: 0;
  }

  .filter-panel {
    position: sticky;
    top: 88px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .deal-section {
    display: flex;
    flex-direction: column;
    height: var(--deal-frame-height, calc(100vh - 104px));
    max-height: var(--deal-frame-height, calc(100vh - 104px));
    overflow: hidden;
  }

  .deal-section .section-head {
    position: sticky;
    top: 0;
    z-index: 4;
    flex: 0 0 auto;
    background: #ffffff;
    border-bottom: 1px solid #e6edf7;
  }

  .deal-grid {
    display: grid;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    align-content: start;
    padding-bottom: 28px;
    scroll-padding-bottom: 28px;
    scrollbar-width: thin;
  }

  .deal-grid::-webkit-scrollbar {
    width: 10px;
  }

  .deal-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40, 116, 240, 0.35);
  }

  .deal-grid::-webkit-scrollbar-track {
    background: #eef2f7;
  }
}

/* Stable desktop deal scroller: keep cards visible while the right frame scrolls */
@media (min-width: 1041px) {
  .filter-panel {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .deal-section {
    display: block !important;
    height: var(--deal-frame-height, calc(100vh - 112px)) !important;
    min-height: 520px;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-padding-bottom: 32px;
    scrollbar-width: thin;
  }

  .deal-section .section-head {
    position: sticky;
    top: 0;
    z-index: 8;
    background: #ffffff;
    border-bottom: 1px solid #e6edf7;
  }

  .deal-grid {
    display: grid !important;
    overflow: visible !important;
    min-height: 0;
    align-content: start;
    padding-bottom: 32px;
  }

  .deal-section::-webkit-scrollbar {
    width: 10px;
  }

  .deal-section::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40, 116, 240, 0.35);
  }

  .deal-section::-webkit-scrollbar-track {
    background: #eef2f7;
  }
}

/* Deal detail mobile override: keep the D2T header from covering store/details */
@media (max-width: 900px) and (orientation: portrait) {
  body.deal-page .commerce-header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
  }

  body.deal-page .header-inner {
    position: relative;
  }

  body.deal-page .detail-shell {
    padding-top: 18px !important;
  }

  body.deal-page .deal-detail {
    position: relative;
    z-index: 2;
  }
}

/* Mobile deal cards: keep the D2T badge from covering store/shipping chips */
@media (max-width: 700px) {
  .product-card::before {
    inset: 8px auto auto 8px !important;
    width: auto !important;
    height: auto !important;
    max-width: 44px;
    border-radius: 999px !important;
    background: #2874f0 !important;
    color: #ffffff !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(40, 116, 240, 0.22);
  }
}

/* Mobile header actions: keep Deal Radar, Alerts, and Post Deal aligned */
@media (max-width: 700px) {
  .commerce-header .brand {
    grid-template-columns: 48px auto;
    column-gap: 6px;
    min-width: 0;
    width: fit-content;
  }

  .commerce-header .brand::before {
    width: 48px;
    height: 48px;
  }

  .commerce-header .header-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    overflow: visible;
  }

  .commerce-header .header-actions a,
  .commerce-header .header-actions .post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    text-align: center;
    white-space: nowrap;
  }
}

/* Mobile: Deal Radar links need a visible target below the deals list */
@media (max-width: 1040px) {
  .filter-panel .radar-panel {
    display: block !important;
    order: 1;
  }

  .filter-panel .panel-card:first-child {
    order: 2;
  }
}
