/* ════════════════════════════════════════════
   Al-Qasr — Dark Luxury Menu Design System
   نظام التصميم الفاخر | بيت الخير
   ════════════════════════════════════════════ */

:root {
  /* ─── Dark Luxury Palette ─── */
  --bg:          #0E0B07;
  --surface:     #181410;
  --surface2:    #201C14;
  --surface3:    #2A2418;

  /* ─── Gold System ─── */
  --primary:     #C9A84C;
  --primary-lt:  rgba(201,168,76,0.12);
  --accent:      #E8D090;
  --accent-lt:   rgba(232,208,144,0.08);
  --gold-dark:   #9A7830;
  --gold-glow:   rgba(201,168,76,0.20);

  /* ─── Text ─── */
  --text:        #F0E8D5;
  --text-sub:    #8A7D68;

  /* ─── Structure ─── */
  --divider:     #2A2318;
  --divider2:    #342B1E;

  /* ─── Functional ─── */
  --wa-green:    #25D366;
  --error:       #E05757;
  --green:       #2D7A55;

  /* ─── Radius ─── */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   30px;

  /* ─── Shadows ─── */
  --shadow-sm:   0 2px 14px rgba(0,0,0,0.55);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.65);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.80);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.22);
}

/* ════════════════════════════════════════════
   Reset & Base
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.014) 0px,
      rgba(255,255,255,0.014) 1px,
      transparent 1px,
      transparent 5px
    );
}
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { display: block; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════
   Page Layout
   ════════════════════════════════════════════ */
.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.divider { height: 1px; background: var(--divider); margin: 0; }

/* ════════════════════════════════════════════
   AppBar
   ════════════════════════════════════════════ */
.appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,11,7,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 6px;
  height: 60px;
  gap: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.appbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--primary) 40%, var(--accent) 60%, transparent);
  opacity: 0.6;
}
.appbar-cat { }
.appbar-gradient-line {
  height: 1px;
  background: linear-gradient(to left, transparent, var(--primary) 40%, var(--accent) 60%, transparent);
  opacity: 0.5;
}

/* Center of appbar */
.appbar-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.appbar-title {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}
.appbar-title-line {
  width: 20px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--primary), transparent);
  border-radius: 1px;
}

.appbar-menu-btn,
.appbar-cart-btn,
.appbar-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 17px;
  transition: background .2s, color .2s;
  position: relative;
  flex-shrink: 0;
}
.appbar-menu-btn:hover,
.appbar-cart-btn:hover,
.appbar-search-btn:hover {
  background: var(--primary-lt);
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--primary);
  color: #0E0B07;
  font-size: 8px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg);
}

/* ════════════════════════════════════════════
   Hero Section
   ════════════════════════════════════════════ */
.hero-section {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #0A0806;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.22) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 80%, rgba(154,120,48,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #1E1508 0%, #0C0904 50%, #16100A 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(14,11,7,0.28) 45%,
    rgba(14,11,7,0.80) 100%
  );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.65) 100%);
}
.hero-content {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(12,9,5,0.88);
  border: 1.5px solid var(--primary);
  box-shadow:
    0 0 0 3.5px rgba(14,11,7,0.8),
    0 0 0 5px rgba(201,168,76,0.22),
    0 8px 36px rgba(0,0,0,0.7),
    0 0 40px rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-logo-fallback { color: var(--primary); font-size: 34px; }

.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-ornament-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-orn-line {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
  opacity: 0.65;
}
.hero-orn-line-rev {
  background: linear-gradient(to left, var(--primary), transparent);
}
.hero-orn-star {
  color: var(--primary);
  font-size: 6px;
  opacity: 0.8;
}
.hero-restaurant-name {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-shadow:
    0 2px 14px rgba(0,0,0,0.75),
    0 0 50px rgba(201,168,76,0.18);
  text-align: center;
  padding: 0 20px;
}

/* ─── Ornamental Separator ─── */
.lux-separator {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--bg);
}
.lux-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
  opacity: 0.55;
}
.lux-sep-line-rev {
  background: linear-gradient(to left, transparent, var(--primary));
}
.lux-sep-symbol {
  color: var(--primary);
  font-size: 8px;
  padding: 0 12px;
  opacity: 0.7;
  letter-spacing: 3px;
}

