/* ==========================================================================
   DUMMORA MENU PAGE — Full CSS
   Inherits variables from main.css
   ========================================================================== */

/* ── Page hero ── */
.menu-page-hero {
  background: var(--color-bg-deep);
  padding: 100px 0 40px;
  text-align: center;
  border-bottom: 1px solid rgba(229,178,66,0.2);
}
.menu-page-title {
  font-family: var(--font-heading-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text-cream);
  line-height: 1.2;
  margin: 12px 0;
}
.menu-page-sub {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ── Category Tab Bar ── */
.menu-category-bar {
  background: var(--color-bg-deep);
  border-bottom: 1px solid rgba(229,178,66,0.15);
  position: sticky;
  top: 84px;
  z-index: 200;
  padding: 0;
}
.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(229,178,66,0.3);
  border-radius: 50px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cat-tab:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}
.cat-tab.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #120e04;
}

/* ── Main Layout ── */
.menu-main-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 60px;
  align-items: start;
}

/* ── Food Cards Grid ── */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Individual Food Card (Compact Horizontal) ── */
.food-card.compact-card {
  display: flex;
  flex-direction: row;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-card-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 14px;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.food-card.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-color: rgba(229,178,66,0.4);
}
.compact-card-left {
  flex: 0 0 110px;
}
.compact-card-left .food-card-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.compact-card-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.food-card.compact-card:hover .compact-card-left img { 
  transform: scale(1.05); 
}
.compact-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.compact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}
.food-card-name {
  font-family: var(--font-brand-cinzel);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-cream);
  line-height: 1.25;
  margin: 0 0 4px;
}
.food-card-weight {
  font-size: 0.75rem;
  color: #a89a83;
  display: block;
}
.food-card-price {
  font-family: var(--font-heading-serif);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.food-card-includes {
  font-size: 0.82rem;
  color: #ddd;
  margin-bottom: 12px;
  flex-grow: 1;
}
.food-card-includes strong {
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.food-card-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.food-card-includes li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
}
.inc-check {
  color: #38c172;
  font-weight: 900;
  font-size: 0.8rem;
}
.compact-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 15px;
}
/* ── Qty + Add controls ── */
.qty-ctrl {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(229,178,66,0.3);
  border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  width: 30px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: rgba(229,178,66,0.15); }
.qty-num {
  width: 26px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text-cream);
  font-size: 0.9rem;
}
.btn-add-to-cart {
  flex: 1;
  padding: 8px 14px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 6px;
  color: #120e04;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-add-to-cart:hover { opacity: 0.9; transform: scale(1.02); }
.btn-add-to-cart.added {
  background: linear-gradient(135deg, #38c172, #298c53);
  color: #fff;
}

/* ── Loading spinner ── */
.menu-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(229,178,66,0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-items-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-muted);
}

/* ==========================================================================
   CART PANEL (desktop sidebar)
   ========================================================================== */
.cart-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-card-border);
  border-radius: 16px;
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(229,178,66,0.15);
}
.cart-panel-header h3 {
  font-family: var(--font-brand-cinzel);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-cream);
  margin: 0;
}
.cart-panel-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: rgba(229,178,66,0.1);
  padding: 2px 10px;
  border-radius: 50px;
}
.cart-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.cart-empty-msg {
  text-align: center;
  padding: 30px 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.cart-empty-msg svg { stroke: rgba(229,178,66,0.4); display: block; margin: 0 auto 12px; }

/* Cart line item */
.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-line-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.cart-line-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(229,178,66,0.4);
  border-radius: 4px;
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-qty-btn:hover { background: rgba(229,178,66,0.15); }
.cart-qty-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-cream);
  min-width: 18px;
  text-align: center;
}
.cart-line-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  flex-shrink: 0;
  min-width: 52px;
  text-align: right;
}
.cart-remove-btn {
  width: 20px;
  height: 20px;
  background: rgba(244,67,54,0.1);
  border: none;
  border-radius: 50%;
  color: #F44336;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cart-remove-btn:hover { background: rgba(244,67,54,0.25); }

.cart-panel-footer {
  border-top: 1px solid rgba(229,178,66,0.15);
  padding: 16px 20px;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-cream);
  font-weight: 600;
}
#cartSubtotal, #mobileCartSubtotal {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.mt-10 { margin-top: 10px; }
.mt-6 { margin-top: 6px; }

