/* Material Icons Helper */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Utility Colors */
.text-primary {
  color: var(--accent);
}

.text-whatsapp {
  color: #25D366;
}

.text-ok {
  color: var(--ok);
}

.text-err {
  color: var(--err);
}

/* SVG icon utilities */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.svg-icon svg {
  display: block;
}

.chevron {
  transition: transform 0.25s ease;
}

details[open]>summary .chevron {
  transform: rotate(180deg);
}

/* =========================================
   PREMIUM DESIGN SYSTEM • GASTRO-STAGING
   ========================================= */
:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --chip: rgba(15, 23, 42, 0.04);
  --image-bg: #f1f5f9;

  /* User branding - strictly preserved */
  --accent: #10b981;
  --cta-from: #10b981;
  --cta-to: #059669;

  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;

  /* Visual Depth & Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  /* Radii */
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* UI States */
  --btn-bg: #ffffff;
  --btn-fg: #0f172a;
  --btn-border: rgba(15, 23, 42, 0.1);
  --surface-frost: rgba(255, 255, 255, 0.82);
  --focus: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Custom Radio & Checkbox Styling */
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
  accent-color: var(--accent);
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: none;
}

/* Basic Reset & Optimization */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
.brand {
  font-family: 'Outfit', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout & Desktop Enhancement */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 120px;
  min-height: 100vh;
  position: relative;
}

@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(circle at 0% 0%, rgba(42, 107, 102, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(58, 139, 132, 0.05) 0%, transparent 40%),
      #f1f5f9;
    padding-top: 40px;
  }

  .container {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-height: unset;
    border: 1px solid var(--border);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header & Navigation */
header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px 8px;
  margin-bottom: 0;
  transition: all 0.3s ease;
  display: block;
}

[data-theme="dark"] header.top {
  background: rgba(15, 23, 42, 0.82);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-brand-group {
  display: flex;
  flex-direction: column;
}

.brand {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.status-indicator.closed {
  color: var(--err);
}

.info-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.info-toggle:active {
  transform: scale(0.92);
}

.search {
  margin-top: 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: all 0.2s ease;
  flex: 1;
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  padding: 4px 0;
}

.search-wrap .icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
}

.badge {
  display: none;
  /* Replaced by status-indicator */
}

/* Info Section */
#menuCard {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#hMenu {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  padding-left: 4px;
}

.lead-copy {
  padding: 4px;
  margin-bottom: 24px;
}

.lead-headline {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.lead-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lead-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.lead-meta code {
  font-family: inherit;
  font-weight: 700;
}

/* Categories Horizontal Scroll */
.catbar-wrap {
  position: sticky;
  top: 82px;
  z-index: 90;
  background: var(--bg);
  margin: 0 -16px 4px;
  padding: 6px 16px;
}

.section-header {
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 2px;
}

.section-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.catbar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}

.catbar::-webkit-scrollbar {
  display: none;
}

/* Category Grid Layout - Mobile Optimized */
.cat-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding-left: 4px;
}

.cat-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 4px;
  /* Space for scroll shadow if needed */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll iOS */
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.cat-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(42, 107, 102, 0.1);
}

