 @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;600;700&family=Cairo:wght@300;400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; transition: background 0.4s, color 0.4s; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* DARK MODE - ISLAMIC GOLD & RED THEME */
:root {
  --bg: #0a0a0a;
  --bg2: #1a1a1a;
  --card: #0f0f0f;
  --card-hover: #1a1515;
  --border: rgba(255,0,0,0.15);
  --text: #f5e6d3;
  --text-muted: #b89968;
  --primary: #dc143c;
  --primary-dark: #a00829;
  --primary-glow: rgba(220,20,60,0.35);
  --gold: #d4af37;
  --gold-dark: #8b7500;
  --overlay: rgba(0,0,0,0.85);
  --glass: rgba(10,10,10,0.75);
  --shadow: rgba(0,0,0,0.7);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --islamic-bg: url('islamic-pattern.png');
}

html.light {
  --bg: #f8f5f0;
  --bg2: #ede8e0;
  --card: #ffffff;
  --card-hover: #faf5f0;
  --border: rgba(220,20,60,0.1);
  --text: #2a2a2a;
  --text-muted: #8b6f47;
  --primary: #c71f2f;
  --primary-dark: #950818;
  --primary-glow: rgba(199,31,47,0.25);
}

body {
  background: var(--bg);
  background-image: var(--islamic-bg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: repeat;
  background-position: center;
  color: var(--text);
  position: relative;
}

body::before {
  ;
}

/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  background-image: var(--islamic-bg);
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeSlideUp 0.8s ease both;
  position: relative;
  z-index: 2;
}

.loading-cup {
  color: var(--primary);
  width: 100px;
  height: 100px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(220,20,60,0.15), rgba(212,175,55,0.1));
  border-radius: 50%;
  box-shadow: 
    0 0 40px var(--primary-glow),
    inset 0 0 30px rgba(212,175,55,0.1);
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
  border: 2px solid rgba(212,175,55,0.3);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px rgba(212,175,55,0.1);
  }
  50% {
    box-shadow: 0 0 60px var(--primary-glow), inset 0 0 50px rgba(212,175,55,0.2);
  }
}

.loading-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.2em;
  text-shadow: 
    0 0 40px var(--primary-glow),
    0 0 80px rgba(212,175,55,0.2);
  animation: expandLetters 1s 0.3s ease both;
}

@keyframes expandLetters {
  from {
    letter-spacing: 0;
    opacity: 0;
    transform: scaleY(0.8);
  }
  to {
    letter-spacing: 0.2em;
    opacity: 1;
    transform: scaleY(1);
  }
}

.loading-content p {
  font-family: 'Cairo', sans-serif;
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 1.2rem;
  animation: fadeIn 1s 0.8s ease both;
  text-shadow: 0 0 20px rgba(212,175,55,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
  background: transparent;
}

#navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

#navbar.scrolled {
  background: transparent;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  box-shadow: 0 4px 30px var(--shadow), inset 0 1px 0 rgba(212,175,55,0.1);
}

#navbar.scrolled::before {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-left:-10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px var(--primary-glow);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-logo:hover::after {
  transform: scaleX(1);
}

#theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card), var(--bg2));
  border: 1px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

#theme-toggle:hover {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  box-shadow: 0 6px 24px var(--primary-glow);
  transform: scale(1.1);
}

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--islamic-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.floating-bean {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  pointer-events: none;
  z-index: 2;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  color: var(--text);
  text-shadow: 
    0 0 80px var(--primary-glow),
    0 0 160px rgba(212,175,55,0.2);
  line-height: 1;
  margin-bottom: 1.2rem;
  animation: heroReveal 1s 0.5s ease both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  animation: heroReveal 1s 0.7s ease both;
  text-shadow: 0 0 20px rgba(212,175,55,0.1);
}




