/* Pre-Order Cutoff System - Glassmorphism UI */

.preorder-notice-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(35, 61, 40, 0.08);
  border: 1px solid rgba(35, 61, 40, 0.16);
  border-radius: 18px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}
.banner-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.banner-text {
  font-size: 14.5px;
  color: #233d28;
  line-height: 1.5;
}
.banner-text strong {
  color: #172a1b;
}

.cutoff-status-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(35, 61, 40, 0.14);
  border-radius: 24px;
  padding: 24px 30px;
  margin: 20px 0 32px;
  box-shadow: 0 10px 30px rgba(35, 61, 40, 0.06);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}
.cutoff-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cutoff-left {
  flex: 1;
  min-width: 260px;
}
.cutoff-meta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 20px;
  background: #eef3ec;
  color: #233d28;
  margin-bottom: 8px;
}
.cutoff-headline {
  font: 26px/1.2 Georgia, serif;
  color: #172a1b;
  margin-bottom: 6px;
}
.cutoff-subtext {
  font-size: 14px;
  color: #5f6e62;
}
.cutoff-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cutoff-timer-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #17291c;
  color: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dcc27e;
  font-weight: 700;
}
.timer-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.cutoff-status-pill {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cutoff-status-pill.closed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}

.cutoff-closed-notice {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(35, 61, 40, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.closed-badge {
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: 0.08em;
}
.cutoff-closed-notice p {
  margin: 0;
  color: #555;
  font-size: 14px;
}
.next-suggestion {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: #233d28;
  background: rgba(220, 194, 126, 0.3);
  padding: 8px 14px;
  border-radius: 12px;
  width: fit-content;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 4px;
}
.next-suggestion:hover {
  background: rgba(220, 194, 126, 0.5);
}

/* Card Cutoff States */
.food-card.cutoff-closed {
  opacity: 0.8;
  background: rgba(246, 247, 243, 0.9);
}
.food-card.cutoff-closed .add-btn {
  background: #64748b !important;
  cursor: not-allowed;
  opacity: 0.85;
}
.cutoff-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
}
.cutoff-tag.open {
  background: #dcfce7;
  color: #166534;
}
.cutoff-tag.closed {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 768px) {
  .cutoff-card-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cutoff-right {
    width: 100%;
    justify-content: space-between;
  }
  .cutoff-timer-box {
    align-items: flex-start;
  }
}

/* Card Quantity Stepper (1- / 1+) */
.card-qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--green, #233d28);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(23, 40, 26, 0.22);
  height: 44px;
}
.card-qty-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  width: 38px;
  height: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
}
.card-qty-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.card-qty-btn:active {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(0.95);
}
.card-qty-num {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  min-width: 28px;
  text-align: center;
  user-select: none;
  padding: 0 4px;
}

/* =========================================================
   UI ENHANCEMENTS: ANIMATIONS, TRANSITIONS & EMPTY STATES
   ========================================================= */

/* Branded Empty State when Kitchen has not published dishes */
.menu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px dashed rgba(35, 61, 40, 0.22);
  border-radius: 28px;
  text-align: center;
  margin: 20px 0;
  backdrop-filter: blur(14px);
  animation: emptyFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 10px 30px rgba(35, 61, 40, 0.05);
}

.empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
  animation: floatChef 3.2s ease-in-out infinite alternate;
}

.empty-title {
  font: 32px/1.2 Georgia, serif;
  color: #172a1b;
  margin: 0 0 12px;
}

.empty-desc {
  font-size: 15.5px;
  color: #556358;
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes floatChef {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes emptyFadeIn {
  0% { opacity: 0; transform: scale(0.96) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Food Card Entrance and Hover Lift */
.food-card {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease !important;
  animation: cardEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, box-shadow;
}

.food-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(22, 38, 25, 0.14) !important;
  border-color: rgba(35, 61, 40, 0.28) !important;
}

.food-card img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.food-card:hover img {
  transform: scale(1.06) !important;
}

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

/* Dietary Type Tags (Pure Veg 🟢 vs Non-Veg 🔴) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
}

.tag.veg {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.tag.non-veg {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

/* Filter Tab Transitions */
.filters {
  transition: all 0.3s ease;
}

.filters button {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filters button:hover:not(.active) {
  background: rgba(35, 61, 40, 0.08) !important;
  transform: translateY(-1px);
}

.filters button.active {
  box-shadow: 0 4px 14px rgba(35, 61, 40, 0.25);
  transform: scale(1.03);
}

/* Add to Bag Button Micro-Interactions */
.add-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease !important;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 61, 40, 0.24) !important;
}

.add-btn:active {
  transform: scale(0.96) !important;
}

/* Cart Badge Pop Animation */
@keyframes cartBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.4) rotate(-8deg); }
  65% { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.cart-bump {
  animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Cart Drawer and Dialog Fluid Transitions */
.cart-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: -15px 0 50px rgba(10, 24, 14, 0.25) !important;
}

dialog {
  animation: modalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

dialog input:focus, dialog select:focus, dialog textarea:focus {
  border-color: #233d28 !important;
  outline: 2px solid rgba(35, 61, 40, 0.25) !important;
  box-shadow: 0 0 0 4px rgba(35, 61, 40, 0.08) !important;
}


