/* HACYPAA XI merchandise
   Loads after styles.css and uses the shared site design.
*/

/* Buttons and controls */

.merch-cart-button,
.mobile-cart-button,
.merch-button,
.product-open,
.option-button,
.quantity-control button,
.cart-quantity button,
.dialog-close,
.cart-remove {
  font-family: var(--sans);
}

.merch-button,
.product-open,
.mobile-cart-button,
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms,
    border-color 160ms,
    box-shadow 160ms;
}

.merch-button:hover:not(:disabled),
.product-open:hover:not(:disabled),
.dialog-close:hover:not(:disabled) {
  border-color: #25231f;
  background: #25231f;
}

.merch-button-red,
.mobile-cart-button,
.merch-cart-button {
  border-color: #d31330;
  background: #d31330;
  color: var(--event-accent-text);
}

.merch-button-red:hover:not(:disabled),
.mobile-cart-button:hover:not(:disabled),
.merch-cart-button:hover:not(:disabled) {
  border-color: var(--event-accent);
  background: var(--event-accent);
  box-shadow: 0 0 1rem rgba(255, 24, 56, 0.15);
}

.merch-button-outline {
  border-color: var(--line-light);
  background: transparent;
  color: var(--ink);
}

.merch-button-outline:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(11, 11, 10, 0.04);
}

.merch-hero .merch-button-outline {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--paper);
}

.merch-hero .merch-button-outline:hover:not(:disabled) {
  border-color: var(--paper);
  background: rgba(242, 237, 223, 0.08);
}

.merch-button:disabled,
.product-open:disabled,
.option-button:disabled,
.quantity-control button:disabled,
.cart-quantity button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.merch-cart-button span,
.mobile-cart-button span,
.merch-button span {
  font-variant-numeric: tabular-nums;
}

.mobile-cart-button {
  width: 100%;
  margin-top: 0.75rem;
}

.merch-button:focus-visible,
.product-open:focus-visible,
.option-button:focus-visible,
.quantity-control button:focus-visible,
.cart-quantity button:focus-visible,
.dialog-close:focus-visible,
.cart-remove:focus-visible,
.mobile-cart-button:focus-visible,
.merch-cart-button:focus-visible,
.merch-dialog input:focus-visible,
.merch-dialog select:focus-visible,
.merch-dialog textarea:focus-visible {
  outline: 3px solid var(--event-accent);
  outline-offset: 3px;
}

/* Shared merch panels */

.merch-hero,
.merch-catalog,
.merch-info-strip {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: var(--page-width);
  margin: 0 auto 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-panel);
}

.merch-overline {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Storefront hero */

.merch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.875rem;
  margin-top: var(--gutter);
  padding: 0.875rem;
  background:
    radial-gradient(
      circle at 18% 28%,
      rgba(255, 24, 56, 0.06),
      transparent 45%
    ),
    var(--ink);
}

.merch-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.75rem);
}

.merch-hero-copy > .merch-overline {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.merch-hero-copy > .merch-overline::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--event-accent);
  box-shadow: 0 0 0.8rem rgba(255, 24, 56, 0.6);
  vertical-align: middle;
  content: "";
}

.merch-hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(2.75rem, 5.3vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  text-transform: none;
}

.merch-hero h1 em {
  display: inline-block;
  margin-top: 0.15em;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.merch-hero-copy > p:not(.merch-overline) {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.merch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.merch-hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 1.375rem;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.merch-hero-art img {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  max-height: 32rem;
  border-radius: var(--radius-control);
  object-fit: contain;
}

.merch-hero-art p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  color: var(--text-light);
  font-size: 0.625rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Collection */

.merch-catalog {
  padding: var(--panel-padding);
  border-color: var(--line-light);
  background: var(--paper);
  color: var(--ink);
  scroll-margin-top: 1.5rem;
}

.merch-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-light);
}

.merch-section-heading .merch-overline {
  color: var(--text-light);
}

.merch-section-heading h2 {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
  text-transform: none;
}

.merch-section-heading > p {
  max-width: 32rem;
  margin: 0;
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.625rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0.5rem 1.5rem rgba(11, 11, 10, 0.035);
}

.product-card-image {
  border-radius: 1rem;
  background: var(--paper);
  overflow: hidden;
}

.product-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.5rem 0.75rem;
}

.product-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-transform: none;
}

.product-price {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-card-meta {
  margin: 0;
  color: var(--text-light);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.product-open {
  align-self: stretch;
  margin: auto 0.75rem 0.75rem;
}

/* Store information */

.merch-info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--ink);
}

.merch-info-strip > div {
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
}

.merch-info-strip > div > span {
  display: none;
}