.cat-card[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cat-card[aria-selected="true"] .cat-icon {
  color: #fff;
}

.cat-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.png-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.cat-icon svg {
  width: 100%;
  height: 100%;
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

/* Legacy chip styles (hidden by default) */
.chip {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.chip[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(42, 107, 102, 0.25);
  transform: translateY(-1px);
}

/* Product List & Items */
.list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
}

@media (min-width: 640px) {
  .list {
    gap: 24px;
  }

  .img-wrap {
    height: 200px;
  }

  .item-body {
    padding: 20px;
  }

  .item h3 {
    font-size: 19px;
  }

  .desc {
    font-size: 14px;
  }

  .price {
    font-size: 19px;
  }

  .add-circle {
    width: 36px;
    height: 36px;
  }

  .config-pill {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.item:active {
  transform: scale(0.985);
}

.img-wrap {
  width: 100%;
  height: 140px;
  flex-shrink: 0;
  position: relative;
  background: var(--image-bg);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-grow: 1;
}

.item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.25;
  letter-spacing: -0.01em;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
  font-family: 'Outfit';
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* Cleaner Product Action Buttons */
.config-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.config-pill:hover {
  background: #e2e8f0;
}

.config-pill svg {
  color: #64748b;
}

.add-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(42, 107, 102, 0.3);
}

.add-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(42, 107, 102, 0.4);
}

.add-circle svg {
  stroke: #fff;
}

.btn {
  border: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.full {
  width: 100%;
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 107, 102, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(42, 107, 102, 0.35);
}

.btn.ghost {
  background: var(--border);
  color: var(--fg);
}

.btn.config {
  background: var(--chip);
  color: var(--fg);
  flex: 1;
  justify-content: center;
  border: 1px solid var(--border);
}

.btn.sq {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.btn-circle {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  flex-shrink: 0;
  line-height: 1;
  font-size: 18px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.bestseller-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-header {
  grid-column: 1 / -1;
  margin-top: 8px;
  margin-bottom: 20px;
  padding-left: 4px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 15px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}

.section-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* --- History --- */
.history-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.history-hd {
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.history-list {
  display: flex;
  flex-direction: column;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.history-item:hover {
  background: var(--surface-frost);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.h-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.h-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.h-chevron {
  color: var(--border);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.h-clickable:hover .h-chevron {
  color: var(--accent);
  transform: translateX(2px);
}

.h-clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}

.h-clickable:active {
  opacity: 0.6;
}

/* History Details Modal */
.h-detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.h-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.h-detail-main {
  display: flex;
  gap: 8px;
}

.h-detail-qty {
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.h-detail-name {
  font-weight: 500;
  color: var(--text);
}

.h-detail-price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.h-detail-note {
  font-size: 12px;
  color: var(--muted);
  padding-left: 32px;
  margin-top: -8px;
  font-style: italic;
}

.h-detail-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

/* Minicart (Floating Action) */
.minicart {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 200;
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  border-radius: 99px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border: 0;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 40px rgba(42, 107, 102, 0.4);
  animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.mini-left {
  display: flex;
  align-items: center;
}

.mini-tag {
  background: rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding-bottom: 1px;
}

/* Modals & Dialogs */
dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 92%;
  overflow-x: hidden;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.dlg-hd,
.sheet-hd {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.dlg-body,
.sheet-body {
  padding: 24px;
  overflow-x: hidden;
}

.dlg-ft {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Product Dialog Image Styles */
.pro-grid {
  display: flex;
  flex-direction: column;
}

.pro-visuals {
  width: 100%;
  overflow: hidden;
}

.pro-hero {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pro-hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.pro-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
}

.pro-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
}

.pro-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-thumb[aria-current="true"] {
  border-color: var(--accent);
}

.pro-content {
  width: 100%;
}

/* Nutrition Grid */
.nutri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.nutri-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nutri-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nutri-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.nutri-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.nutri-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}

@media (max-width: 380px) {
  .nutri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dlg-ttl {
  font-size: 20px;
  font-weight: 800;
}

/* Cart Specific Redesign */
dialog.sheet {
  bottom: 0;
  width: 100%;
  max-width: 480px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: fixed;
  margin: 0 auto;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: block;
  visibility: hidden;
}

dialog.sheet[open] {
  transform: translateY(0);
  visibility: visible;
}

.row-cart {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.qtybox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 6px;
  border-radius: 12px;
}

.qtybox button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: var(--card);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Footer Stats */
.totals {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.grand {
  margin: 8px 0 24px;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
}

/* Skeletons */
.skeleton {
  height: 120px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@keyframes loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* Toast Support */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  bottom: 110px;
}

/* Standardized Info Rows for Bottom Sheets */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 2px;
  font-family: 'Outfit';
}

.info-value {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* DSGVO Consent */
.consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  padding: 16px;
}

.consent.show {
  display: flex;
}

.consent-card {
  width: 100%;
  max-width: 540px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.consent-title {
  font-family: 'Outfit';
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.consent-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.consent-actions {
  display: flex;
  gap: 12px;
}

.consent-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Mobile Only Adjustments */
@media (max-width: 640px) {
  .container {
    padding-bottom: 100px;
  }
}

/* Standardized Bottom Sheets (e.g. Cart, Info) */
dialog.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 0;
  border-radius: 20px 20px 0 0;
  padding: 0;
  background: var(--bg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

dialog.sheet[open] {
  transform: translateY(0);
}

dialog.sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.sheet-hd {
  padding: 8px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  opacity: 0.6;
}

.sheet-header-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-ttl {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.sheet-body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.sheet-body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.sheet-ft {
  padding: 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.footer-btns {
  display: flex;
  gap: 12px;
  width: 100%;
}

.full {
  width: 100%;
}

/* Cart Item Card Style */
.cart-item {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cart-info {
  flex: 1;
}

.cart-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 4px;
}

.cart-mods {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Quantity Pill */
.qty-pill {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 4px;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn.minus {
  background: transparent;
  color: var(--fg);
}

.qty-btn.minus:hover {
  background: #e2e8f0;
}

.qty-btn.plus {
  background: var(--accent);
  color: #fff;
}

.qty-btn.plus:hover {
  opacity: 0.9;
}

.qty-val {
  font-weight: 700;
  font-size: 14px;
  min-width: 16px;
  text-align: center;
}

/* Note Input */
.note-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--fg);
  transition: all 0.2s;
}

.note-input:focus {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

/* Totals */
.totals,
.grand {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.grand {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.footer-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Redesigned Cart Modern Structure */
.history-accordion-section {
  margin-bottom: 24px;
}

.history-accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.history-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
}

.history-summary::-webkit-details-marker {
  display: none;
}

.history-accordion[open] .chevron {
  transform: rotate(180deg);
}

.history-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.history-content {
  padding: 0 12px 12px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  margin-bottom: 6px;
}

.h-order-id {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.h-order-meta {
  margin: 0;
  font-size: 11px;
  opacity: 0.7;
}

.btn-repeat-order {
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.card#menuCard {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.cart-selection-section {
  margin-top: 12px;
}

.cart-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 8px;
  padding: 0 4px;
}

/* Redesigned Cart Item Cards */
.cart-card-item {
  background: var(--card);
  border: none;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.cart-card-main {
  display: flex;
  gap: 16px;
}

.cart-card-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--image-bg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-item-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--fg);
}

.cart-item-price {
  margin: 0;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.cart-item-mods {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-mod-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.cart-mod-row .material-icons-round {
  font-size: 14px;
}

.mod-addition {
  color: var(--accent);
}

.mod-removal {
  opacity: 0.6;
}

/* Redesigned Controls */
.cart-card-controls {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.btn-remove-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: var(--err);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-remove-item .material-icons-round {
  font-size: 16px;
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 4px;
  border: 1px solid var(--border);
  gap: 0;
  width: auto;
  min-width: 100px;
  justify-content: space-between;
}

.qty-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.qty-step-btn.minus {
  background: transparent;
  color: var(--fg);
}

.qty-step-btn.minus:hover {
  background: rgba(0, 0, 0, 0.05);
}

.qty-step-btn.plus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.qty-step-val {
  width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-note-section:empty,
.cart-note-section:has(.hidden:only-child) {
  display: none;
}

.note-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
}

.note-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.note-inline-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.note-inline-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.hidden {
  display: none !important;
}



/* Redesigned Summary Section */
.cart-summary {
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.delivery-fee-badge {
  color: #10b981;
  font-weight: 800;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--border);
}

.total-label-wrap {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
}

.total-tax-hint {
  font-size: 10px;
  opacity: 0.4;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.total-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
}

.checkout-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.wa-icon-filter {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Clear Cart Button Action */
.clear-cart-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 16px;
}

.btn-clear-cart {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-cart:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--muted);
  color: var(--fg);
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.cart-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.2;
}

/* ======================================
   MIN-ORDER PROGRESS BAR
   ====================================== */
.min-order-bar {
  margin: 0 16px 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.min-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.min-order-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.min-order-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
}

.min-order-track {
  width: 100%;
  height: 10px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.min-order-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.min-order-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  border-radius: 99px;
  animation: shimmer 2s infinite;
}

.min-order-fill.complete {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.min-order-fill.complete::after {
  animation: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

.min-order-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}

.min-order-hint.reached {
  color: var(--ok);
}

/* Confetti burst */
.confetti-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.confetti-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  animation: confetti-burst 0.9s ease-out forwards;
  opacity: 0;
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), -120px) rotate(var(--r)) scale(0.4);
  }
}

/* ======================================
   SWIPE-TO-DELETE
   ====================================== */
.swipe-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.swipe-content {
  position: relative;
  z-index: 2;
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  margin-bottom: 0 !important;
}

.swipe-content:active {
  cursor: grabbing;
}

.swipe-delete-zone {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 24px;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
  cursor: pointer;
  border-radius: 20px;
}

.swipe-delete-zone svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.swipe-removing {
  transform: translateX(-100%) !important;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}

/* ======================================
   SEARCH AUTOCOMPLETE & SUGGESTIONS
   ====================================== */
.search-wrap {
  position: relative;
  /* Container for absolute suggestions */
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  animation: slideDown 0.2s ease-out;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.search-suggestions::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(15, 23, 42, 0.03);
}

.suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--image-bg);
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

mark.highlight {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  font-weight: 800;
  border-radius: 2px;
  padding: 0 1px;
}

[data-theme="dark"] .search-suggestions {
  background: #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .suggestion-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* History Details Modal Optimization */
.h-detail-container {
  padding: 4px 6px;
}

.h-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.h-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.h-detail-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.h-detail-qty {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  min-width: 24px;
}

.h-detail-name {
  font-weight: 700;
  color: var(--fg);
}

.h-detail-price {
  font-weight: 700;
  color: var(--fg);
}

.h-detail-note {
  font-size: 12px;
  color: var(--muted);
  padding-left: 34px;
  margin-top: -4px;
}

.h-detail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 900;
  color: var(--fg);
}