:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --surface-strong: #e8f0ff;
  --text: #111827;
  --muted: #667085;
  --line: #d9e0ea;
  --line-strong: #c8d3e1;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --red: #d94a57;
  --green: #16a34a;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 20px 60px rgba(15, 23, 42, 0.1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 48%, #e7edf6 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 280px minmax(320px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  margin: 0 auto 24px;
  max-width: 1480px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(227, 231, 235, 0.86);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #4f83f1);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.brand__tag {
  color: var(--muted);
  font-size: 12px;
}

.top-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.top-search input {
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  outline: none;
}

.field-input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
}

.top-search button,
.hero-search button,
.primary-button {
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.22);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
}

.nav-link:hover,
.route-chip:hover,
.secondary-button:hover {
  background: var(--surface-soft);
}

.nav-link--accent {
  background: var(--blue-soft);
  color: var(--blue);
}

.page-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.prototype-panel,
.prototype-stage {
  min-width: 0;
}

.prototype-panel {
  align-self: start;
  position: sticky;
  top: 110px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.prototype-panel__section + .prototype-panel__section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prototype-panel h1 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.05;
}

.prototype-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.prototype-panel__label,
.eyebrow,
.section-label,
.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
}

.route-list,
.merchant-pills,
.chip-row,
.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-chip,
.chip,
.merchant-pills span,
.subtle-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

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

.secondary-button {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 14px;
  font-weight: 700;
}

.small-copy {
  font-size: 13px;
}

.prototype-stage {
  padding-bottom: 40px;
}

.phone-note {
  margin-bottom: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
}

.screen {
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-hero);
}

.hero {
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 46%, #e8f0ff 100%);
  border: 1px solid #d8e3f4;
  border-radius: 28px;
}

