/* =========================================================
   Bait El Karam Fast Food — Online Ordering Menu
   ========================================================= */

:root {
  --color-primary: #c9962f;
  --color-primary-dark: #a97b1f;
  --color-primary-light: #e4b862;
  --color-secondary: #8a2b1f;
  --color-dark: #15120f;
  --color-dark-2: #1f1a15;
  --color-text: #241f19;
  --color-muted: #7c7266;
  --color-bg: #faf6ef;
  --color-card: #ffffff;
  --color-border: #ece2d0;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebc59;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(21, 18, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(21, 18, 15, 0.18);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-h);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: 'Poppins', sans-serif;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #1a1409;
  box-shadow: 0 10px 24px rgba(201, 150, 47, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  width: 100%;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }
.btn-whatsapp:disabled { opacity: 0.5; cursor: not-allowed; }
.wa-icon { font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(21, 18, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.logo-icon { font-size: 1.7rem; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-text small {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.cat-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 0 8px;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-nav a:hover,
.cat-nav a.active {
  background: var(--color-primary);
  color: #1a1409;
}

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

.header-link {
  display: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.header-link:hover { color: var(--color-primary-light); }

.cart-btn {
  position: relative;
  background: var(--color-primary);
  color: #1a1409;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.cart-btn:hover { transform: scale(1.06); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-dark);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-content .eyebrow { color: var(--color-primary-light); }

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  margin: 0 0 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero-content p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Trust strip ===== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.trust-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-icon { font-size: 1.5rem; }

/* ===== Section heading ===== */
.section-heading {
  text-align: center;
  max-width: 560px;
  margin: 64px auto 36px;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 4px 0 10px;
}
.section-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Menu Sections ===== */
.category-section {
  padding: 24px 0 20px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.category-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 150px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-dark-2), var(--color-dark));
}

.category-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.75) 15%, rgba(10,8,6,0.15) 85%);
}

.category-banner .banner-text {
  position: relative;
  z-index: 1;
  padding: 26px 30px;
  color: #fff;
}

.category-banner.no-photo {
  background: linear-gradient(135deg, #fbeed9, #f3ddb8);
}
.category-banner.no-photo .banner-overlay { display: none; }
.category-banner.no-photo .banner-text { color: var(--color-dark); }

.category-banner h2 {
  font-size: 1.7rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-banner p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
}

/* ===== Item Grid ===== */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.item-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, #fbeed9, #f3ddb8);
  position: relative;
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.item-desc {
  color: var(--color-muted);
  font-size: 0.86rem;
  margin: 0;
  flex: 1;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.item-price {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}

.add-btn {
  background: var(--color-dark);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.add-btn:hover { background: var(--color-primary); color: #1a1409; }
.add-btn:active { transform: scale(0.95); }

/* qty stepper shown once item is in cart */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border-radius: 999px;
  padding: 4px 6px;
}
.qty-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #1a1409;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper span {
  min-width: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Find Us ===== */
.find-us {
  background: var(--color-dark);
  color: #f3ece2;
  margin-top: 60px;
  padding: 70px 0;
}

.find-us-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.find-us h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 20px; }

.info-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon { font-size: 1.3rem; }

.info-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-primary-light);
  margin-bottom: 2px;
}

.info-list p {
  margin: 0;
  font-size: 0.94rem;
  opacity: 0.9;
}

.find-us-map { display: flex; }

.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201,150,47,0.16), rgba(201,150,47,0.05));
  border: 1.5px dashed rgba(201,150,47,0.5);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.map-card:hover {
  background: rgba(201,150,47,0.22);
  transform: translateY(-2px);
}
.map-pin { font-size: 2.6rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark-2);
  color: #f3ece2;
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--color-primary-light);
}

.site-footer p {
  margin: 6px 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer-note {
  margin-top: 14px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== Floating WhatsApp / Cart FAB ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  z-index: 150;
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.05); }
.fab-whatsapp.hidden { display: none; }

.fab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.85rem;
}

/* ===== Cart Sidebar ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--color-bg);
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--color-dark);
  color: #fff;
}
.cart-header h2 { margin: 0; font-size: 1.25rem; }

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.cart-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-items {
  padding: 16px 22px;
}

.empty-cart {
  color: var(--color-muted);
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
}

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

.cart-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbeed9, #f3ddb8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info .line-price {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.cart-item .remove-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.cart-item .remove-btn:hover { color: var(--color-secondary); }

.cart-footer {
  border-top: 1px solid var(--color-border);
  padding: 18px 22px 26px;
  background: var(--color-card);
  flex-shrink: 0;
}

/* Promo code */
.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.promo-row input {
  flex: 1;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.promo-row input:focus { outline: none; border-color: var(--color-primary); }
.btn-promo {
  background: var(--color-dark);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-promo:hover { background: var(--color-primary); color: #1a1409; }

.promo-msg {
  font-size: 0.8rem;
  min-height: 16px;
  margin: 0 0 12px;
  font-weight: 600;
}
.promo-msg.success { color: #1f9254; }
.promo-msg.error { color: var(--color-secondary); }

/* Price breakdown */
.price-breakdown {
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.discount-row span:last-child { color: #1f9254; font-weight: 600; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0 16px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.order-form input,
.order-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  resize: none;
  font-weight: 400;
}
.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.order-type {
  display: flex;
  gap: 16px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.radio-label {
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.radio-label input { width: auto; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 860px) {
  .header-link { display: inline-block; }
}

@media (max-width: 860px) {
  .find-us-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cat-nav { padding: 0 4px; }
  .hero { min-height: 60vh; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .item-photo { font-size: 2.4rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .fab-whatsapp span:not(.fab-count) { display: none; }
}
