/* ====== FixIt — التصميم العام (فاتح + برتقالي) ====== */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --card2: #f8fafc;
  --line: #e4e7ec;
  --text: #101828;
  --muted: #667085;
  --accent: #f97316;      /* FixIt orange */
  --accent-dark: #ea580c;
  --accent-deep: #c2410c;
  --dark: #101828;        /* header/footer */
  --dark2: #1d2939;
  --green: #12b76a;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #2563eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; font-weight: 500; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ====== الهيدر ====== */
.topbar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
}
.topbar a { text-decoration: underline; color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; letter-spacing: -0.5px; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent);
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.logo-text { line-height: 1.1; }
.logo-text em { font-style: normal; color: var(--accent); }
.logo-text small { display: block; font-size: 10px; color: #98a2b3; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

/* شريط التنقل */
.nav-bar { background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.06); }
.nav { display: flex; gap: 2px; overflow-x: auto; }
.nav a {
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #cdd5df;
  transition: 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* البحث الفوري في الهيدر */
.hdr-search-wrap { flex: 1; max-width: 540px; position: relative; }
.hdr-search-wrap input {
  border-radius: 999px;
  padding: 11px 20px;
  border: none;
  font-size: 14px;
}
.hdr-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0; left: 0;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}
.hdr-suggest.open { display: block; }
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.suggest-item:hover { background: var(--card2); }
.suggest-icon { font-size: 20px; }
.suggest-name { flex: 1; }
.suggest-name small { display: block; color: var(--muted); font-size: 12px; }
.suggest-item b { color: var(--accent-dark); }
.suggest-all { display: block; text-align: center; padding: 10px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.suggest-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.suggest-empty a { color: var(--accent-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-inline-end: 6px;
  transition: 0.2s;
}
.lang-btn:hover { background: var(--accent); border-color: var(--accent); }
.hdr-icon {
  position: relative;
  font-size: 20px;
  padding: 6px 9px;
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.1;
  transition: 0.2s;
  color: #fff;
}
.hdr-icon:hover { background: rgba(255,255,255,0.1); }
.hdr-icon small { font-size: 11px; color: #98a2b3; }
.cart-badge, .wish-badge {
  position: absolute;
  top: -2px; left: -2px;
  background: var(--accent);
  color: #fff;
  min-width: 18px; height: 18px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
}
.wish-badge { background: var(--red); }
.menu-btn { display: none; }

/* ====== الأزرار ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn-outline:hover { background: var(--card2); border-color: var(--accent); color: var(--accent-dark); }
.btn-green { background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3); }
.btn-green:hover { background: #15803d; }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn-danger { background: var(--red); box-shadow: none; }
.btn-icon {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 17px;
  transition: 0.2s;
}
.btn-icon:hover { background: var(--accent-dark); }

/* ====== الهيرو ====== */
.hero {
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(249, 115, 22, 0.25), transparent),
    radial-gradient(500px 260px at 8% 110%, rgba(249, 115, 22, 0.12), transparent),
    var(--dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.hero h1 { font-size: clamp(26px, 5vw, 46px); font-weight: 900; margin-bottom: 12px; }
.hero h1 span { color: var(--accent); }
.hero p { color: #cdd5df; font-size: 17px; max-width: 640px; margin: 0 auto 28px; }

.search-box {
  display: flex; gap: 8px;
  max-width: 580px;
  margin: 0 auto 20px;
}
.search-box input { flex: 1; padding: 14px 20px; font-size: 15px; border-radius: 999px; border: none; }

.brand-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(249,115,22,0.1); }

/* ====== الأقسام ====== */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 25px; font-weight: 800; }
.section-head a { color: var(--accent-dark); font-size: 15px; font-weight: 600; }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  transition: 0.2s;
  box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .icon { font-size: 32px; display: block; margin-bottom: 8px; }
.cat-card .name { font-size: 15px; font-weight: 700; }

/* ====== كروت المنتجات ====== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-out { opacity: 0.6; }
.card-img-wrap { position: relative; }
.card-img, .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, #eef1f5, #f8fafc);
  display: grid; place-items: center;
}
.img-placeholder span { font-size: 52px; opacity: 0.9; }
.discount-tag {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-badges { display: flex; gap: 6px; }
.badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.badge-new { background: #ecfdf3; color: #067647; }
.badge-used { background: #fffaeb; color: #b54708; }
.badge-brand { background: #eff4ff; color: #1d4ed8; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.card-models { font-size: 13px; color: var(--muted); }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--accent-dark); }
.old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-inline-end: 6px; }
.stock-out { font-size: 13px; color: var(--red); font-weight: 700; }
.stars { color: var(--amber); letter-spacing: 1px; font-size: 14px; }
.stars-count { color: var(--muted); font-size: 13px; }
.card-rating { font-size: 13px; }

/* ====== المميزات ====== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow);
}
.feature .icon { font-size: 28px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--muted); }

.cta-band {
  background: linear-gradient(100deg, var(--dark), var(--dark2));
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '🔧';
  position: absolute;
  font-size: 160px;
  opacity: 0.07;
  inset-inline-end: -20px;
  top: -30px;
  transform: rotate(-15deg);
}
.cta-band h2 { font-size: 24px; }
.cta-band p { color: #cdd5df; }

/* ====== صفحة المتجر ====== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 120px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
}
.filters h3 { font-size: 17px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-size: 14px; }
.shop-toolbar select { width: auto; }

/* ====== صفحة المنتج ====== */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-img-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-img-box .card-img, .product-img-box .img-placeholder { aspect-ratio: 1/1; }
.product-img-box .img-placeholder span { font-size: 110px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 74px; height: 74px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: 0.15s;
  background: #fff;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); }
.product-info h1 { font-size: 28px; margin: 8px 0; }
.product-info .price { font-size: 30px; }
.meta-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.meta-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.meta-table td:first-child { color: var(--muted); width: 150px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.qty-row input { width: 90px; text-align: center; }
.model-chip {
  display: inline-block;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  margin: 2px;
}

/* ====== المراجعات ====== */
.review-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-head b { font-size: 15px; }
.review-date { color: var(--muted); font-size: 12px; }
.verified-badge { background: #ecfdf3; color: #067647; font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.review-item p { font-size: 14px; color: var(--muted); }
.star-input { display: flex; gap: 4px; font-size: 30px; cursor: pointer; direction: ltr; justify-content: center; }
.star-input span { color: var(--line); transition: 0.15s; }
.star-input span.lit { color: var(--amber); }
.rating-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rating-summary .big { font-size: 44px; font-weight: 900; color: var(--amber); }

/* ====== السلة ====== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.cart-item .thumb { width: 84px; height: 66px; border-radius: 10px; overflow: hidden; }
.cart-item .thumb .img-placeholder span { font-size: 28px; }
.cart-item .thumb img, .cart-item .thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cart-item h4 { font-size: 15px; }
.cart-item .sub { color: var(--muted); font-size: 13px; }
.cart-item .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item input { width: 70px; text-align: center; padding: 6px; }
.remove-link { color: var(--red); font-size: 13px; background: none; border: none; }

.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
}
.summary .row { display: flex; justify-content: space-between; font-size: 15px; }
.summary .total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; }
.summary .total span:last-child { color: var(--accent-dark); }

.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}
.pay-option:has(input:checked) { border-color: var(--accent); background: #fff7ed; }
.pay-option input { width: auto; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .icon { font-size: 56px; display: block; margin-bottom: 12px; }

/* ====== نجاح الطلب ====== */
.success-box {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  background: var(--card);
  border: 1px solid #a6f4c5;
  border-radius: 18px;
  padding: 40px 24px;
  box-shadow: var(--shadow-lg);
}
.success-box .icon { font-size: 60px; }
.success-box h2 { margin: 12px 0; }
.order-number { font-size: 24px; font-weight: 900; color: var(--accent-dark); letter-spacing: 1px; }

/* ====== تتبع الطلب ====== */
.timeline { display: flex; justify-content: space-between; margin: 30px 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  top: 17px; right: 10%; left: 10%;
  height: 3px;
  background: var(--line);
}
.tl-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tl-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card2);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  margin: 0 auto 8px;
  font-size: 15px;
}
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.current .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.2); }
.tl-step small { color: var(--muted); font-size: 12px; }
.tl-step.done small, .tl-step.current small { color: var(--text); font-weight: 600; }

/* ====== الحساب ====== */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; background: var(--card2); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 10px; font-size: 15px; font-weight: 600; }
.auth-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.order-card .head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.status-pill { font-size: 12px; padding: 3px 12px; border-radius: 999px; font-weight: 700; }
.st-new { background: #eff4ff; color: #1d4ed8; }
.st-confirmed { background: #ecfdf3; color: #067647; }
.st-shipped { background: #fffaeb; color: #b54708; }
.st-delivered { background: #ecfdf3; color: #067647; }
.st-cancelled { background: #fef3f2; color: #b42318; }

/* ====== المساعد الذكي ====== */
.chat-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  height: 65vh;
  box-shadow: var(--shadow);
}
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 10px 16px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; }
.msg-user { background: var(--accent); color: #fff; align-self: flex-start; border-end-end-radius: 4px; }
.msg-bot { background: var(--card2); border: 1px solid var(--line); align-self: flex-end; border-end-start-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* ====== ترقيم الصفحات ====== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ====== لوحة التحكم ====== */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 600;
}
.admin-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 900; color: var(--accent-dark); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.table th { background: var(--card2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table select { width: auto; padding: 5px 10px; font-size: 13px; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(16, 24, 40, 0.55);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 16px;
}
.modal-overlay.open { display: grid; }
.modal {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.login-box { max-width: 400px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; text-align: center; box-shadow: var(--shadow-lg); }
.login-box h2 { margin-bottom: 16px; }
.login-box input { margin-bottom: 12px; }

.note {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.note a { color: var(--accent-dark); font-weight: 600; }
.code-block {
  background: var(--dark);
  color: #e4e7ec;
  border-radius: 10px;
  padding: 14px;
  font-family: monospace;
  font-size: 13px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  white-space: pre;
}

/* ====== شريط منتجات أفقي ====== */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* ====== الفوتر ====== */
.footer { background: var(--dark); color: #cdd5df; margin-top: 48px; padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer .logo { color: #fff; font-size: 22px; }
.footer p { color: #98a2b3; font-size: 14px; margin-top: 10px; max-width: 340px; }
.footer h4 { margin-bottom: 12px; font-size: 16px; color: #fff; }
.footer a, .footer span { display: block; color: #98a2b3; font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 16px; color: #667085; font-size: 13px; }
.pay-badges { margin-top: 12px; font-size: 13px; color: #98a2b3; }

.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 60;
  transition: 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ====== توست ====== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translate(50%, 20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(50%, 0); }

.spinner { text-align: center; color: var(--muted); padding: 50px; font-size: 15px; }

/* ====== لوحة التحكم: إضافات ====== */
.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 170px;
  padding-top: 20px;
}
.chart-col { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.chart-bar {
  width: 70%;
  max-width: 46px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.chart-val { font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart-col small { color: var(--muted); font-size: 11px; }

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.act-icon { font-size: 20px; }

.stock-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card2);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.stock-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--line);
  display: inline-block;
  transition: 0.15s;
}
.swatch:hover { transform: scale(1.15); }

.order-row:hover { background: var(--card2); }
tr.order-row:hover td { background: var(--card2); }

/* ====== سكيلتون التحميل ====== */
.skeleton-card { pointer-events: none; }
.sk {
  background: linear-gradient(90deg, #eceff3 25%, #f7f8fa 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px;
}
.sk-img { width: 100%; aspect-ratio: 4/3; border-radius: 0; }
.sk-line { height: 14px; margin-bottom: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ====== ظهور تدريجي ====== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ====== زرار الرجوع لفوق ====== */
.scroll-top {
  position: fixed;
  bottom: 90px;
  inset-inline-start: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  z-index: 59;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  box-shadow: var(--shadow-lg);
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent); }

/* ====== مسار التنقل ====== */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { margin: 0 6px; }

/* ====== أسئلة شائعة ====== */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--accent); transition: 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ====== جراج عربيتي + التوافق ====== */
.garage-chip { background: var(--accent); border-color: var(--accent); }
.compat { border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; margin: 6px 0; }
.compat-ok { background: #ecfdf3; color: #067647; border: 1px solid #a6f4c5; }
.compat-no { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }

/* ====== أسئلة وأجوبة ====== */
.qa-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); font-size: 14px; }
.qa-item .q { font-weight: 700; }
.qa-item .a { color: var(--muted); margin-top: 6px; padding-inline-start: 14px; border-inline-start: 3px solid var(--accent); }

/* ====== شريط الشحن المجاني ====== */
.ship-progress small { color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.progress-track { height: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 99px; transition: width 0.4s; }

/* ====== شارات الهيرو ====== */
.hero-stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: #cdd5df; }

/* ====== موبايل ====== */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .hdr-search-wrap { order: 3; max-width: 100%; flex-basis: 100%; }
  .hdr-icon small { display: none; }
  .logo-text small { display: none; }
  .logo { font-size: 22px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