.merch-info-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.merch-info-strip p {
  margin: 1rem 0 0;
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Dialog surfaces */

.merch-dialog {
  --dialog-padding: clamp(1.25rem, 3vw, 2.5rem);

  width: min(68rem, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-panel);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: light;
}

.merch-dialog::backdrop {
  background: rgba(11, 11, 10, 0.8);
  backdrop-filter: blur(6px);
}

.merch-dialog :where(h2, h3, p, legend) {
  overflow-wrap: anywhere;
}

.dialog-close {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-color: var(--line-light);
  background: var(--white);
  color: var(--ink);
  font-size: 0.625rem;
}

.dialog-close:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.product-dialog > .dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
}

/* Product details */

.product-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-dialog-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--white);
}

.product-dialog-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 38rem;
  object-fit: contain;
}

.product-dialog-copy {
  min-width: 0;
  padding: 5rem var(--dialog-padding) 2.5rem;
}

.product-dialog-copy > .merch-overline {
  color: var(--text-light);
}

.product-dialog-copy h2,
.cart-heading h2 {
  margin: 1rem 0 1.5rem;
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-transform: none;
}

.product-dialog-price {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-option {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--line-light);
}

.product-option legend {
  max-width: 100%;
  margin-bottom: 0.875rem;
  padding: 0;
  color: var(--text-light);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--line-light);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 160ms,
    background-color 160ms,
    color 160ms;
}

.option-button:hover:not(:disabled) {
  border-color: #a71329;
}

.option-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.option-button:disabled {
  text-decoration: line-through;
}

.color-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(11, 11, 10, 0.3);
  border-radius: 50%;
}

.option-button[aria-pressed="true"] .color-dot {
  border-color: rgba(242, 237, 223, 0.5);
}

.product-purchase-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}

.quantity-control,
.cart-quantity {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  background: var(--white);
}

.quantity-control button,
.cart-quantity button {
  align-self: stretch;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ink);
  font-size: 1.125rem;
  cursor: pointer;
}

.quantity-control button:hover:not(:disabled),
.cart-quantity button:hover:not(:disabled) {
  background: rgba(11, 11, 10, 0.06);
}

.quantity-control output,
.cart-quantity output {
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.product-add {
  width: 100%;
}

/* Cart */

.cart-dialog {
  width: min(42rem, calc(100% - 2rem));
}

.cart-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--dialog-padding);
  border-bottom: 1px solid var(--line-light);
  background: var(--paper);
}

.cart-heading > div {
  min-width: 0;
}

.cart-heading .merch-overline {
  color: var(--text-light);
}

.cart-heading h2 {
  margin-bottom: 0;
}

#cart-items {
  padding: 0 var(--dialog-padding);
}

.cart-empty {
  margin: 0;
  padding: 2.5rem 0;
  color: var(--text-light);
  line-height: 1.75;
}

.cart-item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-light);
}

.cart-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line-light);
  border-radius: 0.875rem;
  background: var(--white);
  object-fit: contain;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-transform: none;
}

.cart-item-options {
  margin: 0.5rem 0 1rem;
  color: var(--text-light);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-quantity {
  width: 7.5rem;
}

.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  min-height: 2.75rem;
  margin-top: 0.375rem;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  cursor: pointer;
}

.cart-remove:hover {
  color: #a71329;
}

.cart-summary {
  margin: 1.5rem var(--dialog-padding) var(--dialog-padding);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--paper);
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.cart-summary > div strong {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.cart-summary p {
  margin: 1rem 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.cart-checkout {
  width: 100%;
}

/* Delivery and checkout */

.checkout-dialog {
  width: min(60rem, calc(100% - 2rem));
}

#checkout-status {
  margin: 0;
  padding: 1.25rem var(--dialog-padding);
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

#checkout-shipping-form,
#checkout-shipping-options {
  padding: var(--dialog-padding);
}

#checkout-shipping-form {
  display: grid;
  gap: 1.5rem;
}

#checkout-shipping-form fieldset,
#checkout-shipping-options fieldset {
  display: grid;
  min-width: 0;
  gap: 0.875rem;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: var(--white);
}

#checkout-shipping-form legend,
#checkout-shipping-options legend {
  max-width: 100%;
  padding: 0 0.5rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}

#checkout-shipping-form p {
  margin: 0 0 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.7;
}

#checkout-shipping-form label {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

#checkout-shipping-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
#checkout-shipping-form select,
#checkout-shipping-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.125rem;
  padding: 0.8rem 0.875rem;
  border: 1px solid #bdb4a4;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

#checkout-shipping-form textarea {
  min-height: 7rem;
  resize: vertical;
}

#checkout-shipping-form input::placeholder,
#checkout-shipping-form textarea::placeholder {
  color: #716a5e;
  opacity: 1;
}

#checkout-shipping-form :is(input, select, textarea):focus-visible {
  border-color: #a71329;
}

