/* استيراد الخطوط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

/* تطبيق الخط على جميع العناصر */
:root {
  --font-main: 'Cairo', 'Tajawal', sans-serif;
}

* {
  font-family: var(--font-main) !important;
}

/* استثناء أيقونات Font Awesome من تغيير الخط */
.fa, .fas, .far, .fab, .fal, .fad {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900; /* أو 400 حسب الأيقونة */
}

/* إذا كانت الأيقونات من إصدار 5 */
.fa, .fas, .far, .fab, .fal, .fad {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
  font-weight: 900;
}

/* تحسين وزن الخطوط للعناوين */
h1, h2, h3, h4, h5, h6, .logo h1, .section-title, .product-brand, .stat-value {
  font-weight: 700;
}

/* تحسين مظهر الأرقام */
.price, .old-price, .new-price, .cart-total, .stat-value {
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* ======================================================
   ===== لوحة الألوان المتناسقة (Light White & Royal Blue) =====
   ====================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --primary-navy: #0f2942;
  --primary-navy-hover: #16385c;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --soft-blue: #eff6ff;
  --soft-blue-border: #bfdbfe;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  
  --shadow-sm: 0 2px 8px rgba(15, 41, 66, 0.05);
  --shadow-md: 0 8px 20px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 41, 66, 0.12);
}

/* ---- Reset & Body ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-dark) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- المتجر (Store Mode) ---- */
#storeMode {
  display: block;
}

#adminMode {
  display: none;
}

/* ---- شريط الإعلانات العلوي ---- */
.top-bar {
  background-color: var(--primary-navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #e2e8f0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-left i {
  color: #60a5fa !important;
  margin-left: 4px;
}

.top-bar-phone {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.top-bar-phone i {
  color: #60a5fa !important;
  margin-left: 5px;
}

/* ---- زر تبديل الوضع (المدير) ---- */
.mode-toggle-btn {
  background: var(--accent-blue) !important;
  color: var(--text-light) !important;
  border: none !important;
  padding: 5px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.mode-toggle-btn:hover {
  background: var(--accent-blue-hover) !important;
  transform: translateY(-1px);
}

/* ---- الهيدر ---- */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: var(--bg-card) !important;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--primary-navy) !important;
  line-height: 1.2;
}

.logo h1 span {
  color: var(--accent-blue) !important;
  font-weight: 700;
}

.logo small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted) !important;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-subtle) !important;
  border-radius: 40px;
  padding: 4px 16px;
  border: 1px solid var(--border-color) !important;
  flex: 1 1 220px;
  min-width: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg-card) !important;
}

.search-bar input {
  background: transparent !important;
  border: none !important;
  padding: 8px 0;
  color: var(--text-dark) !important;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
}

