/* ══════════════════════════════════════════════════════════════
   Takeaway Ordering – Customer Frontend Styles
   5 Templates: Wolt, Bistro, Dark, Minimal, Street
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: rgba(230, 57, 70, 0.08);
  --primary-glow: rgba(230, 57, 70, 0.15);
  --secondary: #667eea;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 9999px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 64px;
  --transition: 0.2s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  --menu-max-width: 960px;
  --sidebar-width: 320px;
}

*, *::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-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════════
   SKELETON LOADING SCREEN
   ══════════════════════════════════════════════════════════════ */
.skeleton-screen {
  min-height: 100vh;
}
.skeleton-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f3f3f3;
}
.skeleton-hero {
  height: 280px;
  background: #e8e8e8;
}
.skeleton-cats {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow: hidden;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
}
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.skeleton-box {
  background: linear-gradient(90deg, #e8e8e8 25%, #f3f3f3 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 600px) {
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-hero { height: 200px; }
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--menu-max-width);
  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: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.header-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  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-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-open-badge {
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0.9;
  display: none;
}
.header-open-badge.visible { display: inline-block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,0.25); }

.account-btn, .cart-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.account-btn:hover, .cart-btn:hover { background: rgba(255,255,255,0.25); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring);
}
.cart-btn.flash .cart-count {
  animation: cart-flash 0.3s var(--transition-spring);
}
@keyframes cart-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Sticky category nav in header */
.header-category-nav {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 8px;
  max-width: var(--menu-max-width);
  margin: 0 auto;
}
.header-category-nav::-webkit-scrollbar { display: none; }
.site-header.scrolled .header-category-nav { display: block; }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-parallax {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: var(--menu-max-width);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}
.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}
.hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero-section { height: 240px; }
  .hero-title { font-size: 1.5rem; }
  .hero-logo { width: 48px; height: 48px; }
}

/* ══════════════════════════════════════════════════════════════
   RESTAURANT INFO BAR (minimal template)
   ══════════════════════════════════════════════════════════════ */
.restaurant-info-bar {
  padding: 3rem 1.5rem 1.5rem;
  max-width: var(--menu-max-width);
  margin: 0 auto;
}
.info-bar-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.info-bar-meta {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: top var(--transition);
}
.site-header.scrolled ~ .category-nav,
.site-header.scrolled ~ * .category-nav {
  top: calc(var(--header-height) + 40px);
}

.category-nav-inner {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--menu-max-width);
  margin: 0 auto;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  background: var(--border-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--font-body);
  flex-shrink: 0;
}
.cat-tab:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.cat-tab.active {
  background: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   MENU SEARCH
   ══════════════════════════════════════════════════════════════ */
.menu-search {
  padding: 0.75rem 1rem;
  max-width: var(--menu-max-width);
  margin: 0 auto;
}
.menu-search-inner {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.menu-search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.menu-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 0.65rem 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
}
.search-clear {
  background: var(--border-light);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.menu-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   DAGENS RÄTT
   ══════════════════════════════════════════════════════════════ */
.dagens-ratt {
  padding: 0.75rem 1rem;
  max-width: var(--menu-max-width);
  margin: 0 auto;
}
.dagens-ratt-inner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
.dagens-ratt-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.dagens-ratt-content { flex: 1; }
.dagens-ratt-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.dagens-ratt-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}
.dagens-ratt-price {
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   MENU LAYOUT & ITEMS
   ══════════════════════════════════════════════════════════════ */
.menu-layout {
  display: flex;
  max-width: calc(var(--menu-max-width) + var(--sidebar-width) + 2rem);
  margin: 0 auto;
  gap: 2rem;
  padding: 0 1rem;
}
.menu-content {
  flex: 1;
  min-width: 0;
  max-width: var(--menu-max-width);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 1rem;
  color: var(--text-muted);
}
.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); } }

.category-section {
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--header-height) + 60px);
}
.category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

