:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d6e2f4;
  --accent: #0d63c9;
  --accent-dark: #084a98;
  --accent-soft: #eaf3ff;
  --hero-dark: #071b35;
  --hero-mid: #0b3f7a;
  --hot: #dc2626;
  --good: #12804a;
  --gold: #f5b300;
  --gold-soft: #fff2c6;
  --orange-soft: #fff1df;
  --orange-text: #a04b00;
  --green-soft: #e8f8ef;
  --green-text: #11703f;
  --shadow: 0 16px 34px rgba(8, 39, 84, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 99, 201, .07), transparent 25%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
}

img { max-width: 100%; }

.wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(13, 99, 201, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-glass {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.hero {
  padding: 22px 0 26px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 204, 0, .16), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(120, 190, 255, .22), transparent 24%),
    linear-gradient(135deg, var(--hero-dark), var(--hero-mid) 60%, var(--accent));
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-brand {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.logo-main {
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.3));
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hero-kicker {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.98);
}

.hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255,255,255,.92);
  line-height: 1.55;
  max-width: 60ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .9rem;
  font-weight: 600;
}



.page-main {
  padding: 18px 0 38px;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.toolbar-note {
  color: var(--muted);
  font-size: .94rem;
}

.toggle-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 39, 84, .06);
}

.toggle-btn.is-active {
  background: #fff3e4;
  border-color: #ffd38c;
}

.filters {
  padding: 18px;
}

.filter-row {
  display: grid;
  gap: 14px;
}

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

.filter-block span {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus, select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 99, 201, .12);
}

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  border: 1px solid #d7e4f7;
  background: #fff;
  color: #1e293b;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(13, 99, 201, .24);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 24px 0 14px;
}

.section-kicker {
  background: #e7f0ff;
  color: var(--accent-dark);
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.info-line {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.top-pick-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(13, 99, 201, .08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 34px rgba(8, 39, 84, .12);
  min-height: 188px;
}

.top-pick-media {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 120px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-pick-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.top-pick-rank,
.top-pick-discount {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.top-pick-rank {
  top: 8px;
  left: 8px;
  background: #0f172a;
  color: #fff;
}

.top-pick-discount {
  right: 8px;
  bottom: 8px;
  background: #ffedd5;
  color: #9a3412;
}

.top-pick-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-pick-card h3 {
  margin: 4px 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.top-pick-meta,
.top-pick-submeta {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.top-pick-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.top-pick-price-row strong {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

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

.top-pick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  margin-top: auto;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.deal-image-wrap {
  position: relative;
  height: 225px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.image-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: end;
}

.overlay-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.overlay-badge.discount {
  background: #ffedd5;
  color: #9a3412;
}

.overlay-badge.new {
  background: #dcfce7;
  color: #166534;
}

.overlay-badge.pick {
  background: #fff2c6;
  color: #9a6700;
}

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

.favorite-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 99, 201, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.favorite-btn.is-favorite {
  background: #fff0cf;
}

.deal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.deal-category {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.deal-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.38;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.price-current {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

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

.deal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 10px;
}

.metric {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.metric-discount {
  background: var(--orange-soft);
  color: var(--orange-text);
}

.metric-sales {
  background: #edf5ff;
  color: var(--accent-dark);
}


.deal-actions {
  margin-top: auto;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(13, 99, 201, .22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(13, 99, 201, .26);
  opacity: .96;
  text-decoration: none;
}

.btn:visited,
.btn:active,
.btn:focus {
  color: #fff;
  text-decoration: none;
}


.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .hero-inner,
  .top-picks-grid,
  .deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-brand {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

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

@media (max-width: 720px) {
  .hero-inner,
  .top-picks-grid,
  .deals-grid,
  .filter-row-main {
    grid-template-columns: 1fr;
  }

  .top-pick-card {
    align-items: stretch;
  }

  .top-pick-media {
    width: 104px;
    min-width: 104px;
    height: 104px;
  }

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

  .logo-main {
    max-width: 290px;
  }

  .toolbar-row,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-note {
    font-size: .9rem;
  }

  .deal-image-wrap {
    height: 200px;
  }
}



.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #9fb2cd;
}

.breadcrumb-current {
  color: var(--text);
}

.page-intro {
  padding: 18px 20px;
  margin-bottom: 16px;
}

.page-intro h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 75ch;
}

.inline-link,
.deal-title-link,
.top-pick-title-link {
  color: inherit;
  text-decoration: none;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.inline-link:hover,
.deal-title-link:hover,
.top-pick-title-link:hover {
  text-decoration: underline;
}

.deal-title-link {
  color: var(--text);
}

.top-pick-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.btn-light {
  background: #f5f9ff;
  color: var(--accent-dark);
  border: 1px solid #cfe0fa;
  box-shadow: none;
}

.btn.btn-light:visited,
.btn.btn-light:active,
.btn.btn-light:focus {
  color: var(--accent-dark);
}

.btn.btn-light:hover {
  box-shadow: 0 10px 22px rgba(13, 99, 201, .12);
}

.product-view {
  margin-top: 6px;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.product-media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #e8f1ff);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.product-title {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.product-price-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.product-price-row strong {
  font-size: 2rem;
  color: var(--accent-dark);
}

.product-old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
  padding-bottom: 4px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.product-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fd;
  border: 1px solid #dbe7f7;
  font-size: .92rem;
  font-weight: 700;
}

.product-reason {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.65;
  background: #f8fbff;
  border: 1px solid #e1ebf8;
  border-radius: 16px;
  padding: 14px 16px;
}

.product-favorite-btn {
  min-width: 180px;
}

.related-section {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .product-shell {
    grid-template-columns: 1fr;
  }
}



.empty-state {
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 600;
}

.page-intro .section-kicker {
  display: inline-flex;
  margin-bottom: 6px;
}