/* تنسيق اللوجو */
.main-logo {
    display: block;
    margin: 0 auto 20px auto; /* مارجن تلقائي يمين وشمال للتوسيط */
    max-width: 300px; /* كبر أو صغر الحجم من هنا */
    height: auto;
}

/* تنسيق حاوية الأزرار للتأكد إنها في النص */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}



/* MENU SECTION */
#menu {
  display: flex;
    flex-direction: column;
    align-items: center; /* توسيط كل العناصر (لوجو وأزرار) في النص */
    justify-content: center;
    text-align: center;
  position: relative;
  z-index: 20;
  background: transparent;
  background-image: var(--islamic-bg);
  background-size: cover;
  background-attachment: fixed;
  padding: 6rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

#menu::before {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  padding: 2rem 0;
}

.section-header::before,
.section-header::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header::before {
  top: 0;
}

.section-header::after {
  bottom: 0;
}

.section-header h2 {
  font-family: 'Cairo', 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 30px rgba(212,175,55,0.2);
  margin: 1rem 0;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  border-radius: 99px;
  margin: 1rem auto;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* FILTERS & BUTTONS (The Fix) */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 4rem;
}








/* تنسيق أزرار الاختيارات (الحالة العادية) */
.filter-btn {
    background-color: #ffffff !important; /* خلفية بيضاء صافية */
    color: #800000 !important;          /* نص باللون النبيتي */
    border: 2px solid #800000 !important; /* إطار نبيتي لتحديد الزرار */
    padding: 1rem 2.5rem;
    border-radius: 50px;                 /* شكل بيضاوي أنيق */
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ظل خفيف لإبراز الزرار */
    margin: 5px;
    backdrop-filter: none;               /* إلغاء الشفافية القديمة */
}

/* تنسيق الزرار عند الاختيار (القسم النشط) */
/* يُفضل هنا عكس الألوان ليعرف العميل القسم الذي اختاره */
.filter-btn.active {
    background: #800000 !important;      /* خلفية نبيتي عند الاختيار */
    color: #ffffff !important;           /* نص أبيض */
    border-color: #8b0000 !important;
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.3);
    transform: scale(1.05);
}

/* تأثير عند تمرير الماوس فوق الزرار */
.filter-btn:hover:not(.active) {
    background-color: #fff5f5 !important; /* تغيير خفيف جداً في الخلفية */
    border-color: #a00000 !important;
    color: #a00000 !important;
    transform: translateY(-2px);
}






.filter-btn:hover {
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* RESPONSIVE BUTTONS */
@media (max-width: 480px) {
  .filter-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    min-width: 110px;
    border-radius: 4px;
  }
}

/* GRID */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* CARDS */
.drink-card {
  background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(26,26,26,0.95));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.drink-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(220,20,60,0.05));
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drink-card.visible {
  animation: cardReveal 0.6s ease both;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drink-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--primary-glow), inset 0 0 30px rgba(212,175,55,0.1);
  border-color: var(--primary);
}

.drink-card:hover::before {
  opacity: 1;
}

.card-img-wrap {
 
  height: auto;
  
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.drink-card:hover .card-img-wrap img {
  transform: scale(1.12) rotate(1deg);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.4s ease;
  z-index: 2;
}

.drink-card:hover .card-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(220,20,60,0.3));
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: transparent;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(212,175,55,0.2);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.drink-card:hover .card-glow {
  opacity: 1;
}

.card-body {
  padding: 1.25rem 1.4rem;
  direction: rtl;
  position: relative;
  z-index: 1;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-name-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}

.drink-card:hover .card-name-ar {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

.card-name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.card-price strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s;
  display: block;
}

.drink-card:hover .card-price strong {
  color: var(--gold);
}

.card-price small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-align: left;
}

.card-cta {
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.drink-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.9));
  backdrop-filter: blur(10px);
  opacity: 0;
}

.modal-overlay.open {
  animation: overlayIn 0.35s ease both;
}

