/* CSCentron Rubber Stamp Business — workshop + family */
:root {
  --cherry: #c41e3a;
  --cherry-deep: #9b1830;
  --royal: #1b3a6b;
  --royal-deep: #122847;
  --mint: #3eaa86;
  --mint-soft: #d7f1e6;
  --orange: #e07a3d;
  --orange-soft: #f8e0cc;
  --purple: #6b4c9a;
  --purple-soft: #e8dff3;
  --ink: #1c1916;
  --ink-muted: #5a534c;
  --paper: #f7f1e7;
  --paper-2: #efe6d6;
  --white: #fffdf8;
  --line: #d9cdb8;
  --stamp: #141414;
  --shadow: 0 14px 40px rgba(28, 25, 22, 0.1);
  --radius: 18px;
  --header-h: 4.5rem;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 30, 58, 0.06), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(27, 58, 107, 0.07), transparent 26%),
    linear-gradient(180deg, var(--paper) 0%, #f3eadc 100%);
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cherry);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0.55rem 1.05rem;
  white-space: nowrap;
  min-height: 2.6rem;
}

.nav-list > li > a:hover,
.nav-list > li > button.nav-parent:hover,
.nav-list > li:focus-within > button.nav-parent,
.nav-list > li.is-open > button.nav-parent {
  background: var(--paper-2);
  color: var(--royal-deep);
}

.caret {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 14.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.16s ease;
  z-index: 20;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--mint-soft);
  color: var(--royal-deep);
}

.nav-cta {
  background: var(--cherry) !important;
  color: var(--white) !important;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: var(--cherry-deep) !important;
}

.hero {
  padding: 3.4rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #8a4318;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.05rem, 6vw, 3.6rem);
  overflow-wrap: break-word;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.heritage-line {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  min-height: 2.75rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--cherry);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cherry-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--royal);
  color: var(--royal);
}

.btn-secondary:hover {
  background: var(--royal);
  color: var(--white);
}

.hero-stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stamp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.stamp-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink-muted);
}

.stamp-face {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #f4f4f4 0 2px, #fff 2px 7px);
  border: 1px dashed #bbb;
  display: grid;
  place-items: center;
  padding: 5%;
  overflow: hidden;
}

.stamp-face img,
.stamp-face svg,
.stamp-preview {
  width: 100%;
  height: 100%;
}

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: rgba(255, 253, 248, 0.72);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--cherry);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-grid,
.kit-grid,
.step-grid,
.ink-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.kit-grid {
  grid-template-columns: repeat(2, 1fr);
}

.step-grid {
  grid-template-columns: repeat(5, 1fr);
}

.ink-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.kit,
.step,
.ink,
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.card h3,
.kit h3,
.ink h3 {
  color: var(--royal-deep);
}

.price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cherry-deep);
  margin: 0.35rem 0;
}