/* ════════════════════════════════════════════
   Info Bar
   ════════════════════════════════════════════ */
.info-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 10px 20px;
}
.info-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.info-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-size: 12px;
}
.info-bar-item i { color: var(--primary); font-size: 13px; }
.info-bar-sep {
  width: 1px;
  height: 16px;
  background: var(--divider2);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   Section Title
   ════════════════════════════════════════════ */
.section-title-wrap {
  padding: 24px 20px 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.section-orn {
  display: flex;
  align-items: center;
  width: 80%;
  gap: 0;
  margin-bottom: 4px;
}
.section-orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
  opacity: 0.5;
}
.section-orn-line-rev {
  background: linear-gradient(to left, transparent, var(--primary));
}
.section-orn-gem {
  color: var(--primary);
  font-size: 9px;
  padding: 0 12px;
  opacity: 0.65;
  letter-spacing: 3px;
}
.section-title-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}
.section-title-sub {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

/* Legacy - kept for compatibility */
.section-gold-bar { display: none; }

/* ════════════════════════════════════════════
   Categories Grid
   ════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 16px;
  background: var(--bg);
}
.cat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1.3;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s;
  box-shadow: var(--shadow-sm);
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(201,168,76,0);
  transition: border-color .3s;
  pointer-events: none;
  z-index: 10;
}
.cat-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 36px rgba(0,0,0,0.7), 0 0 24px rgba(201,168,76,0.12);
}
.cat-card:hover::after { border-color: rgba(201,168,76,0.40); }
.cat-card:active { transform: scale(0.98); }

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.06); }

.cat-card-gradient-bg {
  position: absolute;
  inset: 0;
}
.cat-card-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.52) 55%, transparent 100%);
}
.cat-card-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.32), transparent);
}
.cat-card-icon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cat-card-icon { color: rgba(232,208,144,0.88); font-size: 22px; }
.cat-card-arrow {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 10px;
  z-index: 5;
  transition: background .2s;
}
.cat-card:hover .cat-card-arrow { background: rgba(201,168,76,0.20); }
.cat-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 14px 16px;
  z-index: 5;
}
.cat-card-gold-line {
  width: 22px;
  height: 1.5px;
  background: linear-gradient(to left, var(--primary), var(--accent));
  border-radius: 1px;
  margin-bottom: 8px;
}
.cat-card-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-skeleton {
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1.3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.6s ease-in-out infinite;
  border: 1px solid var(--divider);
}
.cat-skeleton::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--divider2);
  border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.cats-empty {
  grid-column: 1 / -1;
  padding: 64px 0;
  text-align: center;
}
.cats-empty i { font-size: 62px; color: rgba(201,168,76,0.22); margin-bottom: 18px; display: block; }
.cats-empty-title { font-size: 17px; font-weight: 700; color: var(--text-sub); }
.cats-empty-sub { font-size: 13px; color: #5A5045; margin-top: 8px; }

/* ════════════════════════════════════════════
   Search Bar
   ════════════════════════════════════════════ */
.search-bar-wrap {
  background: var(--surface);
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
}
.search-bar-inner {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border-radius: 24px;
  padding: 0 12px 0 14px;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--divider2);
  transition: border-color .2s;
}
.search-bar-inner:focus-within { border-color: rgba(201,168,76,0.35); }
.search-bar-icon { color: var(--text-sub); font-size: 13px; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  direction: rtl;
}
.search-input::placeholder { color: rgba(138,125,104,0.5); }
.search-clear-btn { color: var(--text-sub); font-size: 13px; padding: 4px; transition: color .15s; }
.search-clear-btn:hover { color: var(--text); }

/* ════════════════════════════════════════════
   Category Banner
   ════════════════════════════════════════════ */
