.merch-page {
  --merch-navy: #1a3253;
  --merch-red: #b71918;
  --merch-red-dark: #931513;
  --merch-ink: #2f3440;
  --merch-muted: #5b6574;
  --merch-line: #d9dee7;
  --merch-soft: #f3f5f8;
  --merch-danger: #b00020;
  --merch-danger-dark: #7b0016;
  --merch-danger-soft: #fff3f5;
  --merch-success: #1f7a49;
  --merch-success-dark: #145835;
  --merch-success-soft: #eef9f2;
  --merch-focus: #ffcf4a;
  --merch-page-gutter: clamp(20px, 4vw, 48px);
  min-height: 100vh;
  padding-top: 0;
  background: var(--merch-navy);
  color: var(--merch-ink);
}

.merch-page h1,
.merch-page h2,
.merch-page h3 {
  color: var(--merch-navy);
  letter-spacing: 0;
  text-shadow: none;
}

.merch-page button,
.merch-page input,
.merch-page select,
.merch-page textarea {
  font: inherit;
}

.merch-page :focus-visible {
  outline: 3px solid var(--merch-focus);
  outline-offset: 3px;
}

.merch-page .skip-to-main {
  top: 0;
  transform: translateY(calc(-100% - 4px));
}

.merch-page .skip-to-main:focus {
  top: 0;
  transform: translateY(0);
}

.merch-page h1[tabindex="-1"]:focus,
.merch-page h2[tabindex="-1"]:focus {
  outline: none;
}

.merch-container {
  width: min(
    1180px,
    calc(100% - var(--merch-page-gutter) - var(--merch-page-gutter))
  );
  margin-inline: auto;
}

.merch-page.is-reveal-ready .merch-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--merch-reveal-delay, 0s);
}

.merch-page.is-reveal-ready .merch-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.merch-header {
  background: #fff;
  border-bottom: 4px solid var(--merch-red);
}

.merch-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.merch-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--merch-navy);
}

.merch-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.merch-brand strong,
.merch-brand small {
  display: block;
}

.merch-brand strong {
  font-family: "arpona", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.merch-brand small {
  margin-top: 2px;
  color: var(--merch-muted);
  font-size: 0.875rem;
}

.merch-back-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.merch-intro {
  padding: 56px 0 48px;
  color: #fff;
  background-color: var(--merch-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.merch-intro h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2rem, 7vw, 4rem);
}

.merch-eyebrow {
  margin-bottom: 8px;
  color: var(--merch-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-intro .merch-eyebrow {
  color: #ffb1af;
}

.merch-intro__copy {
  max-width: 800px;
  font-size: 1.05rem;
}

.merch-mode-note {
  max-width: 800px;
  margin-top: 24px;
  padding: 16px 20px;
  display: flex;
  gap: 8px 16px;
  align-items: baseline;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 4px solid #ffb1af;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.merch-mode-note[hidden] {
  display: none;
}

.merch-mode-note--warning {
  border-color: #ffb1af;
  border-left-color: #d3241f;
  background: #fde7e6;
  color: #7a1512;
}

.merch-progress {
  max-width: 820px;
  margin: 32px auto 0;
}

.merch-progress ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.merch-progress li {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  text-align: center;
}

.merch-progress li::before {
  height: 2px;
  position: absolute;
  z-index: 0;
  top: 17px;
  right: 50%;
  left: -50%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.merch-progress li:first-child::before {
  display: none;
}

.merch-progress li > span {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--merch-navy);
  color: #fff;
  font-weight: 800;
}

.merch-progress li.is-complete,
.merch-progress li.is-current {
  color: #fff;
}

.merch-progress li.is-complete::before,
.merch-progress li.is-current::before {
  background: #ffb1af;
}

.merch-progress li.is-complete > span,
.merch-progress li.is-current > span {
  border-color: #ffb1af;
}

.merch-progress li.is-complete > span {
  background: #fff;
  color: var(--merch-red-dark);
}

.merch-progress li.is-current > span {
  background: var(--merch-red);
}

.merch-order {
  padding: 48px 0 64px;
  background: #eef1f5;
}

.merch-order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "products cart"
    "customer cart";
  gap: 32px;
  align-items: start;
}

.merch-products {
  grid-area: products;
}

.merch-section-heading {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.merch-section-heading > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--merch-red);
  color: #fff;
  font-weight: 800;
}

.merch-section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.merch-section-heading p {
  margin: 0;
  color: var(--merch-muted);
}

.merch-product-facts {
  margin: -8px 0 20px 52px;
  color: var(--merch-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.merch-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.merch-product {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--merch-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 37, 60, 0.08);
}

.merch-product--sold-out .merch-product__media {
  opacity: 0.5;
}

.merch-product--sold-out .merch-product__add:disabled {
  cursor: not-allowed;
}

.merch-product__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f7f7f7;
}

.merch-product__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.merch-product__image-button {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.merch-product__image-button img {
  position: absolute;
  inset: 0;
}

.merch-product__zoom-icon {
  width: 34px;
  height: 34px;
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 50, 83, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--merch-navy);
  box-shadow: 0 2px 8px rgba(20, 37, 60, 0.14);
  opacity: 0.82;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.merch-product__zoom-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merch-product__image-button:hover .merch-product__zoom-icon,
.merch-product__image-button:focus-visible .merch-product__zoom-icon {
  border-color: var(--merch-navy);
  background: #fff;
  color: var(--merch-red-dark);
  opacity: 1;
}

.merch-product__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--merch-muted);
  font-weight: 700;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    #f7f7f7,
    #f7f7f7 16px,
    #eef1f5 16px,
    #eef1f5 32px
  );
}

