/* Brand readability pass */
.brand img {
  width: 310px;
  max-width: 100%;
}

.site-header > .brand {
  flex: 0 0 310px;
}

.site-header {
  gap: 20px;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: center;
  padding: 42px 28px;
  background:
    linear-gradient(135deg, rgba(18, 104, 243, 0.11), rgba(45, 184, 74, 0.08)),
    #f7faff;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe0ff;
  background: #fff;
  color: #1268f3;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 700px;
  color: #061d46;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #53627c;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 900;
}

.hero-primary {
  background: #1268f3;
  color: #fff;
}

.hero-secondary {
  background: #fff;
  color: #1268f3;
  border: 1px solid #cfe0ff;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.trust-points span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dce4f2;
  color: #53627c;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-preview {
  background: #fff;
  border: 1px solid #dce4f2;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(7, 20, 52, 0.12);
}

.preview-head,
.preview-product,
.preview-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-head {
  margin-bottom: 16px;
}

.preview-head span {
  color: #5b6680;
  font-weight: 800;
}

.preview-head b {
  border-radius: 999px;
  background: #effaf3;
  color: #10a044;
  padding: 7px 11px;
  font-size: 12px;
}

.preview-product {
  justify-content: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: #f5f8ff;
}

.preview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  font-size: 32px;
}

.preview-product small,
.hero-preview p {
  color: #5b6680;
}

.preview-product b {
  display: block;
  margin-bottom: 3px;
}

.preview-rows {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.preview-rows div {
  border-bottom: 1px solid #edf2fb;
  padding-bottom: 8px;
}

.preview-rows span {
  color: #5b6680;
}

.hero-preview p {
  margin: 0;
  line-height: 1.55;
}

.product-card,
.panel,
.big-panel {
  border-color: #e4ebf6;
}

.product-card {
  box-shadow: 0 8px 28px rgba(7, 20, 52, 0.05);
}

.sale-ticker .live {
  background: #1268f3;
}

.sale-ticker {
  max-width: 100vw;
  overflow: hidden;
}

#savedBtn span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  border-radius: 999px;
  background: #effaf3;
  color: #10a044;
  font-size: 11px;
  font-weight: 900;
}

.saved-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  justify-content: flex-end;
  background: rgba(6, 29, 70, 0.34);
}

.saved-drawer.open {
  display: flex;
}

.saved-panel {
  width: min(420px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #dce4f2;
  box-shadow: -18px 0 50px rgba(7, 20, 52, 0.18);
  padding: 18px;
}

.saved-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2fb;
}

.saved-head b {
  display: block;
  color: #061d46;
  font-size: 20px;
}

.saved-head span,
.saved-empty span {
  color: #5b6680;
  font-size: 13px;
}

#closeSaved {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f8ff;
  color: #061d46;
  font-size: 24px;
  line-height: 1;
}

.saved-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.saved-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4ebf6;
  border-radius: 14px;
  background: #f8fbff;
}

.saved-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  font-size: 26px;
}

.saved-item b {
  display: block;
  margin-bottom: 3px;
  color: #071434;
}

.saved-item small {
  display: block;
  color: #5b6680;
}

.saved-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.saved-row-actions a,
.saved-row-actions button,
.saved-actions a,
.saved-actions button {
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.saved-row-actions a,
.saved-actions a {
  background: #1268f3;
  color: #fff;
}

.saved-row-actions button,
.saved-actions button {
  background: #fff;
  color: #5b6680;
  border: 1px solid #dce4f2;
}

.saved-empty {
  display: none;
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed #cfe0ff;
  border-radius: 14px;
  text-align: center;
  background: #f7faff;
}

.saved-empty b {
  display: block;
  margin-bottom: 4px;
}

.saved-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.saved-actions > * {
  flex: 1;
  text-align: center;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.legal-nav a {
  color: #1268f3;
  font-weight: 900;
}

.legal-header {
  position: static;
}

.legal-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  color: #071434;
}

.legal-main h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  color: #061d46;
}

.legal-main h2 {
  margin: 34px 0 10px;
  color: #061d46;
}

.legal-main p {
  color: #53627c;
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 1400px) {
  .avatar {
    display: none;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .sale-ticker,
  .tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .site-header,
  .main-search,
  .app-shell,
  .results,
  .product-card,
  .product-main,
  #productList,
  .chips,
  .results-top {
    min-width: 0;
    max-width: 100%;
  }

  .main-search {
    flex-wrap: wrap;
  }

  .main-search input {
    flex: 1 1 180px;
  }

  .main-search .primary,
  .main-search .ask {
    flex: 1 1 auto;
    padding: 11px 12px;
  }

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

  .results-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .results-top label,
  .results-top select {
    max-width: 100%;
  }

  .chips {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-card {
    width: 100%;
  }

  .brand img {
    width: 260px;
  }

  .site-header > .brand {
    flex-basis: auto;
  }

  .command-hero {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

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

  .saved-panel {
    width: 100%;
  }

  .legal-nav {
    margin-left: 0;
  }
}
