/* Uncle Samir Feteer Electronic Menu - Styles */
:root {
  --bg-cream: #faf3e6;
  --card-bg: rgba(255, 252, 245, 0.96);
  --primary-red: #8b1d1d;
  --primary-red-dark: #631111;
  --gold: #f39c12;
  --gold-light: #fdebd0;
  --text-dark: #2c1810;
  --text-muted: #6e5a4f;
  --border-color: #e6d5bc;
  --success: #1e8449;
  --shadow: 0 8px 24px rgba(44, 24, 16, 0.1);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Poppins', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 85px;
  position: relative;
  min-height: 100vh;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 243, 230, 0.86) 0%, rgba(250, 243, 230, 0.93) 50%, rgba(250, 243, 230, 0.96) 100%);
  z-index: -1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none !important;
}

.promo-banner {
  background: linear-gradient(90deg, var(--primary-red), #b02a2a, var(--primary-red));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  z-index: 60;
}

.status-banner {
  background: #d35400;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  z-index: 60;
}
.status-banner.closed {
  background: #922b21;
}

.main-header {
  background: rgba(255, 250, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.header-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-red);
  background: #faf3e6;
}

.brand-titles h1 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1.2;
}

.hotline-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--gold-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 3px;
}

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

.lang-switcher {
  display: flex;
  background: #efe2cc;
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: 0.2s;
}

.lang-btn.active {
  background: var(--primary-red);
  color: #fff;
}

.btn-primary, .btn-gold, .btn-dark-red, .btn-outline, .btn-outline-light {
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
}

.btn-primary:active, .btn-gold:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-red-dark);
}

.btn-gold {
  background: var(--gold);
  color: #2c1810;
}
.btn-gold:hover {
  background: #e67e22;
  color: #fff;
}

.btn-dark-red {
  background: #2c1810;
  color: #fff;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.05rem;
}

.badge-count {
  background: var(--gold);
  color: var(--text-dark);
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-section {
  padding: 22px 0 18px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(139, 29, 29, 0.94), rgba(90, 16, 16, 0.92)), url('bg_shop.jpg') center/cover;
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(243, 156, 18, 0.5);
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #2c1810;
  padding: 4px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-content p {
  color: #f8e9d6;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-main-logo {
  width: 210px;
  height: 210px;
  border-radius: 24px;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background: #faf3e6;
}

.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 243, 230, 0.94);
  backdrop-filter: blur(8px);
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-bar-box {
  position: relative;
  margin-bottom: 10px;
}

.search-bar-box input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
[dir="ltr"] .search-icon {
  right: auto;
  left: 14px;
}
[dir="ltr"] .search-bar-box input {
  padding: 10px 16px 10px 40px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  padding: 7px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.menu-section-block {
  margin-top: 28px;
}

.cat-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-right: 6px solid var(--primary-red);
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
[dir="ltr"] .cat-banner-header {
  border-right: none;
  border-left: 6px solid var(--primary-red);
}

.cat-banner-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-red);
}

.cat-banner-header small {
  color: var(--text-muted);
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card.sold-out {
  opacity: 0.65;
  filter: grayscale(0.4);
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2c1810;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 2;
}

.product-img-wrap {
  height: 175px;
  overflow: hidden;
  background: #f5e6cf;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.price-tag {
  font-weight: 900;
  color: var(--primary-red);
  font-size: 1.05rem;
}

.add-plus-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: var(--primary-red);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.add-plus-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--text-dark);
}
.add-plus-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.branches-section {
  margin-top: 42px;
}
.section-header {
  text-align: center;
  margin-bottom: 20px;
}
.section-header h3 {
  font-size: 1.6rem;
  color: var(--primary-red);
  font-weight: 900;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.branch-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
}

.branch-card h4 {
  color: var(--primary-red);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.branch-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.branch-btn {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--gold-light);
  color: var(--text-dark);
}
.branch-btn.wa {
  background: #25d366;
  color: #fff;
}

.main-footer {
  background: #2c1810;
  color: #f8e9d6;
  margin-top: 48px;
  padding: 28px 0;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.dev-signature {
  text-align: center;
  background: rgba(255,255,255,0.06);
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(243, 156, 18, 0.35);
}

.dev-title {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.dev-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25d366;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.98rem;
}
.dev-whatsapp-link:hover {
  text-decoration: underline;
}

.floating-cart-bar {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 95;
  padding: 0 12px;
}

.floating-cart-inner {
  background: var(--primary-red);
  color: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
  border: 2px solid var(--gold);
}

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

.floating-badge {
  background: var(--gold);
  color: #2c1810;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.floating-cart-info small {
  display: block;
  color: var(--gold-light);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.72);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}

.modal-card {
  background: #fffcf5;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.modal-lg { max-width: 680px; }

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  z-index: 5;
}
[dir="ltr"] .modal-close {
  left: auto;
  right: 12px;
}

.modal-header-img {
  height: 180px;
}
.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.option-group {
  margin-top: 14px;
}
.group-label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary-red);
}

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

.choice-chip {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  background: #fff;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #efe2cc;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 900;
}
.qty-control button {
  border: none;
  background: var(--primary-red);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.flex-1 { flex: 1; }
.mt-2 { margin-top: 10px; }
.my-3 { margin: 16px 0; }
.text-center { text-align: center; }
.muted-text { color: var(--text-muted); font-size: 0.9rem; }

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.btn-text-danger {
  background: none;
  border: none;
  color: #c0392b;
  font-weight: 700;
  cursor: pointer;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 8px;
}

.order-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.order-type-btn {
  padding: 9px 6px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.order-type-btn.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.totals-box {
  background: var(--gold-light);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 14px 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.grand-total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-red);
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  margin-top: 6px;
}

.btn-whatsapp-submit {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toast-box {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c1810;
  color: #fff;
  padding: 10px 22px;
  border-radius: 99px;
  font-weight: 700;
  z-index: 200;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border: 1.5px solid var(--gold);
}

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
  }
  .hero-btns { justify-content: center; }
  .hero-main-logo { width: 150px; height: 150px; }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
