/* ══════════════════════════════════════
   Antojitos Fusión — Carta Digital
   ══════════════════════════════════════ */

:root {
  --bg-deep: #1A0A0A;
  --bg-card: #1C1210;
  --bg-glass: rgba(28, 18, 16, 0.78);
  --bg-glass-border: rgba(218, 165, 80, 0.18);
  --accent: #D4A050;
  --accent-glow: rgba(212, 160, 80, 0.25);
  --coral: #E85D4A;
  --gold: #EDBE5A;
  --text-1: #F2EBE0;
  --text-2: #A69580;
  --text-3: #5C4A3A;
  --drawer-bg: #151010;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ─── Light theme override ─── */
body.light {
  --bg-deep: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-border: rgba(180, 140, 70, 0.22);
  --accent: #B8862D;
  --accent-glow: rgba(184, 134, 45, 0.2);
  --coral: #D04A38;
  --gold: #A07020;
  --text-1: #2A1A0A;
  --text-2: #6B5A48;
  --text-3: #B5A898;
  --drawer-bg: #FAF7F2;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* ─── Fondo degradado fusión marina / pollería / chaufa ─── */
body {
  font-family: -apple-system, 'Segoe UI', system-ui, Roboto, sans-serif;
  color: var(--text-1);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(
    160deg,
    #0C1B2A 0%,
    #1A2332 15%,
    #2A1A14 35%,
    #3D1E12 50%,
    #2E1810 65%,
    #1A1208 80%,
    #0F0A06 100%
  );
  background-attachment: fixed;
}

/* ─── FAB Stack (inferior derecha: WhatsApp + Carrito) ─── */
.fab-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ─── Floating Cart Button ─── */
.floating-cart {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--bg-glass-border);
  background: rgba(28, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s;
}
.floating-cart:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 28px var(--accent-glow);
}
.floating-cart svg {
  width: 22px;
  height: 22px;
}
.floating-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.floating-cart-badge.hidden {
  display: none;
}

@keyframes cart-bounce {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.2) rotate(-8deg); }
  50%  { transform: scale(0.95) rotate(4deg); }
  75%  { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.floating-cart.bounce {
  animation: cart-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.floating-cart-badge.pop {
  animation: badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Header con Logo centrado (grande, sin emoji) ─── */
.header {
  display: flex;
  justify-content: center;
  padding: 28px 20px 4px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-img {
  max-width: 480px;
  max-height: 200px;
  width: 85vw;
  object-fit: contain;
  drop-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.logo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-align: center;
}
.logo-text small {
  display: block;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-name {
  text-align: center;
  margin-top: -2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.01em;
}
.header-name span {
  display: block;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── Viewers ─── */
.viewers {
  text-align: center;
  padding: 0 20px 20px;
  font-size: 12px;
  color: var(--text-2);
}
.viewers .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  margin-right: 6px;
  animation: blink-dot 2s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── Panel texturizado principal ─── */
.menu-panel {
  max-width: 1260px;
  margin: 0 24px 0;
  margin-inline: max(24px, calc((100% - 1260px) / 2));
  padding: 28px 28px 32px;
  position: relative;
  border: 1px solid rgba(218, 165, 80, 0.2);
  border-radius: 24px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background-color: rgba(22, 14, 10, 0.88);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212, 160, 80, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 100%, rgba(232, 93, 74, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='50' x2='100' y2='50' stroke='%23ffffff' stroke-opacity='0.012' stroke-width='0.5'/%3E%3Cline x1='50' y1='0' x2='50' y2='100' stroke='%23ffffff' stroke-opacity='0.012' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 200px 200px, 100px 100px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.menu-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(218, 165, 80, 0.08) 0%, transparent 30%),
    linear-gradient(315deg, rgba(232, 93, 74, 0.05) 0%, transparent 30%);
}
@media (max-width: 520px) {
  .menu-panel {
    margin-left: 14px;
    margin-right: 14px;
    margin-inline: 14px;
    padding: 20px 14px 24px;
    border-radius: 18px;
  }
}
@media (min-width: 521px) and (max-width: 1100px) {
  .menu-panel {
    margin-inline: 32px;
    padding: 28px 24px 32px;
  }
}

/* ─── Search bar + View toggle toolbar ─── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 16px;
}
.search-bar {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.search-bar input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 12px;
  border: 1px solid var(--text-3);
  background: var(--bg-glass);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background-color 0.3s;
}
.search-bar input::placeholder {
  color: var(--text-3);
  font-size: 13px;
}
.search-bar input:focus {
  border-color: var(--accent);
}
.search-clear {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.search-clear svg { width: 16px; height: 16px; }
.search-clear:hover { color: var(--coral); }
.search-clear.hidden { display: none; }
.view-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.view-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--text-3);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.view-btn svg { width: 18px; height: 18px; }
.view-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.view-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-deep);
}

/* ─── No results message ─── */
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-2);
  font-size: 14px;
}
.no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ─── List View ─── */
.products.list-view {
  grid-template-columns: 1fr !important;
  gap: 10px;
}
.products.list-view .card {
  display: flex;
  flex-direction: row;
  border-radius: 14px;
}
.products.list-view .card-img {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 14px 0 0 14px;
}
.products.list-view .card-img::after { display: none; }
.products.list-view .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  min-width: 0;
}
.products.list-view .card-desc {
  -webkit-line-clamp: 1;
  margin-bottom: 8px;
}
.products.list-view .card-img-placeholder { font-size: 32px; }
@media (min-width: 520px) {
  .products.list-view .card-img {
    width: 140px;
    min-width: 140px;
  }
  .products.list-view .card-desc {
    -webkit-line-clamp: 2;
  }
}
@media (max-width: 380px) {
  .products.list-view .card-img {
    width: 90px;
    min-width: 90px;
  }
  .products.list-view .card-desc { display: none; }
}

/* ─── Category Nav ─── */
.cat-nav {
  display: flex;
  gap: 8px;
  padding: 0 12px 24px;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--text-3);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ─── Título de categoría activa ─── */
.active-cat-title {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 8px;
  min-height: 0;
}
.active-cat-title:empty {
  display: none;
}
.active-cat-title h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.active-cat-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* ─── Section titles ─── */
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 32px 20px 6px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title-line {
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 8px auto 16px;
}

/* ─── Product Grid — Responsive ─── */
.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px) {
  .products { gap: 16px; }
}
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Product Cards ─── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, var(--bg-glass));
  pointer-events: none;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.card-body {
  padding: 14px 16px 16px;
}
.card-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}
.card-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
}
.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--bg-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.add-btn:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: scale(1.1);
}
.add-btn:active {
  transform: scale(0.92);
}

