:root {
  color-scheme: dark;
  --bg: oklch(0.09 0 0);
  --bg-2: oklch(0.13 0 0);
  --panel: oklch(0.17 0 0);
  --panel-2: oklch(0.21 0 0);
  --ink: oklch(0.94 0 0);
  --ink-strong: oklch(0.99 0 0);
  --muted: oklch(0.68 0 0);
  --muted-2: oklch(0.62 0 0);
  --line: oklch(0.48 0 0);
  --line-strong: oklch(0.55 0 0);
  --field: oklch(0.12 0 0);
  --danger: oklch(0.86 0 0);
  --focus: oklch(0.96 0 0);
  --font-main: "Aptos Display", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Aptos Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 4px;
  --header-h: 72px;
  --z-sticky: 20;
  --z-modal: 300;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  font-family: var(--font-main);
  background:
    linear-gradient(180deg, oklch(0.11 0 0), var(--bg) 35rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(to right, oklch(0.8 0 0 / 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.8 0 0 / 0.09) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  background: var(--panel);
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

a {
  color: inherit;
  text-decoration-color: oklch(0.7 0 0 / 0.7);
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-modal);
  transform: translateY(-130%);
  padding: 10px 14px;
  background: var(--ink-strong);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 56px);
  background: oklch(0.09 0 0 / 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--ink-strong);
  stroke-width: 2;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 24px);
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.primary-nav a,
.primary-nav button,
.site-footer button,
.privacy-note button,
.terms-note button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
}

.primary-nav a,
.primary-nav button,
.site-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.primary-nav a:hover,
.primary-nav button:hover,
.site-footer button:hover,
.privacy-note button:hover,
.terms-note button:hover {
  color: var(--ink-strong);
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cart span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 132px);
}

.hero {
  min-height: calc(88dvh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-top: clamp(48px, 7vw, 80px);
}

.hero-inner {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.kicker,
.modal-label,
.product-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-strong);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 950;
}

h2 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 940;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 850;
}

h4 {
  font-size: 1rem;
  font-weight: 850;
}

.hero-copy {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions,
.modal-actions,
.checkout-actions,
.card-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition-property: transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--ink-strong);
  color: var(--bg);
  border-color: var(--ink-strong);
}

.button-secondary {
  background: transparent;
  color: var(--ink-strong);
}

.hero-media,
.buy-image,
.about-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-media {
  aspect-ratio: 4 / 5;
  align-self: stretch;
  min-height: 420px;
}

.hero-media img,
.buy-image img,
.about-image img {
  width: 100%;
  height: 100%;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(32px, 6vw, 72px);
}

.section-head p,
.about-copy p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.03rem;
  text-wrap: pretty;
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.buy-image {
  aspect-ratio: 16 / 11;
}

.buy-panel {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel), oklch(0.12 0 0));
}

.rule-list {
  display: grid;
  gap: 16px;
}

.rule-list p {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  color: var(--muted);
}

.rule-list span {
  font-family: var(--font-mono);
  color: var(--ink-strong);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr) minmax(170px, 0.45fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

.search-wrap,
.sort-wrap,
.field {
  display: grid;
  gap: 8px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink-strong);
  padding: 0 12px;
  font-size: 1rem;
}

input::placeholder {
  color: oklch(0.72 0 0);
  opacity: 1;
}

input[aria-invalid="true"] {
  border-color: var(--ink-strong);
  box-shadow: inset 0 0 0 1px var(--ink-strong);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition-property: transform, opacity;
  transition-duration: 160ms;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--ink-strong);
  border-color: var(--line-strong);
}

.filter-button.is-active {
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.filter-button:hover {
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.12 0 0 / 0.92);
  overflow: hidden;
  transition-property: transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-3px);
}

.image-button,
.detail-main-image,
.thumb-button,
.detail-thumbs button,
.lightbox-thumbs button {
  border: 0;
  padding: 0;
  background: var(--panel);
  border-radius: 0;
}

