:root {
  --paper: #f3f0e9;
  --paper-deep: #e7e1d6;
  --white: #fff;
  --ink: #121821;
  --muted: #665f55;
  --navy: #102940;
  --navy-light: #1d4c70;
  --red: #e7472f;
  --red-dark: #c93421;
  --gold: #efb22d;
  --line: rgba(18, 24, 33, .13);
  --shadow: 0 22px 60px rgba(16, 41, 64, .12);
  --radius: 16px;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(239, 178, 45, .11), transparent 25rem),
    linear-gradient(180deg, #fcfbf8 0, var(--paper) 34rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .035;
  background-image: radial-gradient(rgba(18, 24, 33, .55) .6px, transparent .6px);
  background-size: 7px 7px;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.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;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.service-strip {
  min-height: 36px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.service-strip span { position: relative; white-space: nowrap; }
.service-strip span + span::before { content: "·"; position: absolute; left: calc(clamp(9px, 2vw, 29px) * -1); color: var(--gold); }

.hat-header {
  width: min(calc(100% - 48px), var(--max));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.hat-brand img { width: 205px; height: auto; }
.header-links { display: flex; align-items: center; gap: 24px; font-weight: 800; }
.header-links a { color: var(--navy); }
.header-links a:hover { color: var(--red); }
.made-local { color: var(--muted); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }

main { overflow-x: clip; overflow-y: visible; }
.intro {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: clamp(36px, 4vw, 60px) 0 clamp(28px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  align-items: end;
  gap: clamp(32px, 5vw, 78px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  max-width: 850px;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--navy);
}
.intro-copy { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.22rem); }
.intro-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.intro-facts div { min-height: 86px; background: rgba(255,255,255,.82); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.intro-facts strong { color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1; }
.intro-facts span { margin-top: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }

.configurator {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto clamp(82px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.preview-column { position: sticky; top: 16px; align-self: start; }
.preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.preview-topline { padding: 18px 21px 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.preview-topline > div { display: flex; flex-direction: column; }
.preview-kicker { color: var(--red); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.preview-topline strong { color: var(--navy); font-size: 1.25rem; }
.size-pill { padding: 7px 10px; border-radius: 999px; color: var(--navy); background: #eef3f6; font-size: .75rem; font-weight: 850; }
.product-gallery { background: #fff; }
.hat-stage { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.5; background: #fff; touch-action: none; }
.hat-stage::after { content: ""; position: absolute; inset: auto 13% 6% 13%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(16,41,64,.07), transparent 70%); z-index: 0; }
.hat-image { position: absolute; z-index: 1; inset: 0 auto auto 0; width: 100%; height: auto; transition: opacity .18s ease, transform .3s ease; }
.hat-stage.is-loading .hat-image { opacity: .35; transform: scale(.985); }
.loading-sheen { position: absolute; z-index: 5; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.7) 50%, transparent 75%); pointer-events: none; }
.hat-stage.is-loading .loading-sheen { animation: sheen .8s infinite; }
@keyframes sheen { to { transform: translateX(120%); } }
.patch-frame {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 49.8%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(108deg, rgba(255,255,255,.05) 0 1px, rgba(65,40,20,.035) 1px 3px),
    #c7935e;
  border: 2px solid #9b683d;
  box-shadow: 0 5px 10px rgba(28, 17, 8, .28), inset 0 0 0 2px rgba(255,255,255,.2);
  transition: width .24s ease, height .24s ease, border-radius .24s ease;
}
.patch-frame::after { content: ""; position: absolute; pointer-events: none; inset: 5px; border: 1px dashed rgba(50,30,15,.36); border-radius: inherit; }
.patch-frame.shape-oval { width: 33%; aspect-ratio: 4 / 2.25; border-radius: 50%; }
.patch-frame.shape-circle { width: 21%; aspect-ratio: 1; border-radius: 50%; }
.patch-frame.shape-rounded-square { width: 21%; aspect-ratio: 1; border-radius: 18%; }
.patch-frame.shape-contour {
  width: 33%;
  aspect-ratio: 4 / 2.25;
  border: 1px dashed rgba(16,41,64,.42);
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  box-shadow: none;
}
.patch-frame.shape-contour::after { display: none; }
.patch-frame.shape-contour.has-art { background: transparent; }
.patch-placeholder { position: relative; z-index: 2; color: rgba(55,33,17,.6); font-size: clamp(.6rem, 1vw, .82rem); font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.artwork-composite { position: absolute; z-index: 2; left: 50%; top: 50%; cursor: grab; user-select: none; touch-action: none; will-change: transform; }
.artwork-composite:active { cursor: grabbing; }
.artwork-composite canvas { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; touch-action: none; }
#contour-canvas { z-index: 1; filter: drop-shadow(0 5px 5px rgba(37,22,9,.32)); pointer-events: none; }
#art-canvas { z-index: 2; cursor: inherit; outline: none; }
#art-canvas:focus-visible { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px var(--red)); }
.drag-note { position: absolute; z-index: 4; left: 50%; bottom: 5%; transform: translateX(-50%); white-space: nowrap; padding: 7px 11px; border-radius: 999px; color: rgba(16,41,64,.72); background: rgba(245,248,250,.92); border: 1px solid rgba(16,41,64,.1); font-size: .7rem; font-weight: 800; transition: opacity .2s ease, visibility .2s ease; }
.view-note { position: absolute; z-index: 4; left: 50%; bottom: 5%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(16,41,64,.9); font-size: .69rem; font-weight: 850; text-align: center; }
.hat-stage.is-angle .patch-frame, .hat-stage.is-angle .drag-note { opacity: 0; visibility: hidden; pointer-events: none; }
.view-thumbnails { padding: 10px 12px 12px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; border-top: 1px solid var(--line); background: #f8f7f3; }
.view-choice { min-width: 0; overflow: hidden; padding: 0 0 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: .65rem; font-weight: 850; }
.view-choice:hover { border-color: rgba(16,41,64,.42); color: var(--navy); }
.view-choice.selected { border-color: var(--red); color: var(--navy); box-shadow: 0 0 0 2px rgba(231,71,47,.12); }
.view-choice img { width: 100%; height: 46px; object-fit: cover; object-position: center 20%; border-bottom: 1px solid var(--line); }
.view-choice span { display: block; padding-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-caption { min-height: 68px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); }
.proof-caption > div { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; }
.proof-caption > div:last-child { flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.proof-caption strong { color: var(--ink); }
.selected-swatch img { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.production-note { margin-top: 16px; padding: 16px; display: flex; gap: 13px; border-radius: 14px; color: #fff; background: var(--navy); }
.note-mark { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--gold); font-size: .77rem; font-weight: 950; }
.production-note strong { display: block; margin: 1px 0 4px; }
.production-note p { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; }

.builder-panel { display: grid; gap: 14px; }
.step, .checkout-block { overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.93); box-shadow: 0 10px 30px rgba(16,41,64,.065); backdrop-filter: blur(14px); }
.step-heading { margin-bottom: 22px; display: flex; gap: 14px; align-items: flex-start; }
.step-number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 950; }
.step-heading h2 { margin: 0 0 5px; color: var(--navy); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; }
.step-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.color-search { position: relative; display: block; margin-bottom: 14px; }
.color-search input, .customer-grid input, .customer-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.color-search input { padding-left: 42px; }
.color-search > span:last-child { position: absolute; left: 15px; top: 50%; transform: translateY(-54%); color: var(--muted); font-size: 1.25rem; }
.color-search input:focus, .customer-grid input:focus, .customer-grid textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(231,71,47,.12); }
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; max-height: 302px; overflow: auto; padding: 2px 3px 2px 2px; scrollbar-color: var(--navy) transparent; }
.color-grid.collapsed .color-option:nth-child(n+17) { display: none; }
.color-option { min-width: 0; padding: 8px; display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: .69rem; font-weight: 750; line-height: 1.15; }
.color-option:hover { border-color: rgba(16,41,64,.45); color: var(--ink); }
.color-option.selected { border-color: var(--red); color: var(--ink); box-shadow: 0 0 0 2px rgba(231,71,47,.13); }
.color-option img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: cover; border: 1px solid rgba(18,24,33,.12); border-radius: 50%; }
.text-button { appearance: none; padding: 7px 0; border: 0; background: transparent; color: var(--red); font-size: .82rem; font-weight: 900; }
.text-button:hover { color: var(--red-dark); }
.catalog-status { margin: 8px 0 0; color: var(--muted); font-size: .74rem; }
.shape-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.shape-choice { min-height: 96px; padding: 13px; display: flex; align-items: center; gap: 11px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.shape-choice:hover { border-color: rgba(16,41,64,.45); }
.shape-choice.selected { border-color: var(--red); box-shadow: 0 0 0 2px rgba(231,71,47,.13); }
.shape-choice > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.shape-choice strong { font-size: .83rem; line-height: 1.15; }
.shape-choice small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.shape-icon { flex: 0 0 36px; width: 36px; height: 27px; background: #d3a06c; border: 1px solid #95633b; }
.shape-icon.oval { border-radius: 50%; }
.shape-icon.circle { width: 31px; height: 31px; border-radius: 50%; }
.shape-icon.square { width: 31px; height: 31px; border-radius: 7px; }
.shape-icon.contour { width: 34px; height: 31px; border: 0; border-radius: 0; clip-path: polygon(9% 25%, 32% 8%, 55% 18%, 78% 7%, 94% 30%, 86% 58%, 96% 80%, 66% 94%, 42% 82%, 18% 94%, 4% 68%, 13% 48%); box-shadow: inset 0 0 0 1px #95633b; }
.upload-zone { min-height: 104px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1.5px dashed rgba(16,41,64,.32); border-radius: 15px; background: #f8fafb; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--red); background: rgba(231,71,47,.04); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-plus { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.8rem; font-weight: 300; line-height: 1; }
.upload-zone > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.upload-zone strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-zone small { margin-top: 3px; color: var(--muted); }
.art-controls { padding: 10px 18px 11px; border-top: 1px solid var(--line); background: #f3f0e9; }
.slider-label { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 850; }
.slider-label output { color: var(--red); }
#art-scale { width: 100%; margin: 5px 0; accent-color: var(--red); }
.art-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: .77rem; font-weight: 800; cursor: pointer; }
.toggle-row input, .approval-row input { width: 18px; height: 18px; accent-color: var(--red); }
.editor-help { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.customer-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: .78rem; font-weight: 850; }
.customer-grid label > span:first-child small { color: var(--muted); font-weight: 650; }
.notes-field { grid-column: 1 / -1; }
.customer-grid textarea { resize: vertical; }
.quantity-control { display: grid; grid-template-columns: 42px 1fr 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.quantity-control input { border: 0; border-radius: 0; padding: 10px 4px; text-align: center; box-shadow: none !important; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.quantity-control button { border: 0; background: #f2f0eb; color: var(--navy); font-size: 1.25rem; }
.quantity-control button:hover { background: #e8e4dd; }
.fulfillment-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.fulfillment-fieldset legend { margin-bottom: 10px; color: var(--ink); font-size: .78rem; font-weight: 850; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fulfillment-choice { position: relative; min-width: 0; min-height: 82px; padding: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.fulfillment-choice:hover { transform: translateY(-1px); border-color: rgba(16,41,64,.4); }
.fulfillment-choice.selected { border-color: var(--red); box-shadow: 0 0 0 2px rgba(231,71,47,.12); }
.fulfillment-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fulfillment-choice > span:nth-of-type(2) { min-width: 0; display: flex; flex-direction: column; }
.fulfillment-choice strong { color: var(--navy); font-size: .82rem; }
.fulfillment-choice small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.fulfillment-choice b { color: var(--red); font-size: .82rem; }
.fulfillment-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 1rem; font-weight: 900; }
.pickup-card, .shipping-card { margin: 12px 0 0; border-radius: 12px; background: #f3f0e9; border: 1px solid var(--line); }
.pickup-card { padding: 15px 16px; display: grid; grid-template-columns: 1fr auto; gap: 3px 18px; }
.pickup-card .pickup-label { grid-column: 1 / -1; margin-bottom: 4px; color: var(--red); font-size: .65rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.pickup-card strong { color: var(--navy); }
.pickup-card address { grid-row: span 2; color: var(--muted); font-size: .76rem; font-style: normal; line-height: 1.45; }
.pickup-card div { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: .72rem; text-align: right; }
.pickup-card a { margin-top: 4px; color: var(--red); font-weight: 850; }
.shipping-card { padding: 14px 16px; color: var(--muted); font-size: .76rem; }
.order-total { padding: 0 0 8px; }
.order-total > div { padding: 5px 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.order-total strong { color: var(--ink); }
.order-total .total-line { margin-top: 10px; padding: 16px 0 6px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.order-total .total-line strong { color: var(--navy); font-size: 1.65rem; }
.approval-row { margin: 10px 0 18px; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .77rem; line-height: 1.45; cursor: pointer; }
.approval-row input { flex: 0 0 auto; margin-top: 1px; }
.checkout-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }
.button { min-height: 52px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 999px; font-weight: 900; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { color: #fff; background: var(--red); box-shadow: 0 10px 22px rgba(231,71,47,.24); }
.button.primary:hover:not(:disabled) { background: var(--red-dark); }
.button.primary strong { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--navy); }
.button.light { background: #fff; color: var(--navy); }
.secure-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .71rem; }
.secure-note span { color: #39a46a; }
.setup-note, .form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .78rem; }
.setup-note { color: #6a4a00; background: #fff3cf; border: 1px solid #efcf79; }
.form-error { color: #8b2518; background: #fff0ed; border: 1px solid #f0b4a9; }

.product-details { width: min(calc(100% - 48px), var(--max)); margin: 0 auto clamp(78px, 9vw, 135px); padding: clamp(30px, 5vw, 62px); display: grid; grid-template-columns: minmax(0,.85fr) minmax(420px,1.15fr); gap: clamp(36px, 7vw, 100px); align-items: start; border-radius: 18px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.details-intro h2 { margin: 0; max-width: 620px; color: #fff; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.025em; }
.details-intro > p:last-child { margin: 22px 0 0; max-width: 620px; color: rgba(255,255,255,.68); }
.product-details .eyebrow { color: var(--gold); }
.detail-list { border-top: 1px solid rgba(255,255,255,.22); }
.detail-list details { border-bottom: 1px solid rgba(255,255,255,.22); }
.detail-list summary { padding: 20px 2px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; font-weight: 900; cursor: pointer; list-style: none; }
.detail-list summary::-webkit-details-marker { display: none; }
.detail-list summary b { color: var(--gold); font-size: 1.3rem; transition: transform .2s ease; }
.detail-list details[open] summary b { transform: rotate(45deg); }
.detail-list p { margin: -4px 38px 20px 2px; color: rgba(255,255,255,.7); font-size: .86rem; }

.confidence { width: min(calc(100% - 48px), var(--max)); margin: 0 auto clamp(78px, 10vw, 145px); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 7vw, 100px); }
.confidence h2, .cross-sell h2 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: .98; letter-spacing: -.045em; }
.confidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line); }
.confidence-grid article { min-height: 180px; padding: 25px; background: rgba(255,255,255,.68); }
.confidence-grid span { display: block; margin-bottom: 34px; color: var(--red); font-size: .72rem; font-weight: 950; }
.confidence-grid strong { color: var(--navy); font-size: 1.12rem; }
.confidence-grid p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.cross-sell { padding: clamp(50px, 7vw, 90px) max(24px, calc((100% - var(--max)) / 2)); display: flex; align-items: end; justify-content: space-between; gap: 40px; background: var(--navy); color: #fff; }
.cross-sell h2 { max-width: 950px; color: #fff; }
.cross-sell .eyebrow { color: var(--gold); }
.hat-footer { padding: 38px max(24px, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 30px; background: #0a1c2c; color: rgba(255,255,255,.74); }
.hat-footer img { width: 200px; padding: 8px; border-radius: 8px; background: #fff; }
.hat-footer p { margin: 0; font-size: .82rem; }
.hat-footer div { display: flex; gap: 18px; font-size: .78rem; font-weight: 800; }
.hat-footer a:hover { color: #fff; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .83rem; font-weight: 800; text-align: center; }

.success-page { min-height: 100vh; }
.success-shell { min-height: calc(100vh - 92px); padding: clamp(50px, 9vw, 120px) 24px; display: grid; place-items: center; }
.success-card { width: min(100%, 760px); padding: clamp(34px, 6vw, 70px); text-align: center; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.success-mark { width: 76px; height: 76px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 2.2rem; font-weight: 950; }
.success-mark.pending { background: var(--navy); }
.success-mark.pending span { animation: pulse 1.1s infinite alternate; }
.success-mark.paid { background: #2f9a61; }
.success-mark.error { background: var(--red); }
@keyframes pulse { to { opacity: .35; } }
.success-card h1 { margin: 0 auto 18px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.success-copy { max-width: 590px; margin: 0 auto 26px; color: var(--muted); font-size: 1.05rem; }
.success-summary { margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.success-summary div { padding: 13px 16px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); text-align: left; }
.success-summary div:last-child { border-bottom: 0; }
.success-summary dt { color: var(--muted); }
.success-summary dd { margin: 0; color: var(--navy); font-weight: 900; text-align: right; }
.success-actions { display: flex; justify-content: center; gap: 10px; }
.success-help { margin: 26px 0 0; color: var(--muted); font-size: .8rem; }
.success-help a { color: var(--red); font-weight: 850; }

@media (max-width: 1120px) {
  .intro { grid-template-columns: 1fr; }
  .intro-facts { max-width: 720px; }
  .product-details { grid-template-columns: 1fr; }
  .confidence { grid-template-columns: 1fr; }
  .hat-footer { grid-template-columns: 200px 1fr; }
  .hat-footer div { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .configurator { grid-template-columns: 1fr; max-width: 820px; }
  .preview-column { position: static; }
}
@media (max-width: 720px) {
  .service-strip { justify-content: flex-start; gap: 28px; overflow-x: auto; scrollbar-width: none; }
  .service-strip::-webkit-scrollbar { display: none; }
  .service-strip span + span::before { left: -15px; }
  .hat-header, .intro, .configurator, .confidence, .product-details { width: min(calc(100% - 28px), var(--max)); }
  .hat-header { min-height: 74px; }
  .hat-brand img { width: 165px; }
  .made-local { display: none; }
  .header-links { gap: 12px; font-size: .8rem; }
  .intro { padding-top: 48px; gap: 30px; }
  h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
  .intro-facts { grid-template-columns: 1fr 1fr; }
  .intro-facts div { min-height: 82px; }
  .intro-facts span { margin: 0; }
  .configurator { gap: 18px; }
  .preview-topline { padding: 17px; }
  .size-pill { font-size: .62rem; }
  .hat-stage { aspect-ratio: 1.25; }
  .patch-frame { top: 41.5%; }
  .patch-frame.shape-oval { width: 35%; }
  .patch-frame.shape-contour { width: 35%; }
  .patch-frame.shape-circle, .patch-frame.shape-rounded-square { width: 22%; }
  .drag-note { bottom: 6%; font-size: .59rem; }
  .proof-caption { padding: 13px 16px; }
  .production-note { margin-top: 12px; }
  .step, .checkout-block { padding: 22px 18px; }
  .color-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shape-options { grid-template-columns: 1fr; }
  .shape-choice { min-height: 72px; }
  .customer-grid { grid-template-columns: 1fr; }
  .notes-field { grid-column: auto; }
  .fulfillment-options { grid-template-columns: 1fr; }
  .pickup-card { grid-template-columns: 1fr; }
  .pickup-card address { grid-row: auto; }
  .pickup-card div { margin-top: 7px; align-items: flex-start; text-align: left; }
  .view-thumbnails { gap: 6px; padding: 8px; }
  .view-choice img { height: 50px; }
  .view-choice span { font-size: .58rem; }
  .checkout-actions { grid-template-columns: 1fr; }
  .product-details { padding: 30px 22px; gap: 30px; }
  .confidence-grid { grid-template-columns: 1fr; }
  .confidence-grid article { min-height: 145px; }
  .confidence-grid span { margin-bottom: 20px; }
  .cross-sell { align-items: flex-start; flex-direction: column; }
  .hat-footer { grid-template-columns: 1fr; }
  .hat-footer div { grid-column: auto; flex-direction: column; gap: 7px; }
  .success-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