/* ── Cart FAB (mobile) ── */
.cart-fab {
  display: none;
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(229,178,66,0.5);
  align-items: center;
  justify-content: center;
}
.cart-fab svg { stroke: #120e04; }
.cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  background: #F44336;
  border: 2px solid #09090b;
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Mobile Cart Drawer ── */
.mobile-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
}
.mobile-cart-overlay.active { display: block; }
.mobile-cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 10001;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1);
}
.mobile-cart-drawer.open { transform: translateY(0); }
.mobile-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(229,178,66,0.15);
}
.mobile-cart-header h3 { font-family: var(--font-brand-cinzel); font-size: 1rem; color: var(--color-text-cream); margin: 0; }
.close-cart-drawer {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.mobile-cart-footer { padding: 16px 20px; border-top: 1px solid rgba(229,178,66,0.15); }

/* ==========================================================================
   ORDER MODAL
   ========================================================================== */
.order-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.order-modal-overlay.open { display: flex; }
.order-modal {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,178,66,0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(229,178,66,0.15);
  position: sticky;
  top: 0;
  background: var(--color-bg-card);
  z-index: 1;
}
.order-modal-header h2 {
  font-family: var(--font-brand-cinzel);
  font-size: 1.2rem;
  color: var(--color-text-cream);
  margin: 0;
}
.order-modal-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.order-modal-close:hover { color: #fff; }
.order-modal-body { padding: 24px; }

/* Order summary block */
.order-summary-block {
  background: rgba(229,178,66,0.07);
  border: 1px solid rgba(229,178,66,0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.order-summary-block h4 {
  font-family: var(--font-brand-cinzel);
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin: 0 0 12px;
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.order-summary-item:last-of-type { border-bottom: none; }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(229,178,66,0.3);
  font-weight: 700;
  color: var(--color-text-cream);
}

/* Form */
.order-form .form-section-title {
  font-family: var(--font-brand-cinzel);
  font-size: 0.95rem;
  color: var(--gold-primary);
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(229,178,66,0.2);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.form-group label .req { color: #F44336; }
.form-group label .opt { color: rgba(189,178,159,0.6); font-weight: 400; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(229,178,66,0.25);
  border-radius: 10px;
  color: var(--color-text-cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(229,178,66,0.07);
}

.order-type-options {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.type-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid rgba(229,178,66,0.2);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.type-option:has(input:checked) {
  border-color: var(--gold-primary);
  background: rgba(229,178,66,0.08);
}
.type-option input { accent-color: var(--gold-primary); }
.type-label { font-size: 0.9rem; font-weight: 600; color: var(--color-text-cream); }

.order-total-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(229,178,66,0.1);
  border: 1px solid rgba(229,178,66,0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-cream);
}
.order-total-display .total-value {
  font-family: var(--font-heading-serif);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-place-order {
  padding: 14px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.form-disclaimer {
  font-size: 0.72rem;
  color: rgba(189,178,159,0.5);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Buttons ── */
.btn-outline-gold {
  padding: 10px 18px;
  background: transparent;
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  color: var(--gold-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  display: block;
  text-align: center;
  width: 100%;
}
.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #120e04;
}
.w-full { width: 100%; display: block; text-align: center; }

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.success-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.success-modal-overlay.open { display: flex; }
.success-modal {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,178,66,0.3);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: slideUp 0.35s ease;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 20px;
}
.success-modal h2 {
  font-family: var(--font-brand-cinzel);
  font-size: 1.6rem;
  color: var(--color-text-cream);
  margin: 0 0 8px;
}
.success-order-num {
  font-family: var(--font-heading-serif);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
}
.success-msg {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.btn-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #25D366;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-whatsapp-cta:hover { background: #1ebe59; color: #fff; text-decoration: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .menu-main-wrap { grid-template-columns: 1fr; }
  .cart-panel { display: none; }
  .cart-fab { display: flex; }
}
@media (max-width: 640px) {
  .menu-page-hero { padding: 90px 0 28px; }
  .menu-items-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .order-type-options { flex-direction: column; }
  .order-modal-body { padding: 16px; }
}
@media (max-width: 480px) {
  .food-card.compact-card {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .compact-card-left {
    flex: none;
    width: 100%;
  }
  .compact-card-left .food-card-img-wrap {
    width: 100%;
    height: 120px;
    border-radius: 6px;
  }
  .compact-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .food-card-name {
    font-size: 1rem;
  }
  .food-card-price {
    font-size: 1.15rem;
  }
  .compact-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .qty-ctrl {
    justify-content: center;
  }
}
