:root {
  --bg: #F8F6F2;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.85);
  --primary: #C0392B;
  --primary-hover: #A93226;
  --primary-light: #FADBD8;
  --text-main: #1C1917;
  --text-muted: #78716C;
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
}

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

/* Morphglass Utility */
.morphglass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
}

.morphglass-dark {
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

/* Skeleton Shimmer Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #edeae3 25%, #f7f5f0 50%, #edeae3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
}

.skeleton-hero {
  width: 100%;
  height: 240px;
  border-radius: 24px;
}

.skeleton-header-line {
  height: 24px;
  width: 160px;
  border-radius: 8px;
  margin: 28px 0 12px;
}

.skeleton-card {
  min-width: 220px;
  max-width: 220px;
  height: 240px;
  border-radius: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--card-border);
}

.skeleton-card-img {
  width: 100%;
  height: 130px;
}

.skeleton-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
}

.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-30 { width: 30%; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 215, 205, 0.6);
  padding: 10px 16px;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C0392B, #E67E22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1C1917;
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #D6D3CD;
  background: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #292524;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.lang-btn:active {
  transform: scale(0.96);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #1C1917;
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Container */
.main-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 16px;
}

/* Hero Section Rectangular with Full Image Background */
.hero-banner {
  width: 100%;
  height: 240px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #C0392B;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-desc {
  font-size: 0.8rem;
  color: #E7E5E4;
  margin-top: 4px;
  max-width: 80%;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.hero-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #F1C40F;
}

.hero-price-old {
  font-size: 0.85rem;
  color: #A8A29E;
  text-decoration: line-through;
  margin-inline-start: 6px;
  font-weight: 600;
}

.hero-cta {
  padding: 8px 16px;
  border-radius: 14px;
  background: #C0392B;
  color: white;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
}

.hero-cta:active {
  transform: scale(0.96);
}

.hero-dots {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
  cursor: pointer;
}

.hero-dot.active {
  width: 22px;
  background: #F1C40F;
}

/* Category Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1C1917;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(192, 57, 43, 0.08);
  padding: 5px 12px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.view-all-btn:active {
  background: rgba(192, 57, 43, 0.18);
}

/* Horizontal Cards Scroll */
.cards-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dish-card {
  min-width: 220px;
  max-width: 220px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:active {
  transform: scale(0.98);
}

.dish-card-img-wrap {
  width: 100%;
  height: 130px;
  position: relative;
  background: #E7E5E4;
  overflow: hidden;
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-veg-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(22, 101, 52, 0.9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.dish-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.dish-name {
  font-size: 0.95rem;
  font-weight: 750;
  color: #1C1917;
  line-height: 1.2;
}

.dish-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(214, 211, 205, 0.7);
}

.dish-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary);
}

.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.add-btn:active {
  transform: scale(0.9);
}

/* Floating Cart Bar */
.cart-float-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 40;
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1C1917;
  color: white;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #C0392B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: #F1C40F;
  color: #1C1917;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
}

.cart-total-title {
  font-size: 0.7rem;
  color: #A8A29E;
}

.cart-total-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
}

.cart-view-btn {
  background: #C0392B;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Modal / Popups */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

@media(min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-content {
  background: #FAF8F5;
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}

@media(min-width: 640px) {
  .modal-content {
    border-radius: 28px;
    max-height: 80vh;
  }
}

.modal-header {
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #E7E5E4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1C1917;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F5F5F4;
  color: #78716C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.modal-dish-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #E7E5E4;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cart Items List */
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #E7E5E4;
}

.cart-row-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: #1C1917;
}

.cart-row-price {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: #E7E5E4;
  color: #1C1917;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.order-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #D6D3CD;
  margin-top: 10px;
  font-size: 0.85rem;
  background: white;
  color: #1C1917;
  outline: none;
  font-family: inherit;
}

textarea.order-input {
  resize: vertical;
  min-height: 54px;
}

.btn-send-whatsapp {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #25D366;
  color: white;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: opacity 0.2s;
}

.btn-send-whatsapp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
