/* ==========================================================================
   متغيرات الهوية البصرية — غيّر القيم هنا لتطبيق شعار وألوان مطبعتك الفعلية
   ========================================================================== */
:root {
  --brand-primary: #1e3a8a;      /* اللون الأساسي (كحلي) */
  --brand-primary-dark: #152a63;
  --brand-accent: #f59e0b;       /* لون التمييز (برتقالي/ذهبي) */
  --brand-accent-dark: #d97706;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2430;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 25, 40, 0.06);
  --shadow-lg: 0 12px 30px rgba(20, 25, 40, 0.12);
  --font: 'Cairo', 'Tahoma', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: inherit;
  text-align: start;
  line-height: 1.7;
}

.lang-switch {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-inline-start: 8px;
}
.lang-switch:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-primary);
  white-space: nowrap;
}
.brand .logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--brand-primary);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: #1f2430;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}
.cart-count {
  background: var(--brand-primary-dark);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0 6px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: flex; flex-direction: column; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); }
.btn-accent { background: var(--brand-accent); color: #1f2430; }
.btn-accent:hover { background: var(--brand-accent-dark); }
.btn-outline { background: transparent; border: 2px solid var(--brand-primary); color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 16px; line-height: 1.35; }
.hero p { font-size: 1.1rem; opacity: .92; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  font-size: 6rem;
  backdrop-filter: blur(4px);
}
@media (max-width: 800px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}

/* ===== سلايدر 3D للمنتجات (الصفحة الرئيسية) ===== */
.hero-slider-wrap { width: 100%; min-width: 0; overflow: hidden; }
.hero-swiper {
  width: 100%;
  min-width: 0;
  padding: 26px 4px 46px;
}
.hero-swiper .swiper-slide {
  width: 190px;
  height: 250px;
}
.hero-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(0,0,0,.35);
  color: var(--text);
}
.hero-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  overflow: hidden;
}
.hero-product-img img { width: 100%; height: 100%; object-fit: contain; }
.hero-product-info { padding: 12px 14px; text-align: center; }
.hero-product-info h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-product-price { font-weight: 800; color: var(--brand-primary); }
.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--brand-accent); }
@media (max-width: 800px) {
  .hero-swiper .swiper-slide { width: 170px; height: 240px; }
  .hero-product-img { font-size: 2.6rem; }
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}
.section-alt { background: var(--surface); }

/* ===== Feature cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { font-size: 2.4rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ===== Product card ===== */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-body h3 { margin: 0; font-size: 1.05rem; }
.product-desc { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.badge {
  display: inline-block;
  background: var(--brand-accent);
  color: #1f2430;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.price-row { display: flex; align-items: center; gap: 10px; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--brand-primary); }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }
.product-footer { padding: 0 18px 18px; }

.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
}
.filter-chip.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--brand-primary); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== Payment options ===== */
.payment-options { display: grid; gap: 12px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
}
.payment-option:has(input:checked) { border-color: var(--brand-primary); background: #eef2ff; }
.payment-option input { accent-color: var(--brand-primary); width: 18px; height: 18px; }
.payment-option .icon { font-size: 1.6rem; }
.payment-option .info strong { display: block; }
.payment-option .info span { font-size: 0.82rem; color: var(--text-muted); }
.payment-option-disabled { opacity: .55; cursor: not-allowed; }
.payment-option-disabled:hover { transform: none; }
.payment-option .soon-badge {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  background: var(--brand-accent);
  color: #1f2430;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ===== Cart ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .thumb {
  width: 64px; height: 64px;
  background: #eef2ff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.cart-item .info { flex: 1; }
.cart-item .info h4 { margin: 0 0 4px; font-size: 1rem; }
.cart-item .info small { color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 700;
}
.remove-link { color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.summary-row.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; }

/* ===== Job / Portfolio card ===== */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.job-card h3 { margin: 0 0 6px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.job-meta span { background: var(--bg); padding: 4px 10px; border-radius: 999px; }

/* ===== Footer ===== */
.site-footer { background: #10162b; color: #cbd5e1; padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--brand-accent); }
.footer-bottom {
  text-align: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.small-note { font-size: 0.8rem; color: var(--text-muted); }

.breadcrumb { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.breadcrumb a { color: var(--brand-primary); font-weight: 600; }

.stats-strip { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; padding: 30px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.8rem; color: var(--brand-primary); }
.stat-item span { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Special Offers (homepage) ===== */
.offers-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff7ec 0%, var(--bg) 100%);
  overflow: hidden;
}
.offers-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.offers-head-text h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.offers-head-text p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.offers-nav { display: flex; gap: 8px; }
.offers-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 1.1rem; box-shadow: var(--shadow);
  transition: background .15s, color .15s;
}
.offers-nav button:hover { background: var(--brand-primary); color: #fff; }

.offers-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) transparent;
}
.offers-track::-webkit-scrollbar { height: 8px; }
.offers-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.offer-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 270px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 20px 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.offer-icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.offer-price-bubble {
  position: absolute;
  top: -18px;
  left: -14px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  color: #1f2430;
  border-radius: 50%;
  width: 78px; height: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
  transform: rotate(-8deg);
  border: 3px solid var(--surface);
}
.offer-price-bubble small { font-size: 0.58rem; font-weight: 700; }
.offer-price-bubble strong { font-size: 1.15rem; }
.offer-price-bubble span { font-size: 0.6rem; }

.offer-limited-tag {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  animation: offerPulse 1.6s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes offerPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: .75; transform: translateX(-50%) scale(1.05); }
}

.offer-card h3 { margin: 6px 0 10px; font-size: 1.05rem; min-height: 2.6em; }
.offer-features { margin: 0 0 16px; }
.offer-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 6px;
}
.offer-features li::before { content: '✔'; color: var(--success); font-weight: 800; flex-shrink: 0; }
.offer-old-price { display: block; text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin: -4px 0 10px; }

@media (max-width: 640px) {
  .offer-card { flex-basis: 240px; }
  .offers-nav { display: none; }
}
