/* Axis storefront. Dark, photo-led layout after the owner's reference site; tokens, weights, lines and
   form fields follow X:\AI Workspace\STYLE_GUIDE.md. */

@font-face {
  font-family: 'Saira';
  src: url('/assets/fonts/saira-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Dark layers (blue-gray) */
  --bg: #0b0e13;
  --bg-2: #10151c;
  --surface: #151b23;
  --raised: #1c2430;
  --border: rgba(237, 241, 245, .10);
  --border-bright: rgba(237, 241, 245, .26);
  --rule: rgba(237, 241, 245, .10);
  --text: #edf1f5;
  --muted: #aeb9c7;
  --field-label: #c3ccd7;

  /* Light sections: soft blue-gray, never white */
  --light-bg: #dde3e9;
  --light-bg-2: #d3dae2;
  --light-card: #e7ebef;
  --light-text: #172230;
  --light-muted: #5a6573;
  --light-rule: rgba(23, 34, 48, .14);

  /* One restrained accent */
  --accent: #2f6fd6;
  --accent-hover: #3d7fe6;
  --accent-soft: rgba(47, 111, 214, .18);
  --alert: #d9534f;
  --success: #3fa66b;

  --field-radius: 10px;
  --field-text-inset: 20px;
  --field-label-inset: calc(var(--field-text-inset) / 2);
  --field-value: color-mix(in srgb, var(--text) 70%, transparent);

  --font-display: 'Saira', 'Bahnschrift', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 1200px;
  --pad: 18px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 9px; }
.skip-link:focus { left: 8px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

/* Type */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: .95rem; letter-spacing: .12em; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 34em; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(237, 241, 245, .7); color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(237, 241, 245, .08); border-color: var(--text); }
.btn-ghost-dark { border-color: var(--light-text); color: var(--light-text); background: transparent; }
.btn-ghost-dark:hover { background: rgba(23, 34, 48, .06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 14, 19, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .34em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.cart-link { position: relative; display: inline-flex; align-items: center; padding: 6px; margin-right: -6px; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 19, .35) 0%, rgba(11, 14, 19, 0) 30%, rgba(11, 14, 19, .2) 55%, rgba(11, 14, 19, .92) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; text-align: center; }
.hero-content .lede { margin: 14px auto 26px; color: #c9d2dc; }

/* Sections */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .lede { margin: 14px auto 0; }
.section.light { background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-bg-2) 100%); color: var(--light-text); }
.section.light .eyebrow, .section.light .lede, .section.light p { color: var(--light-muted); }
.section.dark { background: var(--bg-2); }
.section + .section.light { border-top: 1px solid var(--light-rule); }

/* Advantage list */
.ticks { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.ticks li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--light-rule);
  color: var(--light-text);
  font-weight: 400;
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 23px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--light-text);
  transform: rotate(45deg);
}