.hero h1,
.page-hero h1,
.signin-card h1 {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.hero p,
.page-hero p,
.signin-card p,
.section-subcopy,
.muted-copy {
  color: var(--muted);
  line-height: 1.6;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 28px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-search input {
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: none;
}

.section {
  margin-top: 28px;
}

.page-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.section-head h2,
.section-head h3,
.column-title {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

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

.deal-card,
.category-card,
.brand-card,
.result-card,
.compare-card,
.signin-card,
.insight-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.deal-card,
.result-card,
.compare-card,
.insight-card,
.metric-card,
.signin-card {
  padding: 18px;
}

.category-card,
.brand-card {
  padding: 20px;
}

.category-card--large {
  padding: 24px;
}

.product-thumb,
.category-art,
.brand-art {
  display: grid;
  place-items: center;
  height: 140px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f7f9fb, #eef4ff);
  border-radius: 18px;
  font-size: 54px;
}

.category-card--large .category-art {
  height: 168px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f8fbff, #edf4ff);
  border: 1px solid #d9e4f5;
}

.category-art svg {
  width: 96px;
  height: 96px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-art .icon-fill {
  fill: var(--red);
  stroke: none;
}

.category-art .icon-fill-soft {
  fill: rgba(37, 99, 235, 0.12);
  stroke: var(--blue);
  stroke-width: 1.5;
}

.deal-card h3,
.category-card h3,
.result-card h3,
.compare-card h3,
.brand-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.merchant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.merchant-badge {
  padding: 7px 10px;
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.price {
  font-size: 28px;
  font-weight: 800;
}

.price-meta {
  color: var(--muted);
  font-size: 13px;
}

.status-good {
  color: var(--green);
  font-weight: 800;
}

.deal-actions,
.inline-actions,
.search-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.inline-button {
  padding: 11px 14px;
  background: var(--surface-soft);
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
}

.page-hero {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.side-panel--sticky {
  position: sticky;
  top: 110px;
}

.side-panel__intro {
  margin-bottom: 18px;
}

.side-panel__title {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.side-panel__copy {
  font-size: 14px;
}

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

.mini-deal-card {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mini-deal-card__top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.mini-deal-card__art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f9fb, #eef4ff);
  font-size: 34px;
}

.mini-deal-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-deal-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.query-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.filter-group + .filter-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.check-row,
.meta-row,
.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.check-row + .check-row {
  margin-top: 10px;
}

.fake-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.best-result {
  margin-bottom: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #fff8fa, #ffffff);
  border: 1px solid #f0d6dc;
  border-radius: 24px;
}

.best-result__grid,
.product-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.best-result__art,
.product-hero__art {
  display: grid;
  place-items: center;
  height: 190px;
  background: linear-gradient(135deg, #f7f9fb, #eef4ff);
  border-radius: 20px;
  font-size: 72px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}

.sort-pill {
  padding: 11px 14px;
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr 0.8fr 0.9fr 1fr;
  gap: 16px;
  padding: 18px 20px;
  align-items: center;
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row--head {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-row strong {
  display: block;
  font-size: 16px;
}

.transparency-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  color: #4a5565;
}

.signin-shell {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.signin-card {
  padding: 28px;
}

.signin-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.benefits-panel {
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #e8f0ff);
  border: 1px solid #d8e3f4;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 211, 225, 0.8);
  border-radius: 16px;
}

.benefit__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
}

.footer-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  background: rgba(31, 41, 51, 0.92);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

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

  .prototype-panel {
    position: static;
  }

  .page-shell,
  .query-shell,
  .signin-shell,
  .best-result__grid,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .side-panel--sticky {
    position: static;
  }

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

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .comparison-row--head {
    display: none;
  }
}

:root {
  --bg: #f4f1ec;
  --surface-soft: #f2f3f6;
  --text: #151515;
  --muted: #66646f;
  --line: #d8d5d0;
  --line-strong: #c9c5be;
  --gold: #c79a2c;
}

body.landing-mode {
  background: #ffffff;
}

.is-hidden {
  display: none !important;
}

.topbar--landing {
  grid-template-columns: auto 1fr auto;
  max-width: 1280px;
  padding: 18px 10px 8px;
  margin-bottom: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar--landing .brand__mark {
  background: linear-gradient(135deg, #232323, #6a6a6a);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.14);
}

.topbar--landing .brand__tag {
  color: #7b7771;
}

.topbar--landing .top-actions {
  justify-content: flex-end;
}

.topbar--landing .nav-link--accent {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(201, 197, 190, 0.95);
  color: #1f1f1f;
  box-shadow: 0 12px 26px rgba(54, 45, 25, 0.08);
}

.page-wrap--landing {
  grid-template-columns: 1fr;
  max-width: 1280px;
}

.page-wrap--landing .prototype-stage {
  padding-bottom: 0;
}

.page-wrap--landing .prototype-panel,
.page-wrap--landing .phone-note {
  display: none;
}

.landing-screen {
  min-height: calc(100vh - 132px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 42px;
  padding: clamp(28px, 5vw, 72px) 12px 24px;
  position: relative;
}

.landing-screen::before {
  content: "";
  position: absolute;
  inset: 4% 3% -6%;
  background: none;
  filter: none;
  pointer-events: none;
}

.landing-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.landing-ornament {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.landing-ornament__line {
  width: clamp(110px, 16vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 154, 44, 0.15), rgba(199, 154, 44, 0.95), rgba(199, 154, 44, 0.15));
}

.landing-ornament__diamond {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.78);
}

.landing-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(86px, 14vw, 176px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #101010;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.78),
    0 10px 26px rgba(35, 32, 28, 0.08);
  position: relative;
}

.landing-title::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 20%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 243, 182, 0.98) 0%, rgba(255, 200, 71, 0.8) 38%, rgba(255, 255, 255, 0) 72%);
  box-shadow:
    0 0 12px rgba(255, 220, 120, 0.78),
    0 0 22px rgba(255, 220, 120, 0.42);
}

.landing-subtitle {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #242424;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 330px));
  justify-content: center;
  gap: clamp(20px, 2.4vw, 34px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.landing-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 0;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: transparent;
  appearance: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 16px 30px rgba(124, 120, 112, 0.12),
    0 28px 52px rgba(124, 120, 112, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.landing-card:hover {
  transform: translateY(-6px);
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 34px rgba(124, 120, 112, 0.14),
    0 34px 62px rgba(124, 120, 112, 0.24);
}

.landing-card:focus-visible {
  outline: 3px solid rgba(199, 154, 44, 0.42);
  outline-offset: 6px;
}

.landing-card__inner,
.landing-card__glow,
.landing-card__sheen,
.landing-card__frame {
  position: absolute;
  inset: 0;
}

.landing-card__inner {
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  padding: 34px;
}

.landing-card__frame {
  z-index: 2;
  inset: 10px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.22),
    inset 0 0 44px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.landing-card__sheen {
  z-index: 1;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.18) 26.4%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.14) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76) 0, rgba(255, 255, 255, 0.08) 18%, transparent 42%);
  opacity: 0.96;
}

.landing-card__glow::before,
.landing-card__glow::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  filter: blur(7px);
}

.landing-card__glow::before {
  top: -2px;
}

.landing-card__glow::after {
  bottom: -2px;
}

.landing-card__glow {
  z-index: 1;
}

.landing-card::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.15) 36%, rgba(255, 255, 255, 0) 72%);
  filter: blur(4px);
  pointer-events: none;
}

.landing-card::after {
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

.landing-card__icon-wrap {
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0.02) 100%),
    radial-gradient(circle at 60% 72%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 62%);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.22),
    0 0 26px rgba(255, 255, 255, 0.16);
}