.muted,
.note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip.mint { background: var(--mint-soft); color: #1d6b52; }
.chip.orange { background: var(--orange-soft); color: #8a4318; }
.chip.blue { background: #d8e4f5; color: var(--royal); }

.kit {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 1rem;
  align-items: center;
}

.step {
  text-align: left;
}

.step-num {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--royal);
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tr:nth-child(even) td {
  background: #fbf7ef;
}

.gst-banner,
.callout {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  border-left: 5px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 12px 12px 0;
}

.callout.mint {
  border-left-color: var(--mint);
  background: var(--mint-soft);
}

.callout.alert {
  border-left-color: var(--cherry);
  background: #f8d7dc;
}

.page-hero {
  padding: 2.6rem 0 1.2rem;
}

.shop-page .page-hero {
  padding: 1rem 0 0.15rem;
}

.shop-page .page-hero h1 {
  font-size: 1.7rem;
  max-width: none;
}

.shop-page .page-hero .lede {
  display: none;
}

.shop-page .section {
  padding: 0.7rem 0 3rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 0.75rem 0.8rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.pay-actions {
  display: grid;
  gap: 0.65rem;
}

.pay-actions .btn {
  width: 100%;
}

.pay-error {
  margin: 0;
  color: var(--cherry-deep);
  font-weight: 700;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 1.6rem;
  background: var(--royal-deep);
  color: #e8e2d6;
}

.site-footer a {
  color: #f3c9a4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.tiny {
  font-size: 0.85rem;
  color: #c9c0b2;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.theme-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.theme {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: center;
}

.theme p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.audience li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.not-found {
  text-align: center;
  padding: 5rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .card-grid,
  .kit-grid,
  .ink-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-grid,
  .theme-row {
    grid-template-columns: 1fr 1fr;
  }

  .kit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.5rem 0.85rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1.1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-list > li > a,
  .nav-list > li > button.nav-parent {
    width: 100%;
    white-space: normal;
    padding: 0.85rem 1rem;
    min-height: 2.85rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: var(--paper);
    margin-top: 0.25rem;
  }

  .has-dropdown.is-open > .dropdown {
    display: block;
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .header-end {
    gap: 0.7rem;
  }
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  min-width: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--white);
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.88rem;
}

.cart-link-label {
  white-space: nowrap;
}

.cart-link:hover {
  color: var(--royal-deep);
  background: var(--paper-2);
}

.cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--cherry);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cart-count[hidden] {
  display: none;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  min-width: 0;
}

.chooser-card {
  display: grid;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.chooser-card:hover {
  border-color: var(--royal);
}

.chooser-card .stamp-face {
  width: 8.4rem;
}

.chooser-card h2 {
  margin: 0;
  font-size: 1.55rem;
}

.chooser-card .btn {
  justify-self: start;
  pointer-events: none;
}

.shop-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: baseline;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.shop-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.product > div {
  min-width: 0;
}

.product .stamp-face {
  width: 100%;
  max-width: 16rem;
}

.product .btn {
  max-width: 100%;
}

.product label {
  margin-top: 0.55rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.check-row input {
  width: auto;
  margin-top: 0.2rem;
}

.shop-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shop-toast p {
  margin: 0;
}

.shop-toast a {
  color: #f3c9a4;
  font-weight: 700;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.35);
  z-index: 50;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 55;
  width: min(26rem, 100%);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-close,
.text-btn {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--royal);
  cursor: pointer;
  padding: 0.25rem 0;
}

.cart-drawer-body,
#cart-page {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.line-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.8rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.line-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.line-art {
  padding: 8%;
}

.line-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.qty-label input {
  width: 4rem;
  padding: 0.35rem 0.45rem;
  margin-left: 0.35rem;
}

.line-price {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.cart-totals,
.order-print {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.empty-cart {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}

.tiny-line {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.order-lines {
  padding-left: 1.1rem;
}

.order-print {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.5;
}

.brand-stamp {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

@media (max-width: 980px) {
  .shop-grid,
  .product-grid,
  .chooser-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .chooser-card .stamp-face {
    width: min(9.5rem, 56vw);
    max-width: 9.5rem;
    margin-inline: auto;
  }

  .product .stamp-face {
    width: min(18rem, 86vw);
    max-width: 18rem;
    margin-inline: auto;
  }

  .product .btn {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .header-end {
    margin-left: auto;
  }

  .track-grid,
  .bundle-preview,
  .configure-stage,
  .configure-compose {
    grid-template-columns: 1fr;
  }

  .impression-side {
    position: static;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .choice-card {
    padding: 0.8rem;
  }

  .stamper-option {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .track-card .btn,
  .form .btn,
  .configure-form .btn {
    width: 100%;
  }

  .hero {
    padding: 2rem 0 1.6rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 0.75rem;
  }

  .step-grid,
  .theme-row,
  .hero-stamps {
    grid-template-columns: 1fr;
  }

  .line-item {
    grid-template-columns: 5.4rem minmax(0, 1fr);
  }

  .line-price {
    grid-column: 1 / -1;
  }

  h1,
  .page-hero h1 {
    font-size: 1.7rem;
    max-width: none;
  }

  .lede {
    font-size: 1.02rem;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .shop-toast {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .page-hero {
    padding: 1.4rem 0 0.6rem;
  }

  .section {
    padding: 1.8rem 0 2.4rem;
  }

  .cart-link-label {
    display: none;
  }

  .cart-link {
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.track-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.4rem 1.3rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.track-card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.track-card .btn {
  justify-self: start;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.choice-card {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.choice-card:hover,
.choice-card.is-on {
  border-color: var(--royal);
  box-shadow: 0 0 0 2px rgba(30, 64, 124, 0.18);
}

.choice-card .stamp-face {
  width: 100%;
  max-width: 11rem;
  margin: 0 auto;
  background: #fff;
}

.choice-card .stamp-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
}

.choice-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.choice-emoji {
  font-size: 2rem;
  line-height: 1;
}

.shop-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
}

.shop-crumb button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--royal-deep);
  cursor: pointer;
  text-decoration: underline;
}

.shop-crumb span {
  color: var(--ink-muted);
}

.stamper-grid {
  display: grid;
  gap: 0.75rem;
}

.stamper-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.stamper-option.is-on {
  border-color: var(--royal);
  box-shadow: 0 0 0 2px rgba(30, 64, 124, 0.18);
}

.stamper-option .price {
  margin: 0;
  white-space: nowrap;
}

.stamper-thumb,
.photo-frame {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f1ea;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.bundle-preview .photo-frame {
  width: 100%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skin-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.7rem 0 1rem;
}

.skin-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.skin-swatch.is-on {
  border-color: var(--royal);
  font-weight: 700;
}

.skin-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.skin-dot.line {
  background: repeating-linear-gradient(45deg, #fff, #fff 3px, #141414 3px, #141414 4px);
}

.bundle-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}

.bundle-preview figure {
  margin: 0;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.bundle-preview figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.bundle-preview .stamp-face {
  max-width: 9.5rem;
  margin: 0 auto;
}

.configure-stage,
.configure-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  gap: 1.2rem 1.6rem;
  align-items: start;
}

.configure-compose {
  margin-bottom: 1.4rem;
  align-items: start;
}

.configure-main,
.configure-form {
  min-width: 0;
}

.configure-form .form {
  margin: 0;
}

.bundle-photos {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.bundle-photos figure {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
}

.bundle-photos .photo-frame {
  width: 4.2rem;
  height: 4.2rem;
  max-width: 4.2rem;
}

.bundle-photos figcaption {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.impression-side {
  position: sticky;
  top: 1rem;
}

.impression-side .stamp-face.is-round,
.impression-side .stamp-face.is-square {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.impression-side .stamp-face.is-rect {
  width: 100%;
  max-width: 26rem;
  min-height: 11rem;
  aspect-ratio: 2.6 / 1;
  border-radius: 14px;
  margin: 0;
  background: #fff;
}

.impression-caption {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.configure-panel {
  display: grid;
  gap: 1.1rem;
}

.configure-panel .form {
  margin: 0;
}

.upload-box {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.upload-box input[type="file"] {
  font: inherit;
}

.back-link {
  margin: 0 0 1rem;
}
