/* ---------- base + reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
  --primary: #c62828;
  --secondary: #ffd54f;
  --dark: #212121;
  --light: #f5f5f5;
  --accent: #388e3c;
  --card-bg: #fff;
  --border: #e0e0e0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}
h1,
h2,
h3 {
  margin-bottom: 20px;
  color: var(--dark);
}
h2 {
  font-size: 2.2rem;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}
h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary);
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: #a71d1d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ---------- header ---------- */
header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/header_img.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: 2.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.tagline {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.header-btns {
  display: flex;
  flex-direction: column;
  width: 80%;
  align-items: center;
  margin: 20px auto 0;
}
.header-btns .btn {
  display: block;
  margin: 0 auto;
  text-align: center;
}
.header-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto;
  max-width: 300px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.info-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}
.info-item span {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- about ---------- */
#about {
  background-color: white;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.about-text {
  flex: 1;
  min-width: 300px;
  text-align: justify;
  line-height: 1.7;
}
.about-text p {
  margin-bottom: 18px;
  text-align: justify;
}

/* ---------- offers ---------- */
#offers {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
}
.offers-content {
  max-width: 800px;
  margin: 0 auto;
}
.offer-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.offer-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  flex-shrink: 0;
}
.offer-icon i {
  font-size: 1.5rem;
}
.offer-details h3 {
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.offer-condition {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
}
.offer-notice {
  background: var(--secondary);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
  border: 2px dashed var(--primary);
}
.offer-notice p {
  margin: 0;
  color: var(--dark);
  font-size: 1.1rem;
}
.offer-notice i {
  color: var(--primary);
  margin-right: 10px;
}

/* ---------- STICKY HORIZONTAL CATEGORY BAR - FULL WIDTH ---------- */
.menu-categories-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 12px 0 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: max(16px, calc((100% - 1200px) / 2 + 16px));
  padding-right: max(16px, calc((100% - 1200px) / 2 + 16px));
}
@media (max-width: 1200px) {
  .menu-categories-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.menu-categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f0f0f0;
  -webkit-overflow-scrolling: touch;
}
.menu-categories-scroll::-webkit-scrollbar {
  height: 6px;
}
.menu-categories-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.menu-categories-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.category-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  background-color: white;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dark);
}
.category-btn.active,
.category-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

/* ---------- Category Summary ---------- */
.category-summary {
  background: #fff8e1;
  border-bottom: 3px solid var(--secondary);
  padding: 16px 0;
  margin-bottom: 20px;
  display: none;
}
.category-summary.visible {
  display: block;
}
.category-summary-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.category-summary-content .summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.category-summary-content .summary-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
.category-summary-content .summary-tip {
  font-size: 0.85rem;
  color: #888;
  margin-top: 6px;
  font-style: italic;
}

