:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --ok: #1f7a4d;
  --ok-bg: #e8f6ee;
  --warn: #8a6116;
  --warn-bg: #fff6e5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--fg); }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.hero {
  padding: 36px 0 28px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero .lede {
  margin: 0 auto 22px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

h1, h2, h3 { letter-spacing: -0.03em; }
h1 { font-size: 2rem; margin: 0 0 10px; }
h2 { font-size: 1.35rem; margin: 40px 0 16px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lede { color: var(--muted); max-width: 48rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 980px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-secondary:hover { background: #fff; }
.btn-large { padding: 14px 24px; font-size: 1rem; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 16px 32px rgba(0, 0, 0, 0.06);
}
.product-card a.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-media {
  aspect-ratio: 1;
  background: #ececee;
  display: block;
  width: 100%;
  object-fit: cover;
}
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .price { font-size: 1.05rem; font-weight: 650; margin: 4px 0 0; }
.card-meta { font-size: 0.86rem; color: var(--muted); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.model-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.model-card:hover { text-decoration: none; border-color: #b4b4b8; }
.model-card strong { display: block; letter-spacing: -0.02em; }
.model-card span { color: var(--muted); font-size: 0.86rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #eeeef0;
  color: var(--muted);
  width: fit-content;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.gallery {
  display: grid;
  gap: 12px;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: #ececee;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ececee;
}
.buy-panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.buy-panel .price {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}
.buy-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--fg);
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(0, 113, 227, 0.25);
  border-color: var(--accent);
}
.buy-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.buy-error {
  color: #b42318;
  background: #fef3f2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  display: none;
}
.buy-error.show { display: block; }

.section-list { margin: 0; padding-left: 1.1rem; }
.section-list li { margin: 6px 0; }
.reviews { display: grid; gap: 12px; margin-top: 12px; }
.review {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}
.review footer { margin-top: 8px; font-size: 0.86rem; }

.site-foot {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 36px 0 48px;
  margin-top: 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 24px;
}
.foot-grid a { display: block; margin: 6px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--fg); }

.order-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 640px;
}
.timeline { list-style: none; padding: 0; margin: 18px 0 0; }
.timeline li {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
  position: relative;
}
.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -6px;
  top: 16px;
}
.timeline .when { display: block; font-size: 0.82rem; color: var(--muted); }

.finder {
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  margin: 8px auto 28px;
  max-width: 560px;
  text-align: left;
}
.finder-row { display: flex; gap: 10px; }
.finder-row select { flex: 1; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-inner { padding: 12px 16px; }
  main { padding: 20px 16px 56px; }
  .nav { gap: 12px; }
  .nav a:nth-child(2) { display: none; }
}
