:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --surface: #ffffff;
  --line: #d8e0ec;
  --text: #111827;
  --muted: #5f6980;
  --chip-bg: #fde7e9;
  --chip-text: #97383f;
  --accent: #2264bc;
  --price: #a72d2d;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 2px 8px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f3f6fb 0%, var(--bg) 35%, #ffffff 100%);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.home-page {
  position: relative;
  min-height: 100vh;
  color: #102033;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  background:
    radial-gradient(42% 52% at 12% 12%, rgba(27, 120, 212, 0.14) 0%, rgba(27, 120, 212, 0) 100%),
    radial-gradient(34% 44% at 86% 18%, rgba(239, 143, 51, 0.18) 0%, rgba(239, 143, 51, 0) 100%),
    linear-gradient(180deg, #edf5ff 0%, #f4f9ff 38%, #fdf9f3 100%);
}

.home-page .home-wrap,
.home-page .site-footer {
  position: relative;
  z-index: 1;
}

.home-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  width: clamp(280px, 44vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.45;
}

.orb-left {
  top: -15%;
  left: -12%;
  background: #6fb4ff;
}

.orb-right {
  top: 8%;
  right: -13%;
  background: #f6b15d;
}

.home-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.1rem 0 2.4rem;
  display: grid;
  gap: 1rem;
}

.home-hero {
  border-radius: 22px;
  border: 1px solid rgba(193, 215, 239, 0.95);
  background: linear-gradient(126deg, #0f2f56 0%, #174679 46%, #27639a 100%);
  color: #eef5ff;
  padding: clamp(0.95rem, 2vw, 1.6rem);
  box-shadow: 0 20px 45px rgba(14, 36, 67, 0.22);
}

.hero-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
  color: rgba(233, 244, 255, 0.94);
  font-weight: 700;
}

.hero-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7dd8f7;
  box-shadow: 0 0 0 0 rgba(125, 216, 247, 0.55);
  animation: heroPulse 1.8s ease-out infinite;
}

@keyframes heroPulse {
  70% {
    box-shadow: 0 0 0 9px rgba(125, 216, 247, 0);
  }
}

.home-hero h1 {
  margin: 0.3rem 0 0;
  font-family: "Barlow Condensed", "Impact", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 12ch;
}

.home-hero p {
  margin: 0.62rem 0 0;
  max-width: 64ch;
  color: rgba(231, 241, 255, 0.95);
  font-size: 0.94rem;
}

