:root {
  --bg-dark: #0d0908;
  --bg-panel: #17110f;
  --burgundy: #3a0f14;
  --gold: #cba135;
  --gold-light: #e8d9b0;
  --text-light: #f3ede2;
  --text-muted: #b9ada0;
  --border: rgba(203, 161, 53, 0.25);
  --radius: 10px;
  --font-ar: 'Cairo', 'Tahoma', sans-serif;
  --font-en: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-en);
  line-height: 1.7;
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}
body.lang-en {
  direction: ltr;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 46px; width: auto; }
.brand span {
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold-light);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-link {
  position: relative;
  font-size: 22px;
}
.cart-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -10px;
  background: var(--gold);
  color: #201205;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gold-light);
}
.lang-switch:hover { border-color: var(--gold); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,6,6,.55) 0%, rgba(10,6,6,.75) 55%, rgba(10,6,6,.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 20px;
}
.hero-content img.hero-logo {
  height: 90px;
  margin: 0 auto 22px;
}
.hero-content h1 {
  font-size: 44px;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin: 0 0 14px;
}
.hero-content p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 30px;
  letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 2px;
  transition: all .25s;
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--gold); color: #201205; }
.btn-solid {
  background: var(--gold);
  color: #201205;
  border-color: var(--gold);
}
.btn-solid:hover { background: #b8912c; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-outline-danger { border-color: #a33; color: #e4a; }

/* ---------- Section titles ---------- */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin: 0 0 8px;
}
.section-title .rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 14px auto 0;
  opacity: .6;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.product-thumb {
  aspect-ratio: 1/1;
  background: #0a0706;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(203,161,53,.92);
  color: #201205;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}
.badge-discount {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(178,34,34,.92);
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.price-compare {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
  text-decoration-thickness: 1.5px;
  display: inline-block;
  font-size: 13px;
  margin-inline-end: 8px;
}
.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--text-light);
}
.product-info .price {
  color: var(--gold);
  font-size: 16px;
  margin: 6px 0 16px;
}
.product-info .stock-note { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-actions { margin-top: auto; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; text-align: center; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0706;
}
.product-detail h1 { font-size: 30px; color: var(--gold-light); margin: 0 0 10px; letter-spacing: 1px; }
.product-detail .price { font-size: 24px; color: var(--gold); margin: 12px 0 20px; }
.product-detail .desc { color: var(--text-muted); margin-bottom: 30px; white-space: pre-line; }
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  margin-inline-end: 14px;
}
.qty-selector button {
  background: none; border: none; color: var(--gold-light);
  width: 40px; height: 42px; font-size: 18px; cursor: pointer;
}
.qty-selector input {
  width: 46px; text-align: center; background: none; border: none;
  color: var(--text-light); font-size: 15px;
}

/* ---------- Cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td {
  padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: start; font-size: 14px;
}
.cart-table th { color: var(--gold-light); font-weight: normal; letter-spacing: 1px; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-qty-input {
  width: 60px; padding: 6px; background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-light); border-radius: 6px; text-align: center;
}
.cart-summary {
  max-width: 420px; margin-inline-start: auto;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); }
.cart-summary .row.total { color: var(--gold-light); font-size: 18px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; background: #0a0706; border: 1px solid var(--border);
  color: var(--text-light); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 50px; margin-bottom: 20px; opacity: .5; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080504;
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: var(--gold-light); font-size: 14px; letter-spacing: 2px; margin: 0 0 16px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 14px; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 14px; margin-top: 10px; }
.social-icons a {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.social-icons a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  text-align: center; font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 20px;
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  z-index: 60;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 73px; inset-inline-start: 0; width: 100%; background: var(--bg-dark);
    flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-content h1 { font-size: 30px; }
  .cart-summary { margin-inline-start: 0; max-width: 100%; }
}
