/* Shop pieces inside the author site. */

.shop-page { padding: calc(var(--header-h) + 36px) 0 80px; }
.shop-page h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 400; }
.shop-intro { max-width: 720px; color: var(--text-muted); }

.shop-alert {
  max-width: 860px;
  margin: calc(var(--header-h) + 16px) auto 0;
  padding: 12px 16px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  color: var(--accent-text);
}

.breadcrumb { margin: 0 0 28px; color: var(--text-faint); font-size: 15px; }
.breadcrumb a { color: var(--text-muted); }

.buy,
.home-shirt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.buy-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.buy-photo img { width: auto; max-height: 560px; margin: 0 auto; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.product-card { color: inherit; }
.product-card:hover { text-decoration: none; }
.product-card .buy-photo { aspect-ratio: 3 / 4; padding: 16px; }
.product-card h3 { margin: 14px 0 0; font-size: 18px; }
.product-card p { margin: 4px 0 0; color: var(--text-muted); }
.product-group { margin-top: 48px; }
.product-group h2 { font-size: clamp(26px, 3vw, 34px); }

.merch-price { margin: 0 0 18px; font-size: 28px; }
.merch-colors { margin: 0 0 18px; padding: 0; border: 0; }
.merch-colors legend { font-size: 15px; font-weight: 700; }
.merch-colors [role="radiogroup"] { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.merch-color { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.merch-color.is-selected { border-color: var(--orange); }
.merch-color img { width: 64px; height: 64px; object-fit: cover; background: #fff; }
.merch-color-name { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }
.merch-size { display: block; font-size: 15px; font-weight: 700; }
.merch-size select {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: 17px var(--font);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.merch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.qty button { width: 44px; height: 48px; color: var(--text); font-size: 22px; background: none; border: 0; cursor: pointer; }
.qty input { width: 52px; color: var(--text); font: 17px var(--font); text-align: center; background: transparent; border: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.merch-stock { color: var(--text-faint); }

.option-list { margin: 24px 0 0; padding: 0; list-style: none; }
.option-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sold-out { color: var(--text-faint); font-size: 15px; }
.prose { margin-top: 28px; color: var(--text-body); }

.cart-list { margin: 28px 0 0; padding: 0; list-style: none; }
.cart-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.cart-list li:last-child { border-bottom: 1px solid var(--border); }
.muted { color: var(--text-muted); }
.cart-qty { display: flex; align-items: center; gap: 12px; }
.cart-qty input {
  width: 72px;
  padding: 8px 10px;
  color: var(--text);
  font: 17px var(--font);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.text-button { padding: 0; color: var(--link); font: inherit; background: none; border: 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.cart-totals { max-width: 360px; margin-left: auto; }
.cart-totals div { display: flex; justify-content: space-between; gap: 24px; }
.newsletter { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.cart-checkout { margin-top: 28px; }
.right { text-align: right; }
.home-shirt {
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: center;
}
.home-shirt h2 { font-size: clamp(32px, 4vw, 48px); }
.home-shirt-reason {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}
.home-shirt .buy-photo img { max-height: 460px; }

.pay-status {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}
.pay-status .mark { width: min(240px, 58%); margin: 0 auto 28px; height: auto; filter: var(--owl-filter); }
.pay-status h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 400; }
.pay-status .lede { max-width: 540px; margin: 0 auto 32px; color: var(--text-muted); }
.pay-receipt {
  width: min(560px, 100%);
  margin: 0 auto 28px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius);
}
.pay-receipt header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pay-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}
.pay-line:has(> div:first-child) { grid-template-columns: minmax(0, 1fr) auto; }
.pay-line img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 6px; }
.pay-line p { margin: 0; }
.pay-line .muted { font-size: 15px; }
.pay-totals { margin: 0; padding: 4px 18px 16px; }
.pay-totals div { display: flex; justify-content: space-between; gap: 16px; }
.pay-totals dt, .pay-totals dd { margin: 0; }
.pay-note { margin: 0; padding: 0 18px 16px; color: var(--text-faint); font-size: 14px; text-align: left; }
.pay-pulse { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text-faint); font-size: 15px; }
.pay-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 55%, transparent);
  animation: pay-pulse 1.6s ease-out infinite;
}
@keyframes pay-pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-pulse i { animation: none; }
}

@media (max-width: 800px) {
  .buy, .home-shirt { grid-template-columns: 1fr; }
  .cart-totals { margin-left: 0; }
}

