
:root {
  color-scheme: dark;
  --bg: oklch(0.18 0.026 48);
  --bg-2: oklch(0.22 0.034 52);
  --surface: oklch(0.255 0.04 55);
  --surface-2: oklch(0.31 0.052 60);
  --line: oklch(0.56 0.065 60 / 0.42);
  --line-strong: oklch(0.72 0.12 65 / 0.62);
  --ink: oklch(0.96 0.012 78);
  --muted: oklch(0.78 0.035 72);
  --soft: oklch(0.66 0.06 68);
  --amber: oklch(0.78 0.165 67);
  --ochre: oklch(0.68 0.13 75);
  --orange: oklch(0.66 0.17 48);
  --red: oklch(0.53 0.145 34);
  --shadow: oklch(0.08 0.02 45 / 0.55);
  --radius: 8px;
  --max: 1180px;
  --z-sticky: 20;
  --z-modal: 60;
  --z-toast: 70;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 590px), oklch(0.55 0.08 60 / 0.18) calc(50% - 589px), transparent calc(50% - 588px), transparent calc(50% + 588px), oklch(0.55 0.08 60 / 0.18) calc(50% + 589px), transparent calc(50% + 590px)),
    radial-gradient(circle at 50% -20%, oklch(0.62 0.16 54 / 0.26), transparent 38rem),
    linear-gradient(180deg, var(--bg), oklch(0.16 0.025 44));
  color: var(--ink);
  min-height: 100dvh;
  overflow-wrap: break-word;
}

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

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

button,
a.button,
.text-button,
.filter-button,
.tab-list button,
.product-photo-button,
.thumb-button,
.quick-main-image {
  transition-property: transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover,
a.button:hover,
.product-card:hover,
.filter-button:hover,
.thumb-button:hover {
  transform: translateY(-2px);
}

button:active,
a.button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-toast);
  padding: 10px 14px;
  color: var(--bg);
  background: var(--amber);
  border-radius: 999px;
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 40px);
  background: oklch(0.18 0.026 48 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.3;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  white-space: nowrap;
}

.main-nav a,
.nav-cart,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 6px;
  cursor: pointer;
}

.nav-cart span {
  color: var(--amber);
  font-weight: 800;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100dvh - 118px);
  padding: clamp(44px, 8vw, 84px) clamp(18px, 4vw, 40px) clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(30px, 6vw, 60px);
  text-align: center;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.hero-kicker,
.rule-label,
.product-category {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 12vw, 5.9rem);
  line-height: 0.94;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.15;
  font-weight: 800;
}

h4 {
  margin-bottom: 10px;
  font-size: 0.98rem;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-copy {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.checkout-actions,
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  color: oklch(0.17 0.026 48);
  background: var(--amber);
  border-color: var(--amber);
}

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

.button.small {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero-image {
  margin: 0 auto;
  width: min(860px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(8px, 2vw, 14px);
  background: linear-gradient(135deg, oklch(0.37 0.075 58), oklch(0.22 0.04 48));
  box-shadow: 0 18px 38px var(--shadow);
}

.hero-image img,
.trade-image-stack img,
.about-photo img,
.product-photo-button img,
.quick-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(135deg, oklch(0.38 0.08 58), oklch(0.18 0.03 45));
}

.intro-band,
.catalog-section,
.trade-section,
.process-section,
.about-section,
.policies-section,
.checkout-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-top: 22px;
  padding-bottom: clamp(50px, 8vw, 96px);
}

.intro-band > div {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.intro-band > div + div {
  padding-left: clamp(18px, 4vw, 42px);
  border-left: 1px solid var(--line);
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto clamp(26px, 5vw, 54px);
  text-align: center;
}

.catalog-section,
.process-section,
.policies-section,
.checkout-section {
  padding-top: clamp(54px, 9vw, 104px);
  padding-bottom: clamp(54px, 9vw, 104px);
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

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

.filter-button,
.tab-list button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-button.active,
.tab-list button[aria-selected="true"] {
  color: oklch(0.17 0.026 48);
  background: var(--ochre);
  border-color: var(--ochre);
  font-weight: 800;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.search-field input,
.form-grid input,
.qty-field input,
.cart-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: oklch(0.16 0.022 44);
  padding: 10px 12px;
}

input::placeholder {
  color: oklch(0.74 0.04 72);
  opacity: 1;
}

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

.product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 48px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, oklch(0.25 0.04 55), oklch(0.205 0.032 48));
}

.product-photo-button,
.quick-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: oklch(0.18 0.026 48);
  cursor: zoom-in;
}

.thumb-row,
.lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 44px;
  align-items: stretch;
}

.thumb-button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: oklch(0.17 0.026 48);
  cursor: zoom-in;
}

.thumb-button img {
  width: 100%;
  height: 44px;
  object-fit: cover;
}

.thumb-button.active {
  border-color: var(--amber);
}

.product-info {
  display: grid;
  align-content: start;
}

