:root {
  --orange:  #D4520A;
  --gold:    #C8890A;
  --cream:   #FDF6EC;
  --dark:    #1A0F00;
  --mid:     #5A3800;
  --light:   #FAE8C8;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
}

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

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--dark);
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, #f5e6c8 0%, #fdf0d5 50%, #f0d8a8 100%);
  color: var(--dark);
  text-align: center;
  padding: 10px 20px 14px;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8890a' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.logo-wrap { position: relative; z-index: 1; }
.logo-baguette {
  max-width: 600px;
  width: 90%;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 2px 16px rgba(150,90,0,0.25));
}
header h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 2px;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
header p.tagline {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
}
header p.location {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--mid);
  font-style: italic;
}

/* ── SELETTORE LINGUA ── */
.lang-selector {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 12px;
}
.lang-btn {
  background: rgba(255,255,255,0.6);
  border: 2px solid transparent;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s, background .2s;
  line-height: 1;
  padding: 0;
}
.lang-btn:hover { transform: scale(1.15); background: rgba(255,255,255,0.85); }
.lang-btn.active {
  border-color: var(--orange);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(212,82,10,0.25);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
nav button {
  background: transparent;
  color: #f0d090;
  border: 1.5px solid #5a3800;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .2s;
}
nav button:hover, nav button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── SEARCH ── */
.search-wrap {
  max-width: 420px;
  margin: 30px auto 0;
  padding: 0 20px;
}
.search-wrap input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid var(--light);
  background: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--orange); }

/* ── MAIN ── */
main { padding: 20px 16px 60px; }

section { margin-bottom: 56px; }
section.hidden { display: none; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--light);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── CARD ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.card.hidden { display: none; }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  background: var(--light);
  padding: 8px;
}
.card-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--light), #f5ddb0);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 16px 18px 10px; flex: 1; }
.card-number {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.card-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--mid);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}
.card-ingredients {
  font-size: 0.82rem;
  color: #7a5530;
  line-height: 1.5;
  min-height: 38px;
  border-top: 1px solid var(--light);
  padding-top: 6px;
  margin-top: 2px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--light);
  margin-top: 10px;
}
.card-footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.75;
}
.card-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--orange);
}

/* ── LOADING / ERROR ── */
#status {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: var(--mid);
}
#status.error { color: #c0392b; }

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, #f5e6c8 0%, #fdf0d5 50%, #f0d8a8 100%);
  color: var(--mid);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.88rem;
  letter-spacing: 1px;
}
footer img.footer-logo {
  display: block;
  margin: 0 auto 14px;
  max-width: 200px;
  width: 55%;
  filter: none;
}
footer .footer-address {
  color: var(--mid);
  margin-bottom: 12px;
  line-height: 1.7;
}
footer a.maps-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--mid);
  text-decoration: none;
  border: 1px solid var(--mid);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.84rem;
  letter-spacing: 1px;
  transition: background .2s, border-color .2s;
}
footer a.maps-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
header a.maps-link {
  color: var(--mid);
  border: 1.5px solid var(--mid);
}
header a.maps-link:hover {
  background: var(--mid);
  color: #fff;
}
footer .footer-dev {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--light);
  font-size: 0.85rem;
  color: var(--mid);
  letter-spacing: 0.5px;
}
footer strong { color: var(--dark); }

/* ── STILE COMUNE LINK HEADER/FOOTER ── */
a.wa-link, header a.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  border-radius: 20px;
  padding: 7px 16px;
  line-height: 1;
  transition: background .2s, color .2s;
}
a.wa-link svg { flex-shrink: 0; }
header a.wa-link {
  color: #25a244;
  border: 1.5px solid #25a244;
}
header a.wa-link:hover { background: #25a244; color: #fff; }
footer a.wa-link {
  color: #1a7d33;
  border: 1px solid #1a7d33;
  margin-top: 10px;
}
footer a.wa-link:hover { background: #25a244; color: #fff; }

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .lang-btn { width: 32px; height: 32px; font-size: 1.2rem; }
}

/* ── CARRELLO FLOTTANTE ── */
#cart-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: background .2s, transform .2s;
}
#cart-fab:hover { background: #b03d06; transform: scale(1.05); }
@keyframes fab-pulse {
  0%   { transform: scale(1); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
  30%  { transform: scale(1.18); box-shadow: 0 8px 32px rgba(212,82,10,0.5); }
  60%  { transform: scale(0.97); }
  100% { transform: scale(1); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
}
#cart-fab.pulse { animation: fab-pulse 0.45s ease; }
#cart-fab .fab-badge {
  background: #fff;
  color: var(--orange);
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 0.78rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
#cart-fab.empty { opacity: 0.5; }

/* ── OVERLAY ── */
#cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 600;
}
#cart-overlay.open { display: block; }

/* ── PANNELLO CARRELLO ── */
/* ── CART PANEL ── */
#cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  z-index: 700;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform .3s ease;
}
#cart-panel.open { transform: translateX(0); }

