/* ─── Base ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #0A0A0A;
  color: #F5F0E8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body { font-family: 'Cairo', sans-serif; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: rgba(255, 204, 0, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 204, 0, 0.5); }

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Grain overlay ─── */
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── Marquee ─── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; }

/* ─── Pulse dot ─── */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ─── Floating WhatsApp bounce ─── */
@keyframes float-wa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-wa { animation: float-wa 2.5s ease-in-out infinite; }

/* ─── Scroll indicator ─── */
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.scroll-indicator { animation: scroll-bounce 2s ease-in-out infinite; }

/* ─── Hero content entrance ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── Scroll-reveal ─── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Buttons ─── */
.zk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.zk-btn-lg { padding: 1.75rem 3rem; font-size: 1rem; }
.zk-btn-primary {
  background: #FFCC00; color: #0A0A0A;
}
.zk-btn-primary:hover { background: #E6B800; transform: translateY(-1px); }
.zk-btn-outline {
  background: transparent; color: #FFCC00; border-color: #FFCC00;
}
.zk-btn-outline:hover { background: rgba(255,204,0,0.1); }
.zk-btn-whatsapp { background: #25D366; color: #fff; padding: 0.625rem 1.5rem; }
.zk-btn-whatsapp:hover { background: #1DA851; }
.zk-btn-talabat { background: #FF5722; color: #fff; padding: 0.75rem 1.5rem; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.1em; }
.zk-btn-talabat:hover { background: #E64A19; }
.zk-btn-keeta { background: #FFCC00; color: #0A0A0A; padding: 0.75rem 1.5rem; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.1em; }
.zk-btn-keeta:hover { background: #E6B800; }

/* ─── Cards ─── */
.zk-card {
  background: #1A1A1A;
  border: 1px solid rgba(255, 204, 0, 0.15);
  border-radius: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.zk-card:hover {
  border-color: rgba(255, 204, 0, 0.3);
  box-shadow: 0 10px 40px -10px rgba(255, 204, 0, 0.08);
}

/* ─── Inputs ─── */
.zk-input {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #F5F0E8;
  background: #111111;
  border: 1px solid rgba(255, 204, 0, 0.15);
  border-radius: 0.375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}
textarea.zk-input { height: auto; min-height: 120px; padding: 0.75rem 1rem; }
.zk-input:focus {
  outline: none;
  border-color: #FFCC00;
  box-shadow: 0 0 0 1px #FFCC00;
}
.zk-input::placeholder { color: #666; }

/* ─── Badges ─── */
.zk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.zk-badge-bestseller { background: #FFCC00; color: #0A0A0A; }
.zk-badge-new { background: #D62828; color: #fff; }
.zk-badge-limited { background: transparent; border: 1px solid #D62828; color: #D62828; }

/* ─── Menu tabs ─── */
.menu-tab {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.menu-tab:hover { color: #F5F0E8; }
.menu-tab.is-active { color: #FFCC00; border-bottom-color: #FFCC00; }

/* ─── Accordion ─── */
.zk-accordion-item {
  border-bottom: 1px solid rgba(255, 204, 0, 0.1);
}
.zk-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #F5F0E8;
  transition: color 0.3s ease;
}
.zk-accordion-trigger:hover { color: #FFCC00; }
.zk-accordion-trigger .chev {
  width: 1rem; height: 1rem; color: #FFCC00;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
[dir="rtl"] .zk-accordion-trigger .chev { margin-left: 0; margin-right: 1rem; }
.zk-accordion-trigger.is-open .chev { transform: rotate(180deg); }
.zk-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
}
.zk-accordion-content.is-open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
