@font-face {
  font-family: Manrope;
  src: url('../font/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('../font/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #303030;
  --muted: #5e5e5e;
  --line: #d7d7d7;
  --paper: #f6f6f6;
  --white: #ffffff;
  --accent: #50be07;
  --accent-dark: #3e9505;
  --focus: #357f04;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }

a { color: inherit; }

.site-header {
  min-height: 104px;
  padding: 10px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  background: var(--white);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  width: 154px;
  height: auto;
  display: block;
}

.store-link {
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 4px;
}

.store-link:hover { color: var(--accent-dark); }

.product-shell {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  align-items: start;
}

.product-story {
  padding: clamp(38px, 5vw, 72px) clamp(24px, 5vw, 72px);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 12px;
  max-width: 650px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.price-line {
  margin: 26px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-line strong { font-size: 28px; }
.price-line span { color: var(--muted); font-size: 13px; }

.product-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #d8d4c7;
  border: 1px solid #c8c6bf;
  border-radius: 6px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-photo-main { aspect-ratio: 4 / 3; }

.photo-pair {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kit-list {
  margin: 24px 0 0;
  padding: 20px 0 0;
  display: grid;
  gap: 10px;
  list-style: none;
  border-top: 1px solid var(--line);
  color: #424649;
  font-size: 14px;
}

.kit-list strong {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
}

.configurator {
  min-height: calc(100vh - 76px);
  padding: clamp(26px, 4vw, 54px);
  background: var(--white);
  border-left: 1px solid var(--line);
}

.form-heading {
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
}

.form-heading span { font-size: 20px; font-weight: 700; }
.form-heading strong { color: var(--accent); font-size: 24px; }

.form-error {
  margin-top: 20px;
  padding: 14px 16px;
  color: #70141b;
  background: #fff1f1;
  border-left: 4px solid var(--accent);
  font-size: 14px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section legend {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.form-section legend span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 12px;
}

.form-section > p {
  margin: 8px 0 18px 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.engraving-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.engraving-line {
  position: relative;
  display: block;
}

.engraving-line:first-child { grid-column: 1 / -1; }

.engraving-line > span {
  display: block;
  margin-bottom: 6px;
  color: #4f5356;
  font-size: 12px;
  font-weight: 700;
}

.engraving-line input {
  width: 100%;
  height: 48px;
  padding: 0 54px 0 13px;
  color: var(--ink);
  background: #fafaf8;
  border: 1px solid #b9bcbd;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  text-transform: uppercase;
}

.engraving-line small {
  position: absolute;
  right: 12px;
  bottom: 16px;
  color: #808487;
  font-size: 11px;
}

.engraving-line small b { font-weight: 400; }

.tag-preview {
  margin-top: 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.preview-heading strong { font-size: 13px; }
.preview-heading span { color: var(--muted); font-size: 10px; text-transform: uppercase; }

.tag-stage {
  min-height: 210px;
  margin: 14px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7e7e5;
  border-radius: 4px;
}

.tag-shell {
  --silencer-color: #17191b;
  width: min(330px, 82%);
  aspect-ratio: 1.78;
  padding: 11px;
  background: var(--silencer-color);
  border-radius: 32px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 14%);
}

.tag-face {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 20px 52px 20px 27px;
  overflow: hidden;
  color: #2e3030;
  background: #c6c9c8;
  border: 2px solid #8c9090;
  border-radius: 23px;
  box-shadow: inset 0 0 0 2px #e4e6e5;
}

.tag-face::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  background: #686c6c;
  border: 4px solid #9da1a0;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px #454848;
}

.tag-copy {
  width: 100%;
  display: grid;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 1px 0 #f1f2f1;
  white-space: pre;
}

.tag-copy span { min-height: 1.05em; }
.tag-copy span:empty::before { content: attr(data-placeholder); color: #868a89; opacity: .46; }

.tag-shell[data-silencer='blue'] { --silencer-color: #2f72c9; }
.tag-shell[data-silencer='white'] { --silencer-color: #fff; }
.tag-shell[data-silencer='green'] { --silencer-color: #24755d; }
.tag-shell[data-silencer='orange'] { --silencer-color: #f17337; }
.tag-shell[data-silencer='yellow'] { --silencer-color: #f2d836; }
.tag-shell[data-silencer='red'] { --silencer-color: #d4313b; }
.tag-shell[data-silencer='transparent'] { --silencer-color: rgb(215 221 222 / 72%); }
.tag-shell[data-silencer='neon-green'] { --silencer-color: #6cff79; }
.tag-shell[data-silencer='neon-orange'] { --silencer-color: #ff7048; }
.tag-shell[data-silencer='neon-yellow'] { --silencer-color: #f4ff57; }
.tag-shell[data-silencer='red-white-blue'] {
  background: conic-gradient(#d4313b 0 33%, #fff 0 66%, #2f61b8 0);
}
.tag-shell[data-silencer='woodland'] {
  background: conic-gradient(#57633e 0 28%, #8b7a50 0 52%, #2e3527 0 76%, #a09569 0);
}

.preview-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 11px;
}

.preview-options span { display: inline-flex; align-items: center; gap: 5px; }
.preview-options i { width: 12px; height: 12px; border: 1px solid #8f9293; border-radius: 50%; background: #17191b; }
.preview-options i[data-color='steel'] { background: #aeb2b3; }
.preview-options i[data-color='brass'] { background: #b39442; }
.preview-options i[data-color='blue'] { background: #2f72c9; }
.preview-options i[data-color='white'] { background: #fff; }
.preview-options i[data-color='green'] { background: #24755d; }
.preview-options i[data-color='orange'] { background: #f17337; }
.preview-options i[data-color='yellow'] { background: #f2d836; }
.preview-options i[data-color='red'] { background: #d4313b; }
.preview-options i[data-color='transparent'] { background: #e7ebeb; }
.preview-options i[data-color='neon-green'] { background: #6cff79; }
.preview-options i[data-color='neon-orange'] { background: #ff7048; }
.preview-options i[data-color='neon-yellow'] { background: #f4ff57; }
.preview-options i[data-color='red-white-blue'] { background: conic-gradient(#d4313b 0 33%, #fff 0 66%, #2f61b8 0); }
.preview-options i[data-color='woodland'] { background: conic-gradient(#57633e 0 28%, #8b7a50 0 52%, #2e3527 0 76%, #a09569 0); }

.tag-preview > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 2px;
}

.field-note {
  margin: 12px 0 0 !important;
  color: #73777a !important;
  font-size: 11px !important;
}

.choice-grid { display: grid; gap: 10px; }
.chain-grid { grid-template-columns: minmax(0, 1fr); }
.silencer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice-tile {
  min-height: 52px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c7c9c9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.choice-tile:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #f4f4f0;
}

.choice-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.swatch {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #8f9293;
  border-radius: 50%;
  background: var(--swatch);
}

.swatch-steel { --swatch: #aeb2b3; }
.swatch-brass { --swatch: #b39442; }
.swatch-black { --swatch: #18191b; }
.swatch-blue { --swatch: #2f72c9; }
.swatch-white { --swatch: #fff; }
.swatch-green { --swatch: #24755d; }
.swatch-orange { --swatch: #f17337; }
.swatch-yellow { --swatch: #f2d836; }
.swatch-red { --swatch: #d4313b; }
.swatch-transparent { --swatch: repeating-conic-gradient(#fff 0 25%, #cfd2d3 0 50%) 50% / 8px 8px; }
.swatch-neon-green { --swatch: #6cff79; }
.swatch-neon-orange { --swatch: #ff7048; }
.swatch-neon-yellow { --swatch: #f4ff57; }
.swatch-red-white-blue { --swatch: conic-gradient(#d8343d 0 33%, #fff 0 66%, #2f61b8 0); }
.swatch-woodland { --swatch: conic-gradient(#57633e 0 28%, #8b7a50 0 52%, #2e3527 0 76%, #a09569 0); }

.addon-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 22px 72px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #c7c9c9;
  border-radius: 4px;
  cursor: pointer;
}

.addon-row:has(input:checked) { border-color: var(--ink); background: #f4f4f0; }
.addon-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.addon-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 3px; }
.addon-row span strong, .addon-row span small { display: block; }
.addon-row span strong { font-size: 13px; }
.addon-row span small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.addon-row > b { font-size: 13px; }

.checkout-row {
  padding-top: 28px;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  align-items: end;
}

.quantity-control > span:first-child {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.stepper {
  height: 50px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid #b9bcbd;
  border-radius: 4px;
  overflow: hidden;
}

.stepper button { border: 0; background: #eeeeea; cursor: pointer; font-size: 20px; }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }

.add-button {
  min-height: 50px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.add-button:hover { background: var(--accent-dark); }

.site-footer {
  padding: 22px clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #c8c9c7;
  background: #5e5e5e;
  font-size: 12px;
}

@media (max-width: 980px) {
  .product-shell { grid-template-columns: 1fr; }
  .product-story { padding-bottom: 36px; }
  .configurator { min-height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .product-photo-main { aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  .site-header { min-height: 82px; padding: 8px 16px; }
  .brand img { width: 118px; }
  .store-link { font-size: 11px; }
  .product-story, .configurator { padding: 30px 18px; }
  h1 { font-size: 40px; }
  .photo-pair { grid-template-columns: 1fr 1fr; }
  .engraving-fields { grid-template-columns: 1fr; }
  .engraving-line:first-child { grid-column: auto; }
  .silencer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-copy { font-size: 11px; }
  .choice-tile { min-height: 48px; }
  .checkout-row { grid-template-columns: 1fr; }
  .quantity-control { width: 140px; }
  .add-button { width: 100%; }
  .site-footer { flex-direction: column; padding: 20px 18px; }
}