/* Decorative divider for bistro */
.category-divider {
  display: none;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

/* ── Item Card ──────────────────────────────────────────────── */
.item-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: 1px solid var(--border-light);
}
.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.item-card:active {
  transform: translateY(0);
}

.item-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--border-light));
}
.item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.item-card:hover .item-image {
  transform: scale(1.03);
}
.item-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--border-light));
}

.item-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.item-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-popular {
  background: #ff6b35;
  color: #fff;
}
.badge-new {
  background: var(--success);
  color: #fff;
}

.item-body {
  padding: 0.75rem 1rem;
}
.item-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.item-desc-full {
  -webkit-line-clamp: unset;
}
.read-more {
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.15rem;
}

.item-allergens {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.allergen-icon {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.item-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring), background var(--transition);
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
}
.add-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}
.add-btn:active {
  transform: scale(0.95);
}

/* Inline quantity selector */
.qty-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}
.qty-inline button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}
.qty-inline span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 1.5rem;
  text-align: center;
}

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

/* ══════════════════════════════════════════════════════════════
   DESKTOP CART SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.cart-sidebar {
  display: none;
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  max-height: calc(100vh - var(--header-height) - 2rem);
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-direction: column;
  margin-top: 1rem;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .cart-sidebar { display: flex; }
}

.cart-sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}
.cart-sidebar-header h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
}

.cart-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
}

.cart-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
}

.sidebar-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.sidebar-cart-item:last-child { border-bottom: none; }
.sidebar-cart-item-name {
  flex: 1;
  font-weight: 500;
}
.sidebar-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  min-width: 24px;
  min-height: 24px;
}
.sidebar-cart-item-price {
  font-weight: 700;
  margin-left: 0.75rem;
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE CART BAR
   ══════════════════════════════════════════════════════════════ */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  z-index: 80;
  transition: transform var(--transition-spring);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-cart-bar.show { display: flex; }
.mcb-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mcb-count {
  background: rgba(255,255,255,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}
.mcb-total {
  font-weight: 800;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: none;
  justify-content: space-around;
  z-index: 85;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex !important; }
  body { padding-bottom: 70px; }
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 1rem;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-body);
}
.bottom-nav-item.active {
  color: var(--primary);
}
.bottom-nav-badge {
  position: absolute;
  top: 0;
  right: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   INFO SHEET
   ══════════════════════════════════════════════════════════════ */
.info-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.info-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
  z-index: 201;
  max-height: 70vh;
  overflow-y: auto;
  animation: slide-up 0.3s ease;
}
.info-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.info-sheet h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   CART DRAWER (mobile checkout)
   ══════════════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  backdrop-filter: blur(4px);
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--card-bg);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}
.cart-drawer.open {
  transform: translateX(0);
}
@media (max-width: 500px) {
  .cart-drawer {
    width: 100vw;
    border-radius: 0;
  }
}

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

.close-btn {
  background: var(--border-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition);
  min-width: 36px;
  min-height: 36px;
}
.close-btn:hover { background: var(--border); }

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

/* ── Cart Items ─────────────────────────────────────────────── */
#cart-view-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
}
.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

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

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  min-height: 44px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled {
  background: var(--border);
  cursor: not-allowed;
  color: var(--text-light);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  min-height: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  min-height: 44px;
}