.search-bar i {
  color: var(--accent-blue) !important;
  font-size: 0.95rem;
  margin-left: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-actions a {
  color: var(--text-dark) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header-actions a:hover {
  color: var(--accent-blue) !important;
}

.cart-icon {
  position: relative;
  background: var(--soft-blue);
  padding: 8px 14px;
  border-radius: 30px;
  color: var(--accent-blue) !important;
}

.cart-badge {
  background: var(--accent-blue) !important;
  color: var(--text-light) !important;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.65rem;
  position: absolute;
  top: -6px;
  left: -4px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.hide-mobile {
  display: inline;
}

/* ---- شريط التنقل (الماركات) ---- */
.nav-bar {
  background: var(--bg-card) !important;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color) !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-bar a {
  color: var(--text-dark) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 30px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav-bar a:hover {
  color: var(--accent-blue) !important;
  background: var(--soft-blue) !important;
}

.nav-divider {
  color: var(--border-color) !important;
  padding: 0 2px;
}

.nav-special {
  color: var(--accent-blue) !important;
  font-weight: 700;
  background: var(--soft-blue);
}

/* ---- قسم الهيرو (الواجهة الرئيسية) ---- */
.hero {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.82), rgba(20, 35, 60, 0.75)), 
                url('/images/1786886008858.png') center/cover no-repeat !important;
    margin: 16px 12px 24px;
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    gap: 20px;
    color: #ffffff !important;
}

.hero-text {
  flex: 1 1 240px;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.25;
  color: #ffffff !important;
}

.hero-text h2 span {
  color: #93c5fd !important;
  font-weight: 700;
}

.hero-text p {
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  padding: 4px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- الأزرار الرئيسية ---- */
.btn-gold {
  background: var(--accent-blue) !important;
  border: none !important;
  color: var(--text-light) !important;
  padding: 10px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  text-align: center;
}

.btn-gold:hover {
  background: var(--accent-blue-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

.hero-image {
  flex: 0 1 120px;
  text-align: center;
  font-size: 4rem;
  color: #ffffff !important;
  opacity: 0.9;
}

.hero-image i {
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---- التصفية والفلترة ---- */
.filter-bar {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-group label {
  color: var(--text-muted) !important;
}

.filter-group input,
.filter-group select {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-dark) !important;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--accent-blue) !important;
  background: var(--bg-card) !important;
}

.filter-group button {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
}

.filter-group button:hover {
  background: var(--soft-blue) !important;
  color: var(--accent-blue) !important;
  border-color: var(--soft-blue-border) !important;
}

/* ---- شبكة المنتجات ---- */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-navy) !important;
  margin: 28px 0 16px;
  border-right: 4px solid var(--accent-blue) !important;
  padding-right: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin: 12px 0 32px;
}

.product-card {
  background: var(--bg-card) !important;
  border-radius: 16px;
  padding: 14px 12px 16px;
  border: 1px solid var(--border-color) !important;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--soft-blue-border) !important;
  box-shadow: var(--shadow-md) !important;
}

.product-image {
  font-size: 2.8rem;
  text-align: center;
  color: var(--accent-blue) !important;
  background: var(--bg-subtle) !important;
  border-radius: 12px;
  padding: 12px 0;
  margin-bottom: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  max-height: 130px;
  object-fit: contain;
}

.product-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy) !important;
}

.product-model {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  line-height: 1.3;
}

.product-discount {
  background: #dbeafe !important;
  color: var(--accent-blue) !important;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 30px;
  display: inline-block;
  margin: 6px 0 6px;
  align-self: flex-start;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.old-price {
  color: #94a3b8 !important;
  text-decoration: line-through;
  font-size: 0.78rem;
}

.new-price {
  color: var(--accent-blue) !important;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.btn-add {
  background: var(--bg-subtle) !important;
  color: var(--primary-navy) !important;
  border: 1px solid var(--border-color) !important;
  padding: 8px 10px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-add:hover {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  border-color: var(--accent-blue) !important;
}

.btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 10px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 60px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #1da851 !important;
}

/* ---- سلة المشتريات ---- */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cart-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
  padding: 28px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark) !important;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.cart-header h3 {
  color: var(--primary-navy) !important;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted) !important;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-close:hover {
  color: var(--primary-navy) !important;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color) !important;
}

.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--primary-navy) !important;
}

.cart-item-price {
  color: var(--accent-blue) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.qty-btn {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  border-color: var(--accent-blue) !important;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
}

.checkout-form label {
  color: var(--text-muted) !important;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  color: var(--text-dark) !important;
  font-size: 0.9rem;
  outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  border-color: var(--accent-blue) !important;
  background: var(--bg-card) !important;
}

.shipping-cost-box {
  background: var(--soft-blue) !important;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--soft-blue-border) !important;
}

.shipping-cost-box span {
  color: var(--primary-navy) !important;
}

#shippingCostDisplay, #totalWithShipping {
  color: var(--accent-blue) !important;
}

