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

:root {
  --pink: #FF1F6A;
  --pink-dim: #cc1855;
  --pink-glow: rgba(255, 31, 106, 0.15);
  --bg: #1a1a1a;
  --bg2: #222222;
  --bg3: #2a2a2a;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-faint: #555;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Header ─── */
header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: inline-block;
}



.logo:not([src]), .logo[src=""] {
  visibility: hidden;
}

.brand {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 300;
}

/* ─── Status Badge ─── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.open {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse 2s infinite;
}

.status-dot.closed {
  background: var(--text-faint);
}

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

.status-text {
  font-size: 13px;
  font-weight: 500;
}

.status-text.open { color: #4ade80; }
.status-text.closed { color: var(--text-muted); }

.deadline-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ─── Main ─── */
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─── Date Card ─── */
.date-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.date-label { font-size: 13px; color: var(--text-muted); }
.date-value { font-size: 13px; font-weight: 500; color: var(--text); }

/* ─── Categories ─── */
.category-block {
  margin-bottom: 1.75rem;
}

.category-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--pink);
  border-radius: 2px;
  display: inline-block;
}

/* ─── Menu Cards ─── */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.food-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  user-select: none;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0.85rem;
}

.food-card:hover {
  border-color: rgba(255, 31, 106, 0.3);
}

.food-card.selected {
  border-color: var(--pink);
  background: rgba(255, 31, 106, 0.06);
}

.food-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.food-image-wrap {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  overflow: hidden;
}

.food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.food-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

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

.food-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.food-price {
  font-size: 13px;
  color: var(--pink);
  font-weight: 600;
}

.food-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-faint);
  background: transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.food-card.selected .check-circle {
  background: var(--pink);
  border-color: var(--pink);
}

.check-icon {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.2s;
}

.food-card.selected .check-icon {
  opacity: 1;
}

/* ─── Qty Controls ─── */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.qty-label { font-size: 12px; color: var(--text-muted); }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.qty-btn:hover { border-color: var(--pink); background: var(--pink-glow); }

.qty-num {
  font-size: 14px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* ─── Order Form / Floating Labels ─── */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 2rem;
}

.float-label {
  position: relative;
}

.float-label input,
.float-label textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  padding: 1.1rem 0.9rem 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  display: block;
}

.float-label textarea { padding-top: 1.3rem; }

.float-label input:focus,
.float-label textarea:focus {
  border-color: var(--pink);
}

.float-label label {
  position: absolute;
  right: 0.9rem;
  top: 0.95rem;
  font-size: 15px;
  color: var(--text-faint);
  pointer-events: none;
  transition: all 0.18s ease;
  transform-origin: right top;
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label,
.float-label textarea:focus + label,
.float-label textarea:not(:placeholder-shown) + label {
  top: 0.4rem;
  font-size: 11px;
  color: var(--pink);
  transform: translateY(0);
}

/* ─── Order Summary ─── */
.summary-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
}

.summary-box.visible { display: block; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.summary-row.total .amount { color: var(--pink); }

/* ─── CTA ─── */
.cta-btn {
  width: 100%;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-btn:hover { background: var(--pink-dim); }
.cta-btn:active { transform: scale(0.98); }

.cta-btn:disabled {
  background: var(--bg3);
  color: var(--text-faint);
  cursor: not-allowed;
  transform: none;
}

.wa-icon {
  width: 20px;
  height: 20px;
}

/* ─── Closed Banner ─── */
.closed-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  display: none;
}

.closed-banner.visible { display: block; }

.closed-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.closed-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.closed-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Loading Skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Error ─── */
.error-box {
  padding: 1rem;
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 50, 50, 0.2);
  border-radius: var(--radius-sm);
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  display: none;
}

.error-box.visible { display: block; }

/* ─── Delivery Note ─── */
.delivery-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}
