:root {
  --black: #0a0b0c;
  --ink: #17191a;
  --concrete: #d9ddda;
  --paper: #f5f6f3;
  --surface: #ffffff;
  --muted: #66706b;
  --line: #cbd1cd;
  --red: #d92332;
  --red-dark: #a91420;
  --yellow: #f5c842;
  --green: #17a56b;
  --blue: #1769e0;
  --shadow: 0 14px 34px rgba(9, 12, 10, 0.14);
}

@font-face {
  font-family: WzorAngularWeb;
  src: url("assets/fonts/WzorAngular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: WzorGothicWeb;
  src: url("assets/fonts/WzorGothic.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: WzorCrackedWeb;
  src: url("assets/fonts/WzorCracked.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: WzorVarsityWeb;
  src: url("assets/fonts/WzorVarsity.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: WzorBrushWeb;
  src: url("assets/fonts/WzorBrush.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(10, 11, 12, 0.025) 0 2px, transparent 2px 15px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.shop-header {
  min-height: 72px;
  border-bottom: 5px solid var(--red);
  background: var(--black);
  color: #fff;
  padding: 10px max(18px, calc((100% - 1400px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.size-notice { min-height: 42px; padding: 9px max(18px, calc((100% - 1400px) / 2)); background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; }
.size-notice strong { font-size: 14px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--yellow);
  background: var(--red);
  color: #fff;
  font-family: WzorAngularWeb, Impact, sans-serif;
  font-size: 27px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: WzorAngularWeb, Impact, sans-serif; font-size: 20px; letter-spacing: 0; }
.brand small { margin-top: 2px; color: #b9c1bd; font-size: 12px; font-weight: 750; }

.shop-nav { display: flex; align-items: center; gap: 4px; font-weight: 850; }
.shop-nav a { padding: 10px 12px; border-bottom: 2px solid transparent; }
.shop-nav a:hover { border-color: var(--yellow); color: var(--yellow); }
.header-action { border-left: 1px solid #414544; padding: 8px 0 8px 18px; color: var(--yellow); font-size: 13px; font-weight: 900; }
.header-action:hover { color: #fff; }

main { min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--red-dark); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; max-width: 21ch; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 45px; line-height: 1.06; letter-spacing: 0; }

.stadium-hero { position: relative; min-height: 390px; max-height: 500px; overflow: hidden; background: var(--black); color: #fff; }
.stadium-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(.44) saturate(.88); }
.stadium-hero > img.category-hero-image { object-fit: contain; object-position: 82% center; filter: brightness(.72) saturate(.9); opacity: .78; }
body[data-editor-theme="supporter-woman"] .stadium-hero { background: #251623; }
body[data-editor-theme="supporter-child"] .stadium-hero { background: #173042; }
.stadium-hero-content { position: relative; z-index: 1; width: min(1400px, calc(100% - 32px)); min-height: 390px; margin: 0 auto; padding: 42px 0 38px; display: grid; align-content: center; justify-items: start; }
.stadium-hero .eyebrow { color: var(--yellow); }
.stadium-hero h1 { max-width: 680px; color: #fff; text-wrap: balance; }
.stadium-hero-content > p:not(.eyebrow) { max-width: 660px; margin: 15px 0 0; color: #e1e5e2; font-size: 17px; font-weight: 650; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.hero-text-link { border-bottom: 2px solid var(--yellow); color: #fff; padding: 8px 0; font-weight: 850; }
.hero-text-link:hover { color: var(--yellow); }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; border-left: 4px solid var(--red); padding-left: 13px; }
.hero-highlights span { color: #d2d8d4; font-size: 13px; font-weight: 750; }
.hero-highlights strong { color: var(--yellow); font-size: 16px; }

.editor-intro { width: min(1400px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 17px; }
.editor-intro h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.editor-intro > p:last-child { max-width: 760px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; font-weight: 650; }

.editor-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 430px;
  gap: 18px;
  align-items: start;
}

.template-gallery {
  width: min(1400px, calc(100% - 32px));
  margin: -10px auto 36px;
}
.template-gallery[hidden] { display: none; }
.template-gallery-heading { margin-bottom: 12px; }
.template-gallery-heading h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.template-gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--red) #e4e7e4;
  scrollbar-width: thin;
}
.template-card {
  appearance: none;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(9,12,10,.1);
  text-align: left;
  scroll-snap-align: start;
}
.template-card:hover { border-color: var(--red); transform: translateY(-2px); }
.template-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.template-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid #d8ddd8;
  border-radius: 4px;
  background:
    linear-gradient(45deg, #e7eae7 25%, transparent 25%),
    linear-gradient(-45deg, #e7eae7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7eae7 75%),
    linear-gradient(-45deg, transparent 75%, #e7eae7 75%), #f5f6f4;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}
.template-preview-shirt,
.template-preview-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.template-preview-shirt { object-fit: contain; pointer-events: none; }
.template-preview-layer {
  left: var(--layer-x);
  top: var(--layer-y);
  right: auto;
  bottom: auto;
  width: var(--layer-width);
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--layer-rotation));
  transform-origin: center;
}
.template-preview-graphic { aspect-ratio: var(--layer-aspect-ratio, 1); object-fit: contain; filter: drop-shadow(0 5px 9px rgba(0,0,0,.3)); }
.template-preview-text {
  color: var(--layer-color);
  font-family: WzorAngularWeb, Impact, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 3px 8px rgba(0,0,0,.5);
}
.template-card-title { display: block; margin-top: 10px; font-weight: 950; text-align: center; }
.template-card-action { display: block; margin-top: 3px; color: var(--red-dark); font-size: 12px; font-weight: 900; text-align: center; }

.preview-panel, .tools-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.preview-panel { padding: 16px; }
.tools-panel { position: sticky; top: 12px; padding: 18px; }

.view-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.view-card {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f1f3f0;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}
.view-card:hover { border-color: var(--red); }
.view-card.is-active { border-color: var(--black); box-shadow: inset 0 -4px 0 var(--red); background: #fff; }
.view-card img { display: block; width: 100%; height: 120px; object-fit: contain; }
.view-card span { display: block; margin-top: 4px; font-weight: 900; text-align: center; }
.shirt-color-selector { grid-column: 1 / -1; display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; background: #f6f8f6; }
.shirt-color-selector[hidden] { display: none; }
.shirt-color-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.shirt-color-option { appearance: none; min-width: 0; min-height: 37px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 4px 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 900; }
.shirt-color-option:hover { border-color: var(--red); }
.shirt-color-option.is-active { border-color: var(--black); outline: 2px solid var(--yellow); }
.shirt-color-swatch { width: 17px; height: 17px; border: 1px solid rgba(8,9,10,.28); border-radius: 999px; box-shadow: inset 0 1px 3px rgba(255,255,255,.6); flex: 0 0 auto; }

.shirt-frame { margin: 0; }
.shirt-stage {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(45deg, #e7eae7 25%, transparent 25%),
    linear-gradient(-45deg, #e7eae7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7eae7 75%),
    linear-gradient(-45deg, transparent 75%, #e7eae7 75%), #f5f6f4;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}
.shirt-image, .layer-surface { position: absolute; inset: 0; width: 100%; height: 100%; }
.shirt-image { object-fit: contain; pointer-events: none; user-select: none; }
.layer-surface { z-index: 3; }
.shirt-caption { margin-top: 10px; color: var(--muted); font-weight: 900; text-align: center; }

.project-layer {
  position: absolute;
  min-width: 26px;
  min-height: 26px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform-origin: center;
}
.graphic-layer { aspect-ratio: 1; }
.colorized-graphic { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.graphic-filter-svg { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.text-layer { color: #fff; font-weight: 400; line-height: 1; letter-spacing: 0; text-align: center; white-space: nowrap; text-shadow: 0 4px 10px rgba(0,0,0,.45); }
.text-layer.is-curved { aspect-ratio: 2 / 1; text-shadow: none; }
.text-curve-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); pointer-events: none; }
.project-layer.is-selected { border-color: var(--yellow); outline: 2px solid rgba(8, 9, 10, 0.92); outline-offset: 3px; }
.project-layer.is-dragging { cursor: grabbing; }
.project-layer.is-inline-source { opacity: 0; pointer-events: none; }
.inline-text-editor {
  position: absolute;
  z-index: 999;
  min-width: 26px;
  min-height: 34px;
  border: 1px dashed var(--yellow);
  outline: 2px solid rgba(8, 9, 10, 0.92);
  outline-offset: 3px;
  background: rgba(0, 0, 0, 0.08);
  padding: 0;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 4px 10px rgba(0,0,0,.45);
  transform-origin: center;
  box-shadow: none;
}
.inline-text-editor::selection { background: rgba(245, 200, 66, 0.45); }

.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: 27px; line-height: 1.1; }
.tool-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 15px; }
.tool-tab { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer; font-weight: 900; }
.tool-tab.is-active { border-color: var(--black); background: var(--black); color: #fff; box-shadow: inset 0 -4px 0 var(--red); }
.tool-panel { display: none; }
.tool-panel.is-active { display: block; }

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field-label { color: #4e5953; font-size: 13px; font-weight: 900; }
.select, .input, .range { width: 100%; }
.select, .input { min-height: 43px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 0 11px; }
.select:focus, .input:focus { outline: 2px solid var(--yellow); border-color: var(--black); }
.color-input { padding: 4px; }
.two-fields { display: grid; grid-template-columns: minmax(0,1fr) 82px; gap: 9px; }

.supporter-quick-tools {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 5px;
  background: #f6f8f6;
}
.supporter-quick-tools[hidden] { display: none; }
.supporter-quick-tools .field:last-of-type { margin-bottom: 4px; }
.custom-upload-field small { color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.35; }
.file-input { min-height: 0; height: auto; padding: 9px 11px; }

.graphics-carousel-heading { min-height: 36px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carousel-buttons { display: flex; gap: 5px; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 18px; font-weight: 950; }
.icon-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.design-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 27px) / 4); gap: 9px; margin-bottom: 12px; padding: 2px 2px 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-color: var(--red) #e4e7e4; scrollbar-width: thin; }
.design-button { appearance: none; min-width: 0; height: 112px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 5px; cursor: pointer; display: grid; grid-template-rows: 70px 28px; gap: 5px; align-content: start; scroll-snap-align: start; }
.design-button:hover { border-color: var(--red); }
.design-button.is-selected { border-color: var(--yellow); outline: 2px solid var(--black); background: #f0f2ef; }
.design-button img { width: 100%; height: 70px; object-fit: contain; background: var(--black); padding: 5px; }
.design-button span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; font-weight: 900; line-height: 1.25; }

.fan-font-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 164px; gap: 7px; margin: 7px 0 14px; padding: 3px 3px 8px; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--red) #e4e7e4; }
.fan-font-option { min-width: 0; min-height: 72px; border: 1px solid #343837; border-radius: 4px; background: var(--black); color: #fff; padding: 8px 5px; cursor: pointer; display: grid; place-items: center; gap: 5px; scroll-snap-align: start; }
.fan-font-option strong { max-width: 100%; font-size: 16px; line-height: 1; white-space: nowrap; }
.fan-font-option span { color: #aeb6b2; font-family: Inter, sans-serif; font-size: 9px; font-weight: 850; }
.fan-font-option.is-active { border-color: var(--yellow); outline: 2px solid var(--yellow); }
.selected-font-grid { grid-auto-columns: 145px; }
.compact-font-option { min-height: 64px; }

.btn { appearance: none; min-height: 43px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.btn:hover:not(:disabled) { border-color: var(--red); }
.btn-primary { border-color: var(--red-dark); background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); }
.btn-block { width: 100%; }
.export-btn { border-color: var(--black); background: var(--black); color: var(--yellow); }
.danger-btn { color: var(--red-dark); }

.layer-list { display: grid; gap: 7px; margin-bottom: 14px; }
.layer-row { min-height: 42px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 7px 9px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.layer-row span { font-weight: 900; }
.layer-row small { color: var(--muted); font-weight: 850; }
.layer-row.is-active { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); background: #fff5f5; }
.empty-state { margin: 0; color: var(--muted); font-weight: 750; line-height: 1.45; }

.selected-panel { margin: 16px 0; padding: 14px 0; border-top: 3px solid var(--black); border-bottom: 1px solid var(--line); }
.selected-title { margin-bottom: 13px; font-weight: 950; }
.text-edit-panel { display: none; }
.text-edit-panel.is-visible { display: block; }
.range-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 900; }
.range-meta output { color: var(--red-dark); }
.color-palette { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.color-input { display: none; }
.graphic-color-toggle { display: none; align-items: center; gap: 11px; margin: 13px 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.graphic-color-toggle.is-visible { display: none; }
.graphic-color-toggle input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--red); }
.graphic-color-toggle span { display: grid; gap: 2px; }
.graphic-color-toggle strong { font-size: 14px; }
.graphic-color-toggle small { color: var(--muted); font-size: 11px; line-height: 1.35; }
#layerColorControls.is-hidden { display: none; }
.color-swatch { width: 100%; aspect-ratio: 1; border: 2px solid rgba(0,0,0,.17); border-radius: 4px; cursor: pointer; }
.color-swatch.is-active { outline: 3px solid var(--red); outline-offset: 1px; }
.control-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.product-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.shop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.export-status { min-height: 20px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.export-status.is-error { color: var(--red-dark); }
.export-status.is-success { color: #087246; }
.project-progress { margin-top: 12px; border: 1px solid #b8c1bc; border-radius: 4px; background: #f4f6f4; padding: 12px; }
.project-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.project-progress-heading strong { color: #087246; font-size: 20px; }
.project-progress-heading span { color: #46514b; font-size: 12px; font-weight: 850; text-align: right; }
.project-progress progress { display: block; width: 100%; height: 15px; border: 0; border-radius: 3px; overflow: hidden; accent-color: #20a85a; }
.project-progress progress::-webkit-progress-bar { background: #dce2de; }
.project-progress progress::-webkit-progress-value { background: #20a85a; transition: width .25s ease; }
.project-progress progress::-moz-progress-bar { background: #20a85a; }
.project-progress-time { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.utility-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 4px; }
.text-btn { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 5px 0; cursor: pointer; font-size: 12px; font-weight: 850; text-decoration: underline; }
.danger-text { color: var(--red-dark); }

.shop-band { margin: 0 0 40px; padding: 20px max(18px,calc((100% - 1400px)/2)); background: var(--black); color: #fff; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; }
.shop-band > div { min-height: 72px; border-left: 4px solid var(--red); padding: 10px 15px; background: #151718; display: grid; align-content: center; }
.shop-band strong { color: var(--yellow); font-size: 18px; }
.shop-band span { margin-top: 3px; color: #bac1bd; font-size: 13px; font-weight: 700; }

.product-story { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 54px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 42px; align-items: center; }
.product-story-media { min-width: 0; }
.product-story-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-left: 7px solid var(--red); }
.product-story-copy h2, .content-band h2, .order-steps h2, .project-test-section h2, .faq-section h2 { margin: 0; font-size: 32px; line-height: 1.15; text-wrap: balance; }
.product-story-copy > p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); font-weight: 650; line-height: 1.65; }
.feature-list { margin: 18px 0 21px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; list-style: none; }
.feature-list li { position: relative; padding-left: 20px; color: #3f4944; font-size: 14px; font-weight: 800; line-height: 1.4; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--red); box-shadow: 4px 4px 0 var(--yellow); }

.content-band { padding: 46px max(18px,calc((100% - 1200px)/2)) 50px; background: var(--black); color: #fff; }
.content-band-heading { max-width: 730px; }
.content-band .eyebrow { color: var(--yellow); }
.content-band h2 { color: #fff; }
.content-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 27px; border-top: 1px solid #404543; border-bottom: 1px solid #404543; }
.content-columns article { min-width: 0; padding: 23px 25px 24px 0; }
.content-columns article + article { border-left: 1px solid #404543; padding-left: 25px; }
.content-columns h3 { margin: 0; color: var(--yellow); font-size: 20px; }
.content-columns p { margin: 10px 0 0; color: #bdc5c0; line-height: 1.65; }

.order-steps { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 56px; display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 52px; align-items: start; }
.order-steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.order-steps li { border-top: 1px solid var(--line); padding: 17px 0; display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.order-steps li > span { display: grid; width: 32px; height: 32px; place-items: center; background: var(--red); color: #fff; font-weight: 950; }
.order-steps strong { display: block; font-size: 16px; }
.order-steps li p { margin: 5px 0 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.5; }

.project-test-section { padding: 48px max(18px,calc((100% - 1000px)/2)); background: #e8ece8; display: grid; grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr); gap: 42px; align-items: center; }
.project-test-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-weight: 650; line-height: 1.65; }
.project-test-panel { border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 5px; background: #fff; padding: 20px; box-shadow: var(--shadow); }
.project-test-summary { margin: 2px 0 15px; border-left: 4px solid var(--yellow); background: #f0f2ef; padding: 12px; color: #3e4943; font-size: 13px; font-weight: 850; line-height: 1.45; }
.test-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.5; }
.textarea { min-height: 120px; padding-top: 11px; resize: vertical; font: inherit; line-height: 1.45; }
.approve-btn { min-height: 54px; border-color: #20a85a; background: #4fd669; color: #fff; font-size: 18px; box-shadow: 0 10px 25px rgba(44, 194, 84, .2); }
.approve-btn:hover:not(:disabled) { border-color: #148a43; background: #35be54; }
.buyer-form .field-label { font-size: 14px; }
.graphics-empty { grid-column: 1 / -1; width: min(330px, 80vw); padding: 18px; border: 1px dashed var(--line); background: #f5f6f3; }

.faq-section { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 10px 0 60px; display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 42px; align-items: start; }
.faq-list { border-top: 2px solid var(--black); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 18px 38px 18px 0; cursor: pointer; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 14px; color: var(--red-dark); font-size: 24px; font-weight: 900; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -3px 38px 18px 0; color: var(--muted); line-height: 1.6; }

.shop-footer { border-top: 5px solid var(--red); background: var(--black); color: #fff; padding: 24px max(18px,calc((100% - 1400px)/2)); display: flex; justify-content: space-between; gap: 22px; }
.shop-footer strong, .shop-footer span { display: block; }
.shop-footer strong { font-family: WzorAngularWeb, Impact, sans-serif; font-size: 21px; }
.shop-footer span { margin-top: 4px; color: #aeb6b2; font-size: 12px; }
.shop-footer > div:last-child { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #d8ddda; font-weight: 750; }
.shop-footer a:hover { color: var(--yellow); }

.family-story { grid-template-columns: 1fr; width: min(1000px, calc(100% - 32px)); gap: 22px; padding-top: 54px; }
.family-story .product-story-media img { aspect-ratio: auto; object-fit: contain; border-left: 0; border-bottom: 7px solid var(--red); }
.family-story .product-story-copy { max-width: 880px; }

.catalog-page { background: linear-gradient(180deg, #08090a 0 560px, var(--paper) 560px 100%); }
.catalog-page .shop-header { position: relative; z-index: 3; background: rgba(8, 9, 10, .96); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.editor-catalog { width: 100%; margin: 0; padding: 0 0 64px; }
.catalog-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 28%, rgba(217, 35, 50, .34), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(245, 200, 66, .22), transparent 25%),
    linear-gradient(90deg, rgba(8, 9, 10, .95), rgba(8, 9, 10, .72) 44%, rgba(8, 9, 10, .92)),
    url("assets/stadium-hero.webp") center / cover no-repeat;
  color: #fff;
}
.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .45) 0 1px, transparent 2px) 0 0 / 31px 23px,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 24px);
  opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 82%, transparent 100%);
}
.catalog-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% -12%;
  z-index: -1;
  height: 54%;
  background:
    radial-gradient(ellipse at 22% 100%, rgba(217, 35, 50, .34), transparent 43%),
    radial-gradient(ellipse at 72% 100%, rgba(245, 200, 66, .22), transparent 44%),
    linear-gradient(0deg, rgba(0, 0, 0, .74), transparent 70%);
  filter: blur(1px);
}
.catalog-hero-inner { width: min(1160px, calc(100% - 32px)); min-height: 560px; margin: 0 auto; padding: 70px 0 62px; display: grid; align-content: center; gap: 28px; }
.catalog-heading { max-width: 840px; }
.catalog-heading .eyebrow { color: var(--yellow); }
.catalog-heading h1 { max-width: 760px; color: #fff; font-size: clamp(42px, 6vw, 72px); text-wrap: balance; }
.catalog-heading > p:last-child { max-width: 760px; color: #dce3df; font-size: 18px; font-weight: 750; line-height: 1.62; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.catalog-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-bottom: 5px solid var(--yellow);
  border-radius: 6px;
  background-color: #111;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 58% auto;
  padding: 24px 48% 24px 22px;
  display: grid;
  align-content: end;
  gap: 8px;
  box-shadow: 0 18px 34px rgba(0,0,0,.34);
  color: #fff;
  transform: translateY(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,10,.98) 0 45%, rgba(8,9,10,.25) 78%),
    radial-gradient(circle at 82% 72%, rgba(217,35,50,0), transparent 40%);
  pointer-events: none;
  transition: background .18s ease;
}
.catalog-card::after {
  content: "";
  position: absolute;
  top: -26%;
  right: -20%;
  width: 58%;
  height: 142%;
  background:
    radial-gradient(ellipse at 42% 18%, rgba(236, 239, 234, .34), transparent 34%),
    radial-gradient(ellipse at 36% 38%, rgba(160, 168, 164, .24), transparent 44%),
    radial-gradient(ellipse at 62% 70%, rgba(217,35,50,.42), transparent 56%);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity .18s ease, transform .18s ease;
}
.catalog-card > :not(.flare-scene) { position: relative; z-index: 1; }
.flare-scene {
  position: absolute;
  right: 7px;
  bottom: -18px;
  z-index: 0;
  width: 132px;
  height: 236px;
  background: url("assets/raca-kibic.png") center bottom / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: translate(24px, 16px) rotate(-4deg) scale(.88);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,.62));
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}
.flare-scene::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 8%, rgba(255,215,106,.88) 13% 18%, rgba(217,35,50,.62) 30%, rgba(217,35,50,.22) 54%, transparent 74%);
  box-shadow: 0 0 22px rgba(255, 255, 255, .72), 0 0 42px rgba(217,35,50,.95), 0 0 84px rgba(217,35,50,.48);
  filter: blur(.8px);
  opacity: 0;
  transform: scale(.58);
  transition: opacity .18s ease, transform .18s ease;
}
.flare-scene::after {
  content: "";
  position: absolute;
  left: 8px;
  top: -10px;
  width: 112px;
  height: 98px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 28% 60%, rgba(255,255,255,.72), transparent 38%),
    radial-gradient(ellipse at 46% 42%, rgba(217,35,50,.34), transparent 46%),
    radial-gradient(ellipse at 68% 28%, rgba(189,198,194,.4), transparent 48%);
  filter: blur(3px);
  opacity: 0;
  transform: translate(6px, 8px) rotate(-10deg) scale(.8);
  transition: opacity .18s ease, transform .18s ease;
}
.flare-scene b {
  position: absolute;
  left: 16px;
  top: -4px;
  width: 108px;
  height: 88px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 18% 68%, rgba(235, 239, 236, .64), transparent 40%),
    radial-gradient(ellipse at 46% 48%, rgba(170, 180, 175, .46), transparent 52%),
    radial-gradient(ellipse at 78% 28%, rgba(235, 239, 236, .28), transparent 48%);
  filter: blur(4px);
  opacity: 0;
  transform: translate(0, 0) rotate(-12deg) scale(.86);
}
.catalog-card:nth-child(1) { background-image: url("assets/stadium-hero.webp"); }
.catalog-card:nth-child(2) { background-image: url("assets/stadium-family.webp"); }
.catalog-card:nth-child(3) { background-image: url("assets/stadium-family-print.webp"); }
.catalog-card:hover, .catalog-card:focus-visible { border-color: var(--red); box-shadow: 0 22px 42px rgba(0,0,0,.44), 0 0 38px rgba(217,35,50,.22); transform: translateY(-3px); }
.catalog-card:hover::before, .catalog-card:focus-visible::before { background: linear-gradient(90deg, rgba(8,9,10,.98) 0 42%, rgba(8,9,10,.36) 72%), radial-gradient(circle at 82% 72%, rgba(217,35,50,.42), transparent 42%); }
.catalog-card:hover::after, .catalog-card:focus-visible::after { opacity: 1; transform: translateX(0); }
.catalog-card:hover .flare-scene, .catalog-card:focus-visible .flare-scene { opacity: .96; transform: translate(0, 0) rotate(-2deg) scale(1); filter: drop-shadow(0 18px 18px rgba(0,0,0,.58)) drop-shadow(0 0 18px rgba(217,35,50,.34)); }
.catalog-card:hover .flare-scene::before, .catalog-card:focus-visible .flare-scene::before { opacity: 1; transform: scale(1); animation: flarePulse .95s ease-in-out infinite; }
.catalog-card:hover .flare-scene::after, .catalog-card:focus-visible .flare-scene::after { opacity: .9; transform: translate(0, 0) rotate(-10deg) scale(1); animation: smokeGlow 1.4s ease-in-out infinite; }
.catalog-card:hover .flare-scene b, .catalog-card:focus-visible .flare-scene b { animation: smokeDrift 1.8s ease-in-out infinite; }
.catalog-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.catalog-card.is-ready { border-left-color: var(--red); }
.catalog-card strong { font-size: 22px; }
.catalog-card span { color: #d9dfdb; font-size: 13px; font-weight: 750; line-height: 1.4; }
.home-template-gallery {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background: rgba(8, 9, 10, .82);
  padding: 18px;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}
.home-template-heading { display: grid; gap: 5px; }
.home-template-heading .eyebrow { color: var(--yellow); margin-bottom: 0; }
.home-template-heading h2 { margin: 0; color: #fff; font-size: 28px; line-height: 1.08; }
.home-template-heading p { max-width: 560px; margin: 0; color: #d9dfdb; font-size: 14px; font-weight: 750; line-height: 1.45; }
.home-template-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 190px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--red) rgba(255,255,255,.2);
  scrollbar-width: thin;
  padding: 2px 2px 12px;
}
.home-template-card {
  display: grid;
  place-items: center;
  min-height: 206px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-bottom: 4px solid var(--yellow);
  border-radius: 6px;
  background: #050606;
  box-shadow: 0 10px 20px rgba(0,0,0,.34);
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-template-card:hover,
.home-template-card:focus-visible {
  border-color: var(--red);
  box-shadow: 0 16px 28px rgba(0,0,0,.44), 0 0 28px rgba(217,35,50,.18);
  transform: translateY(-2px);
}
.home-template-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.home-template-card img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
  padding: 8px;
}
.catalog-upload-note { max-width: 760px; margin: 0; border-left: 5px solid var(--red); background: rgba(8, 9, 10, .74); padding: 13px 15px; color: #eef2ef; font-size: 14px; font-weight: 800; line-height: 1.5; box-shadow: 0 14px 28px rgba(0,0,0,.18); }
.catalog-seo { width: min(1160px, calc(100% - 32px)); margin: 34px auto 0; border-top: 4px solid var(--black); padding-top: 28px; }
.catalog-seo h2 { margin: 0; font-size: 32px; line-height: 1.15; text-wrap: balance; }
.catalog-seo > p:not(.eyebrow) { max-width: 900px; margin: 13px 0 0; color: var(--muted); font-weight: 650; line-height: 1.65; }
.catalog-copy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; margin-top: 20px; }
.catalog-copy-grid article { border: 1px solid var(--line); border-left: 5px solid var(--red); background: #fff; padding: 18px; box-shadow: 0 8px 18px rgba(9,12,10,.08); }
.catalog-copy-grid h3 { margin: 0; font-size: 19px; }
.catalog-copy-grid p { margin: 9px 0 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.55; }
.catalog-faq { width: min(1160px, calc(100% - 32px)); margin-top: 36px; padding-bottom: 0; }

@keyframes flarePulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255,255,255,.72), 0 0 42px rgba(217,35,50,.95), 0 0 84px rgba(217,35,50,.48); }
  50% { box-shadow: 0 0 28px rgba(255,255,255,.9), 0 0 56px rgba(245,200,66,.58), 0 0 104px rgba(217,35,50,.72); }
}

@keyframes smokeGlow {
  0%, 100% { opacity: .72; transform: translate(0, 0) rotate(-10deg) scale(1); }
  50% { opacity: .96; transform: translate(-4px, -5px) rotate(-14deg) scale(1.06); }
}

@keyframes smokeDrift {
  0%, 100% { opacity: .48; transform: translate(0, 0) rotate(-12deg) scale(.92); }
  50% { opacity: .82; transform: translate(-11px, -9px) rotate(-16deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card, .catalog-card::before, .catalog-card::after, .flare-scene { transition: none; }
  .catalog-card:hover .flare-scene::before, .catalog-card:focus-visible .flare-scene::before,
  .catalog-card:hover .flare-scene::after, .catalog-card:focus-visible .flare-scene::after,
  .catalog-card:hover .flare-scene b, .catalog-card:focus-visible .flare-scene b { animation: none; }
}

@media (max-width: 1050px) {
  .shop-nav { display: none; }
  .editor-shell { grid-template-columns: 1fr; }
  .template-gallery-grid { grid-auto-columns: calc((100% - 24px) / 3); }
  .tools-panel { position: static; }
  .product-story { grid-template-columns: 1fr; gap: 26px; }
  .product-story-copy { max-width: 780px; }
  .catalog-copy-grid { grid-template-columns: 1fr; }
  .order-steps { grid-template-columns: 1fr; gap: 26px; }
  .project-test-section { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .shop-header { align-items: flex-start; }
  .brand small { display: none; }
  .header-action { display: none; }
  .size-notice { display: grid; gap: 1px; padding: 8px 12px; line-height: 1.25; }
  .stadium-hero, .stadium-hero-content { min-height: 480px; }
  .stadium-hero > img { object-position: 58% center; }
  .stadium-hero-content { width: min(100% - 24px,1400px); padding: 32px 0; }
  h1 { font-size: 34px; }
  .stadium-hero-content > p:not(.eyebrow) { font-size: 15px; }
  .hero-highlights { display: grid; gap: 7px; }
  .editor-shell, .editor-intro { width: min(100% - 12px,1400px); }
  .editor-shell { display: block; margin-bottom: 20px; }
  .template-gallery { width: min(100% - 12px,1400px); margin: 0 auto 24px; }
  .template-gallery-grid { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .template-card { padding: 8px; }
  .template-card-title { margin-top: 7px; font-size: 12px; }
  .template-card-action { font-size: 11px; }
  .preview-panel { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 7px; max-height: 42vh; margin-bottom: 8px; padding: 7px; overflow: hidden; border-color: var(--black); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
  .tools-panel { padding: 12px; }
  .view-switch { grid-template-columns: 1fr; gap: 5px; margin: 0; align-content: start; }
  .view-card { padding: 3px; }
  .view-card img { height: 43px; }
  .view-card span { margin-top: 1px; font-size: 10px; }
  .shirt-color-selector { gap: 4px; padding: 5px; }
  .shirt-color-selector .field-label { font-size: 10px; text-align: center; }
  .shirt-color-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .shirt-color-option { min-height: 25px; padding: 2px; }
  .shirt-color-option span:last-child { display: none; }
  .shirt-color-swatch { width: 16px; height: 16px; }
  .shirt-frame { min-width: 0; }
  .shirt-stage { width: min(100%, calc(39vh * .8)); max-height: 37vh; }
  .shirt-caption { margin-top: 2px; font-size: 11px; }
  .panel-heading { margin-bottom: 10px; }
  .panel-heading h2 { font-size: 23px; }
  .tool-tabs { gap: 5px; }
  .two-fields, .product-options, .shop-actions { grid-template-columns: 1fr; }
  .color-field { max-width: 100%; }
  .design-grid { grid-auto-columns: calc((100% - 21px) / 4); gap: 7px; }
  .design-button { height: 102px; grid-template-rows: 62px 26px; }
  .design-button img { height: 62px; }
  .shop-band { grid-template-columns: 1fr; }
  .product-story { width: min(100% - 20px,1200px); padding-top: 24px; }
  .product-story-copy h2, .content-band h2, .order-steps h2, .project-test-section h2, .faq-section h2 { font-size: 27px; }
  .feature-list, .content-columns, .order-steps ol { grid-template-columns: 1fr; }
  .content-columns article { padding: 20px 0; }
  .content-columns article + article { border-top: 1px solid #404543; border-left: 0; padding-left: 0; }
  .order-steps { width: min(100% - 20px,1200px); padding: 38px 0; }
  .project-test-section { padding: 38px 10px; }
  .project-test-panel { padding: 14px; }
  .fan-font-grid { grid-auto-columns: 148px; }
  .selected-panel { margin-top: 12px; padding-top: 11px; }
  .field { margin-bottom: 10px; }
  .range { min-height: 38px; width: 100%; }
  .selected-panel .field-label, .selected-panel .range-meta { font-size: 12px; }
  .selected-panel input[type="text"] { min-height: 44px; }
  .faq-section { width: min(100% - 20px,1000px); }
  .shop-footer { display: grid; }
  .catalog-hero-inner { width: min(100% - 20px,1160px); min-height: auto; padding: 42px 0 36px; gap: 18px; }
  .catalog-heading h1 { font-size: 36px; }
  .catalog-heading > p:last-child { font-size: 15px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 164px; padding: 20px 40% 20px 18px; background-size: 64% auto; }
  .flare-scene { right: 4px; bottom: -18px; width: 104px; height: 184px; transform: translate(16px, 12px) rotate(-4deg) scale(.84); }
  .flare-scene::before { left: 20px; top: 17px; width: 34px; height: 34px; }
  .flare-scene::after { left: 2px; top: -7px; width: 90px; height: 78px; }
  .flare-scene b { left: 10px; top: -2px; width: 86px; height: 72px; }
  .home-template-gallery { padding: 13px; gap: 11px; }
  .home-template-heading h2 { font-size: 24px; }
  .home-template-heading p { font-size: 13px; }
  .home-template-strip { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .home-template-card { min-height: 176px; }
  .home-template-card img { max-height: 196px; padding: 6px; }
  .catalog-upload-note { font-size: 13px; padding: 11px 12px; }
  .catalog-seo, .catalog-faq { width: min(100% - 20px,1160px); }
}

@media (max-width: 700px) and (max-height: 720px) {
  .preview-panel { max-height: 35vh; }
  .shirt-stage { width: min(100%, calc(32vh * .8)); max-height: 30vh; }
}