/* ---------- menu grid ---------- */
#menu {
  background-color: white;
  position: relative;
  padding: 20px 0 60px 0;
}
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 4px;
}
.menu-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* ── Unavailable items: greyed out but still visible, not removed ── */
.menu-item.unavailable {
  filter: grayscale(0.6);
  opacity: 0.55;
}
.menu-item.unavailable:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.unavailable-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--dark, #212121);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.item-details {
  padding: 18px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.item-name h3 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
}
.price {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  font-size: 1rem;
}
.item-description {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 6px 0 10px 0;
  flex: 1;
}
.item-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.spicy-tag,
.popular-tag,
.allergen-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.spicy-tag {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.popular-tag {
  background-color: #fff8e1;
  color: #ff8f00;
  border: 1px solid #ffecb3;
}
.allergen-tag {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

/* ---------- "Add to basket" button (order system) ---------- */
.ek-add-btn {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.ek-add-btn:hover {
  background-color: #a71d1d;
  transform: scale(1.02);
}
.ek-add-btn.ek-added {
  background-color: var(--accent);
  transform: scale(0.95);
}

/* ---------- Edit Button ---------- */
.ek-edit-btn {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ek-edit-btn:hover {
  background: #e3f2fd;
  border-color: #1565c0;
  color: #1565c0;
}

/* ---------- Edit Modal ---------- */
.ek-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(4px);
}
.ek-edit-modal.ek-edit-open {
  display: flex;
}
.ek-edit-content {
  background: white;
  border-radius: 16px;
  padding: 30px 32px;
  max-width: 420px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: ek-modalSlide 0.3s ease;
}
@keyframes ek-modalSlide {
  0% {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.ek-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.ek-edit-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark);
}
.ek-edit-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}
.ek-edit-close:hover {
  color: var(--dark);
}
.ek-edit-item-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.ek-edit-instructions {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 16px;
}
.ek-edit-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.ek-edit-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.ek-edit-option:hover {
  border-color: var(--primary);
  background: #fff5f5;
}
.ek-edit-option.ek-removed {
  border-color: #d32f2f;
  background: #ffebee;
  opacity: 0.7;
}
.ek-edit-option.ek-removed .ek-edit-option-name {
  text-decoration: line-through;
  color: #999;
}
.ek-edit-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.ek-edit-option-name {
  font-size: 0.92rem;
  font-weight: 500;
  flex: 1;
}
.ek-edit-option-remove-badge {
  font-size: 0.7rem;
  color: #d32f2f;
  font-weight: 700;
  background: #ffcdd2;
  padding: 2px 10px;
  border-radius: 20px;
  display: none;
}
.ek-edit-option.ek-removed .ek-edit-option-remove-badge {
  display: inline-block;
}
.ek-edit-footer {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.ek-edit-footer .ek-checkout-btn {
  flex: 1;
}
.ek-edit-footer .ek-checkout-btn.ek-edit-cancel {
  background: #eee;
  color: #555;
}
.ek-edit-footer .ek-checkout-btn.ek-edit-cancel:hover {
  background: #ddd;
}
.ek-edit-footer .ek-checkout-btn.ek-edit-confirm {
  background: var(--primary);
}
.ek-edit-footer .ek-checkout-btn.ek-edit-confirm:hover {
  background: #a71d1d;
}
.ek-edit-changes {
  font-size: 0.8rem;
  color: #d32f2f;
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffebee;
  border-radius: 8px;
  display: none;
}
.ek-edit-changes.ek-has-changes {
  display: block;
}

/* ---------- ORDER SYSTEM: CART FAB + PANEL ---------- */
#ek-cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#ek-cart-fab:hover {
  transform: scale(1.08);
}
#ek-cart-fab svg {
  width: 28px;
  height: 28px;
  stroke: white;
}
#ek-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffd54f;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* ----- bounce animation for cart icon on add ----- */
@keyframes ek-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
#ek-cart-fab.ek-bounce {
  animation: ek-bounce 0.5s ease;
}

#ek-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#ek-overlay.ek-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}
#ek-cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  color: var(--dark);
  overflow-y: auto;
  padding: 20px 18px 30px;
}
#ek-cart-panel.ek-cart-open {
  right: 0;
}
.ek-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #eee;
  margin-bottom: 16px;
}
.ek-cart-header h2 {
  font-size: 1.6rem;
  margin: 0;
}
.ek-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #888;
  padding: 0 6px;
}
.ek-close-btn:hover {
  color: #222;
}

/* wednesday deal */
.ek-wed-deal {
  background: #fff8e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ffecb3;
}
.ek-wed-bar-bg {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ek-wed-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--secondary);
  border-radius: 10px;
  transition: width 0.3s;
}
.ek-deal-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #795548;
}
.ek-deal-msg.ek-deal-active {
  color: var(--accent);
}

