:root {
  --bg: #090d14;
  --surface: #0f1622;
  --surface-2: #151e2d;
  --surface-3: #1b2638;
  --text: #f7f9fc;
  --text-soft: #c5ceda;
  --muted: #8e9aab;
  --line: rgba(255, 255, 255, .10);
  --blue: #1687ff;
  --blue-hover: #3195ff;
  --blue-soft: rgba(22, 135, 255, .14);
  --green: #32c878;
  --green-soft: rgba(50, 200, 120, .13);
  --yellow: #f3bd52;
  --yellow-soft: rgba(243, 189, 82, .13);
  --red: #ff6672;
  --red-soft: rgba(255, 102, 114, .13);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, rgba(22, 135, 255, .16), transparent 31rem),
    radial-gradient(circle at 96% 8%, rgba(8, 107, 209, .10), transparent 28rem),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 20, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: .94rem; letter-spacing: .035em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .76rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions > a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}

main { min-height: calc(100vh - 154px); }

.store-intro {
  padding: 64px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.store-intro-copy { max-width: 710px; }
.kicker {
  margin: 0 0 12px;
  color: #84c1ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.store-intro h1 { max-width: 720px; }
.store-intro-copy > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.secure-note {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: .84rem;
}

.secure-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: var(--green-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 14px 0 72px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 30, 45, .96), rgba(13, 19, 29, .98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.product-cover-wrap {
  padding: 22px 22px 0;
  background: rgba(255, 255, 255, .018);
}

.product-cover {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 135, 255, .28);
  border-radius: 999px;
  color: #9dceff;
  background: var(--blue-soft);
  font-size: .72rem;
  font-weight: 800;
}

.product-card h2 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.product-card p {
  margin: 12px 0 22px;
  color: var(--text-soft);
  font-size: .93rem;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -.035em;
}

.price-caption {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .72rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 26px rgba(22, 135, 255, .22);
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { background: var(--blue-hover); transform: translateY(-1px); }
.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(88, 173, 255, .45);
  outline-offset: 3px;
}

.button-small { min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: .82rem; }
.button-ghost {
  border-color: var(--line);
  color: var(--text) !important;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}
.button-ghost:hover { background: rgba(255, 255, 255, .08); }
.button-wide { width: 100%; }

.empty-state,
.notice-panel {
  margin: 18px 0 72px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h2,
.notice-panel h2 { margin: 0 0 8px; }
.empty-state p,
.notice-panel p { margin: 0; color: var(--text-soft); }

.product-page {
  padding: 54px 0 76px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 25px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
}

.detail-cover-shell {
  position: sticky;
  top: 106px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-cover {
  width: 100%;
  max-height: 690px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.product-detail h1 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.lead {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 1.07rem;
  line-height: 1.72;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
}

.fact strong { display: block; font-size: .88rem; }
.fact span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }

.description {
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.75;
}

.checkout-card {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid rgba(22, 135, 255, .25);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 135, 255, .09), rgba(255, 255, 255, .025));
}

.checkout-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.checkout-price-row span { color: var(--text-soft); }
.checkout-price-row strong { font-size: 1.65rem; letter-spacing: -.04em; }

.form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(7, 11, 18, .74);
}

.field input::placeholder { color: #647185; }
.field input:focus { border-color: rgba(22, 135, 255, .75); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  color: var(--text-soft);
  font-size: .81rem;
}
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }

.payment-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

.alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-soft);
  background: var(--surface);
}
.alert-danger { border-color: rgba(255, 102, 114, .3); background: var(--red-soft); color: #ffc3c8; }

.order-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 82px;
}

.status-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.status-content { padding: clamp(26px, 6vw, 48px); }
.status-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}
.status-success { color: #83eab2; background: var(--green-soft); }
.status-warning { color: #ffda8f; background: var(--yellow-soft); }
.status-danger { color: #ffadb4; background: var(--red-soft); }
.status-neutral { color: var(--text-soft); background: rgba(255, 255, 255, .06); }

.status-card h1 { margin: 18px 0 12px; font-size: clamp(2rem, 7vw, 3.5rem); }
.status-card .lead { margin: 0; }
.order-summary {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
}
.summary-row { display: flex; justify-content: space-between; gap: 16px; }
.summary-row + .summary-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.summary-row span { color: var(--muted); }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.materials-list { display: grid; gap: 14px; margin-top: 26px; }
.material-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
}
.material-item img { width: 76px; height: 94px; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; }
.material-item h2 { margin: 0; font-size: 1rem; }
.material-item p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: .78rem;
}
.footer-inner strong { color: var(--text-soft); }

@media (max-width: 900px) {
  .store-intro { align-items: start; flex-direction: column; padding-top: 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(240px, .72fr) minmax(0, 1fr); gap: 30px; }
  .detail-facts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand strong { font-size: .8rem; }
  .brand small { font-size: .68rem; }
  .header-actions > a:first-child { display: none; }
  .product-grid { grid-template-columns: 1fr; padding-bottom: 52px; }
  .store-intro { padding-bottom: 24px; }
  .product-layout { grid-template-columns: 1fr; }
  .detail-cover-shell { position: static; width: min(100%, 440px); margin: 0 auto; }
  .detail-cover { max-height: 560px; }
  .product-detail h1 { font-size: 2.35rem; }
  .checkout-card { padding: 20px; }
  .material-item { grid-template-columns: 64px minmax(0, 1fr); }
  .material-item img { width: 64px; height: 80px; }
  .material-item .button { grid-column: 1 / -1; width: 100%; }
  .footer-inner { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