.merch-product__body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.merch-product__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.merch-product h3 {
  margin: 0;
  font-size: 1.15rem;
}

.merch-product__model {
  margin: 2px 0 0;
  color: var(--merch-muted);
  font-size: 0.88rem;
}

.merch-product__price {
  margin: 0;
  color: var(--merch-red);
  font-size: 1.08rem;
  font-weight: 800;
  white-space: nowrap;
}

.merch-product__description {
  min-height: 2lh;
  margin: 10px 0 14px;
  color: var(--merch-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.merch-product__specifications {
  margin: -4px 0 14px;
  color: var(--merch-navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

.merch-product__controls {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
}

.merch-product__stock-note {
  margin: -6px 0 12px;
  color: var(--merch-danger);
  font-size: 0.82rem;
  font-weight: 700;
}

.merch-product__stock-note:empty {
  display: none;
}

.merch-control label,
.merch-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--merch-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.merch-control select,
.merch-control input,
.merch-field input,
.merch-field textarea {
  width: 100%;
  border: 2px solid var(--merch-line);
  border-radius: 6px;
  background: #fff;
  color: var(--merch-ink);
}

.merch-control select,
.merch-control input,
.merch-field input {
  min-height: 48px;
  padding: 10px 12px;
}

.merch-field textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.merch-control select:focus,
.merch-control input:focus,
.merch-field input:focus,
.merch-field textarea:focus {
  border-color: var(--merch-navy);
  box-shadow: 0 0 0 3px rgba(26, 50, 83, 0.14);
}

.merch-product__add {
  width: 100%;
  margin-top: auto;
}

.merch-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.merch-button:hover,
.merch-button:focus-visible {
  transform: translateY(-1px);
}

.merch-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.merch-button--with-icon {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.merch-button__icon,
.merch-heading-icon,
.merch-remove__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merch-button--primary {
  background: var(--merch-red);
  color: #fff;
}

.merch-button--primary:hover,
.merch-button--primary:focus-visible {
  background: var(--merch-red-dark);
  color: #fff;
}

.merch-button--secondary {
  border-color: var(--merch-navy);
  background: #fff;
  color: var(--merch-navy);
}

.merch-cart {
  grid-area: cart;
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--merch-line);
  border-top: 5px solid var(--merch-red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 37, 60, 0.1);
}

/* Kort geaccentueerd na klikken op 'Bekijk winkelmand' (zie focusCart() in merchandise.js) */
.merch-cart.is-highlighted {
  animation: merchCartHighlight 1.2s ease;
}

@keyframes merchCartHighlight {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(20, 37, 60, 0.1);
  }
  25% {
    box-shadow:
      0 0 0 4px rgba(183, 25, 24, 0.35),
      0 10px 30px rgba(20, 37, 60, 0.1);
  }
}

.merch-cart__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.merch-cart h2 {
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 1.35rem;
}

.merch-heading-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.merch-cart__count {
  color: var(--merch-muted);
  font-size: 0.82rem;
}

.merch-cart__empty {
  margin: 24px 0;
  padding: 24px 12px;
  color: var(--merch-muted);
  text-align: center;
  border-block: 1px solid var(--merch-line);
}

.merch-cart__list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.merch-cart-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--merch-line);
}

.merch-cart-item__heading,
.merch-cart-item__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.merch-cart-item__heading strong,
.merch-cart-item__heading span {
  display: block;
}

.merch-cart-item__heading span {
  color: var(--merch-muted);
  font-size: 0.82rem;
}

.merch-cart-item__actions {
  margin-top: 12px;
  align-items: center;
}

.merch-quantity {
  display: inline-grid;
  grid-template-columns: 44px 44px 44px;
  align-items: center;
  border: 1px solid var(--merch-line);
  border-radius: 6px;
  overflow: hidden;
}

.merch-quantity button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--merch-soft);
  color: var(--merch-navy);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
}