.cat-banner {
  position: relative;
  height: 165px;
  overflow: hidden;
}
.cat-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-banner-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.18) 0%, transparent 65%),
    linear-gradient(135deg, #1E1508, #0C0904);
}
.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.72) 0%,
    rgba(14,11,7,0.50) 50%,
    rgba(14,11,7,0.30) 100%
  );
}
.cat-banner-content {
  position: absolute;
  bottom: 24px;
  right: 22px;
  z-index: 5;
}
.cat-banner-gold-line {
  width: 32px;
  height: 1.5px;
  background: linear-gradient(to left, var(--primary), var(--accent));
  border-radius: 2px;
  margin-bottom: 9px;
}
.cat-banner-name {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
  letter-spacing: 0.5px;
}
.cat-simple-banner {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 16px 22px;
  gap: 14px;
  border-bottom: 1px solid var(--divider);
}
.simple-banner-gold-bar {
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
  flex-shrink: 0;
}
.simple-banner-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.simple-banner-icon { color: rgba(201,168,76,0.28); font-size: 22px; }

/* ════════════════════════════════════════════
   Products List
   ════════════════════════════════════════════ */
.products-list { padding: 12px 0 0; }

.product-card {
  margin: 0 14px 10px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s, border-color .2s;
  border: 1px solid var(--divider);
  position: relative;
}
/* Gold accent line on hover (right side in RTL) */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), transparent 80%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  opacity: 0;
  transition: opacity .22s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.22);
}
.product-card:hover::before { opacity: 1; }
.product-card:active { transform: scale(0.99); }

.product-card-info {
  flex: 1;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.55;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.product-price-tag {
  background: linear-gradient(135deg, rgba(201,168,76,0.16), rgba(232,208,144,0.07));
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.20);
}
.product-unavail-badge {
  background: rgba(224,87,87,0.10);
  border: 1px solid rgba(224,87,87,0.25);
  color: #E05757;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
}
.btn-add-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #0E0B07;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(201,168,76,0.32);
  transition: background .2s, transform .15s, box-shadow .2s;
  flex-shrink: 0;
  margin-right: auto;
}
.btn-add-circle:hover { background: var(--accent); box-shadow: 0 4px 18px rgba(201,168,76,0.48); }
.btn-add-circle:active { transform: scale(0.92); }

.qty-control-inline {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border-radius: 24px;
  overflow: hidden;
  margin-right: auto;
  border: 1px solid var(--divider2);
}
.qty-control-inline .qc-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background .15s;
}
.qty-control-inline .qc-btn.minus { color: var(--text-sub); }
.qty-control-inline .qc-btn.plus {
  background: var(--primary);
  color: #0E0B07;
  border-radius: 50%;
}
.qty-control-inline .qc-val {
  width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.product-card-img-wrap {
  width: 118px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }
.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,0.18);
  font-size: 32px;
}
.product-unavail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,11,7,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-unavail-overlay-text {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  color: rgba(224,87,87,0.85);
  letter-spacing: 0.5px;
  transform: rotate(180deg);
}

/* Product skeletons */
.prod-skeleton {
  margin: 0 14px 10px;
  height: 116px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
  border: 1px solid var(--divider);
}
.prod-skel-info {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.skel-line {
  border-radius: 6px;
  background: var(--surface2);
  animation: pulse 1.6s ease-in-out infinite;
}
.prod-skel-img {
  width: 118px;
  background: var(--surface2);
  animation: pulse 1.6s ease-in-out infinite;
}
.prods-empty {
  padding: 64px 0;
  text-align: center;
}
.prods-empty i { font-size: 58px; color: rgba(201,168,76,0.22); margin-bottom: 20px; display: block; }
.prods-empty-title { font-size: 17px; font-weight: 700; color: #6A5E50; }
.prods-empty-sub { font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.prods-error {
  padding: 64px 24px;
  text-align: center;
}
.prods-error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--primary);
}
.prods-error-title { font-size: 17px; font-weight: 700; color: var(--text); }
.prods-error-msg { font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.btn-retry {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), var(--gold-dark));
  color: #0E0B07;
  border-radius: 28px;
  padding: 10px 28px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
}

