/* DANGIT Merch storefront. Lives inside the theme's .corp wrapper so the SCREENPRINT tokens
   (paper ground, black rules, hard shadows, no radius) apply exactly as they do on /book. */

.merch-error {
  border-left: 8px solid #e0245e;
  padding: 16px 20px;
  font-weight: 600;
}
.merch-empty {
  text-align: center;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.merch-card {
  background: var(--paper, #fffdf5);
  color: var(--ink, #111);
  border: var(--rule, 3px) solid var(--line, #111);
  border-radius: var(--radius, 0);
  box-shadow: var(--shadow-sm, 4px 4px 0 #111);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.merch-photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-3, #ded9c8);
  border-bottom: var(--rule, 3px) solid var(--line, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.merch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.merch-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.merch-body h2 {
  font-family: var(--font-zalando);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink, #111);
  text-transform: none;
  line-height: 1.2;
  margin: 0;
}
.merch-price {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand, #2100ea);
  margin: 0;
}

.merch-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted, #5f5d54);
}
.merch-field select {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink, #111);
  padding: 10px 12px;
  border: 2px solid var(--line, #111);
  border-radius: var(--radius-sm, 0);
  background: #fff;
  max-width: 100%;
}
.merch-field select:focus {
  outline: 3px solid var(--brand, #2100ea);
  outline-offset: 1px;
}
.merch-qty select {
  width: 90px;
}

.merch-buy {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.merch .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.merch-fine {
  text-align: center;
  color: var(--muted, #5f5d54);
  font-size: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.merch-fine a {
  color: var(--brand, #2100ea);
}

.merch-thanks {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.merch-thanks h1 {
  font-family: var(--font-zalando);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink, #111);
  text-transform: none;
  margin: 6px 0 12px;
}
.merch-thanks .corp-eyebrow {
  color: var(--brand, #2100ea);
}
.merch-thanks-item {
  font-weight: 800;
  font-size: 1.25rem;
}
.merch-thanks .corp-btn {
  margin-top: 10px;
}