.merch-quantity input {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--merch-ink);
  text-align: center;
  appearance: textfield;
}

.merch-remove {
  min-height: 44px;
  padding: 5px 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--merch-red);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
}

.merch-cart__total {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--merch-navy);
  font-size: 1.2rem;
}

.merch-cart__note {
  margin-top: 10px;
  color: var(--merch-muted);
  font-size: 0.82rem;
}

.merch-cart__pickup {
  margin: 8px 0 0;
  color: var(--merch-navy);
  font-size: 0.84rem;
  line-height: 1.45;
}

.merch-cart__next-step {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--merch-line);
  color: var(--merch-navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.merch-cart__status {
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 18px;
  position: fixed;
  z-index: 1000;
  top: max(16px, env(safe-area-inset-top));
  right: 50%;
  visibility: hidden;
  border-radius: 6px;
  background: var(--merch-navy);
  box-shadow: 0 8px 24px rgba(20, 37, 60, 0.24);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}

.merch-cart__status.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(50%, 0);
  transition-delay: 0s;
}

.merch-mobile-cart {
  display: none;
}

.merch-mobile-cart[hidden] {
  display: none;
}

.merch-customer {
  grid-area: customer;
  margin-top: 0;
  padding: 32px;
  border: 1px solid var(--merch-line);
  border-radius: 10px;
  background: #fff;
}

.merch-form {
  display: grid;
  gap: 24px;
}

.merch-form__required-note {
  margin: 0;
  color: var(--merch-muted);
  font-size: 0.88rem;
}

.merch-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.merch-field--wide {
  grid-column: 1 / -1;
}

.merch-optional,
.merch-field-help {
  color: var(--merch-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.merch-field-error {
  min-height: 21px;
  display: block;
  margin-top: 4px;
  color: var(--merch-danger);
  font-size: 0.82rem;
  font-weight: 700;
}

.merch-field-error:empty {
  display: none;
}

.merch-control-error {
  display: block;
  margin-top: 4px;
  color: var(--merch-danger);
  font-size: 0.82rem;
  font-weight: 700;
}

.merch-control-error:empty {
  display: none;
}

.merch-control [aria-invalid="true"],
.merch-field [aria-invalid="true"] {
  border-color: var(--merch-danger);
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.1);
}

.merch-options,
.merch-terms {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--merch-line);
  border-radius: 8px;
}

.merch-options legend,
.merch-terms legend {
  padding: 0 8px;
  color: var(--merch-navy);
  font-family: "arpona", Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.merch-toggle-row,
.merch-terms__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 700;
}