/* ════════════════════════════════════════════
   FABs
   ════════════════════════════════════════════ */
.fabs {
  position: fixed;
  bottom: 26px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 200;
}
.fab-whatsapp {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.38);
  transition: transform .2s, box-shadow .2s;
}
.fab-whatsapp:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,211,102,0.50); }
.fab-whatsapp.mini {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.fab-cart-wrap { order: -1; }
.fab-cart {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-dark) 100%);
  color: #0E0B07;
  border-radius: 30px;
  height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 26px rgba(201,168,76,0.38);
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.fab-cart:hover { transform: scale(1.04); box-shadow: 0 8px 34px rgba(201,168,76,0.50); }
.fab-cart-icon-wrap { position: relative; }
.fab-cart-icon-wrap i { font-size: 18px; }
.fab-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #0E0B07;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
}

/* ════════════════════════════════════════════
   Drawer
   ════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100dvh;
  background: var(--surface);
  z-index: 401;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--divider2);
}
.drawer.open { right: 0; }
.drawer-header {
  padding: 52px 22px 26px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201,168,76,0.14) 0%, transparent 60%),
    linear-gradient(160deg, #1A1408 0%, #0E0B07 100%);
  border-bottom: 1px solid rgba(201,168,76,0.10);
  position: relative;
  overflow: hidden;
}
.drawer-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(201,168,76,0.4), transparent);
}
.drawer-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(12,9,5,0.9);
  border: 1.5px solid var(--primary);
  box-shadow:
    0 0 0 3px rgba(14,11,7,0.7),
    0 0 0 4.5px rgba(201,168,76,0.20),
    0 6px 24px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.drawer-logo img { width: 100%; height: 100%; object-fit: cover; }
.drawer-logo i { color: var(--primary); font-size: 30px; }
.drawer-name { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.drawer-gold-line {
  width: 30px;
  height: 1.5px;
  background: linear-gradient(to left, var(--primary), var(--accent));
  border-radius: 1px;
  margin: 8px 0 0;
}
.drawer-address {
  font-size: 12px;
  color: rgba(138,125,104,0.65);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.drawer-body { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.drawer-body::-webkit-scrollbar { width: 0; }
.drawer-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}
.drawer-divider {
  height: 1px;
  background: var(--divider);
  margin: 6px 20px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .15s;
}
.drawer-item:hover { background: var(--surface2); }
.drawer-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.drawer-item span { font-size: 14px; font-weight: 500; color: var(--text); }
.drawer-item-sub {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 1px;
}
.drawer-social-row {
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.social-btn:hover { transform: scale(1.12); }
.whatsapp-contact-badge {
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.28);
  color: var(--wa-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   Modals / Bottom Sheets — Base
   ════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .22s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ─── Cart Sheet ─── */
.cart-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid rgba(201,168,76,0.14);
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
.cart-empty-sheet {
  padding-bottom: env(safe-area-inset-bottom, 0);
  align-items: center;
}
.cart-drag-handle {
  width: 36px;
  height: 3px;
  background: rgba(201,168,76,0.28);
  border-radius: 2px;
  margin: 14px auto 4px;
  flex-shrink: 0;
}
.cart-header {
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.cart-header-row { display: flex; align-items: center; gap: 12px; }
.cart-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-lt);
  border: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 17px;
  flex-shrink: 0;
}
.cart-title { font-size: 18px; font-weight: 700; color: var(--text); }
.cart-subtitle { font-size: 12px; color: var(--text-sub); }
.cart-clear-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(224,87,87,0.10);
  border: 1px solid rgba(224,87,87,0.25);
  color: #E05757;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 24px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: background .15s;
}
.cart-clear-btn:hover { background: rgba(224,87,87,0.18); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 14px; }
.cart-items::-webkit-scrollbar { width: 0; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface2);
  border-radius: var(--radius-md);
  border: 1px solid var(--divider2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 10px;
  transition: border-color .15s;
}
.cart-item:hover { border-color: rgba(201,168,76,0.18); }
.cart-item-img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,0.22);
  font-size: 22px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-unit {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}