/* ── Checkout Summary ───────────────────────────────────────── */
.checkout-summary {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.checkout-summary-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: var(--text-muted);
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ── Swish Payment ──────────────────────────────────────────── */
.swish-box {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.swish-logo {
  font-weight: 900;
  font-size: 1.4rem;
  color: #52b848;
  margin-bottom: 0.75rem;
}
.swish-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.swish-number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.swish-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
.swish-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}
.swish-instructions {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.btn-confirm-pay {
  width: 100%;
}

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

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── Error & Success ────────────────────────────────────────── */
.error-msg {
  background: #fef2f2;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(239,68,68,0.2);
}
.success-msg {
  background: #f0fdf4;
  color: var(--success);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(34,197,94,0.2);
}

/* ══════════════════════════════════════════════════════════════
   CONFIRMATION VIEW
   ══════════════════════════════════════════════════════════════ */
.confirmation-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}
.conf-icon {
  margin-bottom: 1rem;
}
.conf-icon svg {
  animation: conf-check 0.6s ease forwards;
}
@keyframes conf-check {
  0% { stroke-dashoffset: 50; opacity: 0; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.checkmark-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: conf-check 0.6s ease 0.2s forwards;
}

.order-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0.5rem 0 1.5rem;
  font-family: var(--font-heading);
}

.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.status-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pending { background: #fff7ed; color: #ea580c; }
.status-confirmed { background: #eff6ff; color: #2563eb; }
.status-preparing { background: #fefce8; color: #ca8a04; }
.status-ready { background: #f0fdf4; color: #16a34a; animation: pulse-ready 1s ease infinite; }
.status-collected { background: #f3f4f6; color: #6b7280; }
@keyframes pulse-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,106,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,106,0); }
}

.status-poll-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
}
.conf-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   ORDER HISTORY
   ══════════════════════════════════════════════════════════════ */
.order-history-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
}
.order-history-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.oh-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.oh-restaurant { font-weight: 700; font-size: 0.9rem; }
.oh-date { color: var(--text-muted); font-size: 0.8rem; }
.oh-items { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.oh-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.oh-total { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   ACCOUNT MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.account-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  z-index: 201;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}
#account-content {
  padding: 1.25rem;
}
.account-form {
  display: flex;
  flex-direction: column;
}
.account-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.account-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   CLOSED NOTICE
   ══════════════════════════════════════════════════════════════ */
.closed-notice {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}
.closed-notice h2 {
  font-family: var(--font-heading);
  margin: 1rem 0 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   TEMPLATE 1: WOLT — Clean & Modern (default)
   ══════════════════════════════════════════════════════════════ */
.template-wolt {
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.template-wolt .hero-section {
  height: 360px;
}
.template-wolt .hero-overlay {
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.65));
}
.template-wolt .items-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.template-wolt .item-card {
  border: none;
  box-shadow: var(--shadow-xs);
}
.template-wolt .item-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.template-wolt .category-title {
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

/* ══════════════════════════════════════════════════════════════
   TEMPLATE 2: BISTRO — Warm & Elegant
   ══════════════════════════════════════════════════════════════ */
.template-bistro {
  --bg: #faf8f3;
  --card-bg: #faf8f3;
  --border: #e8e2d6;
  --border-light: #f0ebe0;
  --text: #2c2417;
  --text-muted: #8a7e6e;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', sans-serif;
}
.template-bistro .site-header {
  background: #2c2417;
}
.template-bistro .header-inner {
  justify-content: center;
  position: relative;
}
.template-bistro .header-brand {
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}
.template-bistro .header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.template-bistro .header-actions {
  position: absolute;
  right: 0;
}
.template-bistro .header-open-badge {
  font-style: italic;
  font-size: 0.7rem;
}
.template-bistro .hero-section {
  height: 300px;
}
.template-bistro .hero-overlay {
  background: linear-gradient(transparent 30%, rgba(44,36,23,0.75));
}
.template-bistro .hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.template-bistro .cat-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}
.template-bistro .cat-tab.active {
  background: #2c2417;
  border-color: #2c2417;
  color: #faf8f3;
}
.template-bistro .category-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  font-size: 1.5rem;
}
.template-bistro .category-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.template-bistro .category-divider::before,
.template-bistro .category-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.template-bistro .category-divider span {
  color: #b5952a;
  font-size: 0.9rem;
}
.template-bistro .items-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.template-bistro .item-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
}
.template-bistro .item-card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(181,149,42,0.04);
}
.template-bistro .item-image-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding-top: 0;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
}
.template-bistro .item-image {
  border-radius: 50%;
}
.template-bistro .item-image-placeholder {
  border-radius: 50%;
  font-size: 1.2rem;
}
.template-bistro .item-body {
  flex: 1;
  order: 1;
}
.template-bistro .item-price {
  color: #b5952a;
  font-weight: 700;
}
.template-bistro .add-btn {
  background: #2c2417;
}
.template-bistro .add-btn:hover {
  background: #b5952a;
}
.template-bistro .btn-primary {
  background: #2c2417;
}
.template-bistro .btn-primary:hover {
  background: #1a1509;
}
.template-bistro .dagens-ratt-inner {
  background: #faf8f3;
  color: #2c2417;
  border: 2px solid #b5952a;
  box-shadow: none;
  position: relative;
}
.template-bistro .dagens-ratt-inner::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(181,149,42,0.3);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.template-bistro .dagens-ratt-badge {
  background: #b5952a;
  color: #fff;
}
.template-bistro .dagens-ratt-price {
  color: #b5952a;
}