/* Header fisso */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--light);
  background: var(--cream);
  gap: 10px;
  flex-shrink: 0;
}
.cart-header h3 {
  font-size: 1rem;
  color: var(--orange);
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
  flex: 1;
  text-align: center;
}
.cart-back-btn {
  background: none; border: none;
  font-size: 0.82rem; cursor: pointer;
  color: var(--mid);
  font-family: system-ui, -apple-system, sans-serif;
  white-space: nowrap; padding: 4px 0;
}
.cart-back-btn:hover { color: var(--orange); }
.cart-close-btn {
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer;
  color: var(--mid); line-height: 1;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Zona scrollabile unica */
#cart-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Toggle delivery (in testa alla scroll) */
#cart-delivery-section {
  padding: 10px 16px;
  border-bottom: 2px solid var(--light);
  background: #fffaf4;
  flex-shrink: 0;
}
.delivery-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
#cart-delivery-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mid);
}
#cart-delivery-hint {
  font-size: 0.74rem;
  color: #999;
  margin-top: 1px;
}

/* Lista prodotti */
#cart-items {
  padding: 8px 16px;
  flex-shrink: 0;
}
.cart-empty-msg {
  text-align: center;
  color: #aaa;
  padding: 36px 20px;
  font-style: italic;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light);
}
.cart-row-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--mid);
  line-height: 1.3;
}
.cart-row-tipo {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cart-row-price {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: bold;
  min-width: 52px;
  text-align: right;
}
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  background: var(--light); border: none; border-radius: 50%;
  width: 26px; height: 26px; font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--gold); color: #fff; }
.qty-val { font-size: 0.95rem; font-weight: bold; min-width: 20px; text-align: center; }
.cart-remove-btn {
  background: none; border: none; color: #ccc;
  font-size: 1.1rem; cursor: pointer; padding: 0 2px; transition: color .15s;
}
.cart-remove-btn:hover { color: #c0392b; }

/* Form indirizzo consegna e box note/cliente */
#cart-delivery-form,
.cart-form-box {
  margin: 0 16px 0;
  padding: 12px 14px;
  background: #f9f6f1;
  border-radius: 10px;
  border: 1.5px solid var(--light);
}
.cart-form-section-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.delivery-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

/* Campi comuni form compatti */
.cart-field label {
  display: block;
  font-size: 0.7rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 3px;
}
.cart-field input,
.cart-field textarea {
  width: 100%;
  border: 1.5px solid var(--light);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, sans-serif;
  outline: none;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s;
  resize: none;
}
.cart-field input:focus,
.cart-field textarea:focus { border-color: var(--orange); }
.cart-field input.input-error { border-color: #c0392b; }

/* Note + cliente compatti in fondo allo scroll */
.cart-compact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 16px;
}

/* Footer fisso minimo */
.cart-footer {
  padding: 10px 16px 14px;
  border-top: 2px solid var(--light);
  background: var(--cream);
  flex-shrink: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 10px;
}
.cart-total span:last-child { color: var(--orange); }

/* Riga costo consegna */
#cart-delivery-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 8px;
  font-size: 0.85rem;
  color: var(--mid);
  border-top: 1px dashed var(--light);
  margin-bottom: 4px;
}
#cart-delivery-cost-val { font-weight: 700; color: var(--orange); }

