/* =========================
   لوحة الألوان والمتغيرات
   ========================= */
:root {
  --bg-base: #f8f5f0;
  --bg-muted: #f2f2f2;
  --surface: #e6dcc5;
  --text-main: #4b2e2e;
  --text-muted: #6b5a51;
  --border: #ded5c4;
  --white: #ffffff;
}

/* =========================
   زر إغلاق القائمة (X)
   ========================= */
.menu-close-btn,
.btn-close,
.close {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 600;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.menu-close-btn:hover,
.btn-close:hover,
.close:hover {
  background-color: var(--surface) !important;
  color: var(--text-main) !important;
}

/* =========================
   Toast إشعارات مع أنيميشن دخان
   ========================= */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(75,46,46,0.1);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: smokeUp 0.8s ease forwards;
}
.toast.hide {
  animation: smokeFade 0.8s ease forwards;
}
@keyframes smokeUp {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  50% { transform: translateY(-5px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes smokeFade {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* =========================
   الأزرار العامة
   ========================= */
.btn, button, .add-to-cart-btn, .qty-control button {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover, button:hover, .add-to-cart-btn:hover, .qty-control button:hover {
  background-color: var(--surface);
  color: var(--text-main);
}

/* =========================
   النماذج
   ========================= */
input, select, textarea {
  background-color: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text-main);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(75,46,46,0.15);
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* =========================
   الكاردات والمنتجات
   ========================= */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(75,46,46,0.1);
}
.product-card .title,
.product-title,
.product-price {
  color: var(--text-main);
  font-weight: bold;
}
.product-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================
   الفوتر والهيدر
   ========================= */
header, footer {
  background-color: var(--bg-base);
  color: var(--text-main);
}
footer {
  background-color: var(--surface);
}
footer a, header a {
  color: var(--text-main);
  transition: color 0.3s ease;
}
footer a:hover, header a:hover {
  color: var(--text-muted);
}