/* ---- الفوتر ---- */
.footer {
  background: var(--primary-navy) !important;
  border-top: none !important;
  padding: 32px 0 20px;
  margin-top: 40px;
  color: #e2e8f0 !important;
}

.footer-info {
  font-size: 0.85rem;
  color: #cbd5e1 !important;
  line-height: 2;
}

.footer-info i {
  color: #60a5fa !important;
  margin-left: 8px;
  width: 18px;
}

.footer-social a {
  color: #ffffff !important;
  margin-right: 14px;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social a:hover {
  color: #60a5fa !important;
}

.footer-copy {
  text-align: center;
  color: #94a3b8 !important;
  font-size: 0.75rem;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 16px;
}

/* ======================================================
   ===== لوحة التحكم (Admin Dashboard - Light Theme) =====
   ====================================================== */

#loginPage {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  padding: 20px;
}

.login-card {
  background: var(--bg-card) !important;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color) !important;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 400;
  color: var(--primary-navy) !important;
}

.login-card h1 span {
  color: var(--accent-blue) !important;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
  color: var(--text-dark) !important;
  font-size: 1rem;
  outline: none;
}

.login-card input:focus {
  border-color: var(--accent-blue) !important;
  background: var(--bg-card) !important;
}

/* ---- Dashboard Layout ---- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main);
}

.sidebar {
  width: 240px;
  background: var(--primary-navy) !important;
  border-left: none !important;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  color: #ffffff;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 20px;
}

.sidebar-logo h2 {
  font-weight: 400;
  color: #ffffff !important;
}

.sidebar-logo h2 span {
  color: #60a5fa !important;
  font-weight: 700;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #94a3b8 !important;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0 8px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.sidebar-menu a.active {
  background: var(--accent-blue) !important;
}

.dashboard-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.dashboard-header .header-search input {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 40px;
  padding: 8px 16px;
  color: var(--text-dark) !important;
  width: 250px;
  outline: none;
}

.dashboard-header .header-search input:focus {
  border-color: var(--accent-blue) !important;
  background: var(--bg-card) !important;
}

.dashboard-header .admin-name {
  color: var(--primary-navy) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
  font-size: 1.4rem;
  color: var(--accent-blue) !important;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
}

.stat-card .stat-label {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}

/* ---- Tables ---- */
.table-responsive {
  overflow-x: auto;
  margin-top: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th {
  background: var(--bg-subtle) !important;
  padding: 12px 14px;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted) !important;
  border-bottom: 2px solid var(--border-color) !important;
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
}

.table tr:hover {
  background: var(--soft-blue) !important;
}