.cart-disclaimer {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: #7c4a00;
  line-height: 1.4;
  margin-bottom: 10px;
  margin-bottom: 14px;
}
.cart-disclaimer strong { color: #b45309; }

/* ── POPUP CONFERMA ── */
#confirm-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
  align-items: center;
  justify-content: center;
}
#confirm-overlay.open { display: flex; }
#confirm-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
#confirm-box .confirm-icon { font-size: 2.2rem; margin-bottom: 12px; }
#confirm-box h4 {
  font-size: 1rem;
  color: #b45309;
  margin-bottom: 10px;
  font-family: system-ui, -apple-system, sans-serif;
}
#confirm-box p {
  font-size: 0.85rem;
  color: var(--mid);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
}
#confirm-box button {
  background: #25a244;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background .2s;
}
#confirm-box button:hover { background: #1a7d33; }
.cart-actions {
  display: flex;
  gap: 10px;
}
.cart-clear-btn {
  flex: 0 0 auto;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #999;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
  transition: border-color .2s, color .2s;
}
.cart-clear-btn:hover { border-color: #c0392b; color: #c0392b; }
.cart-send-btn {
  flex: 1;
  background: #25a244;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  transition: background .2s;
}
.cart-send-btn:hover { background: #1a7d33; }

/* ── POPUP INGREDIENTI ── */
#ingredient-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 800;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#ingredient-overlay.open { display: flex; }

#ingredient-box {
  background: #fff;
  border-radius: 16px;
  padding: 0 0 22px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  position: relative;
}

.ing-close-btn {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 1rem; cursor: pointer;
  color: var(--mid); z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ing-close-btn:hover { background: #fff; color: var(--orange); }

#ing-popup-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--light);
  border-radius: 16px 16px 0 0;
  display: block;
  padding: 8px;
}

#ingredient-box h4 {
  font-size: 1.15rem;
  color: var(--mid);
  font-weight: bold;
  letter-spacing: 1px;
  margin: 14px 18px 4px;
  font-family: 'Georgia', serif;
}

#ingredient-box p {
  font-size: 0.88rem;
  color: #7a5530;
  font-style: italic;
  margin: 0 18px 10px;
  line-height: 1.5;
}

.ing-popup-subtitle {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 18px 10px;
  font-family: system-ui, -apple-system, sans-serif;
}

#ing-popup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}

.ing-chip {
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid #25a244;
  background: #d4edda;
  color: #145a24;
}
.ing-chip:not(.active) {
  background: #fde8e8;
  border-color: #e74c3c;
  color: #c0392b;
  text-decoration: line-through;
}

.ing-divider {
  border: none;
  border-top: 1px solid var(--light);
  margin: 4px 18px 12px;
}

.ing-extras-wrap {
  padding: 0 18px 14px;
}
#ing-extras-select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--light);
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--mid);
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
#ing-extras-select:focus { border-color: var(--gold); }
#ing-extras-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ing-extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff3cd;
  border: 1.5px solid var(--gold);
  color: #7a5000;
  border-radius: 20px;
  padding: 5px 10px 5px 12px;
  font-size: 0.82rem;
  font-family: inherit;
}
.ing-extra-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #b45309;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.ing-extra-remove:hover { color: #c0392b; }

/* "AGG. ingrediente" nel carrello */
.cart-row-aggiunto {
  display: block;
  font-size: 0.72rem;
  color: #7a5000;
  font-style: italic;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: normal;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.ing-popup-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px;
}
.ing-cancel-btn {
  flex: 0 0 auto;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #999;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.ing-cancel-btn:hover { border-color: #999; color: #666; }
.ing-confirm-btn {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: bold;
  transition: background .2s;
}
.ing-confirm-btn:hover { background: #b03d06; }

/* "NO ingrediente" nel carrello */
.cart-row-escluso {
  display: block;
  font-size: 0.72rem;
  color: #c0392b;
  font-style: italic;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: normal;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* bottone nelle card */
.card-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background .2s;
}
.card-order-btn:hover { background: #b03d06; }

/* ── ORDERING DISABLED STATES ── */
.card-order-btn.order-btn-off,
.card-order-btn.order-btn-off:hover {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
#cart-fab.ordering-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── BANNER ORDINI NON DISPONIBILI ── */
#ordering-banner {
  background: linear-gradient(135deg, #fff3cd, #fde8c8);
  border-bottom: 2px solid #f59e0b;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.92rem;
  color: #7c4a00;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: sticky;
  top: 46px; /* sotto la nav sticky */
  z-index: 90;
  box-shadow: 0 2px 8px rgba(200,120,0,0.12);
}

/* ── DELIVERY TOGGLE ── */
.delivery-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.delivery-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.delivery-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 28px;
}
.delivery-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.delivery-switch input:checked + .delivery-slider {
  background-color: var(--orange);
}
.delivery-switch input:checked + .delivery-slider:before {
  transform: translateX(22px);
}

/* ── DELIVERY STATUS BAR ── */
#delivery-status-bar {
  padding: 9px 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: sticky;
  top: 46px;
  z-index: 89;
}
#delivery-status-bar.delivery-on {
  background: linear-gradient(135deg, #e8f5e9, #d4edda);
  border-bottom: 2px solid #25a244;
  color: #145a24;
}
#delivery-status-bar.delivery-off {
  background: linear-gradient(135deg, #fff8ec, #fde8c8);
  border-bottom: 2px solid #e0a040;
  color: #7c4a00;
}
