/* === BLUE SHELF MICROBAKERY === FILE: css/stand.css === */
/* Mobile-first in-person "stand" kiosk page. */

#page-stand { padding-top: 0; background: var(--cream); }
.stand-wrap { max-width: 540px; margin: 0 auto; padding: 0 1rem 1rem; position: relative; min-height: 100vh; }

/* HERO */
.stand-hero {
  text-align: center; padding: 1.75rem 0.5rem 1.25rem;
}
.stand-hero-logo {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem;
  color: var(--navy); letter-spacing: 0.02em; margin-bottom: 0.6rem;
}
.stand-hero-logo span { color: var(--blue); }
.stand-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 1.85rem; color: var(--navy); line-height: 1.1;
}
.stand-hero p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* SECTIONS */
.stand-section { margin-bottom: 1.5rem; }
.stand-section-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); margin-bottom: 0.85rem;
}

/* PRODUCT CARDS — single column, big tap targets */
.stand-products { display: flex; flex-direction: column; gap: 0.75rem; }
.stand-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius);
  padding: 0.7rem; box-shadow: var(--shadow);
}
.stand-card--soldout { opacity: 0.55; }
.stand-card-img {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.stand-card-img img { width: 100%; height: 100%; object-fit: cover; }
.stand-card-body { flex: 1; min-width: 0; }
.stand-card-name { font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.2; }
.stand-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.stand-card-price { font-weight: 700; color: var(--blue-dark); font-size: 0.95rem; }
.stand-card-stock { font-size: 0.78rem; color: var(--text-muted); }
.stand-card-stock.low { color: var(--red); }
.stand-soldout-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--red);
  background: var(--red-light); padding: 0.15rem 0.5rem; border-radius: 50px;
}

/* QTY CONTROLS — 44px+ tap targets */
.stand-qty { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.stand-qty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--blue);
  background: var(--white); color: var(--blue-dark); font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.stand-qty-btn:active { background: var(--blue-xlight); }
.stand-qty-btn:disabled { opacity: 0.3; cursor: default; }
.stand-qty-btn.hidden { visibility: hidden; }
.stand-qty-num { min-width: 26px; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--navy); }

/* DETAILS FORM */
.stand-field { margin-bottom: 0.9rem; }
.stand-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.stand-optional { font-weight: 400; color: var(--text-muted); }
.stand-field input, .stand-field textarea {
  width: 100%; padding: 0.8rem 0.85rem; border: 1.5px solid var(--cream-dark); border-radius: 12px;
  background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 1rem; outline: none; resize: none;
}
.stand-field input:focus, .stand-field textarea:focus { border-color: var(--blue); }

.stand-pay-options { display: flex; gap: 0.6rem; }
.stand-pay-option {
  flex: 1; padding: 0.85rem 0.5rem; border-radius: 12px; border: 1.5px solid var(--cream-dark);
  background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; touch-action: manipulation;
}
.stand-pay-option.selected { border-color: var(--navy); background: var(--navy); color: var(--cream); }

/* STICKY CHECKOUT BAR */
.stand-checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--cream-dark);
  box-shadow: 0 -4px 24px rgba(28,43,58,0.10);
}
.stand-checkout-bar.hide { display: none; }
.stand-checkout-info { display: flex; flex-direction: column; line-height: 1.15; }
.stand-checkout-info span { font-size: 0.78rem; color: var(--text-muted); }
.stand-checkout-info strong { font-size: 1.25rem; color: var(--navy); font-family: 'Playfair Display', serif; }
.stand-place-btn {
  flex: 1; margin-left: auto; max-width: 260px; padding: 0.95rem 1rem; border: none; border-radius: 50px;
  background: var(--blue); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 1.05rem;
  font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.stand-place-btn:active { background: var(--blue-dark); }
.stand-place-btn:disabled { opacity: 0.45; cursor: default; }

/* SUCCESS OVERLAY */
.stand-success {
  display: none; position: fixed; inset: 0; z-index: 100; background: var(--cream);
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; overflow-y: auto;
}
.stand-success.show { display: flex; animation: fadeIn 0.35s ease both; }
.stand-success-check { width: 84px; height: 84px; margin-bottom: 1.25rem; flex-shrink: 0; }
.stand-success-check svg { width: 100%; height: 100%; }
.stand-success h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 0.5rem; }
.stand-success > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.stand-next-btn {
  padding: 1rem 2.5rem; border: none; border-radius: 50px; background: var(--navy); color: var(--cream);
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}

/* E-TRANSFER PROMPT */
.stand-etransfer-card {
  background: var(--blue-xlight); border: 1.5px solid var(--blue); border-radius: 16px;
  padding: 1.25rem 1.5rem; margin: 0.25rem 0 1.5rem; width: 100%; max-width: 320px; text-align: center;
}
.stand-etransfer-amount {
  font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--navy);
  line-height: 1.1; margin-bottom: 0.5rem;
}
.stand-etransfer-to {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.09em; margin: 0 0 0.35rem;
}
.stand-etransfer-email {
  font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); word-break: break-all;
  border: none; display: block; width: 100%; padding: 0.6rem 0.75rem; cursor: pointer;
  background: var(--white); border-radius: 10px; margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif; touch-action: manipulation;
}
.stand-etransfer-email:active { background: var(--blue-xlight); }
.stand-etransfer-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Larger screens: keep it centered and tidy */
@media (min-width: 600px) {
  .stand-hero h1 { font-size: 2.1rem; }
}
