/* ============================================
   HKR BAKING ACADEMY - MAIN STYLES
   Mobile-first | Brand: #550000, #e3bc6c, #faf5f0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:       #f78caf;
  --primary-dark:  #d96d90;   /* deeper shade for hover/active */
  --primary-light: #fbb3c9;   /* softer highlight version */

  --gold:          #ffffff;
  --gold-dark:     #e6e6e6;

  --bg:            #faf5f0;
  --bg-card:       #ffffff;
  --bg-dark:       #1a0a0a;

  --text-primary:  #1c0a0a;
  --text-secondary:#6b5c5c;
  --text-muted:    #a08a8a;

  --border:        #ede5df;
  --border-dark:   #d4c4be;

  --success:       #2e7d32;
  --error:         #c62828;
  --warning:       #e65100;

  --shadow-sm:     0 1px 3px rgba(247,140,175,0.08);
  --shadow-md:     0 4px 12px rgba(247,140,175,0.12);
  --shadow-lg:     0 8px 24px rgba(247,140,175,0.16);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --font-display:  'DM Serif Display', serif;
  --font-body:     'DM Sans', sans-serif;

  --max-w:         480px;
  --header-h:      52px;
  --transition:    0.2s ease;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overscroll-behavior-y: none;
}

/* ============ APP WRAPPER (max 480px centered) ============ */
.app-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden; /* clip absolute search overlay inside shell */
  box-shadow: 0 0 40px rgba(0,0,0,0.12);
}

/* ============ TYPOGRAPHY ============ */
h1, h2 { font-family: var(--font-display); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 0.95rem; font-weight: 600; }
p  { font-size: 0.82rem; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }
/* ================================================================
   HKR BAKING ACADEMY — main.css ADDITIONS
   Paste these at the END of your existing main.css file
   ================================================================ */

/* ── Task 2: Success Screen Enhancements ─────────────────────── */

.success-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(247, 140, 175, 0.1);
  border: 1.5px solid rgba(247, 140, 175, 0.28);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Full-width breakdown card */
.success-breakdown-card {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 4px 0 14px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.success-breakdown-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.success-items-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 4px;
}

.success-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.success-item-left {
  display: flex;
  gap: 7px;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.success-item-qty {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 22px;
  padding-top: 1px;
}

.success-item-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.success-item-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.success-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.success-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-secondary);
  padding: 2px 0;
  line-height: 1.5;
}

.success-discount-row {
  color: var(--success);
  font-weight: 600;
}

.success-total-row {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.success-total-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Action buttons group */
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* "View Order Details" secondary button */
.success-btn-secondary {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
}

.success-btn-secondary:hover,
.success-btn-secondary:active {
  background: rgba(247, 140, 175, 0.1);
}

/* "Navigate to Store" green button */
.success-btn-navigate {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
  transition: opacity 0.18s, transform 0.1s;
}

.success-btn-navigate:active {
  opacity: 0.88;
  transform: scale(0.98);
}

/* ── Task 4: Navigate button in Checkout ─────────────────────── */

.navigate-store-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: opacity 0.2s, transform 0.1s;
}

.navigate-store-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.navigate-store-btn:active:not(:disabled) {
  opacity: 0.88;
  transform: scale(0.98);
}

/* ── Spin animation (for location loading) ───────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============ SCREEN MANAGER ============ */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}
.screen.active { display: flex; }

/* ============ SPLASH / LANDING SCREEN ============ */
#screen-landing {
  background: var(--primary);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#screen-landing::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(227,188,108,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

#screen-landing::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(227,188,108,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.landing-logo {
  margin-bottom: 60px;
  animation: fadeInDown 0.6s ease;
}

.landing-logo-img {
  width: 230px;
  max-width: 85%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(247,140,175,0.4));
}

.landing-logo .brand-name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: #fff;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.landing-logo .brand-sub {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.landing-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 32px;
}
.landing-divider::before,
.landing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(227,188,108,0.4);
}
.landing-divider span { color: var(--gold); font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; }

.landing-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  animation: fadeIn 0.6s 0.2s ease both;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

