/* ── Variables ──────────────────────────────────────────── */
:root {
  --cream:       #FDF6EC;
  --beige:       #EDE0D0;
  --tan:         #D4B896;
  --caramel:     #C4884E;
  --caramel-dk:  #A86A30;
  --brown:       #7B4F2E;
  --dark:        #2C1A0E;
  --matcha:      #5E8F6B;
  --matcha-dk:   #3D6647;
  --matcha-lt:   #A8C5A0;
  --white:       #FFFFFF;
  --text:        #2A1A0E;
  --text-mid:    #6B5740;
  --text-lt:     #9C856C;
  --border:      rgba(44,26,14,.12);
  --shadow-sm:   0 1px 6px rgba(44,26,14,.08);
  --shadow:      0 4px 20px rgba(44,26,14,.12);
  --shadow-lg:   0 12px 40px rgba(44,26,14,.18);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  width: 100%;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--caramel); }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ── Layout helpers ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.muted { color: var(--text-lt); font-size: .9rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--caramel);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--caramel-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,136,78,.4); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary.btn-large { font-size: 1.05rem; padding: .85rem 2rem; }
.btn-primary.btn-full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-size: .9rem; font-weight: 500;
  padding: .65rem 1.25rem;
  border-radius: 50px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover  { border-color: var(--caramel); color: var(--caramel); }
.btn-ghost.btn-full { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--beige); color: var(--dark); }

/* ── Logo ───────────────────────────────────────────────── */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--dark);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: -.02em;
}
.logo-mark.sm { width: 30px; height: 30px; font-size: .85rem; border-radius: 7px; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,246,236,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.cart-trigger {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--dark);
  transition: background var(--transition);
}
.cart-trigger:hover { background: var(--beige); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--caramel);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  transition: transform .2s;
}
.cart-badge.bump { transform: scale(1.3); }

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 8%, rgba(255,255,255,.45) 0%, transparent 70%),
    linear-gradient(165deg, #EFD79A 0%, #E8C97D 52%, #DFBC68 100%);
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23C4884E' fill-opacity='.12'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }

/* Brand logo image (falls back to text emblem if img/logo.png is missing) */
.hero-logo {
  display: block;
  width: min(320px, 80%);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.nav-logo-img {
  width: 38px; height: 38px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.hero-emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: var(--dark);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
}
.hero-title  { color: var(--dark); margin-bottom: .5rem; letter-spacing: -.02em; }
.hero-tagline {
  font-size: 1.1rem; color: var(--text-mid); margin-bottom: 2rem;
  font-style: italic;
}
.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
  margin-top: 1.75rem;
  font-size: .9rem; color: var(--text-mid);
}
.hero-meta-item { display: flex; align-items: center; gap: .4rem; }
.hero-meta-sep  { color: var(--tan); }

/* ── Section headers ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { color: var(--dark); margin-bottom: .4rem; }
.section-sub { font-size: 1rem; color: var(--text-mid); font-style: italic; }
.section-header.light h2 { color: var(--white); }
.section-header.light .section-sub { color: rgba(255,255,255,.75); }

/* ── Menu ───────────────────────────────────────────────── */
#menu {
  padding: 5rem 0;
  background: var(--white);
}
.menu-tabs {
  display: flex; justify-content: center; gap: .5rem;
  margin-bottom: 2.5rem;
}
.menu-tab {
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-size: .95rem; font-weight: 500;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.menu-tab:hover  { border-color: var(--caramel); color: var(--caramel); }
.menu-tab.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Menu card */
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-visual {
  position: relative;
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}
.card-visual.coffee-bg {
  background: linear-gradient(135deg, #F5E6D0 0%, #D4A574 50%, #8B5E3C 100%);
}
.card-visual.matcha-bg {
  background: linear-gradient(135deg, #D8EDD6 0%, #7DBE8A 50%, #4A7C5E 100%);
}
.card-visual .drink-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
  transition: transform var(--transition);
}
.menu-card:hover .drink-emoji { transform: scale(1.1) rotate(-5deg); }

.card-visual img.drink-img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}

.sold-out-overlay {
  position: absolute; inset: 0;
  background: rgba(44,26,14,.55);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.sold-out-label {
  background: var(--white);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: .3rem; color: var(--dark); }
.card-desc { font-size: .875rem; color: var(--text-mid); flex: 1; margin-bottom: .9rem; line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.add-btn {
  background: var(--dark);
  color: var(--white);
  font-size: .85rem; font-weight: 600;
  padding: .45rem .95rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}
.add-btn:hover  { background: var(--caramel); transform: scale(1.05); }
.add-btn:active { transform: scale(.97); }
.add-btn:disabled {
  background: var(--beige); color: var(--text-lt); cursor: not-allowed; transform: none;
}

/* ── Cart sidebar ───────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44,26,14,.4);
  backdrop-filter: blur(2px);
  transition: opacity var(--transition);
}
.overlay.hidden { opacity: 0; pointer-events: none; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(400px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; }

.cart-body { flex: 1; overflow-y: auto; padding: .75rem 1.5rem; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  min-height: 200px;
  gap: .5rem;
  color: var(--text-lt);
}
.empty-icon { font-size: 2.5rem; opacity: .4; margin-bottom: .25rem; }

/* Cart item row */
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .875rem; color: var(--text-mid); }
.cart-item-controls { display: flex; align-items: center; gap: .5rem; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--dark);
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.qty-count { font-weight: 600; min-width: 20px; text-align: center; }
.remove-item-btn { color: var(--text-lt); font-size: 1.1rem; padding: .25rem; transition: color var(--transition); }
.remove-item-btn:hover { color: #e55; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .9rem;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.05rem;
}
.cart-total-row strong { font-size: 1.2rem; color: var(--dark); }

/* ── Checkout modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,26,14,.45);
  backdrop-filter: blur(4px);
  padding: 1rem;
  transition: opacity var(--transition);
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 2rem;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .28s cubic-bezier(.34,1.3,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-mid);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--beige); }

/* Step indicators */
.step-track {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 1.75rem;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--beige);
  transition: background var(--transition), transform var(--transition);
}
.step-dot.active   { background: var(--caramel); transform: scale(1.25); }
.step-dot.complete { background: var(--dark); }
.step-line {
  flex: 1; max-width: 60px; height: 2px;
  background: var(--beige);
  margin: 0 4px;
  transition: background var(--transition);
}
.step-line.complete { background: var(--dark); }

.checkout-step h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.step-sub { color: var(--text-mid); font-size: .9rem; margin-bottom: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--text-mid); }

