/* Shawarma Fadel — category slider + product window (like original) */
:root {
  --orange: #F15A29;
  --black: #000;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.top-bar {
  background: var(--black);
  display: flex;
  justify-content: center;
  padding: 14px 16px;
}
.top-logo { height: 52px; width: auto; border-radius: 50%; }

.brand-block {
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  min-height: 200px;
}
.brand-logo { width: min(200px, 50vw); border-radius: 50%; }

.intro-block {
  background: var(--black);
  text-align: center;
  padding: 36px 20px 12px;
}
.intro-block h1 {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.location {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 28px;
}
.menu-heading {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.menu-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* Horizontal sliding category tabs */
.cat-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
  scrollbar-width: none;
}
.cat-slider::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  background: transparent;
  position: relative;
  transition: transform 0.2s ease;
}
.cat-tab:active { transform: scale(0.97); }

.cat-img {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cat-tab.active .cat-img {
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}

.cat-name {
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cat-tab.active .cat-name {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Product window under categories */
.product-window {
  padding: 8px 14px 0;
  min-height: 280px;
  position: relative;
}

.product-pane {
  display: none;
  animation: paneIn 0.35s ease;
}
.product-pane.active {
  display: block;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #1a1a1a;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product h3 {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 10px 4px;
  line-height: 1.35;
  min-height: 3.2em;
}

.price {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 10px 10px;
  direction: ltr;
  unicode-bidi: plaintext;
}

.order-btn {
  display: block;
  margin: 0 10px 12px;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 8px;
  border-radius: 6px;
}
.order-btn:hover { background: #d44518; }

.menu-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 100px;
  display: grid;
  gap: 22px;
  text-align: center;
}
.footer-card h3 {
  font-family: "Cairo", sans-serif;
  letter-spacing: 0;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.footer-card p,
.footer-card a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.footer-card a:hover { color: var(--orange); }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

@media (min-width: 640px) {
  .cat-tab { width: 130px; }
  .cat-img { width: 110px; height: 110px; }
  .cat-slider { justify-content: center; overflow-x: visible; }
  .product-grid { gap: 16px; }
  .product h3 { font-size: 0.9rem; }
  .menu-footer {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    padding-bottom: 48px;
  }
  .wa-float { right: 24px; left: auto; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}