/* Specs */
.specs { display: grid; gap: 34px; }
.spec { border-top: 1px solid var(--light-rule); padding-top: 22px; }
.spec svg { width: 64px; height: 64px; margin: 0 0 22px; color: var(--light-text); }
.spec h3 { margin-bottom: 10px; }
.spec p { margin: 0; font-size: .95rem; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Full-bleed band */
/* Phones: picture on top, text below. From 700px: text over the wide render's empty left side. */
.band { position: relative; overflow: hidden; background: #10141b; }
.band img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.band .shell { position: relative; z-index: 1; padding-block: 8px 56px; }
.band p { color: #c9d2dc; max-width: 30em; margin: 12px 0 0; }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
.split figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.steps { counter-reset: step; list-style: none; margin: 22px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.steps strong { color: var(--text); font-weight: 500; }
.note { color: var(--muted); font-size: .85rem; }

/* Product teaser card */
.teaser {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.teaser img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.teaser-body { padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.teaser-body p { margin: 0; color: var(--muted); }
.price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

/* Product page */
.product { display: grid; gap: 34px; padding-block: 34px 72px; }
.gallery-main { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .15s; }
.thumbs button:hover img, .thumbs button[aria-current="true"] img { opacity: 1; }
.buy h1 { font-size: 2rem; }
.buy .price { margin: 12px 0 18px; display: block; }
.buy > p { color: var(--muted); margin: 0 0 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pill {
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.buy-row { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }
.qty {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 44px;
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  overflow: hidden;
}
.qty button { height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.qty button:hover { color: var(--text); background: rgba(237, 241, 245, .06); }
.qty input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font: inherit;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-notes { list-style: none; padding: 0; margin: 22px 0 0; }
.buy-notes li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }

.details { padding: 64px 0; border-top: 1px solid var(--rule); }
.details-grid { display: grid; gap: 40px; }
.rows { margin: 18px 0 0; }
.rows div { display: flex; justify-content: space-between; gap: 18px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; }

/* Cart */
.page { padding-block: 44px 80px; min-height: calc(100svh - var(--header-h) - 220px); }
.page-head { margin-bottom: 28px; }
.cart-layout { display: grid; gap: 28px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cart-line-name { font-weight: 500; text-decoration: none; }
.cart-line-variant { color: var(--muted); font-size: .8rem; margin: 2px 0 10px; }
.cart-line-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line .qty { width: 120px; height: 36px; grid-template-columns: 34px 1fr 34px; }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.summary { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px; }
.summary h2 { font-size: 1.1rem; margin-bottom: 10px; }
.summary .rows { margin: 0 0 18px; }
.summary .rows div:last-child { border-bottom: 0; }
.summary .total dd, .summary .total dt { color: var(--text); font-weight: 600; }
.form-msg { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.form-msg.error { color: var(--text); border: 1px solid var(--alert); border-radius: 10px; padding: 10px 12px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty .btn { margin-top: 18px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  position: relative;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.3rem; color: var(--muted); font-weight: 300; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: var(--raised);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-size: .85rem;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .btn { min-height: 34px; padding: 0 14px; font-size: .68rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg); padding: 40px 0 34px; color: var(--muted); font-size: .8rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.footer-links a:hover { color: var(--text); }
.fine { margin: 26px 0 0; font-size: .7rem; line-height: 1.6; color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* Layout steps */
@media (max-width: 380px) {
  .nav { gap: 14px; }
  .nav a { letter-spacing: .12em; }
  .brand span { letter-spacing: .26em; }
  h1 { font-size: 2rem; letter-spacing: .1em; }
}
@media (min-width: 700px) {
  :root { --pad: 28px; }
  .section { padding: 96px 0; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .teaser { grid-template-columns: 1fr 1fr; }
  .teaser-body { padding: 40px; }
  .hero-content { padding-bottom: 72px; }

  .details-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .cart-layout { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-block-start: 48px; }
  .buy { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}
@media (min-width: 1100px) {
  :root { --pad: 38px; }
  .band { min-height: 520px; display: flex; align-items: center; }
  .band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .band img { object-position: 70% 50%; }
  .band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 14, 19, .7) 0%, rgba(11, 14, 19, 0) 45%); }
  .band .shell { padding-block: 0; }
  .band .shell > * { max-width: 340px; }}

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

.section.pt-0 { padding-top: 0; }

/* 3D viewer */
.viewer-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #18202b 0%, #0e1218 100%);
}
.gallery-main .viewer-stage { position: absolute; inset: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.gallery-main { position: relative; }
.viewer-stage[hidden] { display: none; }
.viewer-mount, .viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer-poster { object-fit: cover; transition: opacity .3s; }
.viewer-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-start { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; background: rgba(11, 14, 19, .55); }
.viewer-status { position: absolute; left: 0; right: 0; top: 50%; margin: 0; transform: translateY(-50%); text-align: center; color: var(--muted); font-size: .8rem; z-index: 2; pointer-events: none; }
.viewer-ui { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 2; display: none; align-items: center; justify-content: flex-end; gap: 6px; pointer-events: none; }
.viewer-ui > * { pointer-events: auto; }
.viewer-ui button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border-bright); border-radius: 9px;
  background: rgba(21, 27, 35, .82); color: var(--text);
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.viewer-ui button:hover { background: var(--raised); }
.viewer-ui svg { width: 16px; height: 16px; }
.viewer-hint { margin-right: auto; font-family: var(--font-display); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.viewer-stage.is-live .viewer-ui { display: flex; }
.viewer-stage.is-live .viewer-poster, .viewer-stage.is-loading .viewer-poster { opacity: 0; }
.viewer-stage.is-live .viewer-start, .viewer-stage.is-loading .viewer-start { display: none; }
.viewer-stage.is-error .viewer-poster { opacity: .35; }
.viewer-stage.is-error .viewer-start { display: none; }
.thumbs button { position: relative; }
.thumb-badge {
  position: absolute; inset: auto 6px 6px auto;
  padding: 1px 7px; border-radius: 999px;
  background: rgba(11, 14, 19, .8); border: 1px solid var(--border-bright);
  font-family: var(--font-display); font-size: .56rem; font-weight: 600; letter-spacing: .08em; color: var(--text);
}
@media (min-width: 700px) {
  .viewer-wide { aspect-ratio: 16 / 9; }
}