.landing-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  padding: 13px 24px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
}
.btn-primary:hover:not(:disabled) { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--border-dark);
  color: var(--text-primary);
}
.btn-outline-dark:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--error); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.74rem; }
.btn-lg { padding: 16px 32px; font-size: 0.85rem; }

/* Loading spinner in button */
.btn-loading .btn-text { opacity: 0; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============ HEADER ============ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.header-back {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #ff0053;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-back:hover { background: rgba(255,255,255,0.2); }

.header-back-profile {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-back-profile:hover { background: rgba(255,255,255,0.2); }

.header-title {
    color:white;
  flex: 1;
  display: flex;
  align-items: center;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
/* Logo inside header */
.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  animation: headerLogoIn 0.5s ease;
}

@keyframes headerLogoIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-cart-btn {
  position: relative;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.header-cart-btn:hover { background: rgba(255,255,255,0.2); }

.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

/* ============ FILTER TAG BUTTONS ============ */
.filter-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 50px;
  border: 1.5px solid var(--border-dark);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.filter-tag-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-tag-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============ PRODUCT TAGS (on card) ============ */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
}
.ptag-new      { background: #fff3e0; color: #e65100; }
.ptag-featured { background: #fce4ec; color: #880e4f; }
.ptag-seller   { background: #ffebee; color: #c62828; }
.ptag-offer    { background: #e8f5e9; color: #2e7d32; }
.ptag-gifting  { background: #f3e5f5; color: #6a1b9a; }

/* ============ COUPON BANNER ============ */
.coupon-banner {
  margin: 10px 12px;
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: default;          /* slider handles interaction */
  padding: 0 !important;   /* slider provides its own padding */
  min-height: 54px;
}
 
.coupon-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}
 
.coupon-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
 
.coupon-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
}
 
/* Dot indicators */
.coupon-slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 6px;
}
 
.coupon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
 
.coupon-dot.active {
  background: var(--primary);
  width: 16px;
  border-radius: 3px;
}
 
/* Apply button inside banner */
.coupon-banner-apply {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  font-family: var(--font-body);
  transition: 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-right: 4px;
}
 
.coupon-banner-apply.eligible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.coupon-banner-apply.eligible:hover {
  background: var(--primary-dark);
}
 
.coupon-banner-apply.not-eligible {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-muted);
  cursor: default;
  font-size: 0.66rem;
}
.coupon-banner-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.coupon-banner-text strong { font-size: 0.8rem; color: var(--primary); display: block; }
.coupon-banner-text span { font-size: 0.72rem; color: var(--text-secondary); }

.view-offers-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  margin-top: 6px;
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
  position: relative;
}
 
.view-offers-btn:hover {
  background: #fff9f0;
  border-color: var(--gold-dark);
}
 
.view-offers-btn svg {
  flex-shrink: 0;
  color: var(--gold-dark);
}
 
.offers-count-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}
 
/* Coupon applied row (when coupon is active in cart) */
.coupon-applied-row {
  margin-bottom: 8px;
}
 
/* ─── FIX #5: Offers Bottom Sheet items ─────────────────────────────────── */
 
.offer-item {
  padding: 14px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #fff;
  transition: 0.2s;
}
 
.offer-item.offer-eligible {
  border-color: rgba(85, 0, 0, 0.2);
  background: #fff9f5;
}
 
.offer-item.offer-locked {
  opacity: 0.85;
}
 
.offer-code-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: monospace;
  color: var(--text-primary);
}
 
.offer-eligible-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: #e8f5e9;
  border-radius: 50px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 0.3px;
}
 
.offer-apply-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1.5px solid;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  align-self: flex-start;
}
 
.offer-apply-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.offer-apply-btn.active:hover {
  background: var(--primary-dark);
}
 
