/* ============================================================
   عصير أبو شاكر — تنسيقات الواجهة
   ألوان مستخرجة من لوجو المحل: برتقالي #F1600A | مانجو #FCA90A
   بني #5C2E14 | كريمي #FFF8EF | نعناعي #10B981
   ============================================================ */

:root {
  --brand-orange: #F1600A;
  --brand-mango: #FCA90A;
  --brand-brown: #5C2E14;
  --brand-cream: #FFF8EF;
  --brand-mint: #10B981;
  --shadow-soft: 0 2px 12px rgba(92, 46, 20, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(252, 169, 10, 0.07), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(241, 96, 10, 0.06), transparent 40%);
  background-attachment: fixed;
}

/* إخفاء سكرولبار الأشرطة الأفقية */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* زخارف الهيدر */
.deco-blob {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* شارات الهيدر */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge-chip.is-open { background: rgba(16, 185, 129, 0.25); border-color: rgba(167, 243, 208, 0.6); }
.badge-chip.is-closed { background: rgba(220, 38, 38, 0.22); border-color: rgba(254, 202, 202, 0.55); }

/* تنبيه المحل مغلق */
.closed-banner {
  background: repeating-linear-gradient(-45deg, #FEE2B3, #FEE2B3 14px, #FDDFA4 14px, #FDDFA4 28px);
  color: #7C3A0D;
  border-bottom: 2px solid rgba(241, 96, 10, 0.35);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 6px rgba(92, 46, 20, 0.12);
}
.closed-banner details ul { list-style: none; padding: 0.4rem 0.6rem; margin: 0; background: rgba(255,255,255,0.45); border-radius: 0.6rem; }

/* عناوين الأقسام */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand-brown);
  margin: 0 0 0.7rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, rgba(241, 96, 10, 0.25), transparent);
}

/* تبويبات الأقسام */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-brown);
  background: #fff;
  border: 1.5px solid rgba(241, 96, 10, 0.18);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.tab-btn:hover { border-color: rgba(241, 96, 10, 0.5); }
.tab-btn.active {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-mango));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(241, 96, 10, 0.35);
  transform: scale(1.02);
}

/* بطاقة صنف — زجاجية خفيفة Glassmorphism */
.menu-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(241, 96, 10, 0.14);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92, 46, 20, 0.12); }

.imgwrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #FFF3E2, #FFE6C9);
  overflow: hidden;
}
.imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  filter: saturate(1.1);
}
.img-fallback::before {
  content: '';
  position: absolute;
  width: 55%; height: 55%;
  border-radius: 9999px;
  background: rgba(241, 96, 10, 0.1);
}

.feat-ribbon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 900;
  color: #7C3A0D;
  background: linear-gradient(120deg, #FDE68A, var(--brand-mango));
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(92, 46, 20, 0.25);
}

.card-title { font-size: 0.88rem; font-weight: 900; color: var(--brand-brown); line-height: 1.35; }
.card-desc {
  font-size: 0.7rem;
  color: rgba(62, 35, 19, 0.65);
  line-height: 1.5;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-weight: 900;
  font-size: 1rem;
  color: var(--brand-orange);
  white-space: nowrap;
}

/* زر الإضافة */
.add-btn {
  padding: 0.4rem 0.8rem;
  min-height: 40px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-mango));
  box-shadow: 0 3px 10px rgba(241, 96, 10, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.add-btn:hover:not(:disabled) { transform: scale(1.05); }
.add-btn:active:not(:disabled) { transform: scale(0.96); }
.add-btn:disabled {
  background: #d6c9bd;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

/* زر السلة العائم */
#cartFab {
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-mango));
  box-shadow: 0 8px 22px rgba(241, 96, 10, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
}
#cartFab:hover { transform: scale(1.07); }
#cartFab:active { transform: scale(0.95); }
.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.cart-badge.pop { animation: badgePop 0.35s ease; }
@keyframes badgePop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* الشريط السفلي الثابت */
.bottom-bar {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-mango));
  box-shadow: 0 -4px 18px rgba(92, 46, 20, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.call-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 9999px;
  background: #fff;
  color: var(--brand-orange);
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(92, 46, 20, 0.2);
  transition: transform 0.15s ease;
}
.call-btn:hover { transform: scale(1.02); }
.soc-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.soc-btn:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.06); }

/* درج السلة */
#cartSheet { box-shadow: 0 -10px 40px rgba(62, 35, 19, 0.3); }
.otype-btn {
  min-height: 48px;
  border-radius: 0.9rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--brand-brown);
  background: var(--brand-cream);
  border: 2px solid rgba(241, 96, 10, 0.15);
  transition: all 0.2s ease;
}
.otype-btn[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-mango));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(241, 96, 10, 0.35);
}

.field-label { display: block; font-size: 0.72rem; font-weight: 800; color: var(--brand-brown); margin-bottom: 0.3rem; }
.field-input {
  width: 100%;
  border: 2px solid rgba(241, 96, 10, 0.18);
  background: #FFFDF9;
  border-radius: 0.8rem;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--brand-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(241, 96, 10, 0.15);
}
.field-input.has-error { border-color: #DC2626; background: #FFF5F5; }
.field-err { font-size: 0.68rem; font-weight: 800; color: #DC2626; margin-top: 0.25rem; }

/* صف صنف داخل السلة */
.cart-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand-cream);
  border: 1px solid rgba(241, 96, 10, 0.12);
  border-radius: 0.9rem;
  padding: 0.5rem 0.65rem;
}
.cart-thumb {
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  object-fit: cover;
  background: #FFE6C9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-orange);
  border: 1.5px solid rgba(241, 96, 10, 0.35);
  transition: all 0.15s ease;
}
.qty-btn:hover { background: var(--brand-orange); color: #fff; }
.qty-btn.del { color: #DC2626; border-color: rgba(220, 38, 38, 0.4); }
.qty-btn.del:hover { background: #DC2626; color: #fff; }

/* زر إرسال واتساب */
.send-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-mango));
  box-shadow: 0 6px 18px rgba(241, 96, 10, 0.4);
  transition: all 0.2s ease;
}
.send-btn:hover:not(:disabled) { transform: scale(1.01); }
.send-btn:disabled {
  background: #d6c9bd;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

/* رابط لوحة التحكم المخفي في الفوتر */
.admin-dot {
  color: rgba(255, 251, 235, 0.25);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s ease;
  user-select: none;
}
.admin-dot:hover { color: rgba(255, 251, 235, 0.75); }

/* تنبيه عائم (توست) */
#absToast {
  position: fixed;
  z-index: 60;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  max-width: calc(100vw - 2rem);
}
#absToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#absToast .inner {
  background: rgba(62, 35, 19, 0.95);
  color: #FFF8EF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}
#absToast.err .inner { background: rgba(185, 28, 28, 0.96); }
