:root {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --card-bg: #ffffff;
  --accent: #2d8f4e;
  --accent-hover: #246f3e;
  --accent-light: #e8f5ee;
  --text: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --border: #e5e7eb;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --header-height: 64px;
}

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

body {
  font-family: var(--font);
  background: var(--bg-subtle);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ===== COMING SOON ===== */

.coming-soon {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #f0faf3 0%, #e8f5ee 40%, #f7f8fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.coming-soon[hidden] { display: none; }

.coming-soon-content {
  max-width: 440px;
  animation: fadeUp 0.6s ease both;
}

.coming-soon-logo {
  margin-bottom: 20px;
  border-radius: 16px;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.coming-soon-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.coming-soon-msg {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.coming-soon-lang {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.coming-soon-lang .lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.coming-soon-lang .lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.coming-soon-lang .lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 599px) {
  .coming-soon-title { font-size: 1.5rem; }
  .coming-soon-msg { font-size: 0.92rem; }
  .coming-soon-logo { width: 56px; height: 56px; }
}

/* ===== HEADER ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-top {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tagline {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 200px;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  background: var(--bg-subtle);
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg);
  width: 260px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { color: var(--accent); }
.lang-btn.active { background: var(--accent); color: #fff; }

/* Cart button */
.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}

.cart-btn:hover { border-color: var(--accent); color: var(--accent); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-count.visible { opacity: 1; transform: scale(1); }

/* ===== FILTERS ===== */

.filters-bar {
  background: var(--bg);
}

.filters-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-inner::-webkit-scrollbar { display: none; }

.filter-pill {
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-mid);
}

.filter-pill:hover { border-color: var(--accent); color: var(--accent); }

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== MAIN GRID ===== */

.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px;
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .grid { gap: 20px; }
}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ===== CARD ===== */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.35s ease both;
  cursor: pointer;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card.unavailable {
  opacity: 0.5;
  filter: grayscale(0.4);
}

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

/* Card image */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  pointer-events: none;
}

.unavailable-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(192,57,43,0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Badges */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
}

.card-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-new { background: #3498db; color: #fff; }
.badge-bestseller { background: #e67e22; color: #fff; }
.badge-vegan { background: #27ae60; color: #fff; }
.badge-gluten-free { background: #8e44ad; color: #fff; }
.badge-high-protein { background: #2c3e50; color: #fff; }
.badge-sugar-free { background: #16a085; color: #fff; }
.badge-organic { background: #6d8b3a; color: #fff; }
.badge-default { background: rgba(0,0,0,0.6); color: #fff; }

/* Card body */
.card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 2px;
}

.card-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc-more {
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  margin-top: -4px;
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.add-btn:hover { background: var(--accent-hover); }
.add-btn:active { transform: scale(0.9); }
.add-btn.added { background: var(--accent-light); color: var(--accent); }

/* ===== DETAIL MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 0;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 16px; max-height: 85vh; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal carousel */
.modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.modal-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.modal-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.modal-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.modal-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.modal-carousel .carousel-btn.prev { left: 10px; }
.modal-carousel .carousel-btn.next { right: 10px; }

.modal-carousel .carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.modal-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.modal-carousel .carousel-dot.active { background: #fff; }

/* Modal body */
.modal-body {
  padding: 20px;
}

.modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Info sections */
.modal-info-section {
  margin-bottom: 16px;
}

.modal-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-info-title svg {
  color: var(--text-light);
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--text-mid);
}

.info-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.info-stat {
  background: var(--accent-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 120px;
}

.info-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.info-stat-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.allergy-list {
  list-style: none;
}

.allergy-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.allergy-list li::before {
  content: '⚠';
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 20px;
}

.modal-order-btn:hover { background: var(--accent-hover); }

/* ===== CART DRAWER ===== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.4);
  animation: fadeIn 0.2s ease;
}

.drawer-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 700;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.cart-drawer.open { right: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s;
}

.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.qty-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.drawer-footer[hidden] { display: none; }

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 12px;
}

.drawer-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.drawer-order-btn:hover { background: var(--accent-hover); }

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-img {
  max-width: 92%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== SERVICE BANNER ===== */

.service-banner {
  background: #fef3cd;
  border-bottom: 1px solid #f0d87e;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: #856404;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-banner[hidden] { display: none; }

.service-banner svg { flex-shrink: 0; color: #b8860b; }

body.service-closed .add-btn,
body.service-closed .order-btn,
body.service-closed .modal-order-btn,
body.service-closed .drawer-order-btn,
body.service-closed .cart-btn {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== DELIVERY BAR ===== */

.delivery-bar {
  background: var(--accent-light);
  border-bottom: 1px solid #c8e6d4;
}

.delivery-bar[hidden] { display: none; }

.delivery-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent-hover);
  flex-wrap: wrap;
}

.delivery-bar-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.delivery-areas {
  color: var(--text-mid);
}

.delivery-min {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== SHARE BUTTON ===== */

.modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.share-btn:hover { border-color: var(--accent); color: var(--accent); }

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

/* ===== DRAWER DELIVERY & PAYMENT ===== */

.drawer-delivery {
  margin-bottom: 12px;
}

.drawer-delivery[hidden] { display: none; }


.drawer-delivery-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.drawer-delivery-select:focus { border-color: var(--accent); }

.drawer-delivery-note {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.drawer-delivery-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.drawer-payment-note {
  background: var(--accent-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent-hover);
  margin-bottom: 12px;
  line-height: 1.5;
}

.drawer-payment-note[hidden] { display: none; }

.drawer-min-warning {
  background: #fef3cd;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #856404;
  margin-bottom: 10px;
  text-align: center;
}

.drawer-min-warning[hidden] { display: none; }

.drawer-order-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== SCHEDULE BAR ===== */

.schedule-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.schedule-bar[hidden] { display: none; }

.schedule-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.schedule-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.schedule-dot.open { background: #27ae60; animation: dotPulse 2s ease-in-out infinite; }
.schedule-dot.closed { background: #e74c3c; }

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.schedule-countdown {
  color: var(--text-light);
  font-size: 0.75rem;
}

.schedule-bar.closed-bar {
  background: #fff5f5;
  border-bottom-color: #fecaca;
}

.schedule-bar.closed-bar .schedule-status {
  color: #b91c1c;
}

/* ===== ORDER CONFIRMATION ===== */

.order-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.order-confirm {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.order-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.order-confirm h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.order-confirm-id {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.order-confirm-msg {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}

.order-confirm-btn {
  padding: 10px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.order-confirm-btn:hover { background: var(--accent-hover); }

/* ===== SKELETON ===== */

.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.25; }
}

/* ===== EMPTY STATE ===== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.empty-state svg { margin-bottom: 12px; }
.empty-state[hidden] { display: none; }

/* ===== FOOTER ===== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: 28px 20px 16px;
}

.footer-tagline {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-wa:hover { text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-light);
}

.disclaimer-toggle {
  margin-top: 8px;
}

.disclaimer-toggle summary {
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  display: inline;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.disclaimer-toggle summary:hover { color: var(--text-mid); }

.disclaimer-toggle[open] summary { margin-bottom: 8px; }

.disclaimer-body {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.disclaimer-body p {
  font-size: 0.68rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 6px;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 599px) {
  .header-inner { padding: 10px 14px; }

  .tagline { display: none; }

  .search-input { width: 140px; padding: 7px 10px 7px 32px; font-size: 0.82rem; }
  .search-input:focus { width: 180px; }

  .filters-inner { padding: 8px 14px; }

  .main { padding: 12px 10px; }

  .grid { gap: 10px; }

  .card-body { padding: 8px 10px 10px; }
  .card-name { font-size: 0.82rem; }
  .card-desc { font-size: 0.72rem; -webkit-line-clamp: 2; }
  .card-price { font-size: 0.88rem; }
  .add-btn { width: 28px; height: 28px; font-size: 1.1rem; }

  .modal-body { padding: 16px; }
  .modal-name { font-size: 1.15rem; }
}