.free-drink-notice {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D4);
  border: 1.5px solid #F0C060;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* PayNow card */
.paynow-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.paynow-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.paynow-logo { font-size: 1.1rem; letter-spacing: .02em; opacity: .9; }
.paynow-flag { font-size: 1.3rem; }
.paynow-amount-wrap { margin-bottom: 1.25rem; }
.paynow-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: .2rem; }
.paynow-amount { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.paynow-to { margin-bottom: 1rem; }
.paynow-number-row { display: flex; align-items: center; gap: .75rem; margin-top: .2rem; }
.paynow-number { font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; }
.copy-chip {
  font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,.18);
  color: white;
  padding: .25rem .65rem;
  border-radius: 50px;
  transition: background var(--transition);
}
.copy-chip:hover { background: rgba(255,255,255,.3); }
.copy-chip.copied { background: #3dbf7a; }
.paynow-hint { font-size: .8rem; opacity: .6; line-height: 1.5; }

/* PayNow QR */
.paynow-qr-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 1.25rem;
}
.paynow-qr {
  width: 200px; height: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.paynow-qr svg { display: block; width: 100%; height: 100%; }
.paynow-qr-error {
  font-size: .8rem; color: #ffb4b4; text-align: center;
  padding: 1rem; line-height: 1.5;
}
.paynow-scan-hint {
  font-size: .8rem; opacity: .7; margin-top: .6rem;
}
.save-qr-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .85rem;
  padding: .5rem 1.1rem;
  font-size: .82rem; font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50px;
  transition: background var(--transition), border-color var(--transition);
}
.save-qr-btn:hover  { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }
.save-qr-btn:active { transform: scale(.97); }
.paynow-ref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .85rem;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.paynow-ref { font-size: 1rem; font-weight: 600; letter-spacing: .03em; }

