:root {
  color-scheme: dark;
  --bg: #10091c;
  --surface: #1b102b;
  --surface-soft: #26163a;
  --line: rgba(193, 162, 255, 0.2);
  --text: #f7f2ff;
  --muted: #b9a8d8;
  --brand: #9b5cff;
  --brand-strong: #7c3aed;
  --accent: #f4c95d;
  --danger: #ff6b9a;
  --ok: #4ade80;
  --shadow: 0 22px 56px rgba(4, 1, 12, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(155, 92, 255, 0.26), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(244, 201, 93, 0.12), transparent 24%),
    linear-gradient(180deg, #10091c 0%, #150b24 42%, #0b0613 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page {
  min-height: 100vh;
}

svg {
  width: 18px;
  height: 18px;
}

.topbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(25, 13, 41, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.topbar-track {
  min-width: min(460px, calc(100vw - 120px));
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.topbar-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.topbar-arrow.next svg {
  transform: rotate(90deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(16, 9, 28, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6d28d9, var(--brand));
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.nav a:hover,
.nav button:hover,
.nav .active {
  background: rgba(155, 92, 255, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(193, 162, 255, 0.18);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px 0 42px;
  background: rgba(27, 16, 43, 0.86);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.18);
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  padding: 42px 0 22px;
}

.hero-copy {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #6d28d9, rgba(33, 12, 58, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(244, 201, 93, 0.34), transparent 32%);
  color: white;
  box-shadow: var(--shadow);
}

.eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

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

.hero-panel {
  display: grid;
  gap: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 16, 43, 0.84);
  box-shadow: 0 16px 38px rgba(4, 1, 12, 0.26);
}

.stat strong {
  font-size: 34px;
  color: var(--brand);
}

.stat span {
  color: var(--muted);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(155, 92, 255, 0.28);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #b084ff, var(--brand-strong));
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(27, 16, 43, 0.76);
  color: var(--text);
}

.btn.service {
  border-color: rgba(244, 201, 93, 0.34);
  background: rgba(244, 201, 93, 0.1);
  color: #f4c95d;
}

.btn.service:hover {
  border-color: #f4c95d;
  background: rgba(244, 201, 93, 0.16);
}

.btn.wide {
  width: 100%;
}

.external-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.external-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 16, 43, 0.82);
}

.external-card svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.external-card strong,
.external-card small {
  display: block;
}

.external-card small {
  margin-top: 3px;
  color: var(--muted);
}

.category-nav {
  position: sticky;
  top: 75px;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  background: rgba(16, 9, 28, 0.9);
  backdrop-filter: blur(12px);
}

.category-nav a,
.category-nav button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 16, 43, 0.84);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.category-nav .active,
.category-nav a:hover,
.category-nav button:hover {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: var(--brand);
}

.catalog {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.category-block {
  scroll-margin-top: 140px;
  margin-top: 28px;
}

.category-block h2,
.reviews h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.category-block h2 {
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-content: center;
  gap: 18px;
}

.product-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(155, 92, 255, 0.22);
  border-radius: 8px;
  background: rgba(27, 16, 43, 0.86);
  box-shadow: 0 16px 34px rgba(4, 1, 12, 0.24);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(80, 33, 159, 0.28);
}

.product-image {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.product-image.disabled {
  cursor: not-allowed;
}

.soldout {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.product-art {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #ffffff;
}

.product-art span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.product-art strong {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.tone-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.tone-blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.tone-green { background: linear-gradient(135deg, #15803d, #84cc16); }
.tone-lime { background: linear-gradient(135deg, #4d7c0f, #a3e635); }
.tone-amber { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tone-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.tone-sky { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.tone-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #22c55e); }
.tone-rose { background: linear-gradient(135deg, #be123c, #f59e0b); }

.product-title {
  display: -webkit-box;
  min-height: 46px;
  margin: 12px 0 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
  line-height: 1.4;
}

.product-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.product-meta strong {
  color: var(--danger);
}

.product-meta span {
  color: var(--muted);
  font-size: 13px;
}

.product-card .btn {
  margin-top: 12px;
}

.reviews {
  margin: 24px 0 52px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 16, 43, 0.82);
}

.review-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-page,
.orders-page,
.checkout-page,
.empty-page {
  padding: 28px 0 54px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
  align-items: start;
}

.detail-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-image .product-art {
  min-height: 480px;
}

.buy-panel,
.orders-card,
.checkout-card,
.tabs {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 16, 43, 0.88);
  box-shadow: 0 18px 42px rgba(4, 1, 12, 0.28);
}

.buy-panel h1,
.checkout-card h1,
.orders-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.buy-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.price-row strong {
  color: var(--danger);
  font-size: 26px;
}

.buy-panel label,
.orders-card label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--text);
  font-weight: 700;
}

.buy-panel label span,
.buy-panel legend span {
  color: var(--danger);
}

.buy-panel input,
.orders-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(16, 9, 28, 0.78);
  color: var(--text);
  outline: none;
}

.buy-panel input:focus,
.orders-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.18);
}

fieldset {
  margin: 16px 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.payways {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payways label {
  margin: 0;
  display: inline-flex;
  cursor: pointer;
}

.payways input {
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0.01;
}

.payways span {
  min-width: 92px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 9, 28, 0.72);
  color: var(--text);
}

.payways input:checked + span {
  border-color: var(--brand);
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.quantity-row {
  display: grid;
  grid-template-columns: 52px minmax(80px, 1fr) 52px;
  gap: 8px;
  margin: 18px 0;
}

.quantity-row button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 9, 28, 0.72);
  color: var(--text);
  cursor: pointer;
}

.buy-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.consult-panel .eyebrow {
  background: rgba(244, 201, 93, 0.12);
  color: #f4c95d;
}

.consult-points {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.consult-points p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
}

.consult-points svg {
  flex: 0 0 18px;
  color: #f4c95d;
}

.tabs {
  margin-top: 26px;
}

.tab-buttons,
.query-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tab-buttons button,
.query-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.tab-buttons .active,
.query-tabs .active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-pane,
.query-pane {
  display: none;
}

.tab-pane.active,
.query-pane.active {
  display: block;
}

.tab-pane h2 {
  margin-top: 0;
}

.tab-pane p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.7;
}

.tab-pane p strong {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
}

.checkout-page,
.orders-page,
.empty-page {
  display: grid;
  place-items: start center;
}

.checkout-card,
.orders-card {
  width: min(760px, 100%);
}

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

.status-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--ok);
  font-weight: 700;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.manual-payment {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(155, 92, 255, 0.24);
  border-radius: 8px;
  background: rgba(155, 92, 255, 0.08);
}

.manual-payment h2 {
  margin: 0;
}

.manual-payment img {
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.payment-note {
  display: grid;
  gap: 8px;
}

.payment-note p {
  margin: 0;
}

.delivery-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(21, 128, 61, 0.2);
  border-radius: 8px;
  background: rgba(21, 128, 61, 0.06);
}

.delivery-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
}

.query-pane {
  margin-bottom: 18px;
}

.query-pane .btn {
  margin-right: 8px;
}

.order-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.order-item > div:first-child,
.order-item > div:nth-child(2) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-item span {
  color: var(--muted);
}

.empty-result {
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}

.mobile-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(16, 9, 28, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-buy span {
  color: var(--danger);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  max-width: 720px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 16, 43, 0.84);
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 16, 43, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

.service-float {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 70;
  width: min(312px, calc(100vw - 28px));
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b102b;
  box-shadow: var(--shadow);
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #6d28d9, #9b5cff);
  color: #ffffff;
}

.service-card-head strong,
.service-card-head span {
  display: block;
}

.service-card-head span {
  margin-top: 4px;
  font-size: 13px;
}

.service-card-head button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
}

.service-card-body {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 18px 20px 20px;
}

.service-card-body p,
.service-card-body small {
  margin: 0;
  color: var(--muted);
}

.service-card-body img {
  width: min(178px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-hours {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 9, 28, 0.72);
}

.service-hours svg {
  flex: 0 0 18px;
  color: var(--muted);
}

.service-hours small,
.service-hours strong {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(620px, 100%);
  border-radius: 8px;
  background: #1b102b;
  box-shadow: var(--shadow);
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-header h2 {
  margin: 0;
}

.modal-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 22px;
}

.modal-body {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand,
  .nav {
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .detail-layout,
  .external-band {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 320px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main,
  .footer {
    width: min(100% - 22px, 1220px);
  }

  .topbar {
    font-size: 12px;
  }

  .site-header {
    padding: 12px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav a,
  .nav button {
    font-size: 13px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  .product-card {
    padding: 8px;
  }

  .product-card p {
    min-height: 60px;
  }

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

  .detail-image .product-art {
    min-height: 280px;
  }

  .mobile-buy {
    display: flex;
  }

  .scroll-top {
    bottom: 78px;
  }

  .footer {
    display: block;
    padding-bottom: 88px;
  }

  .footer-links {
    margin-top: 14px;
  }
}