.product-info h3 {
  min-height: 2.5em;
}

.product-category {
  margin-bottom: 8px;
}

.sku {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 0.79rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.product-description {
  min-height: 5em;
  margin-bottom: 12px;
  font-size: 0.93rem;
}

.spec-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.spec-list li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: oklch(0.18 0.026 48 / 0.64);
}

.product-purchase {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-purchase strong,
.quick-price {
  color: var(--amber);
  font-size: 1.18rem;
}

.product-purchase div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-note {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: center;
}

.trade-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding-top: clamp(54px, 9vw, 104px);
  padding-bottom: clamp(54px, 9vw, 104px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trade-copy p,
.about-copy p {
  max-width: 62ch;
}

.trade-image-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
  align-items: end;
}

.trade-image-stack img,
.about-photo img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
}

.trade-image-stack img + img {
  aspect-ratio: 3 / 4;
  transform: translateY(28px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.process-grid article {
  padding: clamp(18px, 3vw, 30px);
  border-right: 1px solid var(--line);
}

.process-grid article:last-child {
  border-right: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding-top: clamp(54px, 9vw, 104px);
  padding-bottom: clamp(54px, 9vw, 104px);
}

.about-photo {
  margin: 0;
}

address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

address strong,
address a,
.site-footer a {
  color: var(--ink);
}

.checkout-shell,
.policy-tabs {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: oklch(0.215 0.032 48);
  padding: clamp(16px, 3vw, 28px);
}

.checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.checkout-progress span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.checkout-progress span.active {
  color: oklch(0.17 0.026 48);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 800;
}

.checkout-progress span[aria-current="step"] {
  box-shadow: inset 0 -3px 0 oklch(0.17 0.026 48 / 0.42);
}

.checkout-panel {
  display: block;
}

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

.form-grid label,
.qty-field,
.cart-row label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.field-error {
  min-height: 1.2em;
  color: oklch(0.83 0.12 45);
  font-size: 0.86rem;
}

.radio-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.radio-grid legend:not(.sr-only) {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.radio-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.18 0.026 48 / 0.66);
}

.radio-grid input {
  margin-top: 5px;
  accent-color: var(--amber);
}

.radio-grid span {
  display: grid;
  gap: 5px;
}

.radio-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.radio-grid b {
  color: var(--amber);
}

.payment-fields {
  margin-bottom: 22px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.checkout-note {
  margin: 20px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-note a {
  color: var(--ink);
}

.review-item,
.review-totals p,
.cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-item small {
  display: block;
  margin-top: 4px;
}

.confirmation-panel {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.policy-tabs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.tab-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

[role="tabpanel"] p {
  max-width: 78ch;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line-strong);
}

.footer-brand {
  margin-bottom: 14px;
}

.modal,
.lightbox {
  position: fixed;
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  inset: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal::backdrop,
.lightbox::backdrop {
  background: oklch(0.08 0.02 45 / 0.76);
}

.modal-shell,
.lightbox-shell {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(180deg, oklch(0.235 0.038 52), oklch(0.16 0.024 45));
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: oklch(0.17 0.026 48);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(20px, 4vw, 44px);
  padding-top: 34px;
}

.quick-thumbs {
  margin-top: 10px;
}

.quick-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.spec-list.full {
  margin-bottom: 6px;
}

.qty-field {
  max-width: 160px;
}

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

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

.cart-row img {
  width: 82px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.cart-row h3 {
  margin-bottom: 4px;
}

.cart-row p {
  margin-bottom: 0;
}

.lightbox {
  width: min(1120px, calc(100vw - 28px));
}

.lightbox-frame {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  padding-top: 42px;
}

.lightbox-figure {
  margin: 0;
  min-width: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: oklch(0.13 0.02 42);
}

.lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
}

.lightbox-nav {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: oklch(0.2 0.035 50);
  cursor: pointer;
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox-thumbs {
  max-width: 520px;
  margin: 18px auto 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-toast);
  max-width: min(320px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: oklch(0.2 0.035 50);
  box-shadow: 0 10px 24px var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.motion-ok [data-reveal] {
  opacity: 1;
  transform: translateY(22px);
}

.motion-ok [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-property: transform, opacity;
  transition-duration: 620ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .intro-band,
  .trade-section,
  .about-section,
  .review-grid,
  .policy-tabs,
  .quick-layout {
    grid-template-columns: 1fr;
  }

  .intro-band > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

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

  .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .lightbox-frame {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .brand span {
    white-space: normal;
  }

  .hero {
    min-height: auto;
    text-align: left;
  }

  .hero-inner {
    margin: 0;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions,
  .checkout-actions,
  .cart-actions {
    justify-content: flex-start;
  }

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

  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-row label,
  .cart-row .text-button {
    grid-column: 1 / -1;
  }

  .modal,
  .lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .lightbox-frame {
    gap: 10px;
  }

  .lightbox-nav {
    width: 100%;
  }
}