.modal-overlay.closing {
  animation: overlayOut 0.3s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.hidden {
  display: none !important;
}

.modal-box {
  position: relative;
  background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(26,26,26,0.95));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212,175,55,0.5);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), inset 0 0 50px rgba(212,175,55,0.08);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-overlay.closing .modal-box {
  animation: modalOut 0.3s ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
}

@media (min-width: 600px) {
  .modal-box {
    flex-direction: row;
  }
}

#modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 600px) {
  #modal-img {
    width: 44%;
    height: auto;
  }
}

.modal-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 10;
  border: 1px solid rgba(212,175,55,0.2);
}

.modal-close:hover {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--primary-glow);
}

#modal-name-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 15px rgba(212,175,55,0.1);
}

#modal-name-en {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

.modal-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(220,20,60,0.15), rgba(212,175,55,0.1));
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-sm);
  width: fit-content;
  box-shadow: 0 4px 12px rgba(212,175,55,0.1);
}

#modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-currency {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
}

#modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

#modal-ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

#modal-ing-list li {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

#modal-ing-list li:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(212,175,55,0.1);
}

.order-btn {
  margin-top: auto;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 6px 24px var(--primary-glow);
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.order-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.order-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--gold-dark));
  box-shadow: 0 10px 36px var(--primary-glow);
  transform: translateY(-2px);
}

.order-btn:hover::before {
  transform: translateX(100%);
}

/* CART */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(26,26,26,0.8), rgba(15,15,15,0.8));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  gap: 1rem;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212,175,55,0.1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
}

.cart-item-name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
}

.cart-qty-control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.qty-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--gold-dark));
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.qty-display {
  width: 35px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #8b0000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.cart-item-remove:hover {
  background: #5a0000;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(26,26,26,0.95));
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  box-shadow: 0 8px 32px var(--shadow), 0 0 20px var(--primary-glow);
  z-index: 999;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* FOOTER */
footer {
  border-top: 2px solid rgba(212,175,55,0.2);
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0.99));
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

footer h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 0.75rem;
}

footer p {
  font-family: 'Cairo', sans-serif;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .drinks-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .filter-btn {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }
  
  .cart-item {
    flex-wrap: wrap;
  }
  
  #navbar {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .drinks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .drinks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .drinks-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.main-logo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); /* وهج خفيف حول اللوجو */
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05); /* تكبير بسيط عند مرور الماوس */
}







/* التعديل لتكبير أزرار الأقسام */
.filter-btn {
  padding: 1rem 2.5rem;    /* زيادة المساحة الداخلية (الطول والعرض) */
  font-size: 1.2rem;       /* تكبير حجم الخط */
  min-width: 140px;        /* عرض أدنى موحد للأزرار لتبدو متناسقة */
  border-radius: 50px;     /* جعل الزر بيضاوي أكثر */
  margin: 5px;             /* مسافة بسيطة بين كل زر والآخر */
}

/* تعديل خاص للموبايل لضمان عدم خروجها عن الشاشة */
@media (max-width: 480px) {
  .filter-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    min-width: 110px;
  }
}





.welcome-text {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* لإبراز الخط على الخلفية الغامقة */
  letter-spacing: 0.5px;
  animation: fadeIn 2s ease-in; /* حركة خفيفة عند التحميل */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* الكود اللي محتاج تعدله في الـ CSS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;       /* المسافة الأفقية بين الأيقونتين */
  margin-top: 25px; /* المسافة الرأسية اللي محتاجها فوق الأيقونات */
}





/* --- تنسيق الفوتر الجديد --- */
.main-footer {
  padding: 3rem 1.5rem;
  background: linear-gradient(to top, var(--bg), transparent);
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 4rem;
  direction: rtl; /* لضمان ترتيب الرموز العربية */
}

.establishment-date {
  font-family: 'Cairo', sans-serif;
  color: #ffffff; /* لون النص أبيض كما في الصورة */
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;       /* المسافة بين الفيس والانستا */
  margin-top: 30px; /* المسافة اللي طلبتها بين النص والأيقونات */
}