/* ---- Status Badges ---- */
.status-badge {
  padding: 4px 10px;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.active, .status-badge.order-تم-التأكيد, .status-badge.order-تم-التوصيل {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.status-badge.inactive, .status-badge.order-ملغي {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.status-badge.order-جديد, .status-badge.order-تم-الشحن {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.status-badge.order-قيد-المراجعة, .status-badge.order-قيد-التجهيز {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

/* ---- Modals (لوحة التحكم والمنتجات) ---- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
  padding: 30px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark) !important;
}

.modal-header h3 {
  color: var(--primary-navy) !important;
}

.form-group label {
  color: var(--text-muted) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  color: var(--text-dark) !important;
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue) !important;
  background: var(--bg-card) !important;
}

.image-preview {
  background: var(--bg-subtle) !important;
  border: 2px dashed var(--border-color) !important;
}

.upload-btn {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
}

.upload-btn:hover {
  background: var(--soft-blue) !important;
  color: var(--accent-blue) !important;
  border-color: var(--soft-blue-border) !important;
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-navy) !important;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg) !important;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  max-width: 320px;
  direction: rtl;
}

.toast.error {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  .sidebar-logo h2 span, .sidebar-menu a span {
    display: none;
  }
  .dashboard-main {
    padding: 14px;
  }
  .hero-text h2 {
    font-size: 1.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }
}
/* إخفاء جميع الأقسام افتراضياً */
.content-section {
  display: none;
}

/* إظهار القسم النشط فقط */
.content-section.active {
  display: block;
}
.site-footer {
  background-color: #0a0f1e;
  color: #cbd5e1;
  padding: 45px 20px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-col h3.footer-logo {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: #3b82f6;
}

.footer-about {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #60a5fa;
}

.footer-col p {
  margin: 8px 0;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: #ffffff;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.85rem;
}
/* --- نافذة خدمة العملاء (Modal) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 25px;
  position: relative;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
  animation: modalFadeIn 0.3s ease;
  direction: rtl;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.modal-title {
  color: #60a5fa;
  font-size: 1.3rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.faq-item {
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 15px;
  border-radius: 10px;
  border-right: 3px solid #3b82f6;
}

.faq-item h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.faq-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}
.brands-wrapper {
  width: 100%;
  padding: 15px 10px;
  text-align: center;
  background-color: #fafafa;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 15px;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.brand-card img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 5px;
}

.brand-card span {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

.hidden-brand {
  display: none !important;
}

.show-more-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.brand-categories-section {
  padding: 25px 15px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-categories-section .section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.brand-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 992px) {
  .brand-categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.brand-category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: #f9f9f9;
}

.brand-category-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.brand-category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.brand-category-card:hover .card-image img {
  transform: scale(1.06);
}

.brand-category-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #003366;
  color: #ffffff;
  padding: 8px 5px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
}
.brand-categories-section {
  padding: 25px 15px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-categories-section .section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.brand-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .brand-categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.brand-category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: #f9f9f9;
  transition: transform 0.2s ease;
}

.brand-category-card:hover {
  transform: translateY(-3px);
}

.brand-category-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.brand-category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.brand-category-card:hover .card-image img {
  transform: scale(1.06);
}

.brand-category-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #003366;
  color: #ffffff;
  padding: 8px 5px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
}

/* الكلاس الخاص بإخفاء الماركات الإضافية */
.hidden-brand {
  display: none !important;
}

/* زر عرض المزيد */
.show-more-brands-btn {
  background-color: #fff;
  color: #003366;
  border: 2px solid #003366;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-brands-btn:hover {
  background-color: #003366;
  color: #fff;
}
/* تنسيق أزرار مودال تأكيد الطلب */
#confirmOrderModal .modal-content {
  text-align: center;
}
#confirmOrderModal .btn-gold,
#confirmOrderModal .btn-whatsapp {
  width: 100%;
  margin: 5px 0;
}
/* ===== تحسين قسم Shop By Brand ===== */
.brand-categories-section {
  padding: 35px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  background: #f9fafc;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.brand-categories-section .section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #0f2942;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.brand-categories-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 70px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}

.brand-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.brand-category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
  transition: all 0.35s ease;
  aspect-ratio: 4/3;
}

.brand-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.brand-category-card .card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.brand-category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.brand-category-card:hover .card-image img {
  transform: scale(1.1);
}

.brand-category-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,41,66,0.9), rgba(15,41,66,0.2));
  color: #fff;
  padding: 30px 10px 14px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.5px;
  backdrop-filter: blur(2px);
}

/* حالة التفعيل عند اختيار ماركة */
.brand-category-card.active {
  border: 2px solid #2563eb;
  box-shadow: 0 0 15px rgba(37,99,235,0.3);
}

.show-more-brands-btn {
  background: #fff;
  color: #0f2942;
  border: 2px solid #0f2942;
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.show-more-brands-btn:hover {
  background: #0f2942;
  color: #fff;
  transform: translateY(-2px);
}

.hidden-brand {
  display: none !important;
}
#categoryImagePreview {
  width: 100%;
  height: 180px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  background: #f9fafc;
}

#categoryImagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .brand-categories-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
  }

  .brand-category-card {
    flex: 0 0 150px;
  }

  .brand-category-card .card-image {
    height: 150px;
  }

  .brand-category-card.hidden-brand {
    display: block;
  }

  .show-more-brands-btn {
    display: none;
  }
}
/* تعديل موضع اسم الماركة داخل الكارت لتنزيله للأسفل */
.brand-category-card .brand-category-btn {
  position: absolute;
  bottom: 8px;       /* تقليل المسافة من الأسفل لكي ينزل النص أكثر */
  left: 8px;
  right: 8px;
  padding: 8px 10px; /* تصغير الارتفاع قليلاً إذا رغبت */
  font-size: 13px;
  background: rgba(15, 41, 66, 0.85); /* تحكم بشفافية الخلفية إذا أردت */
  backdrop-filter: blur(4px);
  border-radius: 6px;
}
/* تصغير وتقصير مساحة اسم الماركة لتصبح أنيقاً وناصياً */
.brand-category-card .brand-category-btn {
  position: absolute;
  bottom: 6px;       /* مسافة قريبة جداً من أسفل الكارت */
  left: 6px;
  right: 6px;
  padding: 5px 8px;  /* تصغير الحجم الداخلي للزر */
  font-size: 12px;   /* تصغير حجم خط النص */
  border-radius: 4px;
  background: rgba(15, 41, 66, 0.8); /* خلفية شفافة متناسقة */
}
/* ===== بطاقة المنتج المحسنة ===== */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card .product-image {
  position: relative;
}
.product-card .product-image img {
  transition: transform 0.3s;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-card .product-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.75rem;
  z-index: 2;
}
.product-card .card-hover-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.card-hover-actions button {
  background: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}