.offer-apply-btn.inactive {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============ MENU HEADER / STICKY NAV ============ */
.menu-header {
  background: var(--primary);
  padding: 10px 12px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}

.menu-search-bar {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
.menu-search-bar span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.menu-search-bar .icon { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Category Pills Nav */
.cat-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto !important;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav.is-dragging { cursor: grabbing; }
.cat-nav .cat-pill { scroll-snap-align: start; }

.cat-pill {
  flex-shrink: 0;
}
 
/* Ensure the sticky header container doesn't clip the scroll */
.menu-header {
  overflow: visible;
}

.cat-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: transparent;
}
.cat-pill.active,
.cat-pill:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-dark);
}
.coupon-banner-wrap {
  margin: 10px 12px 4px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px dashed #ff7aad;
  background: #ffd5e5;
  user-select: none;
  -webkit-user-select: none;
}
 
.coupon-banner-slider {
  overflow: hidden;
  border-radius: var(--radius-md);
}
 
.coupon-slides-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
 
.coupon-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: default;
  box-sizing: border-box;
}
 
.coupon-slide-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
 
.coupon-slide-text {
  flex: 1;
  min-width: 0;
}
.coupon-slide-text strong {
  font-size: 0.8rem;
  color: var(--primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-slide-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
 
/* Apply button inside each slide */
.coupon-slide-apply {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
  white-space: nowrap;
}
.coupon-slide-apply:hover:not(:disabled) {
  background: var(--primary-dark, #3d0000);
  border-color: var(--primary-dark, #3d0000);
}
.coupon-slide-apply.disabled-apply,
.coupon-slide-apply:disabled {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}
 
/* Slider dot indicators */
.coupon-banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 6px;
}
.coupon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-dark);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  border: none;
  padding: 0;
}
.coupon-dot.active {
  background: var(--gold);
  width: 14px;
  border-radius: 3px;
}
/* ============ MENU CONTENT ============ */
.menu-content {
  padding: 12px;
  padding-bottom: 00px;
}

/* Category Section */
.category-section { margin-bottom: 20px; }
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}
.category-header h2 {
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.category-header .count {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.category-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}
.category-toggle.collapsed { transform: rotate(-90deg); }

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-sm); }
.product-card:active { transform: scale(0.99); }

.product-card-info {
  flex: 1;
  padding: 12px;
  min-width: 0;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 5px;
}
.veg-dot {
  width: 14px; height: 14px;
  border: 1.5px solid #2e7d32;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.veg-dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2e7d32;
}
/* Non-veg variant */
.veg-dot.non-veg {
  border-color: #c62828;
}
.veg-dot.non-veg::after {
  background: #c62828;
  border-radius: 2px; /* Triangle-ish — square inner for non-veg convention */
}