/* ══════════════════════════════════════════════════════════════
   TEMPLATE 3: DARK — Bold & Dramatic
   ══════════════════════════════════════════════════════════════ */
.template-dark {
  --bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --border: #2a2a2a;
  --border-light: #222;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-light: #555;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}
.template-dark .site-header {
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
}
.template-dark .header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.template-dark .hero-section {
  height: 400px;
}
.template-dark .hero-overlay {
  background: linear-gradient(transparent 10%, rgba(15,15,15,0.85));
}
.template-dark .hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.template-dark .category-nav {
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
}
.template-dark .cat-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.template-dark .cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.template-dark .cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.template-dark .category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.template-dark .item-card {
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.template-dark .item-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb, 230,57,70), 0.15);
  transform: translateY(-2px);
}
.template-dark .item-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, var(--card-bg));
  pointer-events: none;
}
.template-dark .item-price {
  font-weight: 800;
  font-size: 1.1rem;
}
.template-dark .add-btn {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
}
.template-dark .add-btn:hover {
  background: var(--primary);
  color: #fff;
}
.template-dark .menu-search-inner {
  background: #1a1a1a;
  border-color: var(--border);
}
.template-dark .menu-search-inner input {
  color: #f0f0f0;
}
.template-dark .cart-sidebar {
  background: #1a1a1a;
  border-color: var(--border);
}
.template-dark .cart-drawer {
  background: #1a1a1a;
}
.template-dark .drawer-header {
  border-color: var(--border);
}
.template-dark .close-btn {
  background: #2a2a2a;
  color: #f0f0f0;
}
.template-dark .form-control {
  background: #1a1a1a;
  border-color: var(--border);
  color: #f0f0f0;
}
.template-dark .checkout-summary {
  background: #1a1a1a;
}
.template-dark .swish-box {
  background: #1a1a1a;
}
.template-dark .qty-btn {
  background: #1a1a1a;
  border-color: var(--border);
  color: #f0f0f0;
}
.template-dark .cart-item { border-color: var(--border); }
.template-dark .sidebar-cart-item { border-color: var(--border); }
.template-dark .sidebar-cart-item-qty button { background: #1a1a1a; border-color: var(--border); color: #f0f0f0; }
.template-dark .checkout-steps { border-color: var(--border); }
.template-dark .step-num { background: #2a2a2a; color: #888; }
.template-dark .cart-sidebar-header { border-color: var(--border); }
.template-dark .cart-sidebar-footer { border-color: var(--border); }
.template-dark .drawer-footer { border-color: var(--border); background: #1a1a1a; }
.template-dark .status-card { background: #1a1a1a; border-color: var(--border); }
.template-dark .order-history-card { background: #1a1a1a; border-color: var(--border); }
.template-dark .account-modal { background: #1a1a1a; }
.template-dark .modal-header { border-color: var(--border); }
.template-dark .error-msg { background: #2a1515; border-color: #5a2020; }
.template-dark .success-msg { background: #152a15; border-color: #205a20; }
.template-dark .toast { background: #f0f0f0; color: #0f0f0f; }
.template-dark .mobile-bottom-nav { background: #1a1a1a; border-color: var(--border); }
.template-dark .info-sheet { background: #1a1a1a; }
.template-dark .skeleton-screen { background: #0f0f0f; }
.template-dark .skeleton-header { background: #1a1a1a; }
.template-dark .skeleton-hero { background: #1a1a1a; }
.template-dark .skeleton-card { background: #1a1a1a; }
.template-dark .skeleton-box { background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; }

.template-dark .dagens-ratt-inner {
  background: var(--card-bg);
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb, 230,57,70), 0.15);
}
.template-dark .dagens-ratt-badge {
  background: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   TEMPLATE 4: MINIMAL — Ultra Clean
   ══════════════════════════════════════════════════════════════ */
.template-minimal {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #eaeaea;
  --border-light: #f5f5f5;
  --text: #111;
  --text-muted: #777;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}
.template-minimal .site-header {
  background: #fff;
  color: #111;
  border-bottom: 1px solid var(--border);
}
.template-minimal .header-logo-placeholder { color: #111; background: var(--border-light); }
.template-minimal .lang-toggle { background: var(--border-light); color: #111; }
.template-minimal .account-btn, .template-minimal .cart-btn {
  background: var(--border-light);
  color: #111;
}
.template-minimal .cart-count { background: var(--primary); color: #fff; }
.template-minimal .hero-section { display: none !important; }
.template-minimal .restaurant-info-bar { display: block !important; }
.template-minimal .info-bar-name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.template-minimal .category-nav {
  border-bottom: none;
}
.template-minimal .cat-tab {
  background: transparent;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0;
  margin: 0 0.75rem;
  font-weight: 500;
}
.template-minimal .cat-tab.active {
  background: transparent;
  color: #111;
  border-bottom-color: #111;
}
.template-minimal .cat-tab:hover {
  background: transparent;
  color: #111;
}
.template-minimal .category-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.template-minimal .items-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.template-minimal .item-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
}
.template-minimal .item-card:hover {
  transform: none;
  box-shadow: none;
}
.template-minimal .item-image-wrap {
  display: none;
}
.template-minimal .item-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.template-minimal .item-name {
  flex: 1;
  font-size: 1rem;
}
.template-minimal .item-desc {
  display: none;
}
.template-minimal .item-footer {
  margin-top: 0;
}
.template-minimal .item-price {
  font-size: 0.95rem;
  color: #111;
}
.template-minimal .add-btn {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: #111;
  min-width: 28px;
  min-height: 28px;
}
.template-minimal .add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.template-minimal .mobile-cart-bar {
  background: #111;
}
.template-minimal .btn-primary {
  background: #111;
  border-radius: 4px;
}
.template-minimal .btn-primary:hover {
  background: #333;
}
.template-minimal .dagens-ratt-inner {
  background: #f9f9f9;
  color: #111;
  border: 1px solid var(--border);
  box-shadow: none;
}
.template-minimal .dagens-ratt-badge {
  background: #111;
  color: #fff;
}
.template-minimal .dagens-ratt-price {
  color: #111;
}
/* Slim top bar cart for minimal */
.template-minimal .cart-sidebar {
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  margin-top: 0;
  top: var(--header-height);
}

/* ══════════════════════════════════════════════════════════════
   TEMPLATE 5: STREET — Fun & Energetic
   ══════════════════════════════════════════════════════════════ */
.template-street {
  --bg: #fff9f0;
  --card-bg: #ffffff;
  --border: #ffe0b2;
  --border-light: #fff3e0;
  --font-heading: 'Righteous', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 20px;
  --radius-sm: 16px;
  --radius-xs: 12px;
}
.template-street body,
.template-street {
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.template-street .site-header {
  background: var(--primary);
}
.template-street .header-title {
  font-family: 'Righteous', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.template-street .hero-section {
  height: 320px;
}
.template-street .hero-title {
  font-family: 'Righteous', sans-serif;
  font-size: 2.5rem;
}
.template-street .category-nav {
  background: var(--bg);
}
.template-street .cat-tab {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
}
.template-street .cat-tab.active {
  background: var(--primary);
  color: #fff;
}
.template-street .category-title {
  font-family: 'Righteous', sans-serif;
  font-size: 1.6rem;
  transform: rotate(-1deg);
  display: inline-block;
  color: var(--primary);
}
.template-street .items-grid {
  gap: 1.25rem;
}
.template-street .item-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-spring);
}
.template-street .item-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.template-street .item-name {
  font-weight: 800;
  font-size: 1rem;
}
.template-street .item-price {
  font-size: 1.1rem;
  font-weight: 900;
}
.template-street .add-btn {
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  min-width: 42px;
  min-height: 42px;
}
.template-street .badge-popular {
  animation: badge-bounce 2s ease infinite;
}
.template-street .badge-new {
  animation: badge-bounce 2s ease 0.3s infinite;
}
@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.template-street .btn-primary {
  border-radius: var(--radius-full);
  font-family: 'Righteous', sans-serif;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.template-street .dagens-ratt-inner {
  transform: rotate(-0.5deg);
}
.template-street .dagens-ratt-badge {
  font-family: 'Righteous', sans-serif;
  font-size: 0.85rem;
}
.template-street .cart-drawer {
  border-radius: 20px 0 0 20px;
}
.template-street .mobile-cart-bar {
  border-radius: 20px 20px 0 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cart-sidebar { display: none !important; }
  .menu-layout { padding: 0 0.75rem; }
}
@media (max-width: 600px) {
  .hero-section { height: 220px; }
  .hero-title { font-size: 1.6rem; }
  .hero-logo { width: 44px; height: 44px; }
  .items-grid { grid-template-columns: 1fr; }
  .template-wolt .items-grid { grid-template-columns: 1fr; }
  .category-title { font-size: 1.15rem; }
  .info-bar-name { font-size: 2rem; }
  .template-street .hero-title { font-size: 1.8rem; }
  .template-dark .hero-title { font-size: 2rem; }
  .template-bistro .category-title { font-size: 1.2rem; }
}

@media (max-width: 375px) {
  .header-inner { padding: 0; }
  .header-title { font-size: 0.95rem; }
  .hero-title { font-size: 1.3rem; }
}

/* ══════════════════════════════════════════════════════════════
   CUSTOMIZATION MODAL
   ══════════════════════════════════════════════════════════════ */
.cust-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 600px) {
  .cust-modal-overlay { align-items: center; }
}
.cust-modal {
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 16px) var(--radius, 16px) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  animation: cust-slide-up 0.3s ease;
}
@media (min-width: 600px) {
  .cust-modal { border-radius: var(--radius, 16px); animation: cust-fade-in 0.2s ease; }
}
@keyframes cust-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes cust-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cust-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem 0;
  position: relative;
  z-index: 2;
}
.cust-close {
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text, #333);
}
.cust-close:hover { background: rgba(0,0,0,0.12); }
.cust-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 1.25rem 1rem;
}
.cust-item-image {
  width: calc(100% + 2.5rem);
  margin: -0.5rem -1.25rem 0;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
}
.cust-item-header {
  padding: 1rem 0 0.5rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 0.75rem;
}
.cust-item-name {
  font-size: 1.25rem;
  font-weight: 800;
}
.cust-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #6c757d);
  margin-top: 0.25rem;
}
.cust-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #e63946);
  margin-top: 0.35rem;
}
.cust-section {
  margin-bottom: 1rem;
}
.cust-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #6c757d);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.cust-radio-group, .cust-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cust-radio, .cust-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs, 8px);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.92rem;
}
.cust-radio:hover, .cust-check:hover {
  background: var(--primary-light, rgba(230,57,70,0.06));
}
.cust-radio input, .cust-check input {
  accent-color: var(--primary, #e63946);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cust-radio small, .cust-check small {
  color: var(--text-muted, #6c757d);
  font-weight: 600;
}
.cust-textarea {
  width: 100%;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: var(--radius-xs, 8px);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  color: var(--text, #1a1a2e);
  background: var(--card-bg, #fff);
}
.cust-textarea:focus { outline: none; border-color: var(--primary, #e63946); }
.cust-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--card-bg, #fff);
}
.cust-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: var(--radius-xs, 8px);
  overflow: hidden;
  flex-shrink: 0;
}
.cust-qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text, #333);
}
.cust-qty-btn:hover { background: var(--primary-light, rgba(230,57,70,0.08)); }
.cust-qty-val {
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.cust-add-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--primary, #e63946);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs, 8px);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.cust-add-btn:hover { opacity: 0.9; }

/* Cart customization display */
.cart-item-customizations {
  font-size: 0.78rem;
  color: var(--text-muted, #6c757d);
  margin-top: 0.15rem;
  line-height: 1.4;
}
.cart-item-note {
  font-style: italic;
}

/* Checkout busy notice */
.checkout-pickup-estimate {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-xs, 8px);
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 600;
}
.checkout-busy-notice {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

/* Confirmation busy note */
.conf-busy-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs, 8px);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Dark template adjustments */
.template-dark .cust-modal { background: var(--card-bg); }
.template-dark .cust-close { background: rgba(255,255,255,0.1); color: #fff; }
.template-dark .cust-textarea { background: var(--card-bg); color: var(--text); border-color: var(--border); }

/* ══════════════════════════════════════════════════════════════
   Paused / Closed Banner
   ══════════════════════════════════════════════════════════════ */
.paused-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 2px solid #f59e0b;
  padding: 0.75rem 1rem;
  text-align: center;
}
.paused-banner-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #92400e;
  font-size: 0.9rem;
}

/* Busy Mode Banner */
.busy-banner {
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  border-bottom: 2px solid #f87171;
  padding: 0.75rem 1rem;
  text-align: center;
}
.busy-banner-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #991b1b;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   Order Type Selector Bar
   ══════════════════════════════════════════════════════════════ */
.order-type-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}
.order-type-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}
.order-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.order-type-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.order-type-btn:hover:not(.active) {
  border-color: var(--text-muted);
}

.delivery-address-bar {
  margin-top: 0.75rem;
}
.delivery-address-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.delivery-address-inner .form-control {
  flex: 1;
  margin: 0;
}
.delivery-status {
  max-width: 600px;
  margin: 0.5rem auto 0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 500;
}
.delivery-ok {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}
.delivery-error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

/* Delivery fee notice in checkout */
.delivery-fee-notice {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(230, 57, 70, 0.05);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.checkout-delivery-fee {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   Order Progress Bar (confirmation view)
   ══════════════════════════════════════════════════════════════ */
.order-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid var(--border);
  color: var(--text-muted);
  background: var(--card-bg);
  transition: all 0.3s ease;
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.progress-step.completed .progress-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.progress-step.completed .progress-label {
  color: var(--primary);
}
.progress-step.active .progress-circle {
  border-color: var(--primary);
  color: var(--primary);
  animation: pulse-ring 1.5s infinite;
}
.progress-step.active .progress-label {
  color: var(--primary);
  font-weight: 700;
}
.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  min-width: 30px;
  max-width: 80px;
  margin: 0 0.25rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}
.progress-line.completed {
  background: var(--primary);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 230,57,70), 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 230,57,70), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 230,57,70), 0); }
}

/* Countdown box */
.countdown-box {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
.countdown-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.countdown-time {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

/* Order items summary in confirmation */
.order-items-summary {
  text-align: left;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.order-items-summary h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Drink section styling in customization modal */
.cust-drink-section {
  background: rgba(var(--primary-rgb, 230,57,70), 0.03);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0 -0.5rem;
}

/* Status out_for_delivery */
.status-out_for_delivery { background: #dbeafe; color: #1e40af; }
.status-badge.status-out_for_delivery { background: #dbeafe; color: #1e40af; }