.card-hover-actions button:hover {
  background: #2563eb;
  color: #fff;
}
.card-hover-actions button.wishlist-active {
  color: #ef4444;
}

/* ===== مودال تفاصيل المنتج ===== */
.product-detail-modal .modal-content {
  max-width: 900px;
  width: 95%;
}
.product-detail-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.detail-gallery {
  flex: 1 1 300px;
}
.main-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}
.main-image-container img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}
.discount-badge-detail {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
}
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}
.thumbnails img.active,
.thumbnails img:hover {
  border-color: #2563eb;
}
.detail-info {
  flex: 1 1 300px;
}
.detail-model {
  color: #64748b;
  margin: 5px 0;
}
.detail-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.new-price-detail {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ef4444;
}
.old-price-detail {
  color: #94a3b8;
  text-decoration: line-through;
}
.detail-features ul {
  list-style: none;
  padding: 0;
}
.detail-features li {
  padding: 4px 0;
  font-size: 0.9rem;
}
.detail-features i {
  color: #22c55e;
  margin-left: 5px;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.quantity-selector button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.quantity-selector span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.btn-cash {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.detail-description {
  margin-top: 15px;
}
.detail-description p {
  color: #475569;
  line-height: 1.6;
}

/* ===== المنتجات المقترحة ===== */
.related-products {
  margin-top: 30px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}
.related-products-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto; /* للسماح بالتمرير إذا كان هناك أكثر من 2 */
}

.related-product-card {
  flex: 0 0 calc(50% - 6px); /* يعرض بطاقتين في الصف مع مسافة بينهما */
  min-width: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.related-product-card:hover {
  transform: translateY(-3px);
}

.related-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-product-card .related-info {
  padding: 8px;
}

.related-product-card h4 {
  font-size: 0.8rem;
  margin: 0 0 4px;
}

.related-product-card .price {
  color: #ef4444;
  font-weight: bold;
  font-size: 0.8rem;
}

/* على الشاشات الصغيرة جداً يظهران جنب بعض بشكل أفضل */
@media (max-width: 480px) {
  .related-product-card {
    flex-basis: calc(50% - 5px);
    min-width: 130px;
  }
  .related-product-card img {
    height: 90px;
  }
}

/* ===== الشريط السفلي الثابت (Sticky Bar) ===== */
.sticky-product-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  display: none;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.sticky-product-bar.show {
  display: flex;
}
.sticky-product-bar button,
.sticky-product-bar a {
  flex: 1;
  padding: 10px;
  border-radius: 40px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
}
.sticky-product-bar button {
  background: #2563eb;
}
.sticky-product-bar a.btn-whatsapp {
  background: #25D366;
}

/* ===== شريط التنقل السفلي للموبايل ===== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: none;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 60px; /* لمنع اختفاء المحتوى خلف الشريط */
  }
  .sticky-product-bar {
    bottom: 60px; /* فوق شريط التنقل */
  }
}
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.7rem;
  position: relative;
}
.mobile-bottom-nav .nav-item.active {
  color: #2563eb;
}
.mobile-bottom-nav .nav-item i {
  font-size: 1.3rem;
}
.mobile-bottom-nav .nav-item .badge {
  position: absolute;
  top: -5px;
  right: 50%;
  transform: translateX(50%);
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* حاوية البطاقة لتوفير مساحة كاملة ومنفصلة للصورة والاسم */
.watch-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 30px !important;
    overflow: visible !important;
}

