/* ============================================================
   براند الفيروز — CSS الرئيسي v2.0 (النسخة الذهبية)
   ============================================================ */

/* ---- متغيرات ---- */
:root {
  --gold:       #c9a227;
  --gold-dark:  #9e7f1d;
  --gold-light: #e8c15a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --gray:       #f9f9f9;
  --gray2:      #ebebeb;
  --text:       #2a2a2a;
  --text-light: #666666;
  --white:      #ffffff;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --trans:      .25s ease;
  --font:       'Tajawal', sans-serif;
}

/* ---- ريست ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); direction: rtl; line-height: 1.7; overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ---- مساعدات ---- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad  { padding: 60px 0; }
.bg-light     { background: var(--gray); }
.hidden       { display: none !important; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }

/* ---- أزرار ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: var(--trans); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,.35); }
.btn-outline  { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-disabled { background: #ccc; color: #888; cursor: not-allowed; }
.btn-full     { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }
.btn-sm       { padding: 7px 14px; font-size: .85rem; }
.btn-lg       { padding: 14px 30px; font-size: 1.05rem; }

/* ---- هيدر ---- */
#main-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 50px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: var(--trans);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(201,162,39,.09); color: var(--gold);
}

.header-icons { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: var(--trans); font-size: 1rem; position: relative;
}
.icon-btn:hover { background: var(--gray); color: var(--gold); }
.admin-btn  { color: var(--gold); }
.logout-btn { color: #e74c3c; }

.user-greeting { font-size: .85rem; font-weight: 600; color: var(--gold); white-space: nowrap; }

.cart-icon-wrapper {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; transition: var(--trans);
  font-size: 1.1rem;
}
.cart-icon-wrapper:hover { background: var(--gray); }
.cart-count {
  position: absolute; top: 0; left: 0;
  background: var(--gold); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--trans); }

.wholesale-badge {
  background: var(--dark2);
  color: var(--gold); padding: 4px 10px; border-radius: 20px;
  font-size: .78rem; font-weight: 700; border: 1px solid var(--gold);
}

/* ---- FLASH ---- */
.global-flash {
  position: fixed; top: 80px; right: 50%; transform: translateX(50%);
  background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
  padding: 12px 24px; border-radius: var(--radius-sm); z-index: 9999;
  display: flex; align-items: center; gap: 10px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: slideDown .3s ease;
}
.global-flash.error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
@keyframes slideDown { from { opacity:0; transform: translateX(50%) translateY(-20px); } }

/* ---- HERO ---- */
.hero {
  min-height: 85vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
  position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.7) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 650px; color: #fff; padding: 60px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,162,39,.2); border: 1px solid rgba(201,162,39,.4);
  color: var(--gold-light); padding: 6px 16px; border-radius: 20px;
  font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2rem,5vw,3.4rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-content p { font-size: 1.1rem; opacity: .88; margin-bottom: 30px; }
.hero-btn { font-size: 1.05rem; padding: 14px 32px; }

/* ---- عنوان القسم ---- */
.section-title {
  text-align: center; font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 800; color: var(--dark);
  margin-bottom: 40px; position: relative; padding-bottom: 14px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%);
  width: 60px; height: 3px; background: var(--gold); border-radius: 2px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.section-header .section-title { margin-bottom: 0; }
.section-header .section-title::after { right: 0; transform: none; }