.landing-card__icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
}

.landing-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.72))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.34));
}

.landing-card__label {
  color: #ffffff;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  max-width: 12ch;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 2px 6px rgba(9, 9, 9, 0.4),
    0 0 10px rgba(255, 255, 255, 0.2);
}

.landing-card--electronics {
  background:
    linear-gradient(145deg, rgba(50, 108, 255, 0.98) 0%, rgba(9, 32, 126, 0.98) 58%, rgba(8, 23, 82, 0.99) 100%);
}

.landing-card--electronics .landing-card__frame {
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(143, 213, 255, 0.7),
    0 0 18px rgba(105, 193, 255, 0.68),
    0 0 38px rgba(61, 149, 255, 0.44);
}

.landing-card--beauty {
  background:
    linear-gradient(145deg, rgba(255, 35, 136, 0.99) 0%, rgba(152, 0, 72, 0.98) 56%, rgba(75, 0, 33, 0.99) 100%);
}

.landing-card--beauty .landing-card__frame {
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 187, 225, 0.7),
    0 0 18px rgba(255, 109, 186, 0.72),
    0 0 38px rgba(255, 57, 153, 0.42);
}

.landing-card--kitchen {
  background:
    linear-gradient(145deg, rgba(87, 255, 57, 0.98) 0%, rgba(10, 129, 20, 0.98) 56%, rgba(5, 78, 11, 0.99) 100%);
}

.landing-card--kitchen .landing-card__frame {
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(212, 255, 188, 0.7),
    0 0 18px rgba(119, 255, 110, 0.68),
    0 0 38px rgba(88, 236, 87, 0.42);
}

@media (max-width: 1180px) {
  .topbar--landing {
    grid-template-columns: auto 1fr auto;
  }

  .landing-grid {
    grid-template-columns: repeat(2, minmax(240px, 320px));
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

  .topbar--landing {
    gap: 12px;
    padding: 12px 2px 6px;
  }

  .topbar--landing .brand__tag {
    display: none;
  }

  .landing-screen {
    min-height: auto;
    gap: 30px;
    padding-top: 18px;
  }

  .landing-ornament {
    gap: 12px;
  }

  .landing-ornament__line {
    width: 72px;
  }

  .landing-subtitle {
    max-width: 18ch;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .landing-card {
    min-height: 380px;
  }

  .landing-card__icon-wrap {
    width: 150px;
    height: 150px;
  }
}

body.category-mode {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98) 0%, rgba(244, 241, 236, 0.94) 42%, rgba(234, 231, 225, 0.92) 100%),
    linear-gradient(180deg, #faf8f4 0%, #f3f0eb 100%);
}

.page-wrap--category {
  grid-template-columns: 1fr;
  max-width: 1450px;
}

.page-wrap--category .prototype-stage {
  padding-bottom: 0;
}

.topbar--category {
  grid-template-columns: 1fr;
  max-width: 1450px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 213, 208, 0.92);
  gap: 14px;
}

.topbar--category .brand {
  display: none;
}

.topbar--category .top-actions {
  width: 100%;
  grid-row: 1;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topbar--category .top-actions::-webkit-scrollbar {
  display: none;
}

.topbar--category .top-actions > * {
  flex: 0 0 auto;
}

.topbar--category #account-action {
  margin-left: 0;
}

.nav-link__glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.nav-link__glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar--category .nav-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  justify-content: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--category-accent-border);
  border-radius: 22px;
  color: var(--category-accent);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
}

.topbar--category .top-actions .nav-link--home {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 18px 24px !important;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--category-accent-border);
  border-radius: 22px !important;
  color: var(--category-accent);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
}

.topbar--category .nav-category.is-active {
  background: var(--category-accent);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 16px 34px var(--category-accent-glow);
}

.topbar--category .nav-link--accent {
  padding: 13px 22px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(216, 213, 208, 0.95);
  box-shadow: 0 10px 26px rgba(31, 31, 31, 0.06);
}

