/* ─── Napoli Interactive Menu Styles ─────────────────────────────────────── */
:root {
  --napoli-red: #E31E24;
  --napoli-dark-red: #b01519;
  --napoli-green: #007A33;
  --napoli-white: #ffffff;
  --napoli-dark: #1a1a1a;
  --napoli-gray: #f5f5f5;
  --napoli-border: #e0e0e0;
  --napoli-shadow: 0 2px 12px rgba(0,0,0,0.12);
  --napoli-radius: 10px;
}

#napoli-menu-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 80px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ─── Closed Banner ─────────────────────────────────────────────────────── */
.napoli-closed-banner {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: var(--napoli-radius);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ─── Search Bar ────────────────────────────────────────────────────────── */
.napoli-search-bar {
  margin-bottom: 20px;
  position: sticky;
  top: 60px;
  z-index: 100;
}

#napoli-search {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--napoli-red);
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--napoli-shadow);
  box-sizing: border-box;
}

#napoli-search:focus {
  border-color: var(--napoli-dark-red);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.15);
}

/* ─── Floating Cart ─────────────────────────────────────────────────────── */
#napoli-floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--napoli-red);
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(227,30,36,0.4);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}

#napoli-floating-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(227,30,36,0.5);
}

#napoli-cart-count {
  background: white;
  color: var(--napoli-red);
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.85rem;
  margin-left: 4px;
}

/* ─── Accordion ─────────────────────────────────────────────────────────── */
.napoli-category {
  border: 1px solid var(--napoli-border);
  border-radius: var(--napoli-radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.napoli-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--napoli-red) 0%, var(--napoli-dark-red) 100%);
  color: white;
  user-select: none;
  transition: background 0.2s;
}

.napoli-cat-header:hover {
  background: linear-gradient(135deg, var(--napoli-dark-red) 0%, #8b1015 100%);
}

.napoli-category.lunch-closed .napoli-cat-header {
  background: linear-gradient(135deg, #888 0%, #666 100%);
}

.napoli-cat-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.napoli-cat-count {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-left: auto;
  margin-right: 12px;
}

.napoli-cat-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.napoli-cat-header.open .napoli-cat-arrow {
  transform: rotate(180deg);
}

.lunch-timer {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
}

/* ─── Products Grid ─────────────────────────────────────────────────────── */
.napoli-cat-body {
  padding: 16px;
}

.napoli-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.napoli-product-card {
  border: 1px solid var(--napoli-border);
  border-radius: var(--napoli-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

.napoli-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.napoli-product-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.napoli-product-info {
  padding: 12px;
}

.napoli-product-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--napoli-dark);
  line-height: 1.3;
}

.napoli-product-desc {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.napoli-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.napoli-product-price {
  font-weight: 700;
  color: var(--napoli-red);
  font-size: 1rem;
}

.napoli-customize-badge {
  font-size: 0.7rem;
  background: #fff3cd;
  color: #856404;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid #ffc107;
}

.napoli-add-btn {
  background: var(--napoli-red);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.napoli-add-btn:hover {
  background: var(--napoli-dark-red);
}

.napoli-add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.napoli-lunch-closed-msg {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.95rem;
}

/* ─── Modal ─────────────────────────────────────────────────────────────── */
#napoli-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#napoli-modal-overlay.active {
  display: flex;
}

#napoli-modal {
  background: white;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: napoliModalIn 0.25s ease;
}

@keyframes napoliModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.napoli-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}

.napoli-modal-close:hover { background: #ddd; }

/* Modal content */
.napoli-modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.napoli-modal-body {
  padding: 20px;
}

.napoli-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--napoli-dark);
  margin-bottom: 6px;
}

.napoli-modal-price {
  font-size: 1.2rem;
  color: var(--napoli-red);
  font-weight: 700;
  margin-bottom: 10px;
}

.napoli-modal-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Modifier Groups */
.napoli-mod-group {
  margin-bottom: 18px;
  border: 1px solid var(--napoli-border);
  border-radius: 8px;
  overflow: hidden;
}

.napoli-mod-group-title {
  background: var(--napoli-gray);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--napoli-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.napoli-mod-required {
  font-size: 0.72rem;
  background: var(--napoli-red);
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
}

.napoli-mod-optional {
  font-size: 0.72rem;
  background: #6c757d;
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
}

.napoli-mod-options {
  padding: 8px 0;
}

.napoli-mod-option {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 10px;
}

.napoli-mod-option:hover { background: #fafafa; }

.napoli-mod-option input[type="checkbox"],
.napoli-mod-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--napoli-red);
  cursor: pointer;
  flex-shrink: 0;
}

.napoli-mod-option-name {
  flex: 1;
  font-size: 0.9rem;
}

.napoli-mod-option-price {
  font-size: 0.85rem;
  color: var(--napoli-red);
  font-weight: 600;
}

/* Quantity + Notes */
.napoli-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
}

.napoli-qty-label { font-weight: 600; font-size: 0.9rem; }

.napoli-qty-btn {
  background: var(--napoli-gray);
  border: 1px solid var(--napoli-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.napoli-qty-btn:hover { background: #e0e0e0; }

#napoli-modal-qty {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

.napoli-notes-area {
  width: 100%;
  border: 1px solid var(--napoli-border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  margin-bottom: 16px;
  font-family: inherit;
}

.napoli-notes-area:focus {
  outline: none;
  border-color: var(--napoli-red);
}

/* Add to Cart button */
.napoli-modal-add-btn {
  width: 100%;
  background: var(--napoli-red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.napoli-modal-add-btn:hover {
  background: var(--napoli-dark-red);
  transform: translateY(-1px);
}

.napoli-modal-add-btn:active { transform: translateY(0); }

/* Toast notification */
#napoli-toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--napoli-green);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 99998;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: napoliToastIn 0.3s ease;
}

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

/* Allergy disclaimer */
.napoli-allergy-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 10px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .napoli-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .napoli-product-img img { height: 110px; }
  #napoli-modal { max-height: 95vh; }
  .napoli-modal-img { height: 150px; }
}

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

/* Search highlight */
.napoli-product-card.search-hidden { display: none; }
.napoli-category.search-empty { display: none; }
