:root {
  --navy: #0B2545;
  --navy-2: #122d54;
  --navy-deep: #081a30;
  --gold: #D4AF37;
  --gold-soft: #e6c866;
  --maroon: #C00000;
  --bg: #ffffff;
  --bg-soft: #F8F9FA;
  --ink: #0B2545;
  --ink-soft: #5b677e;
  --line: #e4e7ee;
}

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

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Amiri', serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.topbar {
  background: var(--navy-deep);
  color: #cfd8e8;
  font-size: 13.5px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
}
.telegram-icon { font-size: 30px; }
.topbar a { color: #e9edf5; opacity: .92; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .dot { color: var(--gold); }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 28px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text .en {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 4px;
}
.logo-text .ar {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

nav.main { display: flex; gap: 30px; font-size: 15.5px; font-weight: 500; }
nav.main a { position: relative; padding: 4px 0; }
nav.main a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
nav.main a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 16px; }
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px 30px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: #a30000; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.cart-btn {
  position: relative;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
}
.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 32px;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 8px 0; border-bottom: 1px solid var(--line); }

.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
}
.hero-eyebrow {
  color: var(--maroon);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow .bar { width: 34px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: 44px; line-height: 1.35; color: var(--navy); margin-bottom: 18px; }
.hero p.slogan { font-size: 20px; color: var(--ink-soft); margin-bottom: 34px; max-width: 480px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 42px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-trust div { font-size: 13.5px; color: var(--ink-soft); }
.hero-trust strong { display: block; font-family: 'Amiri', serif; font-size: 24px; color: var(--navy); }
.hero-art { position: relative; height: 440px; }
.wing-arc { position: absolute; inset: 0; }
.device-panel {
  position: absolute;
  inset: 38px 18px 18px 60px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-deep) 100%);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(11,37,69,.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-panel .placeholder {
  border-radius: 10px;
  margin: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section { padding: 88px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head .kicker { color: var(--maroon); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}
.cat-badge {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  display: block;
}
.cat-badge:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 30px -18px rgba(11,37,69,.25);
}
.cat-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1.4px solid var(--gold);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-badge span { font-size: 13px; font-weight: 600; color: var(--navy); }

.bs-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.bs-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .2s;
}
.bs-card:hover { box-shadow: 0 12px 28px -10px rgba(11,37,69,.2); }
.bs-media {
  height: 180px;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.bs-media img { width: 100%; height: 100%; object-fit: contain; }
.bs-body { padding: 16px 18px 20px; }
.bs-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 20px; }
.tag-gold { background: rgba(212,175,55,.15); color: #8a6d17; }
.tag-maroon { background: rgba(192,0,0,.1); color: var(--maroon); }
.bs-body h3 { font-size: 16px; font-family: 'IBM Plex Sans Arabic'; font-weight: 600; margin-bottom: 4px; }
.bs-body .cat { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.bs-desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.6; }
.bs-desc-more { display: none; }
.bs-desc-toggle {
  background: none;
  border: none;
  color: var(--maroon);
  font-size: 12.5px;
  cursor: pointer;
  font-family: 'IBM Plex Sans Arabic';
  padding: 0;
}
.bs-price { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 8px; }
.bs-price .price-before {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}
.bs-price .price-current { color: var(--maroon); font-size: 16px; }

.ai-section {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e9edf5;
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute;
  left: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 1.5px solid rgba(212,175,55,.25);
  border-radius: 50%;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-grid .section-head h2 { color: #fff; }
.ai-grid .section-head p { color: #c3cee3; }
.ai-grid .kicker { color: var(--gold-soft); }
.chat-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  height: 380px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 4px; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.6; }
.bubble.user { background: rgba(255,255,255,.12); border-top-left-radius: 2px; color: #fff; align-self: flex-end; }
.bubble.bot { background: var(--gold); color: var(--navy-deep); font-weight: 600; border-top-right-radius: 2px; align-self: flex-start; }
.bubble.typing { background: rgba(255,255,255,.08); color: #c3cee3; font-style: italic; align-self: flex-start; }
.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(212,175,55,.2);
}
.chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: none;
  padding: 14px 18px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
}
.chat-input-row input::placeholder { color: rgba(255,255,255,.4); }
.chat-input-row button {
  background: var(--gold);
  border: none;
  padding: 14px 20px;
  color: var(--navy-deep);
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}
.chat-input-row button:hover { background: var(--gold-soft); }
.chat-input-row button:disabled { opacity: .5; cursor: not-allowed; }

.fb-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.fb-panel {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 40px;
  border-top: 3px solid var(--gold);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-soft); font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'IBM Plex Sans Arabic';
  font-size: 14.5px;
  background: #fff;
}
.stars { color: var(--gold); font-size: 20px; letter-spacing: 4px; margin-bottom: 18px; }

footer { background: var(--navy-deep); color: #c3cee3; padding-top: 64px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.foot-grid h4 { color: #fff; font-family: 'IBM Plex Sans Arabic'; font-size: 15px; margin-bottom: 18px; }
.foot-grid li { margin-bottom: 10px; font-size: 14px; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-logo { font-family: 'Amiri', serif; font-size: 24px; color: #fff; margin-bottom: 12px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 32px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 6px;
}
.foot-credit {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-credit:hover { color: #fff; }

.wa-float {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1ea952;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(30,169,82,.6);
  color: #fff;
}
.wa-float i { font-size: 28px; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: left .3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.cart-drawer.open { left: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 { font-size: 18px; color: var(--navy); }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--maroon); font-weight: 600; }
.cart-item-qty { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.cart-item-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 16px; padding: 4px; }
.cart-item-remove:hover { color: var(--maroon); }
.cart-footer { padding: 16px 24px; border-top: 1px solid var(--line); }
.cart-total { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.cart-total-val { color: var(--maroon); }

.cart-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
}
.cart-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .search-pill { display: none; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  nav.main { display: none; }
  .hamburger { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 32px; }
  .hero p.slogan { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ai-grid { grid-template-columns: 1fr; gap: 32px; }
  .fb-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .header-tools .btn { display: none; }
  .topbar-right { gap: 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .bs-strip { gap: 14px; }
  .bs-card { flex: 0 0 220px; }
  .fb-panel { padding: 24px; }
  .topbar .wrap { justify-content: center; }
}
