/* Shop pages: same tokens as the homepage (colours, Courier New, spacing). */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #13150e;
  color: #c8c4b0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32'%3E%3Ctext y='28' font-size='26'%3E%F0%9F%AB%92%3C/text%3E%3C/svg%3E") 8 24, auto;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { opacity: 0.5; }
img { display: block; max-width: 100%; }

hr {
  border: none;
  border-top: 1px solid #2a2d1f;
  margin: 40px 0;
}

.stage {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 28px 80px;
}

.logo-wrap { text-align: center; margin-bottom: 40px; }
/* The link hugs the logo (not the whole row) and always shows the pointing hand. */
.logo-wrap a { display: block; width: min(48vw, 240px); margin: 0 auto; cursor: pointer; }
.logo-img {
  width: 100%;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 20px rgba(160,180,80,0.14));
}

.tagline {
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: #c8c4b0;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

/* PRODUCT */
.product { display: flex; gap: 28px; align-items: flex-start; }
.product-photo-wrap {
  flex: 0 0 300px;
  width: 300px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
  transition: filter 0.5s;
}
.product-photo-wrap img:hover { filter: saturate(1.0) contrast(1.05); }
.product-photo-wrap.pos-a img { object-position: center 40%; }
.product-photo-wrap.pos-b img { object-position: center 15%; }
.product-photo-wrap.pos-c img { object-position: center 50%; }

.product-body { flex: 1; min-width: 0; }

.product-label { font-size: 15px; letter-spacing: 0.03em; margin-bottom: 3px; }
.product-label .price { color: #8a9a50; }
.product-desc { font-size: 11px; color: #888070; margin-bottom: 14px; letter-spacing: 0.03em; }

/* ORDER CONTROLS */
/* The olive cursor is for looking around; over the purchase options use the regular one. */
.product-body { cursor: default; }
.product-body select { cursor: default; }
.buy-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; transition: opacity 0.25s ease; }
/* Shown straight away, but inert until the live stock numbers arrive. */
.buy-controls.loading { opacity: 0.35; pointer-events: none; }
.buy-controls.reserve { visibility: hidden; }
.cur { display: inline-flex; gap: 8px; }
.cur button,
.buy-link {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0 2px 1px;
  cursor: pointer;
}
.cur button { color: #6a6a58; }
.cur button.on { color: #a0b060; border-bottom-color: #5a6a30; }
.cur button:hover { opacity: 0.5; }

.qty-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #454830; }
.qty {
  background: transparent;
  border: 1px solid #2a2d1f;
  color: #c8c4b0;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
  outline: none;
  border-radius: 0;
}
.qty:focus { border-color: #4a5a28; }
.qty option { background: #13150e; color: #c8c4b0; }

.buy-link { color: #a0b060; border-bottom-color: #5a6a30; }
.buy-link:hover { opacity: 0.5; }
.buy-link[disabled] { opacity: 0.4; cursor: default; }

.sold-out { font-size: 12px; letter-spacing: 0.08em; color: #6a6a58; }

.msg { font-size: 11px; color: #7a8a45; margin-top: 10px; min-height: 16px; letter-spacing: 0.03em; }

/* MAILING LIST (sold-out product) */
.ml-section { margin-top: 22px; }
.ml-label {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #454830;
  margin-bottom: 10px;
}
.ml-form { display: flex; gap: 0; max-width: 360px; }
.ml-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid #2a2d1f;
  border-right: none;
  color: #c8c4b0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  letter-spacing: 0.03em;
  border-radius: 0;
}
.ml-input::placeholder { color: #454830; }
.ml-input:focus { border-color: #4a5a28; }
.ml-submit {
  background: transparent;
  border: 1px solid #2a2d1f;
  color: #8a9a50;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 0;
}
.ml-submit:hover { opacity: 0.5; }
.ml-msg { font-size: 11px; color: #7a8a45; margin-top: 8px; min-height: 16px; letter-spacing: 0.03em; }

.definition { font-size: 12px; color: #7a7860; line-height: 1.8; letter-spacing: 0.02em; }
.info-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #454830; margin-bottom: 8px; }
.info-text { font-size: 12px; color: #9a9880; line-height: 1.7; }
.info-text a { border-bottom: 1px dotted #4a5030; color: #8a9a50; }

.thanks { text-align: left; }
.thanks .info-text { margin-top: 6px; }
.thanks-msg { font-size: 14px; color: #c8c4b0; line-height: 1.9; letter-spacing: 0.01em; max-width: 520px; }
.thanks-msg a { color: #a0b060; border-bottom: 1px dotted #5a6a30; }
.thanks-sign { font-size: 14px; color: #a0b060; line-height: 1.9; margin-top: 22px; }

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px 60px;
  font-size: 10px;
  color: #333328;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
footer a { color: #444438; border-bottom: 1px dotted #333328; }

.confetti-piece {
  position: fixed; width: 6px; height: 6px;
  z-index: 999; pointer-events: none;
  animation: confetti-fall 1s ease-out forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 1; transform: translate(0,0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx),120px) rotate(360deg); }
}

/* Thank-you page confetti shower */
.drop-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 999; }
.drop-piece {
  position: absolute; top: -24px; display: block;
  opacity: 0;
  animation: confetti-drop 4s cubic-bezier(0.3, 0.1, 0.5, 1) forwards;
}
@keyframes confetti-drop {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  50%  { transform: translate3d(var(--sway), 55vh, 0) rotate(calc(var(--spin) * 0.5)); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(var(--sway) * -0.6), 112vh, 0) rotate(var(--spin)); }
}
@media (prefers-reduced-motion: reduce) { .drop-layer { display: none; } }

[hidden] { display: none !important; }

@media (max-width: 540px) {
  .stage { padding: 48px 18px 60px; }
  .product { flex-direction: column; gap: 20px; }
  .product-photo-wrap { flex: none; width: 100%; }
  footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}
