:root {
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --primary-gold: #D4AF37;
    --gold-hover: #f3cd57;
    --text-white: #ffffff;
    --text-muted: #aaaaaa;
    --danger-red: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; text-decoration: none; }
body { background-color: var(--bg-dark); color: var(--text-white); padding-top: 90px; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* الهيدر وعناصر التنقل */
.menu-header { position: fixed; top: 0; width: 100%; background: rgba(26, 26, 26, 0.96); z-index: 1000; padding: 15px 0; border-bottom: 1px solid #252525; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 22px; font-weight: 900; color: var(--text-white); }
.logo span { color: var(--primary-gold); }

/* زر الـ GPS الاحترافي */
.gps-btn { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--primary-gold); padding: 6px 14px; border-radius: 30px; color: var(--primary-gold); font-size: 13px; font-weight: bold; display: flex; align-items: center; gap: 5px; transition: 0.3s; }
.gps-btn:hover { background: var(--primary-gold); color: var(--bg-dark); }

/* أيقونة السلة الصغيرة الدائرية */
.mini-cart-trigger { background: var(--primary-gold); border: none; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; position: relative; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); transition: 0.3s; }
.mini-cart-trigger:hover { transform: scale(1.05); }
.badge-count { position: absolute; top: -5px; right: -5px; background: var(--danger-red); color: white; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-dark); }

/* أقسام وعناوين المنيو */
.category-block { margin-bottom: 35px; }
.category-title { color: var(--primary-gold); font-size: 24px; font-weight: 900; margin-bottom: 15px; border-right: 4px solid var(--primary-gold); padding-right: 10px; }

/* جريد المنتجات - موبايل أولاً (صفين ظاهرين تماماً) */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* كرت المنتج الاحترافي */
.product-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid #282828; display: flex; flex-direction: column; transition: 0.3s; }
.product-card:hover { border-color: var(--primary-gold); }

/* لفافة الصورة لضمان عدم البكسلة */
.card-img-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; background: #222; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* تأثير مرور الماوس وظهور اسم البراند أو في حالة عدم التحميل */
.card-img-wrapper::after { content: "👨‍⚕️ دكتور شاورما"; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 18, 0.85); color: var(--primary-gold); font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card-img-wrapper:hover::after { opacity: 1; }

.card-content { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.product-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text-white); }
.product-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; }
.card-action-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { color: var(--primary-gold); font-weight: 900; font-size: 14px; }
.btn-add-item { background: transparent; border: 1px solid var(--primary-gold); color: var(--primary-gold); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-add-item:hover { background: var(--primary-gold); color: var(--bg-dark); }

/* السلة الجانبية الشيك السلسة */
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 320px; height: 100vh; background: #161616; z-index: 2000; transition: 0.4s cubic-bezier(0.1, 0.8, 0.25, 1); display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.6); }
.cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1999; display: none; backdrop-filter: blur(4px); }
.cart-overlay.active { display: block; }

.cart-sidebar-header { padding: 15px; background: #111; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #252525; }
.cart-sidebar-header h3 { font-size: 16px; color: var(--text-white); }
.cart-header-actions { display: flex; gap: 10px; align-items: center; }
.btn-clear-cart { background: transparent; border: none; color: var(--danger-red); font-size: 12px; cursor: pointer; font-weight: bold; }
.btn-close-cart { background: none; border: none; color: white; cursor: pointer; font-size: 14px; }

/* عناصر المنتجات داخل السلة مضاف إليها الصورة والسعر بشكل منسق */
.cart-items-list { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mini-cart-item { display: flex; align-items: center; gap: 10px; background: #1f1f1f; padding: 8px; border-radius: 8px; border: 1px solid #2c2c2c; }
.cart-item-img { width: 45px; height: 45px; object-fit: cover; border-radius: 4px; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 13px; font-weight: bold; margin-bottom: 2px; }
.cart-item-details p { font-size: 11px; color: var(--primary-gold); font-weight: bold; }
.btn-remove-mini { background: none; border: none; color: #888; cursor: pointer; font-size: 12px; padding: 5px; }
.btn-remove-mini:hover { color: var(--danger-red); }

.cart-sidebar-footer { padding: 15px; background: #111; border-top: 1px solid #252525; }
.total-box { display: flex; justify-content: space-between; font-weight: bold; font-size: 16px; margin-bottom: 12px; }
.total-box #cart-total-amount { color: var(--primary-gold); }
.btn-send-whatsapp { width: 100%; padding: 12px; background: #25D366; color: white; border: none; font-weight: 900; border-radius: 8px; cursor: pointer; font-size: 14px; text-align: center; display: block; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.btn-send-whatsapp:hover { background: #20ba56; }

/* شاشات الـ Tablets والأجهزة الأكبر (تعديل الجريد تلقائياً ليناسب الشاشات الكبيرة) */
@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .logo a { font-size: 26px; }
    .product-title { font-size: 17px; }
    .price { font-size: 16px; }
}
/* تنسيق فلتر الأسعار */
.price-filter-section { margin-bottom: 25px; background: var(--bg-card); border-radius: 10px; border: 1px solid #252525; overflow: hidden; }
.filter-header { padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--primary-gold); font-weight: bold; font-size: 14px; background: #1a1a1a; transition: 0.3s; }
.filter-header:hover { background: #222; }
.filter-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 15px; }
.filter-panel.open { max-height: 150px; padding: 15px; border-top: 1px solid #282828; }
.filter-inputs { display: flex; gap: 10px; margin-bottom: 12px; }
.filter-inputs input { flex: 1; background: #111; border: 1px solid #333; color: white; padding: 10px; border-radius: 6px; font-size: 13px; outline: none; }
.filter-inputs input:focus { border-color: var(--primary-gold); }
.filter-actions { display: flex; gap: 10px; }
.btn-apply-filter { flex: 2; background: var(--primary-gold); color: var(--bg-dark); border: none; padding: 10px; border-radius: 6px; font-weight: 900; cursor: pointer; }
.btn-reset-filter { flex: 1; background: #333; color: white; border: none; padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-reset-filter:hover { background: var(--danger-red); }