/* ══════════════════════════════════════════════════════════════
   Takeaway Ordering – Customer Frontend Styles
   Three templates: Modern (default), Bold, Classic
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #667eea;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.header-logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cart-btn:hover { background: rgba(255,255,255,0.25); }
.cart-btn svg { flex-shrink: 0; }

.cart-count {
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 0.2s;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ── Category Nav ────────────────────────────────────────────── */
.category-nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-nav-inner {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.cat-tab {
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Menu ────────────────────────────────────────────────────── */
.menu-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  padding-bottom: 7rem;
}

.category-section { margin-bottom: 2.5rem; }

.category-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .items-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .items-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Item Card ───────────────────────────────────────────────── */
.item-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  position: relative;
}
.item-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.item-card:active { transform: translateY(-1px); }

.item-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f0f0f0;
}

.item-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ccc;
}

.item-body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.item-desc { font-size: 0.85rem; color: var(--text-muted); flex: 1; line-height: 1.4; }

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.item-price { font-weight: 800; font-size: 1.05rem; color: var(--primary); }

.add-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.add-btn:active { transform: scale(0.95); }

/* Cart badge on item card */
.item-cart-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* ── Cart Drawer ─────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--card-bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h2 { font-size: 1.1rem; font-weight: 700; }

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-btn:hover { background: var(--bg); }

/* Checkout Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.step.active { opacity: 1; }
.step.done { opacity: 0.7; }
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num { background: var(--primary); color: #fff; }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.step.active .step-label { color: var(--text); }
.step-line { width: 24px; height: 2px; background: var(--border); margin: 0 0.25rem; }

/* Cart Items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }

.qty-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-weight: 600;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; }

.cart-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; font-size: 0.95rem; }

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Back Link ───────────────────────────────────────────────── */
.back-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  font-family: inherit;
}
.back-link:hover { text-decoration: underline; }

/* ── Checkout Summary ────────────────────────────────────────── */
.checkout-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  margin-bottom: 1rem;
}
.checkout-summary-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--card-bg);
  font-family: inherit;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; width: auto; display: inline-flex; }

/* ── Swish ───────────────────────────────────────────────────── */
.swish-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
  border: 2px solid #4a90d9;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.swish-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #002f5f;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.swish-label { font-size: 0.8rem; font-weight: 600; color: #4a6fa5; text-transform: uppercase; letter-spacing: 0.05em; }