.social-links a {
  font-size: 2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
}

/* لون أيقونة إنستجرام */
.fa-instagram {
  color: #E1306C;
}

/* لون أيقونة فيسبوك */
.fa-facebook-f {
  color: #1877F2;
}

.social-links a:hover {
  transform: translateY(-5px); /* حركة خفيفة عند الوقوف بالماوس */
  opacity: 0.8;
}




/* تنسيق زر الإضافة السريع على الكرت */
.quick-add-btn {
    width: 100%;
    background: linear-gradient(45deg, #d4af37, #f2d06b);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.quick-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* شارة الكمية فوق الصورة */
.card-qty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid white;
}




/* تنسيق جسم الكرت عشان يستوعب الشرح والسعر */
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* بيوزع العناصر ويخلي السعر تحت */
    height: 180px; /* جرب الرقم ده عشان تدي مساحة للنص */
    padding: 15px;
}

/* تنسيق السعر عشان يظهر لوحده بوضوح */
.card-price {
    background: rgba(212, 175, 55, 0.1); /* خلفية ذهبية خفيفة */
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* تعديل الصف اللي فيه السعر والزرار */
.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto; /* بيزق السعر والزرار لآخر الكرت تحت */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.sub-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.sub-filters.hidden {
    display: none;
}

.sub-filter-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
}

.sub-filter-btn.active {
    background: #d4af37;
    color: #000;
}




/* تنسيق حاوية اختيار الوزن داخل المودال */
.weight-selection-container {
    margin: 20px 0;
    text-align: right;
    direction: rtl;
}

.weight-selection-container label {
    display: block;
    color: #d4af37; /* اللون الذهبي */
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* تنسيق القائمة المنسدلة نفسها */
#weight-select {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a; /* أسود متناسق مع الخلفية */
    border: 1px solid #d4af37; /* إطار ذهبي */
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none; /* إزالة السهم الافتراضي للمتصفح */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* سهم ذهبي مخصص */
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
}

/* تأثير عند الضغط أو التمرير */
#weight-select:focus {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    border-color: #fff;
}

/* تنسيق السعر داخل المودال عشان يبان بوضوح بعد التعديل */
.modal-price-box {
    background: rgba(212, 175, 55, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-right: 4px solid #d4af37;
    margin: 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
}







/* ====== IMAGE WRAPPER ====== */
.card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;


}

/* ====== SCROLL CONTAINER ====== */
.card-img-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  
  /* يخلي السكرول ناعم في الموبايل */
  -webkit-overflow-scrolling: touch;
}

/* ====== HIDE SCROLLBAR ====== */
.card-img-scroll::-webkit-scrollbar {
  display: none;
}
.card-img-scroll {
  scrollbar-width: none; /* Firefox */
}

/* ====== EACH IMAGE ====== */
.card-img-slide {
  min-width: 100%; /* مهم جدا */
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ====== HOVER EFFECT (اختياري) ====== */
.card-img-slide:hover {
  transform: scale(1.05);
}

/* ====== OVERLAY (لو عندك تأثير غامق) ====== */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* ====== QUANTITY BADGE ====== */
.card-qty-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d4af37;
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ====== تحسين للموبايل ====== */
@media (max-width: 768px) {
 .card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
}

/* ====== تحسين للسحب (اختياري) ====== */
.card-img-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;

  -webkit-overflow-scrolling: touch;
}

.card-img-scroll:active {
  cursor: grabbing;
}


.card-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 6px;
  height: 6px;
  background: #ffffff88;
  border-radius: 50%;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
  width: 10px;
}



#admin-panel {
  position: fixed;
  top: 0;
  right: -300px; /* مخفية برا الشاشة */
  width: 300px;
  height: 100%;
  background: #111;
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.7);
  border-left: 2px solid #d4af37;
}