/* ---- التصنيفات ---- */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 12px; border-radius: var(--radius);
  background: var(--white); border: 2px solid var(--gray2);
  font-weight: 600; font-size: .9rem; color: var(--text);
  transition: var(--trans);
}
.cat-card:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,162,39,.09); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold); }
.cat-card:hover .cat-icon { background: var(--gold); color: #fff; }

/* ---- المنتجات ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray2); overflow: hidden;
  transition: var(--trans); display: flex; flex-direction: column;
  min-width: 0; /* يمنع خروج الكارت عن الشاشة */
}
.product-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.product-img-wrap { position: relative; padding-top: 100%; overflow: hidden; background: var(--gray); }
.product-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.out-badge, .ws-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.out-badge { background: #e74c3c; color: #fff; }
.ws-badge  { background: var(--dark); color: var(--gold); right: 10px; left: auto; border: 1px solid var(--gold); }
.product-info { padding: 14px 14px 8px; flex: 1; }
.product-cat   { font-size: .75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-title { font-size: .95rem; font-weight: 700; margin: 4px 0 8px; line-height: 1.4; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.product-actions { display: flex; gap: 8px; padding: 8px 14px 14px; }
.product-actions .btn { flex: 1; justify-content: center; }

/* ---- مزايا ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 24px; }
.feature-card { text-align: center; padding: 32px 20px; }
.feature-card i { font-size: 2.4rem; color: var(--gold); margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--text-light); font-size: .9rem; }

/* ---- المقالات ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.articles-grid-lg { grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); }
.article-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray2); overflow: hidden; transition: var(--trans); }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.article-img-wrap { height: 200px; overflow: hidden; }
.article-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-img-wrap img { transform: scale(1.06); }
.article-body { padding: 20px; }
.article-date { font-size: .8rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.article-body h2, .article-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gold); }
.article-body p { color: var(--text-light); font-size: .88rem; margin-bottom: 14px; }

/* ---- CTA & بانر الصفحة ---- */
.cta-section, .page-banner { background: linear-gradient(135deg,var(--dark2),var(--dark)); border-bottom: 2px solid var(--gold); }
.cta-content { text-align: center; color: #fff; padding: 20px 0; }
.cta-icon { font-size: 3rem; color: #25d366; margin-bottom: 14px; }
.cta-content h2 { font-size: 1.8rem; margin-bottom: 10px; color: var(--gold-light); }
.cta-content p  { opacity: .8; margin-bottom: 24px; color: #fff; }

.page-banner { padding: 50px 0; text-align: center; color: #fff; }
.page-banner h1 { font-size: 2rem; font-weight: 800; color: var(--gold-light); }
.page-banner p  { opacity: .8; margin-top: 6px; }

/* ---- breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; opacity: .85; font-size: .9rem; color: #fff; }
.breadcrumb a:hover { text-decoration: underline; color: var(--gold); }

/* ---- صفحة المنتجات ---- */
.products-page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filter-sidebar { position: sticky; top: 90px; align-self: start; }
.filter-block   { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray2); padding: 20px; margin-bottom: 16px; }
.filter-block h4 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: var(--gold); }
.filter-list li + li { margin-top: 4px; }
.filter-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-size: .9rem; transition: var(--trans);
}
.filter-list a:hover, .filter-list a.active { background: rgba(201,162,39,.09); color: var(--gold); font-weight: 600; }
.wholesale-info-box { background: linear-gradient(135deg,rgba(201,162,39,.1),rgba(201,162,39,.05)); border-color: var(--gold) !important; text-align: center; }
.wholesale-info-box i { font-size: 1.5rem; color: var(--gold); margin-bottom: 8px; }
.wholesale-info-box strong { display: block; font-size: .9rem; margin-bottom: 4px; color: var(--gold); }
.wholesale-info-box p { font-size: .8rem; color: var(--text-light); }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.search-form { display: flex; border: 1px solid var(--gray2); border-radius: var(--radius-sm); overflow: hidden; flex: 1; max-width: 340px; }
.search-form input { flex: 1; padding: 8px 14px; border: none; outline: none; font-size: .9rem; }
.search-form button { padding: 8px 14px; background: var(--gold); color: #fff; }
.results-count { color: var(--text-light); font-size: .85rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 3rem; color: var(--gray2); margin-bottom: 14px; }
.empty-state p  { font-size: 1rem; margin-bottom: 20px; }

/* ---- مودال المنتج ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-content {
  background: var(--white); border-radius: var(--radius);
  width: 100%; max-width: 750px; position: relative;
  transform: scale(.95); transition: transform .3s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text); transition: var(--trans); }
.close-modal:hover { background: #e74c3c; color: #fff; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-wrap { height: 340px; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); }
.modal-img-wrap .modal-img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.modal-category { font-size: .78rem; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.modal-details h3 { font-size: 1.2rem; font-weight: 800; }
.modal-details p  { color: var(--text-light); font-size: .9rem; }
.modal-price-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-price { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.wholesale-tag { background: var(--dark2); color: var(--gold); padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; border: 1px solid var(--gold); }
.modal-qty { display: flex; align-items: center; gap: 12px; }
.modal-qty button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.modal-qty button:hover { background: var(--gold); color: #fff; }
.modal-qty span { font-size: 1.1rem; font-weight: 700; min-width: 30px; text-align: center; }

/* ---- سلة الشراء ---- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; left: -380px; width: 380px; height: 100%;
  background: var(--white); z-index: 1001; box-shadow: -4px 0 30px rgba(0,0,0,.15);
  display: flex; flex-direction: column; transition: left .35s ease;
}
.cart-sidebar.open { left: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--gray2); }
.cart-header h3 { font-size: 1.05rem; font-weight: 700; }
.close-cart { width: 34px; height: 34px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; }
.close-cart:hover { background: #e74c3c; color: #fff; }
.cart-items-container { flex: 1; overflow-y: auto; padding: 14px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-light); }
.cart-empty i { font-size: 2.5rem; color: var(--gray2); margin-bottom: 10px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--gray); border-radius: var(--radius-sm); margin-bottom: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.cart-item-info .price { color: var(--gold); font-weight: 700; font-size: .88rem; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cart-item-qty button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty span { font-size: .85rem; font-weight: 600; min-width: 20px; text-align: center; }
.remove-item { color: #e74c3c; font-size: .9rem; padding: 4px; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--gray2); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 700; font-size: 1.05rem; }
.total-val { color: var(--gold); font-size: 1.2rem; }

/* ---- تسجيل الدخول ---- */
.auth-section { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--gray); }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 36px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 64px; margin: 0 auto; }
.auth-tabs { display: flex; background: var(--gray); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 9px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--text-light); transition: var(--trans); text-align: center; }
.auth-tab.active { background: var(--white); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.auth-error { background: #fff5f5; border: 1px solid #fcc; color: #c0392b; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--gray2); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--text); transition: var(--trans); outline: none;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.1); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-left: 44px; }
.pw-toggle { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: .9rem; }
.auth-switch { text-align: center; font-size: .88rem; color: var(--text-light); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* ---- حساب المستخدم ---- */
.account-info-bar { display: flex; flex-wrap: wrap; gap: 12px; background: var(--gray); padding: 16px 20px; border-radius: var(--radius); }
.acc-info-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.acc-info-item i { color: var(--gold); }
.ws-info { color: var(--gold); font-weight: 600; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius); padding: 16px 20px; }
.order-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.order-num { font-weight: 800; font-size: 1rem; color: var(--gold); }
.order-date { color: var(--text-light); font-size: .85rem; margin-right: auto; }
.order-footer { display: flex; justify-content: space-between; align-items: center; }
.order-type { color: var(--text-light); font-size: .85rem; }
.order-total { font-size: 1rem; color: var(--gold); }

/* ---- الشارات ---- */
.badge-pending   { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-confirmed { background: #cce5ff; color: #004085; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-ready     { background: #e2d9f3; color: #6f42c1; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-completed { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-cancelled { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

/* ---- من نحن ---- */
.about-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.about-lead { font-size: 1.05rem; color: var(--text-light); margin-bottom: 28px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card { background: var(--gray); border-radius: var(--radius); padding: 20px; }
.about-card i { font-size: 1.5rem; color: var(--gold); margin-bottom: 8px; }
.about-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.about-card p  { font-size: .87rem; color: var(--text-light); }
.about-img img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 20px; }
.stat-card { text-align: center; padding: 28px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray2); }
.stat-num  { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); }
.stat-label{ font-size: .9rem; color: var(--text-light); margin-top: 4px; }

/* ---- تواصل معنا ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(201,162,39,.09); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold); flex-shrink: 0; }
.whatsapp-icon { background: rgba(37,211,102,.1); color: #25d366; }
.contact-item strong { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text-light); font-size: .9rem; }
.contact-social { display: flex; gap: 10px; margin-top: 20px; }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; color: var(--text); transition: var(--trans); }
.contact-social a:hover { background: var(--gold); color: #fff; }
.contact-wa-cta { text-align: center; background: linear-gradient(135deg,var(--dark2),var(--dark)); color: #fff; border-radius: var(--radius); padding: 48px 32px; border: 1px solid var(--gold); }
.contact-wa-cta i { font-size: 3.5rem; color: #25d366; margin-bottom: 14px; }
.contact-wa-cta h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; color: var(--gold-light); }
.contact-wa-cta p  { opacity: .8; margin-bottom: 24px; }

/* ---- مقالة كاملة ---- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-cover img { width: 100%; max-height: 360px; object-fit: cover; }
.article-full-body h1 { font-size: 1.6rem; font-weight: 800; margin: 10px 0 20px; }
.article-content { color: var(--text); line-height: 1.9; font-size: .97rem; }
.article-content h2 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: var(--gold); }
.article-content p { margin-bottom: 14px; }
.related-articles { position: sticky; top: 90px; }
.related-articles h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.related-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--gray2); margin-bottom: 10px; transition: var(--trans); }
.related-card:hover { border-color: var(--gold); }
.related-card img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.related-card strong { display: block; font-size: .85rem; font-weight: 600; }
.related-card span { font-size: .75rem; color: var(--text-light); }

/* ---- الفوتر ---- */
#main-footer { background: var(--dark2); color: rgba(255,255,255,.85); margin-top: 0; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; padding: 60px 0 40px; }
.footer-logo { height: 50px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; opacity: .7; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; transition: var(--trans); }
.footer-social a:hover { background: var(--gold); }
.footer-links h4, .footer-contact h4 { font-size: .95rem; font-weight: 700; color: var(--gold-light); margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { font-size: .88rem; opacity: .7; display: flex; align-items: center; gap: 6px; transition: var(--trans); }
.footer-links ul a:hover { opacity: 1; color: var(--gold-light); }
.footer-contact p { font-size: .88rem; opacity: .7; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact a { opacity: .7; transition: var(--trans); }
.footer-contact a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .82rem; opacity: .6; }
.aaa-link { color: var(--gold-light); font-weight: 600; opacity: 1; }

/* ---- انيميشن ---- */
.animate-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-up.visible { opacity: 1; transform: none; }

/* ============================================================
   ريسبونسيف (شاشات الموبايل)
   ============================================================ */
@media (max-width: 900px) {
  .products-page-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .about-layout, .contact-layout, .article-layout { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap { height: 220px; border-radius: var(--radius) var(--radius) 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 12px; } /* تقليل المسافات الجانبية */
  .section-pad { padding: 40px 0; } /* تقليل المسافات العلوية */
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; right: 0; left: 0; background: #fff; padding: 16px; gap: 4px; box-shadow: var(--shadow); border-top: 1px solid var(--gray2); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .user-greeting { display: none; }
  .hero { min-height: 65vh; }
  .hero-content h1 { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .cat-card { padding: 16px 8px; font-size: .8rem; }
  .cat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  
  /* تظبيط شبكة المنتجات للموبايل */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-info { padding: 10px; }
  .product-title { font-size: .85rem; margin-bottom: 4px; }
  .product-price { font-size: 1rem; }
  .product-actions { padding: 0 10px 10px; flex-direction: column; gap: 6px; }
  .product-actions .btn { font-size: .75rem; padding: 6px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 20px; }
  .about-cards { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 16px; }
  .cart-sidebar { width: 100%; left: -100%; }
}