/* ─── Fly-to-cart dot ─── */
.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 1;
}
.fly-dot.fly {
  opacity: 0;
  transform: scale(0.3);
}

/* ─── Drawer Overlay ─── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Cart Drawer ─── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  background: var(--drawer-bg);
  border-left: 1px solid var(--bg-glass-border);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--bg-glass-border);
}
.drawer-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
}
.drawer-close {
  background: none;
  border: 1px solid var(--text-3);
  color: var(--text-2);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.drawer-close svg {
  width: 18px;
  height: 18px;
}
.drawer-close:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
  font-size: 14px;
}
.drawer-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(92, 74, 58, 0.3);
}
.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-thumb .thumb-emoji {
  font-size: 26px;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 13px;
  color: var(--gold);
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-variant-numeric: tabular-nums;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--text-3);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.qty-btn.remove:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.qty-val {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ─── Delivery option (radio buttons in drawer) ─── */
.delivery-option {
  padding: 16px 0;
  border-bottom: 1px solid rgba(92, 74, 58, 0.3);
}
.delivery-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.delivery-radios {
  display: flex;
  gap: 10px;
}
.delivery-radio {
  flex: 1;
}
.delivery-radio input {
  display: none;
}
.delivery-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--text-3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.delivery-radio input:checked + label {
  border-color: var(--accent);
  background: rgba(212, 160, 80, 0.12);
  color: var(--accent);
  font-weight: 600;
}
.delivery-radio label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.delivery-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delivery-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.delivery-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--text-3);
  background: rgba(28, 18, 16, 0.6);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.delivery-field input::placeholder {
  color: var(--text-3);
  font-size: 13px;
}
.delivery-field input:focus {
  border-color: var(--accent);
}
.delivery-field input.field-error {
  border-color: var(--coral);
}
.delivery-warning {
  font-size: 11px;
  color: var(--coral);
  margin-top: 8px;
  display: none;
}
.delivery-warning.show {
  display: block;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--bg-glass-border);
  background: var(--bg-card);
}
.drawer-footer.hidden { display: none; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.total-label {
  font-size: 14px;
  color: var(--text-2);
}
.total-val {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.wa-order-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.wa-order-btn:hover {
  background: #20BD5A;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}
.wa-order-btn svg {
  width: 20px;
  height: 20px;
}

/* ─── WhatsApp FAB ─── */
.wa-fab {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.25s;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.wa-fab svg { width: 28px; height: 28px; }

/* ─── Footer ─── */
.footer {
  margin-top: 48px;
  padding: 40px 20px 110px;
  text-align: center;
  border-top: 1px solid var(--bg-glass-border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-info {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text-1);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Theme Toggle Button ─── */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 160;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bg-glass-border);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 16px var(--accent-glow);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.3s, transform 0.4s;
  position: absolute;
}
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}
body.light .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}
body.light .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ─── Light theme: body background ─── */
body.light {
  background: linear-gradient(
    160deg,
    #EDE8DF 0%,
    #F5F0E8 20%,
    #FAF7F2 40%,
    #FFF9F0 60%,
    #F5EDE2 80%,
    #EDE5DA 100%
  );
}

/* ─── Light theme: panel ─── */
body.light .menu-panel {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(180, 140, 70, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(184, 134, 45, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 100%, rgba(208, 74, 56, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='50' x2='100' y2='50' stroke='%23000000' stroke-opacity='0.018' stroke-width='0.5'/%3E%3Cline x1='50' y1='0' x2='50' y2='100' stroke='%23000000' stroke-opacity='0.018' stroke-width='0.5'/%3E%3C/svg%3E");
}
body.light .menu-panel::before {
  background:
    linear-gradient(135deg, rgba(184, 134, 45, 0.06) 0%, transparent 30%),
    linear-gradient(315deg, rgba(208, 74, 56, 0.03) 0%, transparent 30%);
}

/* ─── Light theme: cards ─── */
body.light .card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
body.light .card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
body.light .card-img::after {
  background: linear-gradient(transparent, var(--bg-glass));
}

/* ─── Light theme: floating buttons ─── */
body.light .floating-cart {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* ─── Light theme: drawer inputs ─── */
body.light .delivery-field input {
  background: rgba(245, 240, 232, 0.6);
}

/* ─── Light theme: toast ─── */
body.light .toast {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ─── Light theme: cart item border ─── */
body.light .cart-item {
  border-bottom-color: rgba(180, 140, 70, 0.15);
}
body.light .delivery-option {
  border-bottom-color: rgba(180, 140, 70, 0.15);
}

/* ─── Light theme: drawer overlay ─── */
body.light .drawer-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* ─── Smooth theme transition ─── */
body, .menu-panel, .card, .floating-cart, .drawer, .toast, .theme-toggle,
.cat-pill, .drawer-close, .qty-btn, .social-icon, .delivery-field input {
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

/* ─── Mobile card compact (2-col) ─── */
@media (max-width: 520px) {
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: 13px; }
  .card-desc { font-size: 11px; margin-bottom: 8px; -webkit-line-clamp: 1; }
  .card-price { font-size: 14px; }
  .card-price small { font-size: 10px; }
  .add-btn { width: 32px; height: 32px; font-size: 18px; border-radius: 10px; }
  .card { border-radius: 14px; }
  .card-img-placeholder { font-size: 36px; }
}

/* ─── Mobile tweaks ─── */
@media (max-width: 400px) {
  .fab-stack { bottom: 16px; right: 14px; gap: 10px; }
  .floating-cart { width: 46px; height: 46px; }
  .floating-cart svg { width: 19px; height: 19px; }
  .wa-fab { width: 50px; height: 50px; }
  .section-title { font-size: 17px; }
  .active-cat-title h2 { font-size: 22px; }
  .logo-text { font-size: 28px; }
  .header-name { font-size: 18px; }
}