#checkout-shipping-form > button,
#checkout-shipping-options > button {
  justify-self: start;
  max-width: 100%;
}

#checkout-shipping-options {
  display: grid;
  gap: 1.25rem;
  padding-top: 0;
}

#checkout-shipping-options label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  min-height: 3.75rem;
  padding: 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  cursor: pointer;
  transition:
    border-color 160ms,
    background-color 160ms;
}

#checkout-shipping-options label:hover {
  border-color: #a71329;
}

#checkout-shipping-options label:has(input:checked) {
  border-color: #a71329;
  background: rgba(211, 19, 48, 0.06);
}

#checkout-shipping-options label:has(input:focus-visible) {
  outline: 3px solid var(--event-accent);
  outline-offset: 3px;
}

#checkout-shipping-options input[type="radio"],
#checkout-shipping-form input[type="radio"],
#checkout-shipping-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: #d31330;
}

#checkout {
  min-width: 0;
  padding: var(--dialog-padding);
}

#checkout:empty {
  display: none;
}

#checkout:has(.checkout-confirmation) {
  padding: 0;
}

/* Order confirmation */

.checkout-confirmation {
  padding: var(--dialog-padding);
}

.checkout-confirmation > .merch-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--text-light);
  font-size: 0.625rem;
}

.checkout-confirmation > .merch-overline::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--event-accent);
  content: "";
}

.checkout-confirmation h3 {
  margin: 1.5rem 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-transform: none;
}

.checkout-confirmation-message {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.checkout-confirmation-items {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.checkout-confirmation-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-light);
}

.checkout-confirmation-items li span {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.checkout-confirmation-items li strong {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.checkout-confirmation-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
}

.checkout-confirmation-total strong {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.checkout-confirmation .merch-button {
  margin-top: 1.75rem;
}

/* Cart feedback */

.merch-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.merch-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive layouts */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 1100px) {
  .merch-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .merch-hero,
  .merch-section-heading,
  .merch-info-strip,
  .product-dialog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .merch-hero-copy {
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }

  .merch-hero-art img {
    max-width: 25rem;
    max-height: 26rem;
  }

  .product-dialog-visual {
    padding: 3.5rem 1.25rem 1.25rem;
  }

  .product-dialog-visual img {
    max-height: 24rem;
  }

  .product-dialog-copy {
    padding: 2rem var(--dialog-padding);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .merch-hero-actions,
  .merch-hero-actions .merch-button {
    width: 100%;
  }

  .merch-dialog,
  .cart-dialog,
  .checkout-dialog {
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 1.25rem;
  }

  .cart-heading {
    gap: 0.75rem;
  }

  .cart-heading h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .product-purchase-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .quantity-control {
    min-height: 3.25rem;
  }

  .cart-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.875rem;
  }

  .cart-item-copy h3 {
    font-size: 1.25rem;
  }

  #checkout-shipping-form > button,
  #checkout-shipping-options > button,
  .checkout-confirmation .merch-button {
    width: 100%;
  }

  .checkout-confirmation-items li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .merch-toast {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merch-button,
  .product-open,
  .option-button,
  .mobile-cart-button,
  .merch-cart-button,
  .dialog-close,
  .product-card img,
  .merch-toast,
  #checkout-shipping-options label {
    transition: none;
  }
}

/* Salon des Refusés — gallery-inspired hero */

.merch-hero {
  border-color: rgba(242, 237, 223, 0.24);
  background:
    radial-gradient(
      ellipse at 15% 45%,
      rgba(211, 19, 48, 0.13),
      transparent 60%
    ),
    var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.merch-hero-copy > .merch-overline {
  max-width: 100%;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-soft);
  letter-spacing: 0.16em;
}

.merch-hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.merch-hero h1 em {
  margin-top: 0.08em;
  font-size: 1.15em;
  line-height: 1.08;
  text-shadow: 0 0 2rem rgba(211, 19, 48, 0.18);
}

.merch-hero-copy > p:not(.merch-overline) {
  max-width: 29rem;
  line-height: 1.8;
}

.merch-hero-art {
  border: 1px solid rgba(11, 11, 10, 0.12);
  background: var(--paper);
}

.merch-hero-art img {
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 1rem 2.5rem rgba(11, 11, 10, 0.09);
}

.merch-hero-art p {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
  letter-spacing: 0.12em;
}

.merch-hero-art p strong {
  color: var(--ink);
}

/* Featured shirt image and overlay button */

.merch-featured-visual {
  position: relative;
  width: 100%;
  max-width: 30rem;
}

.merch-featured-shop {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0.4rem 1.2rem rgba(11, 11, 10, 0.2);
}

@media (max-width: 800px) {
  .merch-featured-visual {
    max-width: 25rem;
  }
}