.swish-number { font-size: 2rem; font-weight: 900; color: #002f5f; letter-spacing: 0.05em; margin-top: 0.25rem; }
.swish-divider { width: 40px; height: 2px; background: #b8d4f0; margin: 0.75rem auto; }
.swish-amount { font-size: 1.5rem; font-weight: 800; color: #002f5f; margin-top: 0.25rem; }
.swish-instructions { font-size: 0.85rem; color: #4a6fa5; margin-top: 1rem; line-height: 1.5; }

.btn-confirm-pay { background: #002f5f; }
.btn-confirm-pay:hover { background: #001f3f; }

.pay-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ── Order Confirmation ──────────────────────────────────────── */
.confirmation-page {
  max-width: 520px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.conf-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(230,57,70,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.conf-icon svg {
  animation: drawCheck 0.5s ease-out 0.2s both;
}

@keyframes drawCheck {
  from { stroke-dasharray: 30; stroke-dashoffset: 30; }
  to { stroke-dasharray: 30; stroke-dashoffset: 0; }
}

.conf-sub { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.9rem; }

.order-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-preparing { background: #fef3c7; color: #92400e; }
.status-ready { background: #d1fae5; color: #065f46; }
.status-collected { background: #d1fae5; color: #065f46; }

.status-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.status-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.status-poll-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* ── Mobile Cart Bar ─────────────────────────────────────────── */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  z-index: 95;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mcb-info { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.mcb-count {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.mcb-total { font-weight: 800; font-size: 1.05rem; }

/* ── Loading / Error ─────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-muted);
  flex-direction: column;
  gap: 1rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #991b1b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ── Closed Notice ───────────────────────────────────────────── */
.closed-notice {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.closed-notice h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }

/* ── Add-to-Cart Flash Animation ─────────────────────────────── */
@keyframes addPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-btn.flash { animation: addPop 0.3s ease; }

/* ══════════════════════════════════════════════════════════════
   TEMPLATE: MODERN (default)
   Clean, minimal, lots of whitespace, subtle shadows
   ══════════════════════════════════════════════════════════════ */
.template-modern {
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e9ecef;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 10px;
}

.template-modern .site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.template-modern .header-title { color: var(--text); }
.template-modern .header-logo { background: var(--bg); }
.template-modern .header-logo-placeholder { background: var(--bg); }
.template-modern .cart-btn {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}
.template-modern .cart-btn:hover { background: var(--border); }
.template-modern .cart-count { background: var(--primary); color: #fff; }

.template-modern .hero-section { border-radius: 0 0 24px 24px; }
.template-modern .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.template-modern .category-nav { top: var(--header-height); }

.template-modern .item-card { border: 1px solid var(--border); box-shadow: none; }
.template-modern .item-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }

.template-modern .mobile-cart-bar { border-radius: 16px 16px 0 0; }

/* ══════════════════════════════════════════════════════════════
   TEMPLATE: BOLD
   Dark background, vibrant colors, strong typography
   ══════════════════════════════════════════════════════════════ */
.template-bold {
  --bg: #111111;
  --card-bg: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #888888;
  --border: #2a2a2a;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-sm: 8px;
}

.template-bold .site-header {
  background: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.template-bold .hero-section { height: 360px; }
.template-bold .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}
.template-bold .hero-title { font-size: 2.5rem; letter-spacing: -0.03em; }
.template-bold .hero-logo { border-radius: 50%; border: 3px solid var(--primary); }

.template-bold .category-nav {
  background: #0a0a0a;
  border-bottom-color: var(--border);
}
.template-bold .cat-tab { font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.05em; }

.template-bold .item-card {
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.25s;
}
.template-bold .item-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.template-bold .item-image-placeholder { background: linear-gradient(135deg, #1a1a1a, #222); }

.template-bold .add-btn { border-radius: 8px; width: 38px; height: 38px; }

.template-bold .overlay { background: rgba(0,0,0,0.7); }
.template-bold .cart-drawer { background: #111; }
.template-bold .drawer-header { border-bottom-color: var(--border); }
.template-bold .cart-item { background: #1a1a1a; }
.template-bold .drawer-footer { background: #111; border-top-color: var(--border); }
.template-bold .checkout-steps { background: #0a0a0a; border-bottom-color: var(--border); }
.template-bold .step-num { background: #333; }
.template-bold .qty-btn { background: #222; border-color: #444; color: #eee; }
.template-bold .qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.template-bold .form-control { background: #1a1a1a; border-color: #333; color: #f0f0f0; }
.template-bold .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.15); }
.template-bold .checkout-summary { background: #1a1a1a; }
.template-bold .close-btn:hover { background: #222; }

.template-bold .confirmation-page { color: #f0f0f0; }
.template-bold .status-card { background: #1a1a1a; }
.template-bold .conf-icon { background: rgba(230,57,70,0.15); }

.template-bold .closed-notice { color: #888; }
.template-bold .closed-notice h2 { color: #f0f0f0; }

.template-bold .swish-box { background: linear-gradient(135deg, #0a1628, #0f2040); border-color: #1a4080; }
.template-bold .swish-logo { color: #6ba3e0; }
.template-bold .swish-label { color: #6090c0; }
.template-bold .swish-number { color: #90c0ff; }
.template-bold .swish-divider { background: #1a3060; }
.template-bold .swish-amount { color: #90c0ff; }
.template-bold .swish-instructions { color: #6090c0; }

.template-bold .error-msg { background: #2a1515; border-color: #5a2020; color: #ff8080; }
.template-bold .mobile-cart-bar { box-shadow: 0 -4px 20px rgba(0,0,0,0.5); }

/* ══════════════════════════════════════════════════════════════
   TEMPLATE: CLASSIC
   Warm colors, traditional feel, elegant fonts
   ══════════════════════════════════════════════════════════════ */
.template-classic {
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text: #2c1810;
  --text-muted: #8b7355;
  --border: #e8ddd0;
  --shadow: 0 2px 8px rgba(100,70,30,0.06);
  --shadow-md: 0 4px 16px rgba(100,70,30,0.1);
  --shadow-lg: 0 8px 30px rgba(100,70,30,0.14);
  --radius: 8px;
  --radius-sm: 6px;
  --font: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.template-classic .site-header {
  background: #2c1810;
  box-shadow: 0 2px 8px rgba(44,24,16,0.3);
}

.template-classic .header-logo { border-radius: 50%; }
.template-classic .header-logo-placeholder { border-radius: 50%; }

.template-classic .hero-section { height: 300px; }
.template-classic .hero-overlay {
  background: linear-gradient(to bottom, rgba(44,24,16,0.2) 0%, rgba(44,24,16,0.65) 100%);
}
.template-classic .hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
}
.template-classic .hero-logo {
  border-radius: 50%;
  border: 3px solid rgba(255,220,180,0.4);
}

.template-classic .category-nav { background: #faf8f5; }
.template-classic .cat-tab { font-family: inherit; font-weight: 600; letter-spacing: 0.02em; }

.template-classic .category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.template-classic .category-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.template-classic .item-card {
  border: 1px solid var(--border);
  box-shadow: none;
}
.template-classic .item-card:hover {
  box-shadow: var(--shadow-md);
}

.template-classic .item-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.template-classic .item-image-placeholder { background: linear-gradient(135deg, #f5f0ea, #ede5d8); }

.template-classic .add-btn { border-radius: 6px; }
.template-classic .btn { border-radius: 6px; }
.template-classic .form-control { border-radius: 6px; }

.template-classic .swish-box { background: #faf5ee; border-color: #c9a96e; }
.template-classic .swish-logo { color: #8b6914; }
.template-classic .swish-label { color: #a08050; }
.template-classic .swish-number { color: #6b4f14; }
.template-classic .swish-divider { background: #d9c8a0; }
.template-classic .swish-amount { color: #6b4f14; }
.template-classic .swish-instructions { color: #8b7355; }

.template-classic .confirmation-page h1 { font-family: 'Playfair Display', Georgia, serif; }
.template-classic .cart-drawer { border-left: 1px solid var(--border); }

/* ── Ornamental separator for Classic ─────────────────────────── */
.template-classic .category-section + .category-section::before {
  content: '~ ~ ~';
  display: block;
  text-align: center;
  color: var(--border);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --header-height: 56px; }
  .hero-section { height: 200px; }
  .template-bold .hero-section { height: 260px; }
  .hero-title { font-size: 1.5rem !important; }
  .hero-logo { width: 56px; height: 56px; }
  .items-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .item-body { padding: 0.65rem; }
  .item-name { font-size: 0.9rem; }
  .item-desc { font-size: 0.8rem; }
  .item-price { font-size: 0.95rem; }
  .add-btn { width: 32px; height: 32px; font-size: 1.2rem; }
  .menu-container { padding: 1rem 0.75rem; padding-bottom: 7rem; }
  .category-title { font-size: 1.15rem; }
  .cart-btn span:last-child { /* keep count visible */ }

  /* Bottom cart bar on mobile */
  .mobile-cart-bar.show { display: flex !important; }
}

@media (max-width: 380px) {
  .items-grid { grid-template-columns: 1fr; }
}
