/* ============================================
   Spiritgust main-site shop: MOCKUP styles.
   Only additions. Every colour, font and button comes from style.css
   (:root tokens, .btn-primary, .btn-ghost, .section-heading look).
   ============================================ */

/* --- Header: cart sits just left of Get Tickets (and next to the menu on phones) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.shop-cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.shop-cart-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--border-subtle);
  background: rgba(139, 0, 255, 0.08);
}
.shop-cart-icon {
  display: block;
  flex-shrink: 0;
}
.shop-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent-cyan);
  color: var(--bg-darkest);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg-darkest);
}
.shop-cart-count[hidden] {
  display: none;
}

/* --- Add to cart, beside the existing Get Tickets / Book Now --- */
.shop-btn-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}
.shop-btn-row > * {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 14px;
  padding-right: 14px;
}
.shop-btn-row > .ticket-cta-btn,
.shop-btn-row > .room-enquire-btn {
  align-self: stretch;
}
.shop-add-btn {
  font-family: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.shop-add-btn:hover {
  transform: translateY(-2px);
}
/* Room cards: the two buttons share the card foot, so match the Book Now height. */
.room-cta-row {
  margin-top: auto;
}

/* --- Mini-cart drawer (desktop: right side, 400px; phone: bottom sheet) --- */
body.shop-lock {
  overflow: hidden;
}
.shop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 16, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 300;
}
.shop-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.shop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  z-index: 301;
}
.shop-drawer.is-open {
  transform: none;
  visibility: visible;
}
.shop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.shop-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  line-height: 1.2;
}
.shop-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.shop-drawer-close:hover {
  color: var(--accent-cyan);
}
.shop-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.shop-drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}
.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 56px 0;
  text-align: center;
}
.shop-empty-title {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Line items (drawer and checkout summary) */
.shop-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.shop-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.shop-line:last-child {
  border-bottom: none;
}
.shop-line-main {
  flex: 1 1 auto;
  min-width: 0;
}
.shop-line-name {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.shop-line-detail {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.shop-line-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.shop-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-active);
  border-radius: 8px;
  overflow: hidden;
}
.shop-step {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.shop-step:hover {
  background: rgba(0, 212, 255, 0.1);
}
.shop-qty {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.shop-remove {
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--accent-purple-text);
  text-decoration: underline;
  cursor: pointer;
}
.shop-remove:hover {
  color: var(--accent-magenta-text);
}
.shop-line-price {
  flex-shrink: 0;
  text-align: right;
}
.shop-price-inr {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}
.shop-price-alt {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shop-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: var(--text-primary);
}
.shop-subtotal-value {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.shop-foot-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shop-checkout-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.shop-keep {
  align-self: center;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
}

/* Phone: the drawer becomes a bottom sheet, at most 85% of the screen tall. */
@media (max-width: 600px) {
  .shop-drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-left: none;
    border-top: 1px solid var(--border-active);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .shop-drawer.is-open {
    transform: none;
  }
  .shop-drawer-head {
    padding: 16px 20px;
  }
  .shop-drawer-body {
    padding: 4px 20px;
  }
  .shop-drawer-foot {
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
}


/* The hidden attribute must win over the display rules above (totals rows, checkout panels). */
.shop-page [hidden],
.shop-drawer [hidden] {
  display: none !important;
}

/* --- Shop pages (checkout, order, failed) --- */
.shop-page {
  padding: calc(var(--header-height) + 36px) 0 72px;
  min-height: 70vh;
}
.shop-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.shop-crumbs {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shop-crumbs a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.shop-crumbs a:hover {
  text-decoration: underline;
}
.shop-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}
.shop-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  min-width: 0;
}
.shop-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.shop-summary {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

/* Form */
.shop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.shop-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.shop-field input,
.shop-field select,
.shop-promo-form input,
.shop-phone select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.shop-field input::placeholder,
.shop-promo-form input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.shop-field input:hover,
.shop-field select:hover,
.shop-promo-form input:hover {
  border-color: var(--border-active);
}
.shop-field input:focus-visible,
.shop-field select:focus-visible,
.shop-promo-form input:focus-visible,
.shop-phone select:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
  border-color: var(--accent-cyan);
}
.shop-phone {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 10px;
}
.shop-hint {
  margin: -6px 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shop-form-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

/* Order summary */
.shop-promo {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.shop-promo-q {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.shop-promo-form {
  display: flex;
  gap: 10px;
}
.shop-promo-form input {
  flex: 1 1 auto;
  min-width: 0;
}
.shop-apply {
  min-height: 48px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.shop-promo-err {
  min-height: 1.3em;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent-magenta-text);
}
.shop-promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-active);
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.06);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.shop-promo-applied strong {
  color: var(--accent-cyan);
}
.shop-link {
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
}
.shop-totals {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.shop-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.shop-totals dt,
.shop-totals dd {
  margin: 0;
}
.shop-totals dd {
  color: var(--text-primary);
}
.shop-totals .shop-total-row {
  align-items: baseline;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
}
.shop-totals .shop-total-row dd {
  color: var(--accent-cyan);
}
.shop-total-alt {
  margin-top: -4px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.shop-pay {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}
.shop-pay-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.shop-pay-fx {
  margin-top: 8px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.shop-pay-after {
  margin-top: 8px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.shop-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.shop-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shop-trust svg {
  flex-shrink: 0;
  color: var(--accent-green);
}
.shop-trust a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.shop-trust a:hover {
  text-decoration: underline;
}

/* Confirmation and failure */
.shop-centre {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.shop-centre .shop-card {
  text-align: left;
}
.shop-status-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  border-radius: 50%;
}
.shop-status-icon.is-ok {
  background: var(--accent-green);
  color: var(--bg-darkest);
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.3);
}
.shop-status-icon.is-fail {
  background: none;
  border: 2px solid var(--accent-magenta);
  color: var(--accent-magenta-text);
}
.shop-lede {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.shop-order-ref {
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.shop-order-ref strong {
  color: var(--accent-cyan);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.shop-order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.98rem;
  color: var(--text-primary);
}
.shop-order-line:last-child {
  border-bottom: none;
}
.shop-order-line small {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.shop-order-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shop-email-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.shop-email-note strong {
  color: var(--text-primary);
}
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.shop-actions > * {
  font-family: inherit;
  cursor: pointer;
}
.shop-actions > a,
.shop-actions > button {
  min-height: 48px;
}
.shop-help {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.shop-help a {
  color: var(--accent-cyan);
}

/* Tablet and below: one column, form first, summary below. */
@media (max-width: 900px) {
  .shop-checkout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .shop-summary {
    position: static;
  }
}

/* Phone: 16px gutter, tighter cards. */
@media (max-width: 480px) {
  .shop-wrap {
    padding: 0 16px;
  }
  .shop-page {
    padding-top: calc(var(--header-height) + 24px);
  }
  .shop-card {
    padding: 20px;
  }
  .shop-phone {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .shop-btn-row > * {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.92rem;
  }
  .shop-add-btn {
    font-size: 0.92rem;
  }
}

/* Under 360px the two ticket buttons cannot share a row, so they stack full width. */
@media (max-width: 359px) {
  .shop-btn-row {
    flex-direction: column;
  }
}

/* The cart icon stays hidden when the shop catalogue does not load (fallback). */
.shop-cart-toggle[hidden] {
  display: none !important;
}