/* cart items */
#ek-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.ek-empty-cart {
  color: #999;
  text-align: center;
  padding: 40px 0;
  font-size: 1.1rem;
}
.ek-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ek-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ek-cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.ek-cart-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.ek-free-tag {
  color: var(--accent);
}
.ek-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ek-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fafafa;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.ek-qty-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ek-qty-num {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.ek-free-row {
  background: #f1f8e9;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 6px;
  border-left: 4px solid var(--accent);
}

.ek-cart-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #eee;
}
.ek-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.ek-checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.ek-checkout-btn:hover {
  background: #a71d1d;
}
.ek-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* checkout form */
#ek-checkout-form {
  display: none;
  flex: 1;
  overflow-y: auto;
}
.ek-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 0 12px 0;
}
.ek-back-btn:hover {
  text-decoration: underline;
}
.ek-form-title {
  font-size: 1.3rem;
  margin: 6px 0 16px 0;
}
.ek-label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
  font-size: 0.9rem;
}
.ek-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 4px;
  transition: border 0.2s;
  background: #fafafa;
}
.ek-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.ek-input-error {
  border-color: #d32f2f !important;
  background: #ffebee !important;
}

/* ── Phone field with embedded verify button ── */
.ek-input-wrap {
  position: relative;
  margin-top: 4px;
}
.ek-input-wrap .ek-input {
  margin-top: 0;
}
.ek-input-has-btn {
  padding-right: 92px;
}
.ek-inline-verify-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 7px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.ek-inline-verify-btn:hover {
  background: #b71c1c;
}
.ek-inline-verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ek-phone-status {
  font-size: 0.82rem;
  margin: 5px 2px 0;
  min-height: 1.1em;
}
.ek-phone-status.ek-status-error {
  color: #c62828;
}
.ek-phone-status.ek-status-info {
  color: #777;
}
.ek-phone-status.ek-status-success {
  color: #388e3c;
  font-weight: 600;
}
.ek-otp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Friendly inline checkout banner (replaces native alert() popups) ── */
.ek-checkout-banner {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0 0 14px;
}
.ek-checkout-banner.ek-banner-show {
  display: flex;
}
.ek-checkout-banner.ek-banner-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}
.ek-checkout-banner.ek-banner-info {
  background: #fff8e1;
  color: #8d6e00;
  border: 1px solid #ffe082;
}
.ek-checkout-banner.ek-banner-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.ek-checkout-banner .ek-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.65;
  padding: 0;
  flex-shrink: 0;
}
.ek-checkout-banner .ek-banner-close:hover {
  opacity: 1;
}
.ek-textarea {
  resize: vertical;
  min-height: 60px;
}
.ek-fieldset {
  border: none;
  padding: 0;
  margin: 12px 0 4px 0;
}
.ek-legend {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.ek-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  font-weight: 500;
  cursor: pointer;
}
.ek-optional {
  color: #999;
  font-weight: 400;
  font-size: 0.8rem;
}