.cart-item-total { font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 28px;
  flex-shrink: 0;
  border: 1px solid var(--divider2);
}
.cqc-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background .15s;
}
.cqc-btn.minus { color: var(--text-sub); }
.cqc-btn.plus { background: var(--primary); color: #0E0B07; }
.cqc-val {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.cart-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--divider);
  flex-shrink: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
}
.cart-total-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.12);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.cart-total-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.btn-send-order {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-dark) 100%);
  color: #0E0B07;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity .2s, transform .18s;
  border: none;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.3px;
}
.btn-send-order:hover { opacity: 0.92; transform: translateY(-1px); }

/* Empty cart */
.cart-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid rgba(201,168,76,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: rgba(201,168,76,0.28);
  margin: 28px auto 18px;
}
.cart-empty-title { font-size: 20px; font-weight: 700; color: var(--text); text-align: center; }
.cart-empty-sub { font-size: 14px; color: var(--text-sub); text-align: center; margin-top: 8px; }
.btn-browse-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--gold-dark));
  color: #0E0B07;
  border-radius: 28px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin: 20px auto 0;
  border: none;
  box-shadow: var(--shadow-gold);
}

/* ════════════════════════════════════════════
   Product Details Sheet
   ════════════════════════════════════════════ */
.product-sheet {
  width: 100%;
  max-width: 520px;
  height: 93dvh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid rgba(201,168,76,0.14);
}
.product-sheet-handle-row {
  display: flex;
  align-items: center;
  padding: 14px 16px 0;
  flex-shrink: 0;
}
.product-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--divider2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.product-close-btn:hover { background: var(--surface3); color: var(--text); }
.product-sheet-handle {
  flex: 1;
  display: flex;
  justify-content: center;
}
.product-sheet-handle::after {
  content: '';
  width: 36px;
  height: 3px;
  background: rgba(201,168,76,0.28);
  border-radius: 2px;
}
.product-images-section {
  position: relative;
  height: 300px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface2);
  direction: ltr;
}
.product-images-carousel {
  display: flex;
  height: 100%;
  transition: transform .36s cubic-bezier(.4,0,.2,1);
}
.product-img-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.product-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(201,168,76,0.18);
  font-size: 54px;
}
.product-img-placeholder span { font-size: 13px; color: var(--text-sub); }
.product-image-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.img-dot {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.50);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: width .28s, background .28s;
  width: 6px;
  cursor: pointer;
}
.img-dot.active { width: 22px; background: var(--primary); }