.topbar--category .top-search {
  width: min(100%, 980px);
  margin: 0 auto;
  grid-row: 2;
  background: #fff;
  border: 2px solid var(--category-accent-border);
  box-shadow: 0 14px 30px var(--category-accent-glow);
}

.topbar--category .top-search input {
  color: #1b1b1f;
}

.topbar--category .top-search input::placeholder {
  color: #777488;
}

.topbar--category .top-search button {
  background: var(--category-accent);
  box-shadow: 0 10px 24px var(--category-accent-glow);
}

.category-screen {
  display: grid;
  gap: 18px;
  padding: 8px 0 0;
}

.catalog-subcategory-bar {
  padding: 18px 8px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.catalog-subcategory-head {
  margin-bottom: 14px;
}

.catalog-subcategory-label,
.catalog-filter-block__label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
  color: var(--category-accent);
}

.catalog-sidebar-copy {
  margin: 0;
  max-width: 420px;
  color: #676574;
  line-height: 1.55;
}

.catalog-subcategory-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 6px 10px;
  scrollbar-width: none;
}

.catalog-subcategory-row::-webkit-scrollbar {
  display: none;
}

.catalog-subcategory-item {
  min-width: 102px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: #163a74;
  text-align: center;
}

.catalog-subcategory-item__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--category-accent) 10%, white);
  color: var(--category-accent);
  box-shadow: 0 12px 24px rgba(31, 31, 31, 0.05);
  border: 1px solid color-mix(in srgb, var(--category-accent) 18%, white);
}

.catalog-subcategory-item__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-subcategory-item__label {
  max-width: 110px;
  color: #273244;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.catalog-subcategory-item.is-active .catalog-subcategory-item__icon {
  background: var(--category-accent);
  color: #fff;
  box-shadow: 0 14px 30px var(--category-accent-glow);
  border-color: transparent;
}

.catalog-subcategory-item.is-active .catalog-subcategory-item__label {
  color: var(--category-accent);
}

.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

.catalog-sidebar,
.catalog-topdeals {
  display: grid;
  gap: 16px;
}

.catalog-sidebar-card,
.category-main-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 213, 208, 0.92);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(31, 31, 31, 0.06);
}

.category-main-card {
  padding: 18px;
}

.catalog-sidebar-card {
  padding: 18px;
}

.catalog-sidebar-head {
  display: grid;
  gap: 10px;
}

.catalog-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #151515;
}

.catalog-category-list,
.catalog-filter-list,
.catalog-topdeals-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.catalog-filter-block + .catalog-filter-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 221, 216, 0.9);
}

.catalog-filter-chip-row,
.catalog-control-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.catalog-control-stack {
  display: grid;
}

.catalog-filter-chip {
  padding: 10px 14px;
  border: 1px solid rgba(224, 221, 216, 0.96);
  border-radius: 999px;
  background: #fff;
  color: #31313c;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.03);
}

.catalog-filter-chip.is-active {
  background: var(--category-accent-soft);
  border-color: var(--category-accent-border);
  color: var(--category-accent);
}

.catalog-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 18px;
  color: #191919;
  box-shadow: 0 10px 22px rgba(31, 31, 31, 0.03);
}

.catalog-side-item.is-active {
  background: var(--category-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px var(--category-accent-glow);
}

.catalog-side-item__label {
  font-weight: 700;
}

.catalog-side-item__icon,
.catalog-side-item__arrow {
  font-size: 18px;
}

.catalog-side-item__arrow {
  margin-left: auto;
  opacity: 0.8;
}

.catalog-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #292929;
  font-size: 15px;
}

.catalog-filter-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-filter-icon,
.catalog-filter-accent {
  color: var(--category-accent);
}

.catalog-filter-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--category-accent);
  color: var(--category-accent);
  font-size: 12px;
  font-weight: 800;
}

.catalog-promo-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--category-accent) 88%, white) 0%, color-mix(in srgb, var(--category-accent) 98%, black) 100%);
  color: #fff;
  box-shadow: 0 20px 40px var(--category-accent-glow);
}

.catalog-promo-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-promo-card p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.catalog-promo-icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.catalog-promo-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
}

.catalog-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 2px solid var(--category-accent);
  border-radius: 999px;
  box-shadow: 0 12px 28px var(--category-accent-glow);
  color: #7b7b7b;
}

.catalog-search__icon,
.catalog-search__filter {
  font-size: 26px;
  color: var(--category-accent);
}

.catalog-search__placeholder {
  font-size: 16px;
  color: #747485;
}

.catalog-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.catalog-control-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(31, 31, 31, 0.03);
}

.catalog-control-card--sidebar {
  box-shadow: none;
}