/* Confirmation step */
.success-ring {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(76,175,80,.3);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.confirm-box {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.confirm-box p { margin-bottom: .3rem; }
.confirm-box strong { color: var(--dark); }

.loyalty-update-box {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D4);
  border: 1.5px solid #F0C060;
  border-radius: var(--radius-sm);
  padding: .9rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  text-align: center;
}

/* ── Loyalty section ────────────────────────────────────── */
#loyalty {
  padding: 5rem 0;
  background: linear-gradient(160deg, #2C1A0E 0%, #4A2E1A 100%);
  color: var(--white);
}
.loyalty-lookup { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.loyalty-input-group {
  display: flex; gap: .75rem;
  width: 100%; max-width: 460px;
  flex-wrap: wrap;
}
.loyalty-input-group input {
  flex: 1; min-width: 200px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.loyalty-input-group input::placeholder { color: rgba(255,255,255,.45); }
.loyalty-input-group input:focus { border-color: var(--caramel); }

/* Loyalty card display */
.loyalty-card-display {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  animation: fadeUp .3s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.stamp-card-header { margin-bottom: 1.25rem; }
.stamp-card-header h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: .2rem; }
.stamp-progress { font-size: .9rem; color: rgba(255,255,255,.65); }

.stamp-grid {
  display: flex; gap: .65rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.stamp {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: all .2s;
}
.stamp.filled {
  background: var(--caramel);
  border-color: var(--caramel);
  box-shadow: 0 2px 8px rgba(196,136,78,.5);
}
.stamp.free {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-color: #FFD700;
  box-shadow: 0 2px 12px rgba(255,215,0,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 2px 12px rgba(255,215,0,.5); } 50% { box-shadow: 0 2px 20px rgba(255,215,0,.8); } }

.free-drink-banner {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .logo-mark { background: var(--caramel); }
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; }
.footer-info { font-size: .875rem; line-height: 2; }
.footer-admin-link { font-size: .875rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-admin-link:hover { color: var(--caramel); }
.footer-copy { font-size: .8rem; text-align: center; opacity: .45; }

/* ── Toast notifications ────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: .7rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn .28s cubic-bezier(.34,1.3,.64,1);
  pointer-events: all;
}
.toast.fade-out { animation: toastOut .25s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.9); } }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Hero */
  #hero { padding: 5rem 1.25rem 3.5rem; }
  .hero-emblem { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; margin-bottom: 1rem; }
  .hero-meta { flex-direction: column; gap: .45rem; }
  .hero-meta-sep { display: none; }

  /* Menu tabs — comfortable touch targets */
  .menu-tabs { gap: .4rem; }
  .menu-tab  { padding: .7rem 1.25rem; font-size: .9rem; min-height: 44px; }

  /* ── Horizontal card layout on phones ── */
  .menu-grid { grid-template-columns: 1fr; gap: .65rem; }

  .menu-card { flex-direction: row; align-items: stretch; }

  .card-visual {
    width: 100px; height: auto; flex-shrink: 0;
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .card-visual .drink-emoji { font-size: 2.2rem; }

  .card-body {
    padding: .75rem 1rem;
    display: flex; flex-direction: column; justify-content: center; gap: .2rem;
  }
  .card-body h4 { font-size: .95rem; margin-bottom: 0; }

  /* Hide description — name + price is enough on mobile */
  .card-desc { display: none; }

  .card-footer { margin-top: .4rem; }

  .card-price { font-size: 1rem; }

  /* Bigger add-to-cart touch target */
  .add-btn { padding: .55rem 1.1rem; font-size: .85rem; min-height: 36px; }

  /* Cart — full-width on mobile */
  .cart-sidebar { width: 100vw; }

  /* Bigger qty buttons for thumbs */
  .qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }

  /* ── Checkout: bottom sheet on mobile ── */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.5rem 1.25rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    animation: slideUp .3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Drag handle hint for bottom sheet */
  .modal-box::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--beige);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
  }

  /* Loyalty */
  .loyalty-input-group { flex-direction: column; }
  .loyalty-input-group .btn-primary { width: 100%; justify-content: center; min-height: 48px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1rem; }
}

/* Ensure no horizontal scroll on any screen */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .paynow-amount { font-size: 1.8rem; }
}
