:root {
  --navy: #102a43;
  --blue: #1d5d9b;
  --sky: #eaf3fb;
  --gray: #f5f7fa;
  --text: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --accent: #e85d04;
  --success: #16825d;
  --shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.7;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}
.topbar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 7px 12px;
  font-size: 13px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
}
.hero {
  background: linear-gradient(135deg, #edf6fd, #fff);
  padding: 64px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin: 12px 0;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}
.hero-card,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 24px;
}
.hero-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.product-image img,
.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search {
  display: flex;
  margin-top: 24px;
}
.search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  padding: 12px 14px;
}
.search button {
  border-radius: 0 8px 8px 0;
}
.section {
  padding: 52px 0;
}
.section.alt {
  background: var(--gray);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section h2 {
  margin: 0;
  font-size: 28px;
  color: var(--navy);
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.category {
  padding: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.category strong {
  display: block;
  color: var(--navy);
}
.product-card {
  overflow: hidden;
}
.product-image,
.placeholder {
  height: 170px;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 800;
}
.product-body {
  padding: 18px;
}
.product-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}
.price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.old {
  text-decoration: line-through;
  color: #9fb3c8;
  font-size: 13px;
  margin-left: 6px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0;
}
.tag {
  display: inline-block;
  background: var(--sky);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.trust-item strong {
  display: block;
  color: var(--navy);
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 22px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.step:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}
.rating {
  color: #f59e0b;
  letter-spacing: 2px;
}
.review,
.article-card,
.info-card {
  padding: 20px;
}
.breadcrumbs {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.page-hero {
  background: var(--gray);
  padding: 28px 0;
}
.page-hero h1 {
  margin: 0;
  color: var(--navy);
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 90px;
}
.sidebar .card {
  padding: 18px;
  margin-bottom: 16px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  padding: 17px 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-question {
  color: var(--blue);
}
.article-card h3 {
  margin: 8px 0;
  color: var(--navy);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
}
.policy h2,
.article h2 {
  margin-top: 28px;
  color: var(--navy);
}
.site-footer {
  background: var(--navy);
  color: #d9e2ec;
  padding: 42px 0 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 {
  color: #fff;
  margin-top: 0;
}
.site-footer a {
  color: #d9e2ec;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
}
.floating {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating a {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.mobile-buy {
  display: none;
}
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: none;
}
.notice {
  padding: 12px 16px;
  background: #fff6ed;
  border-left: 4px solid var(--accent);
  color: #7c4a03;
  border-radius: 6px;
}
.stock {
  color: var(--success);
  font-weight: 700;
}
.countdown {
  font-weight: 800;
  color: var(--accent);
}
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .btn {
    text-align: center;
  }
  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .trust,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-buy {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 24;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(16, 42, 67, 0.08);
  }
}
@media (max-width: 520px) {
  .grid-3,
  .trust,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 40px;
  }
  .section {
    padding: 38px 0;
  }
  .floating {
    bottom: 76px;
  }
  .brand {
    font-size: 17px;
  }
}