.image-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-button img,
.detail-main-image img,
.thumb-button img,
.detail-thumbs img,
.lightbox-thumbs img {
  width: 100%;
  height: 100%;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  min-height: 58px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.thumb-button {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  overflow: hidden;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-body h3 {
  min-height: 3.1em;
  font-size: 1.08rem;
  line-height: 1.08;
}

.sku {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.description {
  min-height: 4.6em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spec-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 64px;
}

.spec-pills span {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.card-actions {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.price,
.detail-price {
  color: var(--ink-strong);
  font-size: 1.15rem;
  font-weight: 950;
}

.card-actions .button {
  min-height: 44px;
  padding-inline: 12px;
  font-size: 0.86rem;
}

.empty-state,
.empty-cart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-image {
  aspect-ratio: 4 / 5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 0.6fr));
  gap: 16px;
}

.contact-grid > * {
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

address {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.contact-grid strong {
  color: var(--ink-strong);
}

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

.site-footer > div p:first-child {
  color: var(--ink-strong);
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

dialog {
  margin: auto;
  inset: 0;
  max-width: min(900px, calc(100vw - 28px));
  max-height: min(88dvh, 900px);
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0;
  overflow: auto;
  box-shadow: none;
  z-index: var(--z-modal);
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: oklch(0.02 0 0 / 0.78);
  backdrop-filter: blur(8px);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 22px;
  background: oklch(0.13 0 0 / 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-strong);
  font-size: 1.6rem;
  line-height: 1;
  transition-property: transform, opacity;
  transition-duration: 160ms;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1fr);
  gap: 24px;
  padding: 22px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.detail-thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.spec-list {
  display: grid;
  gap: 10px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-list dt {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.spec-list dd {
  color: var(--ink);
}

.quantity-add {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: end;
}

.quantity-add label {
  grid-column: 1 / -1;
}

.quantity-add input {
  min-width: 0;
}

.cart-modal {
  max-width: min(760px, calc(100vw - 28px));
}

.cart-items {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.cart-line {
  display: grid;
  grid-template-columns: 82px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cart-line img {
  width: 82px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.cart-line h3 {
  font-size: 1rem;
  line-height: 1.15;
}

.qty-control {
  display: grid;
  grid-template-columns: 44px 42px 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button,
.remove-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font-weight: 900;
}

.qty-control span {
  text-align: center;
  font-family: var(--font-mono);
}

.remove-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-inline: 12px;
  color: var(--muted);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
}

.modal-actions {
  justify-content: flex-end;
  padding: 22px;
}

.checkout-modal {
  max-width: min(980px, calc(100vw - 28px));
}

.checkout-status {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.checkout-status p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.checkout-meter {
  height: 6px;
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--radius);
}

.checkout-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0.2);
  background: var(--ink-strong);
  transition-property: transform;
  transition-duration: 220ms;
}

.checkout-step,
.checkout-confirmation {
  padding: 22px;
}

.checkout-step h3,
.checkout-confirmation h3 {
  margin-bottom: 18px;
}

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

.field-wide,
.privacy-note,
.terms-note {
  grid-column: 1 / -1;
}

.privacy-note,
.terms-note,
.field-error {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-error {
  min-height: 1.4em;
  color: var(--danger);
}

.option-stack,
.payment-methods {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
}

.option-card,
.payment-methods label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.option-card > span {
  display: grid;
  gap: 4px;
}

.option-card small {
  color: var(--muted);
}

.option-card input,
.payment-methods input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink-strong);
}

.payment-methods {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.payment-methods legend,
.option-stack legend {
  margin-bottom: 10px;
}

.payment-methods label {
  justify-content: flex-start;
  min-height: 54px;
  font-weight: 850;
}

.payment-fields {
  margin-top: 16px;
}

.checkout-review {
  display: grid;
  gap: 14px;
}

.review-block,
.review-lines,
.review-total {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.review-block {
  display: grid;
  gap: 8px;
}

.review-block p,
.review-line,
.review-total p {
  color: var(--muted);
}

.review-lines {
  display: grid;
  gap: 10px;
}

.review-total p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.review-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.review-line img {
  width: 56px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.review-total {
  display: grid;
  gap: 8px;
}

.review-total p:last-child {
  color: var(--ink-strong);
  font-size: 1.2rem;
  font-weight: 950;
}

.checkout-actions {
  justify-content: space-between;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.checkout-confirmation {
  min-height: 340px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.checkout-confirmation p {
  max-width: 56ch;
  color: var(--muted);
}

.policy-modal {
  max-width: min(760px, calc(100vw - 28px));
}

.policy-body {
  display: grid;
  gap: 18px;
  padding: 22px;
  color: var(--muted);
}

.lightbox {
  width: min(1020px, calc(100vw - 28px));
  max-width: min(1020px, calc(100vw - 28px));
  overflow: visible;
  background: transparent;
  border: 0;
}

.lightbox-shell {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 56px 14px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--panel-2);
}

.lightbox h2 {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62dvh, 660px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-frame img {
  width: 100%;
  max-height: min(62dvh, 660px);
  object-fit: contain;
  background: var(--panel);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: oklch(0.1 0 0 / 0.8);
  color: var(--ink-strong);
  font-size: 2rem;
  line-height: 1;
  transition-property: transform, opacity;
  transition-duration: 160ms;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 86px));
  gap: 8px;
}

.lightbox-thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.68;
  transition-property: opacity, transform;
  transition-duration: 160ms;
}

.lightbox-thumbs button.is-active,
.lightbox-thumbs button:hover {
  opacity: 1;
}

.lightbox-thumbs button:hover {
  transform: translateY(-1px);
}

.reveal {
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
    padding-block: 14px;
    flex-direction: column;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .buy-grid,
  .about-section,
  .catalog-tools,
  .contact-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(88dvh - var(--header-h));
    padding-top: 36px;
    padding-bottom: 40px;
    gap: 24px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-media {
    min-height: 220px;
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

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

  .cart-line {
    grid-template-columns: 72px 1fr;
  }

  .cart-line .qty-control,
  .cart-line .remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding-block: 58px;
  }

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

  .product-card {
    min-height: 0;
  }

  .card-actions div,
  .hero-actions,
  .modal-actions,
  .checkout-actions {
    width: 100%;
  }

  .button,
  .card-actions .button {
    width: 100%;
  }

  dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .modal-head,
  .checkout-step,
  .checkout-confirmation,
  .cart-items,
  .modal-actions,
  .checkout-actions,
  .policy-body {
    padding: 16px;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .review-line {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .review-line img {
    width: 48px;
  }

  .review-line strong {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    will-change: auto;
  }
}