/* delivery address fields */
#ek-delivery-row {
  display: none;
}
.ek-autocomplete-wrap {
  position: relative;
}
.ek-suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  margin: 0;
  padding: 0;
}
.ek-suggestions-list.ek-suggestions-visible {
  display: block;
}
.ek-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}
.ek-suggestion-item:hover {
  background: #f5f5f5;
}
.ek-address-fields {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.ek-address-fields .ek-label {
  margin-top: 4px;
}
.ek-address-fields .ek-label:last-child {
  grid-column: span 2;
}
@media (max-width: 500px) {
  .ek-address-fields {
    grid-template-columns: 1fr;
  }
  .ek-address-fields .ek-label:last-child {
    grid-column: span 1;
  }
}

.ek-delivery-info {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.ek-delivery-loading {
  background: #e3f2fd;
  color: #0d47a1;
}
.ek-delivery-success {
  background: #e8f5e9;
  color: #1b5e20;
}
.ek-delivery-error {
  background: #ffebee;
  color: #b71c1c;
}

/* order summary mini */
.ek-order-summary-mini {
  margin: 18px 0 12px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
}
.ek-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.95rem;
}
.ek-summary-total {
  border-top: 2px solid #ddd;
  padding-top: 10px;
  margin-top: 6px;
  font-size: 1.1rem;
}
.ek-cash-note {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* order confirmation modal (pre-submit review) */
.ek-order-confirm-block {
  margin: 12px 0;
}
.ek-detail-row {
  font-size: 0.9rem;
  color: var(--dark);
  margin: 4px 0;
}
.ek-detail-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ek-detail-item-row:last-child {
  border-bottom: none;
}
.ek-detail-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}
.ek-detail-item-price {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.ek-detail-mod {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2px;
}

/* confirmation */
.ek-confirmation {
  text-align: center;
  padding: 30px 10px;
}
.ek-conf-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.ek-conf-id {
  font-size: 1.1rem;
  margin: 12px 0;
}
.ek-conf-note {
  color: #555;
  font-size: 0.95rem;
  margin: 12px 0 20px 0;
}

/* ---------- contact / footer ---------- */
#contact {
  background-color: white;
}
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-info {
  flex: 1;
  min-width: 300px;
}
.contact-details {
  margin-bottom: 30px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.contact-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item a {
  color: var(--dark);
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.opening-hours {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}
.opening-hours h3 {
  margin-bottom: 15px;
  color: var(--primary);
}
.hours-table {
  width: 100%;
}
.hours-table tr {
  border-bottom: 1px solid #eee;
}
.hours-table td {
  padding: 8px 0;
}
.hours-table td:last-child {
  text-align: right;
  font-weight: bold;
}
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 0;
}
footer h3 {
  color: var(--light);
}
.copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .header-btns {
    flex-direction: column;
    width: 80%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .menu-items {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-content {
    flex-direction: column;
  }
  .offer-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .offer-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  #ek-cart-panel {
    width: 92vw;
    right: -100vw;
    padding: 16px;
  }
  #ek-cart-panel.ek-cart-open {
    right: 0;
  }
  .menu-categories-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 480px) {
  .category-btn {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  .menu-categories-scroll {
    padding: 4px 0 8px 0;
  }
}

/* ---------- decorative (snow, fireworks, lanterns) ---------- */
#fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}
.firework-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
}
.wednesday-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}
#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
}
.snowflake.small {
  font-size: 0.8em;
  opacity: 0.6;
}
.snowflake.medium {
  font-size: 1.2em;
  opacity: 0.8;
}
.snowflake.large {
  font-size: 1.5em;
  opacity: 1;
}
@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.snowflake.distant {
  opacity: 0.4;
  filter: blur(1px);
}
.snowflake.very-distant {
  opacity: 0.2;
  filter: blur(2px);
}
#interactive-lanterns {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
/* ----- SUBTLE LANTERNS - smaller + lower opacity ----- */
.interactive-lantern {
  position: absolute;
  pointer-events: none;
  animation: floatUpAndFade 8s ease-out forwards;
  opacity: 0.35;
  filter: blur(0.5px);
}
.lantern-body {
  width: 22px;
  height: 32px;
  background: linear-gradient(45deg, #c62828, #e53935);
  border-radius: 12px 12px 16px 16px;
  position: relative;
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.15);
}
.lantern-top {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 5px;
  background: #ffd54f;
  border-radius: 4px 4px 0 0;
}
.lantern-bottom {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 4px;
  background: #ffd54f;
  border-radius: 0 0 3px 3px;
}
.lantern-tassel {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: #ffd54f;
  animation: sway 3s ease-in-out infinite;
  opacity: 0.6;
}
.lantern-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 26px;
  border: 1px solid rgba(255, 213, 79, 0.15);
  border-radius: 10px 10px 12px 12px;
}
@keyframes floatUpAndFade {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    transform: translateY(-15px) scale(0.85);
    opacity: 0.4;
  }
  80% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}
@keyframes sway {
  0%, 100% { transform: translateX(-50%) rotate(-3deg); }
  50% { transform: translateX(-50%) rotate(3deg); }
}
.loading {
  text-align: center;
  padding: 40px;
  font-style: italic;
  color: #666;
}

