:root {
  --ink: #102033;
  --muted: #667085;
  --line: #dbe3ec;
  --soft: #f5f8fb;
  --brand: #1467ff;
  --brand-dark: #0e3f9e;
  --mint: #17b890;
  --sun: #f5a524;
  --danger: #d64550;
}

* {
  box-sizing: border-box;
}

body {
  background: #fbfcfe;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--brand);
}

.site-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-mark {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--brand);
}

.hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(20, 103, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 58%, #e9fff8 100%);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 72px;
}

.hero-grid,
.detail-grid,
.feature-grid,
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 10px 0 20px;
}

.hero p,
.page-hero p,
.detail-copy p {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 680px;
}

.eyebrow {
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.detail-price {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(20, 103, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  padding: 28px;
}

.support-ring {
  aspect-ratio: 1;
  align-items: center;
  background: conic-gradient(var(--mint), var(--brand), #dbeafe, var(--mint));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto 26px;
  max-width: 260px;
  position: relative;
}

.support-ring::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 18px;
  position: absolute;
}

.support-ring span,
.support-ring small {
  position: relative;
  z-index: 1;
}

.support-ring span {
  font-size: 3rem;
  font-weight: 900;
}

.support-ring small {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.hero-stats div {
  background: var(--soft);
  border-radius: 8px;
  padding: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.6rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 64px 0;
}

.section-heading,
.results-bar {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 6px 0 0;
}

.product-list {
  display: grid;
  gap: 18px;
  position: relative;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: 164px minmax(0, 1fr) auto;
  padding: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(20, 103, 255, 0.45);
  box-shadow: 0 18px 46px rgba(16, 32, 51, 0.1);
  transform: translateY(-2px);
}

.product-media {
  display: grid;
  gap: 10px;
}

.device-illustration {
  align-items: center;
  background: linear-gradient(145deg, #172033, #314566);
  border: 10px solid #263348;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 24px rgba(16, 32, 51, 0.16);
  color: #fff;
  display: flex;
  height: 104px;
  justify-content: center;
}

.device-illustration.large {
  height: 340px;
}

.product-thumb,
.detail-image {
  background: #fff;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  width: 100%;
}

.product-thumb {
  height: 104px;
}

.detail-image {
  height: 340px;
}

.device-illustration span {
  font-size: 2.8rem;
  font-weight: 900;
  opacity: 0.76;
}

.compare-check {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.86rem;
  gap: 8px;
}

.product-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.product-meta > span:first-child {
  color: var(--muted);
  font-weight: 700;
}

.product-body h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.product-body p {
  color: var(--muted);
  margin-bottom: 16px;
}

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

.spec-grid span {
  background: var(--soft);
  border-radius: 8px;
  color: #35435a;
  font-size: 0.88rem;
  padding: 9px 10px;
}

.product-actions {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-width: 142px;
}

.product-actions strong,
.detail-price strong {
  font-size: 1.45rem;
}

.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-muted {
  border-radius: 999px;
  font-weight: 800;
  padding: 0.38rem 0.65rem;
}

.badge-soft-success {
  background: rgba(23, 184, 144, 0.12);
  color: #087a5d;
}

.badge-soft-warning {
  background: rgba(245, 165, 36, 0.16);
  color: #9c6208;
}

.badge-soft-danger {
  background: rgba(214, 69, 80, 0.12);
  color: var(--danger);
}

.badge-soft-muted {
  background: #eef1f5;
  color: #596579;
}

.floating-compare {
  bottom: 22px;
  box-shadow: 0 16px 40px rgba(16, 32, 51, 0.22);
  justify-self: end;
  position: sticky;
  z-index: 10;
}

.feature-band,
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
}

.page-hero.compact {
  padding: 54px 0 42px;
}

.feature-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.08;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list span,
.guide-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
}

.browse-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 290px minmax(0, 1fr);
}

.filters-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 86px;
}

.filters-panel form {
  display: grid;
  gap: 16px;
}

.filters-panel label {
  color: #344054;
  display: grid;
  font-weight: 700;
  gap: 7px;
}

.results-bar {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  padding: 14px 18px;
}

.results-bar span,
.site-footer p {
  color: var(--muted);
  margin: 0;
}

.product-detail {
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
}

.not-found {
  background:
    radial-gradient(circle at 80% 18%, rgba(23, 184, 144, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f0f6ff 58%, #f7fbff 100%);
  min-height: 72vh;
  padding: 82px 0;
}

.not-found-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
}

.not-found-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 5.3rem);
  line-height: 1.02;
  margin: 10px 0 18px;
}

.not-found-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

.not-found-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.1);
  padding: 22px;
}

.not-found-hints {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.not-found-hints a {
  background: var(--soft);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 13px 14px;
}

.detail-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.specs-table,
.compare-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.specs-table h2 {
  padding: 22px 24px 8px;
}

.spec-row,
.compare-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 16px 24px;
}

.compare-row {
  grid-template-columns: 170px repeat(auto-fit, minmax(160px, 1fr));
}

.compare-row.header {
  background: var(--soft);
}

.compare-directory {
  margin-top: 54px;
}

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

.compare-link-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  padding: 16px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.compare-link-grid a:hover {
  border-color: rgba(20, 103, 255, 0.5);
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.08);
  color: var(--brand);
  transform: translateY(-2px);
}

.spec-row span,
.compare-row span {
  color: var(--muted);
}

.empty-state {
  background: #fff;
  border: 1px dashed #bdc8d6;
  border-radius: 8px;
  padding: 34px;
  text-align: center;
}

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

.guide-card {
  background: #fff;
  color: var(--ink);
  display: block;
  min-height: 220px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover {
  box-shadow: 0 20px 44px rgba(16, 32, 51, 0.11);
  transform: translateY(-2px);
}

.guide-card span {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
}

.guide-card p {
  color: var(--muted);
}

.admin-layout,
.amazon-results {
  display: grid;
  gap: 24px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.amazon-search-form {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 240px auto;
}

.amazon-search-form label {
  color: #344054;
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.amazon-result-grid {
  display: grid;
  gap: 14px;
}

.amazon-result-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 132px minmax(0, 1fr);
  padding: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.amazon-result-card:hover {
  border-color: rgba(20, 103, 255, 0.45);
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.08);
}

.amazon-result-card img {
  height: 94px;
  object-fit: contain;
  width: 132px;
}

.amazon-result-copy {
  display: grid;
  gap: 6px;
}

.amazon-result-copy small,
.amazon-result-copy em {
  color: var(--muted);
}

.amazon-result-copy em {
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

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

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

@media (max-width: 900px) {
  .hero-grid,
  .detail-grid,
  .feature-grid,
  .browse-layout,
  .footer-grid,
  .not-found-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

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

  .product-actions {
    align-items: stretch;
  }

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

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

  .amazon-search-form,
  .amazon-result-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 54px 0;
  }

  .hero-stats,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .results-bar {
    align-items: start;
    flex-direction: column;
  }

  .spec-row,
  .compare-row {
    grid-template-columns: 1fr;
  }
}