.hero-actions {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.48rem 0.96rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn-primary {
  color: #0f2746;
  background: #f7d692;
  border-color: #f7d692;
}

.hero-btn-primary:hover {
  filter: brightness(1.05);
}

.hero-btn-secondary {
  color: #e3f0ff;
  border-color: rgba(207, 226, 249, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section-grid {
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.section-card {
  position: relative;
  display: block;
  min-height: 215px;
  border-radius: 16px;
  border: 1px solid #c9dcee;
  padding: 0.95rem;
  color: #13253d;
  text-decoration: none;
  background: linear-gradient(165deg, #fbfdff 0%, #f0f7ff 100%);
  box-shadow: 0 13px 24px rgba(16, 36, 60, 0.09);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.section-card:nth-child(2) {
  background: linear-gradient(165deg, #fffdf8 0%, #f5f9ff 100%);
}

.section-card:nth-child(3) {
  background: linear-gradient(165deg, #fbfcff 0%, #f8f4ff 100%);
}

.section-card:nth-child(4) {
  background: linear-gradient(165deg, #f8fcff 0%, #f4fbff 100%);
}

.section-card:hover {
  transform: translateY(-3px);
  border-color: #aac8e6;
  box-shadow: 0 20px 28px rgba(16, 36, 60, 0.13);
}

.section-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
  color: #607691;
}

.section-card h2 {
  margin: 0.34rem 0 0;
  font-family: "Barlow Condensed", "Impact", sans-serif;
  font-size: 2rem;
  line-height: 0.92;
  color: #10263f;
  text-transform: uppercase;
}

.section-card p {
  margin: 0.48rem 0 0;
  color: #4a5d79;
  font-size: 0.87rem;
  line-height: 1.42;
  max-width: 32ch;
}

.section-link {
  margin-top: auto;
  padding-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #0f4f89;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-arrow {
  transition: transform 140ms ease;
}

.section-card:hover .section-arrow {
  transform: translateX(2px);
}

.workflow-panel {
  border-radius: 18px;
  border: 1px solid #cfdff0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  padding: 1rem 1.1rem;
}

.workflow-panel h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #395676;
}

.workflow-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.workflow-step {
  border-radius: 12px;
  border: 1px solid #d8e5f3;
  background: #f9fcff;
  padding: 0.75rem 0.78rem;
}

.workflow-step h3 {
  margin: 0;
  color: #17385f;
  font-size: 0.88rem;
}

.workflow-step p {
  margin: 0.35rem 0 0;
  color: #5c6f88;
  font-size: 0.79rem;
}

.home-deals-panel {
  border-radius: 18px;
  border: 1px solid #cfdff0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  padding: 1rem 1.1rem;
}

.home-deals-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.home-deals-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
  color: #597390;
}

.home-deals-header h2 {
  margin: 0.2rem 0 0;
  font-family: "Barlow Condensed", "Impact", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 2rem;
  line-height: 0.92;
  color: #173960;
}

.home-deals-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #2a5f96;
  color: #1e4d7f;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.76rem;
  background: #edf5ff;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.home-deals-link:hover {
  transform: translateY(-1px);
  border-color: #1f5388;
  background: #ddeeff;
}

.home-deals-meta {
  margin: 0.62rem 0 0;
  color: #4d6682;
  font-size: 0.78rem;
}

.home-deals-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-deals-grid .deal-card {
  padding: 0.48rem;
  border-radius: 12px;
}

.home-deals-grid .image-shell {
  height: clamp(150px, 16vw, 180px);
}

.home-deals-grid .discount-chip {
  top: 0.52rem;
  right: 0.52rem;
}

.home-deals-grid .deal-title {
  font-size: 0.84rem;
}

.home-deals-grid .store-name,
.home-deals-grid .size-text {
  font-size: 0.75rem;
}

.home-deals-grid .category-pill {
  font-size: 0.68rem;
}

.home-deals-grid .deal-price {
  font-size: 0.84rem;
}

.home-deals-grid .old-price {
  font-size: 0.76rem;
}

.home-deals-grid .visit-button {
  margin-top: 0.54rem;
  min-height: 2rem;
  font-size: 0.8rem;
}

.home-note {
  margin: 0;
  color: #415770;
  font-size: 0.8rem;
}

/* Simplified home layout */
.home-page {
  min-height: 100vh;
  color: #182033;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f4f5f7;
}

.home-atmosphere {
  display: none;
}

.home-topbar {
  border-bottom: 1px solid #dbe1eb;
  background: #f8f9fb;
}

.home-topbar-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-brand {
  color: #131e31;
  text-decoration: none;
  display: grid;
  gap: 0.05rem;
}

.home-brand-title {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a576f;
  font-weight: 700;
}

.home-topnav {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}

.home-topnav a {
  color: #1e293b;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}

.home-topnav a:hover {
  text-decoration: underline;
}

.home-simple {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.35rem 0 2rem;
  display: grid;
  gap: 2.1rem;
}

.home-hero-simple {
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(1rem, 2.8vw, 1.7rem);
}

.home-hero-simple h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.2vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #1a2336;
  max-width: 28ch;
  margin-inline: auto;
}

.home-hero-simple p {
  margin: 1.15rem auto 0;
  font-size: clamp(1rem, 2.1vw, 1.05rem);
  color: #374357;
  max-width: 62ch;
}

.home-search {
  margin: 1.5rem auto 0;
  width: min(760px, 100%);
  position: relative;
}

.home-search::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7890;
  font-size: 1.08rem;
  pointer-events: none;
}

.home-search input {
  width: 100%;
  border: 1.8px solid #a4b2c8;
  border-radius: 999px;
  background: #f8fafc;
  color: #142338;
  font: inherit;
  font-size: 1.03rem;
  padding: 0.86rem 1.3rem 0.86rem 2.8rem;
}

.home-search input::placeholder {
  color: #627088;
}

.home-search input:focus {
  outline: 2px solid transparent;
  border-color: #6e88ac;
  box-shadow: 0 0 0 3px rgba(78, 113, 161, 0.2);
}

.home-browse {
  display: grid;
  gap: 1rem;
}

.home-browse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-browse-card {
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fafcff;
  padding: 1rem 1.08rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.home-browse-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1a2940;
}

.home-browse-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #41516a;
  line-height: 1.4;
  flex: 1;
}

.home-card-cta {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bccbe0;
  border-radius: 999px;
  background: #eef4fc;
  color: #163e72;
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
}

.home-card-cta:hover {
  border-color: #8ea5c6;
  background: #dfebfb;
}

.home-page .home-note {
  margin-top: -0.45rem;
  color: #596780;
  font-size: 0.84rem;
}

.page {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
}

.site-nav {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid #d1daea;
  border-radius: 999px;
  padding: 0.22rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  text-decoration: none;
  color: #334155;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a.is-active {
  background: var(--accent);
  color: #fff;
}

.page-header {
  margin-top: 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0f1a2d;
}

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 1.6rem;
}

.filters-panel,
.results-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.filters-panel {
  align-self: start;
  padding: 0.75rem;
}

.results-panel {
  padding: 0.8rem;
}

.filters-panel h2 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.filter-list {
  margin-top: 0.4rem;
}

.filter-group {
  border-bottom: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: 1px solid var(--line);
}

.filter-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 650;
  padding: 0.62rem 0.9rem;
  border-radius: 6px;
  transition: background-color 120ms ease;
}

.filter-group summary:hover {
  background: #f5f8fd;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "⌄";
  font-size: 1rem;
  font-weight: 600;
  transform: translateY(-0.05rem);
}

.filter-group[open] summary::after {
  content: "⌃";
}

.filter-body {
  padding: 0 0.9rem 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.filter-body.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.filter-body label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.filter-body input,
.filter-body select {
  width: 100%;
  border: 1px solid #c4cfdf;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  padding: 0.42rem 0.5rem;
}

.filter-body input:focus,
.filter-body select:focus,
#sortBy:focus {
  outline: 2px solid transparent;
  border-color: #90afe0;
  box-shadow: 0 0 0 2px rgba(34, 100, 188, 0.16);
}

.filter-body select[multiple] {
  min-height: 7.2rem;
}

.filter-body input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-options {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.brand-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.86rem;
  color: var(--text);
}

.brand-options input {
  width: auto;
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.panel-actions {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

button {
  border-radius: 6px;
  border: 1.4px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.44rem 0.56rem;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

button.ghost {
  background: #f3f7ff;
  color: var(--accent);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#updatedAt {
  font-size: 0.76rem;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.1rem 0 0.75rem;
}

.quick-filter-wrap {
  display: grid;
  gap: 0.33rem;
  margin: 0 0 0.62rem;
}

.quick-filter-wrap label {
  font-size: 0.78rem;
  color: #374760;
  font-weight: 700;
}

.quick-filter-wrap input {
  width: 100%;
  border: 1px solid #c4cfdf;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.48rem 0.58rem;
}

.summary {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sort-wrap label {
  font-size: 0.84rem;
  font-weight: 600;
}

#sortBy {
  width: 170px;
  border: 1px solid #c4cfdf;
  border-radius: 4px;
  background: #fff;
  color: #222;
  padding: 0.34rem 0.5rem;
  font: inherit;
  font-size: 0.84rem;
}

.quick-filter-wrap input:focus {
  outline: 2px solid transparent;
  border-color: #90afe0;
  box-shadow: 0 0 0 2px rgba(34, 100, 188, 0.16);
}

.messages {
  margin: 0 0 0.75rem;
  color: #7f2a2a;
  font-size: 0.82rem;
  min-height: 1rem;
}

.messages:empty {
  display: none;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.admin-header {
  margin-top: 0.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.admin-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  box-shadow: var(--shadow-soft);
}

.admin-stat-title {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f1a2d;
}

.admin-stat-note {
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 0.8rem;
}

.admin-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.6rem;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #dce4ef;
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.45rem;
}

.admin-table th {
  color: #24324a;
  background: #f6f9ff;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  padding: 0.2rem 0.42rem;
  white-space: nowrap;
}

.admin-status-pill.ok {
  color: #14532d;
  background: #dcfce7;
  border-color: #8fd7a7;
}

.admin-status-pill.partial {
  color: #92400e;
  background: #fef3c7;
  border-color: #f5d27a;
}

.admin-status-pill.error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #f2a8a8;
}

.admin-status-pill.empty,
.admin-status-pill.unknown,
.admin-status-pill.na {
  color: #334155;
  background: #e7edf6;
  border-color: #b7c5da;
}

.site-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-tag {
  font-size: 0.66rem;
  color: #334155;
  border: 1px solid #b7c5da;
  border-radius: 999px;
  padding: 0.14rem 0.34rem;
  background: #eef3fb;
}

.site-status-cell {
  display: grid;
  gap: 0.2rem;
}

.site-status-note {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-status-time {
  color: #7a8498;
  font-size: 0.69rem;
}

.admin-error-list {
  display: grid;
  gap: 0.55rem;
}

.admin-error-card {
  border: 1px solid #f0c8c8;
  border-radius: 8px;
  background: #fff7f7;
  padding: 0.55rem 0.65rem;
}

.admin-error-title {
  margin: 0;
  color: #7f2a2a;
  font-weight: 700;
  font-size: 0.8rem;
}

.admin-error-message {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #7f2a2a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

.steel-panel {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.steel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.8rem;
}

.steel-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.steel-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.deal-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.deal-card:hover {
  transform: translateY(-1px);
  border-color: #bdd0e8;
  box-shadow: var(--shadow);
}

.image-shell {
  position: relative;
  background: #f7f9fd;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  height: clamp(170px, 22vw, 208px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deal-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.35rem;
}

.deal-image.placeholder {
  background: #ececee;
  position: relative;
}

.deal-image.placeholder::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 14px;
  height: 11px;
  border: 2px solid #98a2b5;
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 48%, #7ebf6f 48% 68%, transparent 68%),
    linear-gradient(0deg, #6e89bc 0 28%, transparent 28% 100%);
}

.discount-chip {
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  z-index: 2;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  padding: 0.24rem 0.58rem;
}

.store-name {
  margin: 0.52rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.deal-title {
  margin: 0.18rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.22;
}

.meta-row {
  margin-top: 0.34rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem 0.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e7eef8;
  color: #26456f;
  border: 1px solid #9db5d8;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.18rem 0.46rem;
}

.size-text {
  color: var(--muted);
  font-size: 0.78rem;
}

.price-row {
  margin-top: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.32rem;
}

.deal-price {
  color: var(--price);
  font-weight: 800;
  font-size: 0.9rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.82rem;
}

.visit-button {
  margin-top: 0.62rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.2px solid var(--accent);
  border-radius: 6px;
  min-height: 2.2rem;
  color: var(--accent);
  background: #f4f8ff;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  padding: 0.35rem 0.62rem;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.visit-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.visit-button.is-disabled {
  border-color: #a9b5cb;
  color: #7f8795;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #a9b6ca;
  border-radius: 6px;
  color: var(--muted);
  padding: 0.75rem;
  font-size: 0.88rem;
  background: #fafcff;
}

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

.site-footer {
  margin-top: 1.5rem;
  border-top: 1px solid #d7e1ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, #ebf1fb 100%);
}

.site-footer-inner,
.footer-legal {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-page .site-footer-inner,
.home-page .footer-legal {
  width: min(1180px, calc(100% - 2rem));
}

.home-page .site-footer {
  margin-top: 0.6rem;
  border-top-color: #c5d9ee;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.52) 0%, #e5f0fb 100%);
}

.home-page .footer-block h2,
.home-page .footer-block h3 {
  color: #15375e;
}

.home-page .footer-block p,
.home-page .footer-legal {
  color: #43607f;
}

.site-footer-inner {
  padding: 1.05rem 0 0.8rem;
  display: grid;
  gap: 1rem 1.35rem;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
}

.footer-block h2,
.footer-block h3 {
  margin: 0;
  color: #10243e;
  letter-spacing: -0.01em;
}

.footer-block h2 {
  font-size: 1rem;
}

.footer-block h3 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-block p {
  margin: 0.42rem 0 0;
  color: #445068;
  font-size: 0.82rem;
  max-width: 56ch;
}

.footer-block a {
  margin-top: 0.32rem;
  display: block;
  text-decoration: none;
  color: #213b62;
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-block a:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px dashed #c4d0e2;
  padding: 0.65rem 0 0.95rem;
  color: #52607a;
  font-size: 0.76rem;
}

@media (max-width: 1160px) {
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    justify-items: start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .summary,
  .sort-wrap label,
  #sortBy,
  .filter-group summary,
  .filters-panel h2 {
    font-size: clamp(0.92rem, 2vw, 1.04rem);
  }
}

@media (max-width: 760px) {
  .home-wrap,
  .page {
    width: calc(100% - 1rem);
    padding-top: 0.9rem;
  }

  .home-wrap {
    gap: 0.82rem;
    padding-bottom: 1.4rem;
  }

  .home-topbar-inner {
    width: calc(100% - 1rem);
    min-height: 70px;
    padding: 0.48rem 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.42rem 0.95rem;
  }

  .home-brand-title {
    font-size: 1.18rem;
  }

  .home-brand-sub {
    font-size: 0.62rem;
  }

  .home-topnav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
  }

  .home-topnav a {
    flex: 0 0 auto;
    font-size: 0.92rem;
  }

  .home-simple {
    width: calc(100% - 1rem);
    gap: 1.5rem;
    padding-top: 1.15rem;
    padding-bottom: 1.45rem;
  }

  .home-hero-simple p {
    margin-top: 0.9rem;
  }

  .home-search {
    margin-top: 1rem;
  }

  .home-browse-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    border-radius: 16px;
    padding: 0.86rem 0.82rem;
  }

  .home-hero h1 {
    max-width: 14ch;
    font-size: clamp(1.85rem, 10.5vw, 2.45rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .site-footer-inner,
  .footer-legal,
  .home-page .site-footer-inner,
  .home-page .footer-legal {
    width: calc(100% - 1rem);
  }

  .filters-panel,
  .results-panel {
    padding: 0.65rem;
  }

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

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

  .section-card h2 {
    font-size: 1.75rem;
  }

  .home-deals-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-deals-link {
    width: 100%;
  }

  .home-deals-header h2 {
    font-size: 1.75rem;
  }

  .home-deals-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.34rem 0.52rem;
    font-size: 0.78rem;
  }

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

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  #sortBy {
    width: 100%;
  }

  .sort-wrap {
    width: 100%;
  }

  .sort-wrap label {
    min-width: 3.8rem;
  }

  .steel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-legal {
    padding-bottom: 0.82rem;
  }
}
