/* ============================================================
   store.css — exact eplv ticketing UI replica
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Nunito Sans", "proxima-nova-soft", Arial, sans-serif;
  font-size: 18px;
  color: #585a61;
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: #2e7d32; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 15px; }

/* ---- Header ---- */
.store-header {
  background: #fff;
  border-bottom: 3px solid #ddd;
}
.store-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
  height: 54px;
}
.store-logo img { height: 40px; }

.store-steps-nav {
  display: flex;
  gap: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.sstep {
  padding: 8px 12px;
  color: #ccc;
  position: relative;
}
.sstep.active { color: #585a61; }
.sstep + .sstep::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #ccc;
}

.store-cart-badge a { color: #585a61; font-size: 14px; font-weight: 600; }
.store-cart-badge i { margin-right: 2px; }

/* ---- Main content ---- */
.store-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

/* ---- Title ---- */
.s-title h1 {
  font-size: 55px;
  font-weight: 600;
  color: #585a61;
  margin: 0 0 10px;
  line-height: 1.1;
}

/* ---- Description panel ---- */
.s-desc-panel {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #585a61;
}
.s-desc-text { }

/* ---- Passport description ---- */
.s-passport-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #585a61;
  margin-bottom: 10px;
}
.s-passport-desc p { margin: 0 0 8px; }
.s-passport-desc ul { margin: 8px 0; padding-left: 20px; }
.s-passport-desc li { margin-bottom: 4px; }

.s-passport-subtitle {
  font-size: 30px;
  font-weight: 600;
  color: #585a61;
  margin: 5px 0 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

/* ---- Calendar button row ---- */
.s-cal-row {
  margin: 15px 0 20px;
}
.s-cal-btn {
  display: inline-block;
  padding: 7px 25px;
  border: none;
  border-radius: 20px;
  background: rgb(240, 241, 133);
  color: #000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.s-cal-btn:hover { background: #e6e760; }

/* ---- Ticket rows ---- */
.s-tickets { }

.t-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.t-left { flex: 1; min-width: 0; }
.t-name {
  font-size: 20px;
  font-weight: 600;
  color: #585a61;
  line-height: 1.3;
}
.t-desc {
  font-size: 18px;
  color: #585a61;
  margin-top: 2px;
}
.t-dt-label {
  font-size: 13px;
  color: #585a61;
  margin-top: 8px;
  font-weight: 600;
}
.t-dt-val {
  font-size: 15px;
  color: #585a61;
  margin-top: 2px;
}

.t-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}
.t-price {
  font-size: 20px;
  font-weight: 600;
  color: #585a61;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

/* Qty controls — exact original: bg #e9f8f8, 20×40 */
.t-qty {
  display: flex;
  align-items: center;
}
.q-minus, .q-plus {
  width: 20px;
  height: 40px;
  border: none;
  background: #e9f8f8;
  color: #585a61;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  outline: none;
}
.q-minus:hover, .q-plus:hover { background: #cfe8e8; }
.q-val {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #585a61;
  border: 1px solid #e9f8f8;
  background: #fff;
  padding: 0;
  flex-shrink: 0;
}

/* ---- Ticket details (Family) ---- */
.t-details-row {
  width: 100%;
  padding-left: 0;
  margin-top: 6px;
}
.t-details-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #585a61;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.t-details-btn:hover { text-decoration: underline; }
.t-details-btn i { font-size: 10px; }
.t-details-content {
  margin-top: 8px;
  font-size: 14px;
  color: #585a61;
  line-height: 1.6;
}
.t-details-content p { margin: 4px 0; }

/* ---- Add to cart button ---- */
.s-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}
.s-add-btn {
  display: inline-block;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  background: #0a71a6;
  color: #fff;
  cursor: pointer;
}
.s-add-btn:hover { background: #085d8a; }

/* ---- Validation error ---- */
.s-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: #d6443c;
  font-size: 14px;
  line-height: 1.4;
}
.s-error i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Museum list ---- */
.s-museum-list { display: flex; flex-direction: column; gap: 12px; }
.s-museum-card {
  display: block;
  padding: 15px 20px;
  background: #fafafa;
  border-radius: 3px;
  font-size: 16px;
}
.s-museum-card:hover { background: #f0f0f0; text-decoration: none; }
.s-museum-card h2 { margin: 0 0 4px; font-size: 18px; color: #333; }
.s-museum-card span { font-size: 13px; color: #888; }

/* ---- Footer ---- */
.store-footer {
  background: #333;
  color: #ccc;
  padding: 30px 15px;
  margin-top: 40px;
  font-size: 13px;
}
.footer-disclaimer { color: #f55; font-weight: 700; font-size: 12px; text-align: center; margin: 0 0 5px; text-transform: uppercase; }
.footer-sub { color: #aaa; font-size: 11px; text-align: center; margin: 0 0 20px; text-transform: uppercase; }
.footer-columns { display: flex; gap: 40px; justify-content: center; }
.footer-col h5 { color: #fff; margin: 0 0 8px; font-size: 13px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { color: #aaa; font-size: 12px; }

/* ================================================================
   CALENDAR MODAL
   ================================================================ */

.cal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.cal-modal {
  background: #fff;
  width: 470px; max-width: 95vw;
  max-height: 90vh; overflow-y: auto;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cal-modal-hdr {
  display: flex; justify-content: flex-end; margin-bottom: 10px;
}
.cal-close {
  background: none; border: none;
  font-size: 22px; color: #585a61; cursor: pointer;
  padding: 0 2px; line-height: 1;
}
.cal-close:hover { color: #333; }

.cal-body { width: 100%; }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 15px;
}
.cal-arrow {
  background: none; border: none;
  color: #585a61; font-size: 18px; cursor: pointer;
  padding: 5px 10px;
}
.cal-arrow:hover { color: #000; }
.cal-title {
  font-size: 18px; font-weight: 600; color: #333;
}
.cal-yr { color: #585a61; font-weight: 500; }

.cal-grid {
  width: 100%; border-collapse: collapse;
}
.cal-grid th {
  text-align: center; padding: 5px 0;
  font-size: 12px; color: #585a61; font-weight: 600;
}
.cal-grid td { text-align: center; padding: 2px; }

.cal-d {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1/1;
  font-size: 14px; color: #333;
  min-width: 36px; min-height: 36px;
}
.cal-ot { color: #ccc; }
.cal-na { color: #ccc; cursor: default; }
.cal-av { cursor: pointer; color: #333; }
.cal-av:hover { background: #e8f5e9; color: #2e7d32; }
.cal-td { background: #f5f5f5; font-weight: 700; }

/* ---- Time picker ---- */
.time-picker { width: 100%; }
.time-back {
  display: inline-block;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  color: #585a61;
  cursor: pointer;
  margin-bottom: 12px;
}
.time-back:hover { background: #f5f5f5; }
.time-back i { margin-right: 4px; }

.time-date {
  font-size: 18px; font-weight: 600;
  color: #333;
  padding: 5px 10px; margin-bottom: 12px;
}

.time-tbl {
  width: 100%; border-collapse: collapse;
}
.time-tbl thead th {
  text-align: center; padding: 5px;
  font-size: 12px; font-weight: 700;
  color: #585a61;
  border-bottom: 1px solid #eee;
}
.time-tbl td {
  text-align: center; padding: 6px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px; color: #585a61;
  vertical-align: middle;
}
.tt-time { font-size: 13px; }
.tt-st { font-size: 12px; }
.tt-cap { font-size: 12px; color: #888; }

.ts-btn {
  display: inline-block;
  padding: 5px 16px;
  border: none;
  border-radius: 20px;
  background: rgb(240, 241, 133);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
  white-space: nowrap;
}
.ts-btn:hover { background: #e6e760; }

/* ================================================================
   CART PAGE
   ================================================================ */

.cart-page { max-width: 940px; margin: 0 auto; padding: 20px 15px 40px; }

.cart-h2 { font-size: 24px; font-weight: 600; color: #585a61; margin: 0 0 20px; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th {
  text-align: left; padding: 10px;
  font-size: 12px; font-weight: 700; color: #585a61;
  border-bottom: 2px solid #ddd; text-transform: uppercase;
}
.cart-table td { padding: 10px; border-bottom: 1px solid #eee; vertical-align: middle; font-size: 14px; }
.cart-empty { text-align: center; padding: 40px; color: #888; font-size: 16px; }

.cart-summary {
  display: flex; justify-content: flex-end;
  gap: 20px; font-size: 16px; font-weight: 600;
  padding: 15px 0;
  border-top: 2px solid #ddd;
}
.cart-tax { display: flex; justify-content: flex-end; gap: 20px; font-size: 14px; color: #888; }
.cart-total { display: flex; justify-content: flex-end; gap: 20px; font-size: 18px; font-weight: 700; color: #333; }

.cart-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px;
}
.cart-continue { color: #0a71a6; font-size: 14px; text-decoration: none; }
.cart-continue i { margin-right: 4px; }

.cart-qty {
  display: flex; align-items: center;
}
.cart-qty .q-minus, .cart-qty .q-plus { width: 18px; height: 32px; }
.cart-qty .q-val { width: 35px; height: 32px; font-size: 15px; }

.btn-outline {
  background: none; border: 1px solid #ccc;
  color: #c00; font-size: 12px; padding: 5px 10px;
  border-radius: 4px; cursor: pointer;
}
.btn-outline:hover { background: #fef0f0; border-color: #c00; }

.btn-primary {
  display: inline-block;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  background: #0a71a6;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: #085d8a; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

/* ---- Checkout ---- */
.chk-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  align-items: flex-start;
}

.chk-main {
  flex: 1;
  padding: 15px;
}

.chk-summary {
  width: 280px;
  flex-shrink: 0;
  padding: 15px;
}

.chk-sum-h2 {
  font-size: 40px;
  font-weight: 600;
  color: #585a61;
  margin: 0 0 15px;
}

.chk-sum-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 18px;
  color: #585a61;
  border-bottom: 1px solid #eee;
}

.chk-sum-total {
  font-weight: 600;
  border-bottom: none;
  padding-top: 12px;
}

.chk-h1 {
  font-size: 40px;
  font-weight: 600;
  color: #585a61;
  margin: 0 0 15px;
}

.chk-section {
  margin-bottom: 20px;
}

.chk-h3 {
  font-size: 20px;
  font-weight: 600;
  color: #585a61;
  padding: 15px 0 0;
  margin: 0 0 5px;
}

.chk-label {
  font-size: 18px;
  color: #585a61;
  margin-right: 8px;
}

.chk-select {
  padding: 8px 10px;
  border: 1px solid #d1d1d1;
  font-size: 17px;
  color: #585a61;
  border-radius: 3px;
  background: #fff;
  min-width: 200px;
}

.chk-delivery {
  margin-top: 10px;
}

.chk-row {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.chk-half {
  flex: 1;
  min-width: 0;
}

.chk-full {
  width: 100%;
}

.chk-full-w {
  width: 100% !important;
}

.chk-fl {
  display: block;
  font-size: 18px;
  color: #585a61;
  margin-bottom: 4px;
}

.chk-input {
  width: 100%;
  height: 40px;
  padding: 18px 4.5px 4.5px;
  border: 1px solid #d1d1d1;
  font-size: 17px;
  font-family: inherit;
  color: #585a61;
  border-radius: 0;
  background: #fff;
}

.chk-input:focus {
  outline: none;
  border-color: #0a71a6;
}

.chk-card-fields {
  margin-top: 10px;
}

.chk-submit-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  background: #0a71a6;
  color: #fff;
  cursor: pointer;
}
.chk-submit-btn:hover { background: #085d8a; }
.chk-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

@media (max-width: 768px) {
  .s-title h1 { font-size: 36px; }
  .t-name, .t-price { font-size: 16px; }
  .chk-container { flex-direction: column; }
  .chk-summary { width: 100%; }
  .t-right { gap: 10px; }
  .chk-row { flex-direction: column; }
}

/* ============================================================
   Checkout & Confirmation Styles
   ============================================================ */

.checkout-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 15px;
}

.checkout-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.checkout-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.checkout-form-section {
  flex: 1;
  min-width: 0;
}

.checkout-summary-section {
  width: 320px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.checkout-form {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #585a61;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2e7d32;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.payment-option.active,
.payment-option:has(input:checked) {
  border-color: #2e7d32;
  background: #f0f9f0;
}

.payment-option input[type="radio"] {
  display: none;
}

.checkout-terms {
  margin: 20px 0;
  font-size: 14px;
}

.checkout-terms label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkout-terms a {
  color: #2e7d32;
}

.checkout-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-error {
  margin-top: 15px;
  padding: 12px;
  background: #fdecea;
  color: #c0392b;
  border-radius: 4px;
  font-size: 14px;
}

/* Summary */
.summary-items {
  margin-bottom: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.summary-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.summary-item-qty {
  font-size: 12px;
  color: #888;
}

.summary-item-price {
  font-size: 14px;
  font-weight: 600;
}

.summary-totals {
  padding-top: 10px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}

.summary-line.total {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  border-top: 2px solid #333;
  margin-top: 8px;
  padding-top: 10px;
}

/* Confirmation page */
.confirm-wrapper {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  padding: 30px 15px;
}

.confirm-icon {
  font-size: 64px;
  color: #2e7d32;
  margin-bottom: 20px;
}

.confirm-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.confirm-text {
  font-size: 16px;
  color: #585a61;
  margin-bottom: 10px;
}

.confirm-order {
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}

.confirm-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive checkout */
@media (max-width: 768px) {
  .checkout-layout {
    flex-direction: column-reverse;
  }
  .checkout-summary-section {
    width: 100%;
    position: static;
  }
}