.product-info-scroll { flex: 1; overflow-y: auto; padding: 20px 20px 0; }
.product-info-scroll::-webkit-scrollbar { width: 0; }
.product-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.product-detail-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 20px; }
.product-price-badge {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(232,208,144,0.07));
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 24px;
}
.product-avail-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-avail-badge.available {
  background: rgba(45,122,85,0.12);
  color: #5CC48A;
  border: 1px solid rgba(45,122,85,0.22);
}
.product-avail-badge.unavailable {
  background: rgba(224,87,87,0.10);
  color: #E05757;
  border: 1px solid rgba(224,87,87,0.22);
}
.avail-dot { width: 7px; height: 7px; border-radius: 50%; }
.avail-dot.green { background: #5CC48A; }
.avail-dot.red { background: #E05757; }
.product-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.section-label-bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
}
.section-label-bar.accent { background: linear-gradient(to bottom, var(--accent), var(--primary)); }
.section-label-bar.primary { background: linear-gradient(to bottom, var(--primary), var(--gold-dark)); }
.product-section-label span { font-size: 15px; font-weight: 700; color: var(--text); }
.product-detail-desc { font-size: 14px; color: var(--text-sub); line-height: 1.85; }
.product-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.qty-selector {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border-radius: 36px;
  border: 1px solid var(--divider2);
}
.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.qty-minus { color: rgba(138,125,104,0.55); }
.qty-minus.active { background: var(--surface3); color: var(--text); }
.qty-plus { background: var(--primary); color: #0E0B07; }
.qty-value {
  width: 42px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.product-add-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--divider);
  flex-shrink: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
}
.btn-add-to-cart {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-dark) 100%);
  color: #0E0B07;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .18s;
  border: none;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.3px;
}
.btn-add-to-cart:disabled {
  background: var(--surface2);
  color: var(--text-sub);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-add-to-cart:not(:disabled):hover { opacity: 0.92; transform: translateY(-1px); }

/* ════════════════════════════════════════════
   Dialogs — Customer & Confirm
   ════════════════════════════════════════════ */
#customerOverlay,
#confirmOverlay { align-items: center; padding: 16px; }
.dialog-box {
  background: var(--surface);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: scaleIn .24s cubic-bezier(.4,0,.2,1);
  border: 1px solid var(--divider2);
  box-shadow: var(--shadow-lg);
}
@keyframes scaleIn { from { transform: scale(.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* Luxury dialog header */
.dialog-header-lux {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--divider);
  text-align: center;
  background: linear-gradient(160deg, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.dialog-header-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dlg-orn-line {
  display: block;
  width: 30px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
  opacity: 0.5;
}
.dlg-orn-line-rev { background: linear-gradient(to left, transparent, var(--primary)); }
.dlg-orn-icon { color: var(--primary); font-size: 16px; opacity: 0.7; }
.dialog-title-lux {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.4px;
}
.dialog-subtitle-lux {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* Hidden original dialog-title (kept for JS compatibility) */
.dialog-title { display: none !important; }
.dialog-title-bar { display: none; }

.dialog-body { padding: 16px 20px; }
.form-group { margin-bottom: 12px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--divider2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  direction: rtl;
  font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.form-input::placeholder { color: rgba(138,125,104,0.45); }
.form-input.error { border-color: rgba(224,87,87,0.55); }
.form-textarea { min-height: 72px; resize: vertical; }
.form-error { font-size: 11px; color: var(--error); margin-top: 4px; min-height: 14px; }
.dialog-actions {
  padding: 12px 20px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn-cancel {
  background: none;
  color: var(--text-sub);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s;
}
.btn-cancel:hover { color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--gold-dark));
  color: #0E0B07;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 14px rgba(201,168,76,0.24);
  transition: opacity .2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Confirm info rows */
.confirm-info-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 5px;
}
.confirm-info-row i { color: var(--primary); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.confirm-total-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}
.confirm-total-box i { color: var(--primary); font-size: 16px; }
.confirm-total-label { font-weight: 700; color: var(--text); }
.confirm-total-val { font-size: 16px; font-weight: 700; color: var(--primary); margin-right: auto; }

/* ════════════════════════════════════════════
   Toast
   ════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%) translateY(22px);
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md), 0 0 20px rgba(201,168,76,0.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  z-index: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════
   Animations
   ════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .38 }
}
@keyframes spin {
  from { transform: rotate(0deg) }
  to { transform: rotate(360deg) }
}

/* ════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-restaurant-name { font-size: 23px; }
  .cat-card-name { font-size: 14px; }
  .hero-logo-circle { width: 78px; height: 78px; }
}
@media (min-width: 521px) {
  .page, .cart-sheet, .product-sheet {
    border-left: 1px solid var(--divider2);
    border-right: 1px solid var(--divider2);
  }
  .fabs { max-width: 520px; margin: 0 auto; right: auto; }
}

/* ════════════════════════════════════════════
   ADMIN SHARED STYLES
   — Restores light palette for admin pages —
   ════════════════════════════════════════════ */
.admin-body {
  /* Override dark vars back to light for admin */
  --bg:         #F4F6FA;
  --surface:    #FFFFFF;
  --surface2:   #F0EDE6;
  --surface3:   #EDE8DF;
  --primary:    #1B5E3A;
  --primary-lt: rgba(27,94,58,0.10);
  --accent:     #C8963C;
  --accent-lt:  rgba(200,150,60,0.10);
  --text:       #1C1C1C;
  --text-sub:   #8A8278;
  --divider:    #E5DED4;
  --divider2:   #DDD8D0;
  --error:      #D32F2F;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.16);
  background: #F4F6FA;
  min-height: 100dvh;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  color: #1C1C1C;
  background-image: none;
}
.admin-topbar {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-topbar-title { flex: 1; font-size: 18px; font-weight: 700; }
.admin-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.admin-topbar-btn {
  height: 36px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-content { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }

/* Admin Cards */
.admin-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.admin-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-card-title i { color: var(--accent); }

/* Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-card:active { transform: scale(0.98); }
.dash-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.dash-card-title { font-size: 15px; font-weight: 700; color: var(--text); text-align: center; }

/* List Items */
.admin-list { }
.admin-list-item {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}
.admin-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,150,60,0.4);
  font-size: 22px;
  flex-shrink: 0;
}
.admin-item-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-name { font-size: 14px; font-weight: 700; color: var(--text); }
.admin-item-sub { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.admin-item-price { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 3px; }
.admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-edit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27,94,58,0.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.btn-edit:hover { background: rgba(27,94,58,0.20); }
.btn-delete {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(211,47,47,0.10);
  color: #D32F2F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.btn-delete:hover { background: rgba(211,47,47,0.20); }
.badge-active {
  background: #E8F5EE;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 4px;
}
.badge-inactive {
  background: #F5E8E8;
  color: #AA5555;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 4px;
}
.badge-available { background: #E8F5EE; color: var(--primary); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.badge-unavailable { background: #F5E8E8; color: #AA5555; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }

/* Admin FAB */
.admin-fab {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  z-index: 200;
  transition: transform .2s;
}
.admin-fab:hover { transform: scale(1.08); }

/* Form Modal */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
.form-modal-overlay.hidden { display: none; }
.form-modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: scaleIn .2s ease;
}
.form-modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.form-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
}
.form-modal-body { padding: 16px 20px; }
.form-modal-footer {
  padding: 12px 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--divider);
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  direction: rtl;
  font-family: inherit;
  transition: border .2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-color: var(--primary); }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.form-toggle-label { font-size: 14px; color: var(--text); font-weight: 500; }
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(-22px); }
.img-upload-area {
  border: 2px dashed var(--divider2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border .2s;
  position: relative;
}
.img-upload-area:hover { border-color: var(--primary); }
.img-upload-area input { display: none; }
.img-upload-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: none;
  margin-bottom: 8px;
}
.img-upload-hint { color: var(--text-sub); font-size: 13px; }
.img-upload-hint i { font-size: 28px; color: var(--accent); display: block; margin-bottom: 8px; }
.btn-upload-loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner-inline {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

/* Admin Login */
.login-page {
  min-height: 100dvh;
  background: linear-gradient(135deg, #1B5E3A, #2D7A55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 34px;
  color: var(--primary);
}
.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.login-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 28px;
}
.login-error {
  background: #FEE8E8;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--error);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.btn-login {
  width: 100%;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  margin-top: 6px;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-login:hover { background: #226845; }
.btn-login:disabled { background: #999; cursor: not-allowed; }

/* Confirm Delete Dialog */
.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.confirm-dialog-overlay.hidden { display: none; }

/* Product images gallery */
.product-images-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.gallery-img-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gallery-img-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(211,47,47,0.85);
  color: #fff;
  border: none;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Empty admin state */
.admin-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-sub);
}
.admin-empty i { font-size: 52px; color: rgba(200,150,60,0.35); margin-bottom: 14px; display: block; }

/* Loading spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.loading-spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--divider);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}

/* Notification snackbar */
.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 700;
  white-space: nowrap;
  max-width: 90vw;
}
.snackbar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.snackbar.error { background: var(--error); }

/* Password change page */
.change-pw-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
}

/* Admin responsive */
@media (max-width: 380px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 521px) {
  .admin-content { border-left: none; border-right: none; }
}