/* ---------- Basket Edit Button ---------- */
.ek-basket-edit-btn {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.ek-basket-edit-btn:hover {
  border-color: #1565c0;
  background: #e3f2fd;
  color: #1565c0;
}
.ek-basket-edit-btn:active {
  transform: scale(0.9);
}
/* ---------- Edit Modal - Extras Section ---------- */
.ek-edit-section-divider {
  border: none;
  border-top: 2px dashed #ddd;
  margin: 16px 0;
}
.ek-edit-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ek-edit-section-title .ek-extra-tag {
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.ek-edit-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.ek-edit-extra:hover {
  border-color: var(--accent);
  background: #f1f8e9;
}
.ek-edit-extra.ek-added {
  border-color: var(--accent);
  background: #e8f5e9;
}
.ek-edit-extra input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.ek-edit-extra-name {
  font-size: 0.92rem;
  font-weight: 500;
  flex: 1;
}
.ek-edit-extra-price {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.ek-edit-extra-added-badge {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  background: #c8e6c9;
  padding: 2px 10px;
  border-radius: 20px;
  display: none;
}
.ek-edit-extra.ek-added .ek-edit-extra-added-badge {
  display: inline-block;
}
.ek-edit-total-extra {
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 600;
  padding: 8px 14px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-top: 8px;
  display: none;
}
.ek-edit-total-extra.ek-has-extras {
  display: block;
}
.ek-edit-total-extra .ek-extra-amount {
  color: var(--accent);
  font-weight: 700;
}
/* ---------- Edit Modal - Choices Section ---------- */
.ek-edit-choices-section {
  margin-top: 4px;
}
.ek-edit-choices-section .ek-edit-section-title {
  margin-bottom: 4px;
}
.ek-edit-choice-group {
  margin-bottom: 12px;
}
.ek-edit-choice-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin-bottom: 6px;
}
.ek-edit-choice-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}
.ek-edit-choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.ek-edit-choice-option:hover {
  border-color: var(--primary);
  background: #fff5f5;
}
.ek-edit-choice-option.ek-selected {
  border-color: var(--primary);
  background: #ffebee;
}
.ek-edit-choice-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.ek-edit-choice-option-name {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}
.ek-edit-choice-option-price {
  font-size: 0.8rem;
  color: var(--muted);
}
.ek-edit-choice-option.ek-selected .ek-edit-choice-option-name {
  color: var(--primary);
}
.ek-edit-required-badge {
  font-size: 0.7rem;
  color: #d32f2f;
  font-weight: 700;
  background: #ffcdd2;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
}
.ek-edit-choice-error {
  font-size: 0.8rem;
  color: #d32f2f;
  margin-top: 4px;
  display: none;
}
.ek-edit-choice-error.ek-show {
  display: block;
}

/* ---------- HALT ORDERS OVERLAY ---------- */
.ek-halt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Disabled button states for halt */
.ek-add-btn:disabled,
.ek-edit-btn:disabled,
.ek-checkout-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Halt banner animation */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#ek-halt-banner {
  animation: slideDown 0.5s ease;
}

/* Grey out cart panel when halted */
#ek-cart-panel.ek-halted {
  opacity: 0.6;
  pointer-events: none;
}

/* Add a subtle overlay on menu items when halted */
.menu-item.ek-halted .ek-add-btn,
.menu-item.ek-halted .ek-edit-btn {
  opacity: 0.3 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Print button style */
.btn-print {
  background: #1565c0;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-print:hover {
  opacity: 0.8;
  transform: scale(1.03);
}

/* ---------- Print receipt preview ---------- */
.ek-print-preview {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ek-print-preview-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
}
.ek-print-preview-content pre {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #000;
  background: #fff;
  padding: 10px;
}
/* ── Time Dropdown ── */
#ek-pref-time {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  background: #fff !important;
  color: #333 !important;
  cursor: pointer;
  padding: 10px 14px !important;
}

#ek-pref-time option {
  padding: 4px 8px;
}

.ek-time-info {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  display: block;
}

.ek-time-info .prep-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  padding: 1px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7rem;
}

.ek-time-info .delivery-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  padding: 1px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7rem;
}