.merch-toggle-row + .merch-conditional {
  margin-top: 16px;
}

.merch-toggle-row input,
.merch-terms__check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--merch-red);
}

.merch-conditional {
  margin-left: 0;
  padding: 12px 0 0;
  background: transparent;
  border-left: 0;
}

.merch-terms ul {
  margin: 12px 0 0 30px;
  padding-left: 18px;
}

.merch-validation-summary {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid #e3a6af;
  border-left: 4px solid var(--merch-danger);
  border-radius: 6px;
  background: var(--merch-danger-soft);
  color: var(--merch-danger-dark);
}

.merch-validation-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.merch-form__submit {
  justify-self: start;
}

.merch-form__submit-group {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.merch-form__submit-help {
  max-width: 560px;
  margin: 0;
  color: var(--merch-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.merch-state {
  padding: 64px 0;
  background: #eef1f5;
}

.merch-state__inner {
  max-width: 820px;
  padding: 40px;
  border-top: 5px solid var(--merch-red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 37, 60, 0.14);
}

.merch-state h2 {
  font-size: 2rem;
}

.merch-review-grid {
  margin: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 24px;
}

.merch-review-block {
  padding: 20px;
  border: 1px solid var(--merch-line);
  border-radius: 6px;
}

.merch-review-block h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.merch-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.merch-review-list li,
.merch-review-total {
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border-bottom: 1px solid var(--merch-line);
}

.merch-review-list li > strong,
.merch-review-total > strong:last-child {
  white-space: nowrap;
}

.merch-review-total {
  border-bottom: 0;
  border-top: 2px solid var(--merch-navy);
  font-size: 1.1rem;
}

.merch-review-details {
  margin: 0;
}

.merch-review-details dt {
  margin-top: 10px;
  color: var(--merch-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.merch-review-details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.merch-review-email {
  margin: 14px 0;
  padding: 14px;
  border: 2px solid var(--merch-navy);
  border-radius: 6px;
  background: #f5f8fc;
}

.merch-review-email dt {
  margin-top: 0;
}

.merch-review-email__help {
  margin-top: 8px !important;
  color: var(--merch-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.merch-review-payment-note {
  margin: 0 0 16px;
  color: var(--merch-navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.merch-state__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.merch-submit-error {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #e3a6af;
  border-left: 4px solid var(--merch-danger);
  border-radius: 6px;
  background: var(--merch-danger-soft);
  color: var(--merch-danger-dark);
  font-weight: 700;
}

.merch-success {
  text-align: center;
}

.merch-success .merch-state__inner {
  max-width: 680px;
  padding: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.merch-thanks-card {
  overflow: hidden;
  border-top: 5px solid var(--merch-red);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 18px 38px rgba(20, 37, 60, 0.13),
    0 4px 12px rgba(20, 37, 60, 0.07);
  text-align: left;
}

.merch-thanks-card__body {
  padding: 36px 40px 30px;
}

.merch-success__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--merch-success);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
}

.merch-success__mark--pending {
  background: var(--merch-red);
}

.merch-thanks-card .merch-eyebrow {
  margin-bottom: 6px;
  text-align: center;
}

.merch-thanks-card h2 {
  margin: 0;
  color: var(--merch-navy);
  text-align: center;
  text-transform: uppercase;
}

.merch-thanks-card__order {
  margin: 8px 0 0;
  color: var(--merch-muted);
  text-align: center;
}

.merch-thanks-card__order[hidden] {
  display: none;
}

.merch-thanks-card__order:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 8px 14px;
  align-items: center;
  flex-wrap: wrap;
}

.merch-thanks-card__order strong {
  color: var(--merch-red);
}

.merch-copy-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--merch-navy);
  border-radius: 6px;
  background: #fff;
  color: var(--merch-navy);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.merch-copy-button:hover,
.merch-copy-button:focus-visible {
  background: var(--merch-soft);
}

.merch-copy-status {
  width: 100%;
  min-height: 1.4em;
  color: var(--merch-muted);
  font-size: 0.8rem;
}

.merch-thanks-card__divider {
  height: 1px;
  margin: 24px 0;
  background: var(--merch-line);
}

.merch-mode-note--success {
  margin: 0 0 24px;
  border-left-width: 3px;
  border-color: #d9e9df;
  border-left-color: #6fa889;
  background: #f4faf6;
  color: #2f6b4c;
  text-align: left;
}

.merch-mode-note--success.merch-mode-note--pending {
  border-color: #efd7a1;
  border-left-color: #c87b13;
  background: #fff8e8;
  color: #75490d;
}

.merch-success__contact {
  margin: 24px 0 0;
  color: var(--merch-muted);
  font-size: 0.9rem;
}

.merch-success__mail-help {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--merch-line);
  color: var(--merch-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.merch-payment {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--merch-line);
  text-align: left;
}

.merch-payment h3 {
  margin: 0 0 10px;
  color: var(--merch-navy);
  font-size: 1.25rem;
}

.merch-payment p:not(.merch-eyebrow) {
  margin: 0 0 14px;
  line-height: 1.6;
}

.merch-payment .merch-payment__pickup {
  margin-bottom: 22px;
}

.merch-payment .merch-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--merch-red-dark);
  background-color: var(--merch-red);
  background-image: linear-gradient(
    180deg,
    var(--merch-red) 0%,
    var(--merch-red-dark) 100%
  );
}

.merch-payment .merch-button:hover,
.merch-payment .merch-button:focus-visible {
  background-color: var(--merch-red-dark);
  background-image: linear-gradient(
    180deg,
    var(--merch-red-dark) 0%,
    #75100f 100%
  );
}

.merch-success .merch-review-grid {
  margin: 24px 0 0;
  text-align: left;
}

.merch-thanks-card__footer {
  padding: 20px 24px;
  background: var(--merch-navy);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.merch-success__reset {
  margin-top: 24px;
}

.merch-footer {
  padding: 24px 0;
  background: #10243f;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.merch-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.merch-footer p {
  margin: 0;
}

.merch-footer nav {
  display: flex;
  gap: 20px;
}

.merch-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.merch-image-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.merch-image-dialog::backdrop {
  background: rgba(7, 18, 33, 0.86);
}

.merch-image-dialog__inner {
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.merch-image-dialog img {
  width: 100%;
  max-height: calc(100dvh - 96px);
  display: block;
  object-fit: contain;
  background: #f7f7f7;
}

.merch-image-dialog p {
  margin: 0;
  padding: 12px 56px 12px 16px;
  color: var(--merch-ink);
  font-weight: 700;
}

.merch-image-dialog__close {
  width: 44px;
  height: 44px;
  padding: 0;
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 50, 83, 0.94);
  color: #fff;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.merch-image-dialog__close:hover,
.merch-image-dialog__close:focus-visible {
  background: var(--merch-red-dark);
}

@media (max-width: 960px) {
  .merch-order__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "products"
      "cart"
      "customer";
  }

  .merch-cart {
    position: static;
  }

  .merch-order.has-mobile-cart {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .merch-page.has-mobile-cart .merch-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .merch-mobile-cart {
    min-height: 72px;
    padding: 10px var(--merch-page-gutter);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-top: 3px solid var(--merch-red);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(20, 37, 60, 0.16);
  }

  .merch-mobile-cart__totals span,
  .merch-mobile-cart__totals strong {
    display: block;
  }

  .merch-mobile-cart__totals span {
    color: var(--merch-muted);
    font-size: 0.82rem;
  }

  .merch-mobile-cart__totals strong {
    color: var(--merch-navy);
    font-size: 1.08rem;
  }

  .merch-mobile-cart .merch-button {
    min-height: 44px;
    padding: 8px 16px;
    flex: 0 0 auto;
    font-size: 0.78rem;
  }
}

@media (max-width: 680px) {
  .merch-header__inner {
    min-height: 76px;
  }

  .merch-brand img {
    width: 44px;
    height: 44px;
  }

  .merch-brand strong {
    font-size: 0.85rem;
  }

  .merch-back-link {
    max-width: 92px;
    font-size: 0.78rem;
    text-align: right;
  }

  .merch-intro {
    padding: 28px 0;
  }

  .merch-intro h1 {
    margin-bottom: 12px;
  }

  .merch-intro__copy {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .merch-intro__copy p {
    margin-bottom: 12px;
  }

  .merch-mode-note {
    margin-top: 16px;
    padding: 12px 14px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .merch-progress {
    margin-top: 24px;
  }

  .merch-progress li {
    gap: 6px;
    font-size: 0.7rem;
  }

  .merch-progress li::before {
    top: 15px;
  }

  .merch-progress li > span {
    width: 32px;
    height: 32px;
  }

  .merch-order {
    padding: 24px 0 40px;
  }

  .merch-order__layout {
    gap: 24px;
  }

  .merch-section-heading {
    margin-bottom: 16px;
    gap: 12px;
  }

  .merch-section-heading > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .merch-section-heading h2 {
    font-size: 1.3rem;
  }

  .merch-section-heading p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .merch-product-grid,
  .merch-form__grid,
  .merch-review-grid {
    grid-template-columns: 1fr;
  }

  .merch-product__media {
    aspect-ratio: 16 / 10;
  }

  .merch-product-grid {
    gap: 14px;
  }

  .merch-product__body {
    padding: 16px;
  }

  .merch-product__description {
    margin: 8px 0 12px;
    line-height: 1.4;
  }

  .merch-product__add {
    margin-top: 8px;
  }

  .merch-customer,
  .merch-cart,
  .merch-state__inner {
    padding: 18px;
  }

  .merch-cart__empty {
    margin: 16px 0;
    padding: 16px 8px;
  }

  .merch-form {
    gap: 16px;
  }

  .merch-form__grid {
    gap: 12px;
  }

  .merch-options,
  .merch-terms {
    padding: 14px;
  }

  .merch-toggle-row,
  .merch-terms__check {
    min-height: 44px;
    padding-block: 8px;
  }

  .merch-toggle-row input,
  .merch-terms__check input {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    margin-top: 0;
  }

  .merch-conditional {
    margin-left: 0;
    padding: 8px 0 0;
  }

  .merch-terms ul {
    margin-left: 0;
  }

  .merch-validation-summary {
    margin-bottom: 16px;
    padding: 14px;
  }

  .merch-state {
    padding: 24px 0;
  }

  .merch-state h2 {
    font-size: 1.55rem;
  }

  .merch-thanks-card__body {
    padding: 28px 20px 24px;
  }

  .merch-thanks-card__divider {
    margin: 20px 0;
  }

  .merch-review-grid {
    margin: 20px 0;
    gap: 14px;
  }

  .merch-review-payment-note {
    text-align: left;
  }

  .merch-review-block {
    padding: 14px;
  }

  .merch-form__submit,
  .merch-form__submit-group,
  .merch-state__actions .merch-button,
  .merch-success > .merch-container > .merch-button,
  .merch-payment .merch-button {
    width: 100%;
  }

  .merch-copy-button {
    width: 100%;
  }

  .merch-state__actions {
    flex-direction: column-reverse;
  }

  .merch-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .merch-footer nav {
    width: 100%;
    gap: 12px 20px;
    flex-wrap: wrap;
  }

  .merch-image-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
}

@media (max-width: 380px) {
  .merch-product__controls {
    grid-template-columns: 1fr;
  }

  .merch-product__heading,
  .merch-cart__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .merch-mobile-cart {
    gap: 10px;
  }

  .merch-mobile-cart .merch-button {
    padding-inline: 12px;
  }
}

@media (min-width: 560px) and (max-width: 680px) and (orientation: landscape) {
  .merch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merch-product__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merch-page.is-reveal-ready .merch-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .merch-cart.is-highlighted {
    animation: none;
    box-shadow:
      0 0 0 4px rgba(183, 25, 24, 0.35),
      0 10px 30px rgba(20, 37, 60, 0.1);
  }
}
