:root {
  --navy: #0f2535;
  --orange: #f07820;
  --orange-dim: #c4601a;
  --seafoam: #8ab0b8;
  --paper: #e8f0f0;
  --ink: #0f2535;
  --muted: #4b6070;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100dvh;
}

.store-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 1.25rem;
  height: 72px;
  background: var(--navy);
}
.store-nav a { color: var(--seafoam); text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.store-nav .brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.store-nav .brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.store-nav .links { display: flex; gap: 1rem; align-items: center; }

.store-shell { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.25rem 4.5rem; }
.eyebrow { color: var(--orange); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.85rem;
}
.lede { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 0.6rem; }
.price { font-weight: 800; font-size: 1.15rem; margin-bottom: 1.5rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 1.5rem; }
.store-card {
  display: block;
  background: #fff;
  border: 1px solid var(--seafoam);
  border-radius: 18px;
  padding: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(15, 37, 53, 0.08);
}
.store-card h2 { font-family: Fraunces, Georgia, serif; margin-bottom: 0.4rem; }
.store-card p { color: var(--muted); }
.store-card span { display: inline-block; margin-top: 0.9rem; color: var(--orange); font-weight: 800; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 1.25rem; }
.option-card {
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--seafoam);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  display: grid;
  gap: 4px;
}
.option-card.active { border: 2px solid var(--orange); background: #fff7f0; }

label.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  font: inherit;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--seafoam);
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input[type="range"] { accent-color: var(--orange); width: 100%; }

.customizer {
  background: #fff;
  border: 1px solid var(--seafoam);
  border-radius: 20px;
  padding: 1.15rem;
  margin: 1.25rem 0;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(15, 37, 53, 0.06);
}
.customizer-canvas-wrap { display: flex; justify-content: center; }
.customizer canvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  background: var(--paper);
  touch-action: none;
  box-shadow: 0 10px 30px rgba(15, 37, 53, 0.12);
}
.customizer canvas.is-tag { border-radius: 50%; max-width: 300px; }
.customizer img.tag-default-img.is-tag {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.customizer canvas.is-poster { border-radius: 16px; max-width: 420px; }
.customizer .hint { color: var(--muted); font-size: 0.82rem; font-weight: 500; line-height: 1.45; }

.tag-upload-panel,
.artwork-upload-panel {
  background: #fff;
  border: 1px solid var(--seafoam);
  border-radius: 20px;
  padding: 1.25rem 1.15rem;
  margin: 1.25rem 0;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(15, 37, 53, 0.06);
}
.tag-upload-panel h2,
.artwork-upload-panel h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.tag-upload-lede,
.artwork-upload-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.tag-upload-example,
.artwork-upload-example {
  margin: 0;
  text-align: center;
}
.tag-upload-example img,
.artwork-upload-example img {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(15, 37, 53, 0.14);
}
.artwork-upload-example--round {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 37, 53, 0.14);
}
.artwork-upload-example--round img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}
.tag-upload-example figcaption,
.artwork-upload-example figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.upload-field {
  display: grid;
  gap: 8px;
}
.upload-field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.upload-field-label .optional {
  font-weight: 500;
  color: var(--muted);
}
.upload-file-name {
  font-size: 0.82rem;
  color: var(--muted);
}
.tag-upload-panel .hint,
.artwork-upload-panel .hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.color-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 700; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--seafoam); cursor: pointer; padding: 0;
}
.swatch.orange { background: var(--orange); }
.swatch.white { background: #fff; }
.swatch.active { border-color: var(--navy); box-shadow: 0 0 0 2px var(--orange); }
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 1.5rem 0 0.5rem;
}
.example-grid figure { margin: 0; }
.example-grid img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 8px 20px rgba(15, 37, 53, 0.12);
}
.example-grid figure.is-round,
.example-grid .round-tag-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 37, 53, 0.22);
}
.example-grid figure.is-round img,
.example-grid .round-tag-frame img,
.example-grid img.is-round {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.example-grid figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 6px; text-align: center; }

.poster-catalog { margin: 1.25rem 0 1.75rem; }
.poster-catalog h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}
.poster-catalog .catalog-lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 640px;
}
.poster-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.poster-pick {
  display: grid;
  gap: 8px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--seafoam);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
}
.poster-pick.active {
  border: 2px solid var(--orange);
  background: #fff7f0;
}
.poster-pick img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #111;
  border-radius: 12px;
}
.poster-pick strong { font-size: 0.92rem; line-height: 1.3; }
.poster-pick span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.custom-divider {
  margin: 2rem 0 0.75rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}
@media (max-width: 560px) {
  .poster-catalog-grid { grid-template-columns: 1fr; }
  .poster-pick img { height: 260px; }
}
.upload-btn, .use-btn, .order-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.upload-btn { background: var(--seafoam); color: var(--navy); justify-self: start; }
.upload-btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--seafoam); justify-self: start; }
.use-btn, .order-btn { background: var(--orange); color: #fff; }
.use-btn:disabled, .order-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ok { color: #0b5a42; font-weight: 700; }
.err { color: #b42318; font-weight: 700; }

.banner {
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.banner.ok { background: #dcefe9; color: #0b5a42; }
.banner.warn { background: #fde7d8; color: #8a3b12; }

footer.store-foot {
  background: var(--navy);
  color: var(--seafoam);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
footer.store-foot a { color: var(--seafoam); }

@media (max-width: 720px) {
  .store-nav .links a:not(.brand) { display: none; }
}