/* تكبير صورة الساعة وجعلها تأخذ المساحة الكاملة بأمان */
.watch-card img, 
.watch-image {
    width: 100% !important;
    max-width: 320px !important; /* يمكنك زيادة هذا الرقم إذا أردت حجمًا أكبر بعد */
    height: auto !important;
    object-fit: contain !important;
    margin-bottom: 15px !important; /* مسافة فاصلة آمنة تماماً بين الصورة والاسم */
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    z-index: 2 !important;
}

/* تنسيق اسم الماركة ليكون أسفل الصورة بشكل منفصل تماماً */
.watch-card .brand-name,
.brand-name {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    font-size: 1.2rem !important;
    padding: 12px 20px !important;
    background-color: #1e293b !important; /* لون خلفية زر الاسم */
    color: #fff !important;
    border-radius: 12px !important;
    z-index: 1 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
/* ===== Chips للتصفية ===== */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.chip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
  white-space: nowrap;
}
.chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip:hover {
  background: var(--soft-blue);
  border-color: var(--soft-blue-border);
}
.chip.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.reset-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.reset-chip:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.filter-results {
  margin-top: 10px;
}

/* على الموبايل: تمرير أفقي لمجموعات الفلترة */
@media (max-width: 768px) {
  .filter-chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }
  .chip-group {
    flex-shrink: 0;
  }
}
/* ===== مودال التصفية (Bottom Sheet) ===== */
.filter-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.filter-sheet-overlay.show {
  display: flex;
}
.filter-sheet {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.filter-sheet-header h3 {
  font-size: 1.2rem;
  color: var(--primary-navy);
}
.filter-sheet-content .chip-group {
  margin-bottom: 15px;
}
.filter-sheet-content .reset-chip {
  width: 100%;
  justify-content: center;
  padding: 10px;
  margin-top: 5px;
}

/* إخفاء شريط الفلترة العلوي على الموبايل */
@media (max-width: 768px) {
  .filter-bar {
    display: none !important;
  }
}
/* حاوية شريط الإعلانات المتحرك */
.marquee-container {
    position: sticky; /* يجعله ثابتاً في الأعلى */
    top: 0;
    z-index: 9999;
    width: 100%;
    background-color: #0b1a2d; /* اختر لون الخلفية اللي يعجبك للشريط */
    overflow: hidden;
    padding: 10px 0;
    text-align: center; /* ليظهر النص في الوسط */
}

.marquee-text {
    /* هنا نوقف الحركة تماماً */
    animation: none !important;
    display: block; /* ليظهر كنص ثابت */
    white-space: normal;
    color: white; /* لون النص */
}


/* حركة التمرير */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* تصغير حجم البانر */
.hero-banner {
    height: 250px; /* هذا هو الارتفاع اللي يتحكم بحجمه */
    padding: 20px;
    background-size: cover; /* لضمان تغطية الصورة للمساحة */
    background-position: center;
}
.hero {
    position: relative; /* مهم جداً */
    /* باقي تنسيقاتك */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان تغطية المساحة بدون تشويه */
    z-index: -1; /* لجعل الصورة خلف النصوص */
}
/* تحويل كارد الماركة إلى عمود لترتيب الصورة والنص بشكل منفصل */
.brand-category-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border-radius: 16px !important;
  overflow: visible !important; /* السماح للنص بالظهور بالأسفل خارج حدود الصورة */
  box-shadow: none !important;
  background-color: #fff !important;
  padding: 10px !important;
}