.product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.product-price-original {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg);
}
.product-card-img-placeholder {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0e8e2, #e8ddd5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ADD button */
.add-btn-wrap {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.add-btn {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.add-btn:hover { background: var(--primary); color: #fff; }

/* Quantity control on card */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--primary);
  border-radius: 50px;
  overflow: hidden;
}
.qty-btn {
  width: 28px; height: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  transition: var(--transition);
}
.qty-btn:hover { background: rgba(255,255,255,0.15); }
.qty-num { font-size: 0.8rem; font-weight: 700; color: #fff; min-width: 22px; text-align: center; }

/* ============ STICKY CART BAR ============ */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  padding: 10px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 200;
  display: none;
}
.cart-bar.show { display: block; }

.cart-bar-inner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.cart-bar-inner:hover { background: var(--primary-dark); }

.cart-bar-info { display: flex; flex-direction: column; }
.cart-bar-count { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.cart-bar-total { font-size: 0.95rem; font-weight: 700; color: #fff; }

.cart-bar-cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============ SKELETON LOADING ============ */
.skeleton {
  background: linear-gradient(90deg, #f0e8e2 25%, #e8ddd5 50%, #f0e8e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--border);
}
.skeleton-img { width: 80px; height: 80px; border-radius: var(--radius-sm); flex-shrink: 0; }
.skeleton-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

/* ============ PRODUCT DETAIL SHEET ============ */
.bottom-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bottom-sheet-overlay.show { opacity: 1; pointer-events: all; }

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  z-index: 301;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.bottom-sheet.show { transform: translateX(-50%) translateY(0); }

.sheet-drag-handle {
  width: 36px; height: 4px;
  background: var(--border-dark);
  border-radius: 2px;
  margin: 7px auto 7px;
}

.sheet-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0e8e2, #e8ddd5);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}

.sheet-product-img img {
  width: 100%; height: 100%; object-fit: contain;
}

.sheet-body { padding: 16px 16px 0; }

.sheet-product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sheet-product-price { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.sheet-product-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

.addon-section h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.addon-item:last-child { border-bottom: none; }
.addon-name { font-size: 0.82rem; color: var(--text-primary); }
.addon-price { font-size: 0.82rem; color: var(--text-secondary); margin-left: 8px; white-space: nowrap; }

.addon-checkbox {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.sheet-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.offers-bottom-sheet {
  max-height: 85vh;
}
 
.offers-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.offers-sheet-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.offers-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.offers-close-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
 
.offers-sheet-content {
  padding: 10px 12px 32px;
  overflow-y: auto;
}
 
/* Individual offer card */
.offer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.offer-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.offer-item-dim {
  opacity: 0.65;
}
 
.offer-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
 
.offer-code-tag {
  flex-shrink: 0;
  padding: 4px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: monospace;
  border-radius: 6px;
  text-transform: uppercase;
  margin-top: 1px;
}
 
.offer-info { flex: 1; min-width: 0; }
.offer-disc-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.offer-min-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
 
/* Status labels */
.offer-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 2px;
}
.offer-status.applied   { background: #e8f5e9; color: #2e7d32; }
.offer-status.expired   { background: #ffebee; color: var(--error, #c62828); }
.offer-status.shortfall { background: #fff3e0; color: #e65100; }
 
/* Apply button inside offers sheet */
.offer-apply-btn-sheet {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  white-space: nowrap;
}
.offer-apply-btn-sheet.enabled:hover {
  background: var(--primary);
  color: #fff;
}
.offer-apply-btn-sheet.applied {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}
.offer-apply-btn-sheet.disabled {
  border-color: var(--border-dark);
  color: var(--text-muted);
  cursor: not-allowed;
}
 
 
/* ──────────────────────────────────────────────────────────
   FIX #2: Belt-and-suspenders — cart-bar NEVER shows on
   non-menu screens, even if JS hasn't run yet
────────────────────────────────────────────────────────────── */
#screen-cart   .cart-bar,
#screen-checkout .cart-bar,
#screen-success  .cart-bar { display: none !important; }
 
 
/* ──────────────────────────────────────────────────────────
   Inline qty-control sizing for product cards
────────────────────────────────────────────────────────────── */
.qty-control-inline .qty-btn {
  width: 26px;
  height: 26px;
}
.qty-control-inline .qty-num {
  font-size: 0.78rem;
  min-width: 18px;
}
/* ============ CART SCREEN ============ */
.cart-content { padding: 12px; padding-bottom: 120px; flex: 1; }

.cart-from-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #f0e8e2, #e8ddd5);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-addons { font-size: 0.7rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Bill Summary */
.bill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.bill-card h3 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.bill-row:last-child { margin-bottom: 0; }
.bill-row.total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.88rem;
}
.bill-row .label { color: var(--text-secondary); }
.bill-row .value { color: var(--text-primary); font-weight: 500; }
.bill-row.discount .value { color: var(--success); }
.bill-row.total .value { color: var(--primary); font-size: 1rem; }

/* Coupon Input */
.coupon-input-row {
  display: flex;
  gap: 6px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  align-items: center;
}
.coupon-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
}
.coupon-input-row input::placeholder {
  color: var(--text-muted);
}
 
/* "Offers" button inside coupon row */
.coupon-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: rgba(85, 0, 0, 0.06);
  border: 1.5px solid var(--border-dark);
  border-radius: 50px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.coupon-view-btn:hover {
  background: rgba(85, 0, 0, 0.12);
  border-color: var(--primary);
}
 
/* Apply coupon button */
.coupon-apply-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.coupon-apply-btn:hover {
  background: var(--primary-dark, #3d0000);
}
 
/* Applied coupon row */
.coupon-applied-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.coupon-applied-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2e7d32;
}
.coupon-remove {
  background: none;
  border: 1px solid #a5d6a7;
  border-radius: 50px;
  color: #2e7d32;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.coupon-remove:hover {
  background: #ffebee;
  border-color: var(--error, #c62828);
  color: var(--error, #c62828);
}
/* ============ CHECKOUT SCREEN ============ */
.checkout-content { padding: 12px; padding-bottom: 100px; flex: 1; }

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.section-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Form Fields */
.form-group { margin-bottom: 12px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}
.form-label .required { color: var(--error); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-input.error { border-color: var(--error); }

.form-textarea { resize: none; min-height: 70px; }

.input-with-prefix {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-prefix {
  flex-shrink: 0;
  padding: 11px 10px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-primary);
  white-space: nowrap;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Order type selector */
.order-type-toggle {
  display: flex;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.order-type-opt {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
}
.order-type-opt.active {
  background: var(--primary);
  color: #fff;
}

/* Pickup location box */
.pickup-location-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pickup-location-icon { color: var(--primary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.pickup-location-text strong { font-size: 0.8rem; color: var(--text-primary); display: block; }
.pickup-location-text span { font-size: 0.72rem; color: var(--text-secondary); }

/* ============ CHECKOUT FOOTER ============ */
.checkout-footer {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 10px 12px 16px;
  z-index: 200;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.checkout-total-row .total { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ============ ORDER SUCCESS ============ */
#screen-success {
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon-wrap {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--gold);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-order-num {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.success-order-num strong { color: var(--primary); font-size: 0.9rem; }
.success-msg { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--max-w) - 24px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  background: var(--text-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  display: flex; align-items: center; gap: 8px;
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast.warning { background: var(--warning); }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 0.82rem; }

/* ============ ADMIN PANEL ============ */
.admin-nav {
  background: var(--primary);
  padding: 0 12px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.admin-nav-item {
  padding: 12px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.admin-nav-item.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-content { padding: 12px; flex: 1; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.admin-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h3 { font-size: 0.82rem; font-weight: 700; }
.admin-card-body { padding: 14px; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.stat-card .stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 1.2rem; font-weight: 700; color: var(--primary); font-family: var(--font-display); }

/* ============ ORDER STATUS BADGE ============ */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-placed    { background: #e3f2fd; color: #1565c0; }
.status-confirmed { background: #f3e5f5; color: #6a1b9a; }
.status-preparing { background: #fff3e0; color: #e65100; }
.status-ready     { background: #e8f5e9; color: #2e7d32; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  padding: 20px;
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal h3 { font-size: 0.95rem; margin-bottom: 8px; }
.modal p  { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; }

/* ============ ANIMATIONS ============ */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0%,100% { opacity:.5; } 50% { opacity:.9; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ============ ADMIN LOGIN ============ */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--primary);
}
.admin-login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
}
.admin-login-card .brand { text-align: center; margin-bottom: 24px; }
.admin-login-card .brand-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }
.admin-login-card .brand-sub { font-size: 0.7rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

/* ============ RESPONSIVE ============ */

/* Z-Fold and small phones */
@media (max-width: 320px) {
  html { font-size: 13px; }
  .product-card-img, .product-card-img-placeholder { width: 80px; height: 80px; }
}

/* Larger phones */
@media (min-width: 480px) {
  .app-shell { border-radius: 0; }
  .cart-bar { border-radius: 0; }
}

/* Tablet / Desktop - keep mobile UI centered */
@media (min-width: 768px) {
  body { background: #2d1515; }
  .app-shell {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: 0 0 80px rgba(0,0,0,0.4);
  }
  .cart-bar,
  .checkout-footer { border-radius: 0; }

  /* Desktop sidebar hint */
  body::before {
    content: 'HKR Baking Academy';
    position: fixed;
    top: 50%;
    left: calc(50% - var(--max-w)/2 - 20px);
    transform: translateX(-100%) translateY(-50%) rotate(-90deg);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
  }
}

/* Print */
@media print {
  .cart-bar, .app-header, .checkout-footer { display: none !important; }
}