.catalog-control-card__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2a2a2a;
}

.catalog-control-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #51515a;
}

.catalog-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 2px 16px;
  color: #62627a;
  font-size: 15px;
}

.catalog-results-meta--top {
  margin-top: 0;
}

.catalog-view-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-view-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 12px;
  color: #8c8c99;
}

.catalog-view-button.is-active {
  background: var(--category-accent-soft);
  color: var(--category-accent);
  border-color: var(--category-accent-border);
}

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

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

.catalog-product-card {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(31, 31, 31, 0.04);
}

.catalog-discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--category-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.catalog-heart-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 50%;
  color: #7b7b88;
  font-size: 18px;
}

.catalog-product-art {
  height: 178px;
  display: grid;
  place-items: center;
  margin: 18px 0 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--category-accent-soft) 100%);
  font-size: 82px;
}

.catalog-product-card h3,
.catalog-topdeal-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.catalog-product-subtitle,
.catalog-topdeal-copy p {
  margin: 0;
  color: #4f4f5d;
  line-height: 1.45;
}

.catalog-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  color: #6c6c7a;
  font-size: 14px;
}

.catalog-stars {
  color: var(--category-accent);
  letter-spacing: 0.08em;
  font-size: 15px;
}

.catalog-price-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.catalog-price-copy strong,
.catalog-topdeal-price strong {
  display: block;
  color: var(--category-accent);
  font-size: 18px;
  font-weight: 800;
}

.catalog-price-copy span,
.catalog-topdeal-price span {
  color: #8b8b96;
  text-decoration: line-through;
  font-size: 14px;
}

.catalog-cart-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--category-accent-border);
  border-radius: 12px;
  color: var(--category-accent);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.04);
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.catalog-pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 12px;
  color: #62627a;
  font-weight: 700;
}

.catalog-pagination button.is-active {
  background: var(--category-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px var(--category-accent-glow);
}

.catalog-topdeals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-topdeals-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-diamond,
.catalog-view-all {
  color: var(--category-accent);
}

.catalog-view-all {
  background: transparent;
  font-weight: 700;
}

.catalog-topdeal-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(224, 221, 216, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(31, 31, 31, 0.04);
}

.catalog-topdeal-art {
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--category-accent-soft) 100%);
  font-size: 54px;
}

.catalog-topdeal-price {
  margin-top: 10px;
}

@media (max-width: 1380px) {
  .category-layout {
    grid-template-columns: 230px minmax(0, 1fr) 270px;
  }

  .catalog-product-grid--beauty {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .topbar--category {
    grid-template-columns: 1fr;
  }

  .topbar--category .top-actions {
    justify-content: flex-start;
  }

  .topbar--category .top-search {
    width: 100%;
  }

  .category-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
      "sidebar main"
      "deals deals";
  }

  .catalog-sidebar {
    grid-area: sidebar;
  }

  .category-main {
    grid-area: main;
  }

  .catalog-topdeals {
    grid-area: deals;
  }

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

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

@media (max-width: 760px) {
  .topbar--category {
    padding: 14px 12px;
    gap: 12px;
  }

  .topbar--category .top-actions {
    gap: 8px;
  }

  .topbar--category .top-actions .nav-link--home,
  .topbar--category .nav-category {
    min-width: 150px;
    padding: 13px 16px;
    font-size: 14px;
  }

  .topbar--category .nav-link--accent {
    padding: 13px 18px;
    font-size: 14px;
  }

  .topbar--category .top-search {
    padding: 8px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .topbar--category .top-search input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .topbar--category .top-search button {
    padding: 11px 16px;
  }

  .category-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main"
      "deals";
  }

  .catalog-subcategory-bar {
    padding: 16px 2px 2px;
  }

  .catalog-subcategory-row {
    gap: 16px;
    padding-inline: 4px;
  }

  .catalog-subcategory-item {
    min-width: 84px;
    gap: 8px;
  }

  .catalog-subcategory-item__icon {
    width: 64px;
    height: 64px;
  }

  .catalog-subcategory-item__icon svg {
    width: 28px;
    height: 28px;
  }

  .catalog-subcategory-item__label {
    max-width: 90px;
    font-size: 12px;
  }

  .catalog-results-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-control-grid,
  .catalog-product-grid,
  .catalog-product-grid--beauty {
    grid-template-columns: 1fr;
  }

  .catalog-topdeal-card {
    grid-template-columns: 72px 1fr auto;
  }

  .catalog-product-art {
    font-size: 66px;
  }
}