/* تنسيق حاوية الصورة لتأخذ مكانها بالأعلى */
.brand-category-card .card-image {
  position: relative !important;
  width: 100% !important;
  height: 180px !important; /* يمكنك تعديل الارتفاع حسب رغبتك */
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 10px !important; /* مسافة فاصلة أكيدة بين الصورة والاسم */
}

.brand-category-card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* إرجاع زر الاسم إلى وضع طبيعي أسفل الصورة وليس فوقها */
.brand-category-card .brand-category-btn {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  background: #0f2942 !important; /* لون خلفية أنيق للاسم */
  color: #ffffff !important;
  padding: 10px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
/* تثبيت حجم مثالي ومناسب جداً لشاشات الهواتف والحاسوب */
.product-card .product-image {
  width: 100% !important;
  height: 160px !important; /* ارتفاع مخصص للموبايل ليكون Compact ومرتب */
  background: transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  border: none !important;
}

/* ملء الإطار تماماً بدون أي حواف بيضاء أو تشويه */
.product-card .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 !important;
}

/* تصغير الارتفاع قليلاً تلقائياً على شاشات الموبايل الصغيرة لضمان شكل احترافي */
@media (max-width: 768px) {
  .product-card .product-image {
    height: 150px !important; 
  }
}
.hero {
    position: relative; /* مهم جداً لكي تبقى النصوص فوق الصورة */
    overflow: hidden;   /* لقص أي أجزاء زائدة من الصورة */
    /* باقي خصائص الهيرو الخاصة بك مثل الطول والعرض */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* لضمان تغطية المساحة بالكامل بدون تشوه */
    z-index: -1;         /* لتبقى الصورة خلف النصوص والأزرار تماماً */
}
.hero {
    position: relative;
    overflow: hidden;
}

/* اجعل الصورة تملا المكان وتكون في الطبقة الأولى */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* جعلها في الطبقة الأساسية */
}

/* اجعل النصوص والتدرج فوق الصورة تماماً */
.hero-text {
    position: relative;
    z-index: 2; /* لتكون النصوص فوق الصورة وتظهر بوضوح */
}
.delivery-banner {
    background-color: #0b2545; /* لون أزرق غامق فخم */
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delivery-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.whatsapp-float {
    position: fixed;
    width: 55px; /* حجم الزر */
    height: 55px; /* لازم العرض والطول متساويين حتى تطلع دائرة */
    bottom: 80px; 
    right: 20px;
    background-color: #25d366; 
    color: #ffffff;
    border-radius: 50%; /* هاي أهم شي للدائرة */
    text-align: center;
    font-size: 30px; /* حجم الأيقونة بداخل الدائرة */
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3); /* ظل ناعم مثل الصورة */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* هاي الحركة حتى لا تطلع أي حواف أو حدود غريبة */
.whatsapp-float i {
    margin: 0;
    padding: 0;
}
.delivery-banner {
    background-color: #007bff;
    color: #ffffff;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin: 0;           /* شلنا الـ bottom margin */
    border-radius: 0;    /* شلنا الانحناء */
    box-shadow: none;    /* شلنا الظل */
}


.delivery-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
