/* ==========================================================
   Brisbane Lyric Opera — Public Ticket Store
   Layered on styles.css (brand palette + fonts already defined).
   ========================================================== */

.store-section { padding: clamp(48px, 8vw, 110px) 0; }

/* --- Notice / status banners --- */
.notice {
  border: 1px solid var(--rule); background: rgba(201,169,97,0.06);
  border-radius: 4px; padding: 16px 20px; margin-bottom: 32px;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ivory-soft);
}
.notice.warn { border-color: rgba(214,162,78,.5); background: rgba(214,162,78,.08); }
.notice strong { color: var(--gold); }

/* --- Show grid --- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(28px, 4vw, 48px); }

.show-card {
  border: 1px solid var(--rule-soft); background: var(--ink-soft);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .4s ease, transform .4s ease;
}
.show-card:hover { border-color: var(--rule); transform: translateY(-3px); }
.show-poster { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-panel); }
.show-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.show-card:hover .show-poster img { transform: scale(1.04); }
.show-flag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--sans); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; font-weight: 600;
  background: rgba(10,9,8,.78); color: var(--gold); border: 1px solid var(--rule);
}
.show-flag.soldout { color: #e2a79a; border-color: rgba(201,122,106,.5); }
.show-flag.low { color: #e9c987; }

.show-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.show-date { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.show-card h3 { margin: 12px 0 6px; }
.show-venue { font-family: var(--sans); font-size: .85rem; color: var(--taupe); margin-bottom: 14px; }
.show-blurb { font-size: 1.02rem; color: rgba(245,241,232,.78); flex: 1; }
.show-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.price-from { font-family: var(--serif-body); font-size: 1.05rem; color: var(--ivory); }
.price-from b { font-family: var(--serif-display); color: var(--gold); font-size: 1.3rem; }

/* --- Booking view --- */
.booking-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.booking-back { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 22px; display: inline-block; }
.booking-back:hover { color: var(--gold); }
.booking-poster { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 28px; border: 1px solid var(--rule-soft); }

.tier {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft);
}
.tier:first-of-type { border-top: 1px solid var(--rule-soft); }
.tier-info h4 { font-family: var(--serif-body); font-size: 1.4rem; font-weight: 500; }
.tier-info .p { font-family: var(--sans); font-size: .82rem; color: var(--taupe); letter-spacing: .04em; margin-top: 2px; }
.tier-line { font-family: var(--serif-display); font-size: 1.15rem; min-width: 92px; text-align: right; color: var(--ivory); }
.tier.sold-out { opacity: .5; }
.tier-note {
  font-family: var(--sans); font-size: .8rem; line-height: 1.55;
  color: var(--gold); margin-top: 8px; max-width: 44ch;
}
.tier-status {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--sans); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--rule); color: var(--gold);
}
.tier-status.soldout { color: #e2a79a; border-color: rgba(201,122,106,.5); }
.tier-status.low { color: #e9c987; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.stepper button {
  width: 40px; height: 42px; background: transparent; color: var(--ivory);
  font-size: 1.3rem; line-height: 1; border: 0; transition: background .25s, color .25s;
}
.stepper button:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input {
  width: 48px; height: 42px; text-align: center; background: transparent; color: var(--ivory);
  border: 0; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  font-family: var(--sans); font-size: 1rem; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Summary / checkout panel */
.checkout {
  position: sticky; top: 110px; border: 1px solid var(--rule);
  background: var(--ink-soft); padding: 30px 30px 34px;
}
.checkout h3 { font-size: 1.5rem; margin-bottom: 6px; }
.sum-line { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .92rem; color: rgba(245,241,232,.8); padding: 7px 0; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 16px;
}
.sum-total .lbl { font-family: var(--sans); letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: var(--taupe); }
.sum-total .amt { font-family: var(--serif-display); font-size: 2rem; color: var(--gold); }

.cust-fields { margin-top: 26px; }
.cust-fields label { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin: 14px 0 6px; }
.cust-fields input {
  width: 100%; background: var(--ink-panel); border: 1px solid var(--rule-soft); color: var(--ivory);
  padding: 12px 14px; font-family: var(--sans); font-size: .95rem; border-radius: 3px;
}
.cust-fields input:focus { outline: none; border-color: var(--gold); }

.pay-btn { width: 100%; margin-top: 26px; justify-content: center; }
.pay-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.secure-note { font-family: var(--sans); font-size: .76rem; color: var(--taupe); text-align: center; margin-top: 14px; line-height: 1.6; }
.secure-note svg { vertical-align: -2px; margin-right: 5px; }

.form-error { font-family: var(--sans); font-size: .85rem; color: #e2a79a; margin-top: 14px; min-height: 1.2em; }

/* Confirmation page */
.confirm-card {
  max-width: 600px; margin: 0 auto; border: 1px solid var(--rule);
  background: var(--ink-soft); padding: clamp(32px, 5vw, 56px); text-align: center;
}
.confirm-tick {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--gold); font-size: 1.8rem;
}
.confirm-ref { font-family: var(--sans); letter-spacing: .26em; color: var(--gold); font-size: .9rem; margin-top: 6px; }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; text-align: left; max-width: 420px; margin: 28px auto 0; font-family: var(--sans); font-size: .92rem; }
.confirm-card dt { color: var(--taupe); }
.confirm-card dd { text-align: right; color: var(--ivory); }

.spinner { width: 30px; height: 30px; border: 3px solid var(--rule-soft); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .booking-grid { grid-template-columns: 1fr; }
  .checkout { position: static; }
}
