/* ============ أحجار 777 — الثيم الذهبي الداكن ============ */

:root {
  --bg: #100e0c;
  --bg-2: #181512;
  --bg-3: #211d18;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --gold-dark: #8a6d1d;
  --text: #f0e9db;
  --text-dim: #b3a88f;
  --red: #c0392b;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", sans-serif;
  background: radial-gradient(ellipse at 50% -10%, var(--bg-3), var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, .brand-name { font-family: "Amiri", "Tajawal", serif; }

/* النسخة الإنجليزية: خطوط لاتينية تناسب طابع المجوهرات */
html[lang="en"] body { font-family: "Jost", "Tajawal", sans-serif; }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .brand-name,
html[lang="en"] .cat-card-title { font-family: "Cormorant Garamond", "Amiri", serif; letter-spacing: 0.02em; }
html[lang="en"] .brand-name { font-size: 1.45rem; }
html[lang="en"] .topbar { letter-spacing: 0.01em; }

a { color: var(--gold-light); text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #1a1206;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-sep { opacity: 0.5; }

/* ---------- الهيدر ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: rgba(16, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--gold-light); font-size: 1.3rem; font-weight: 700; }
.brand-tagline { color: var(--text-dim); font-size: 0.75rem; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  transition: 0.25s;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--gold-light); border-color: rgba(201, 162, 39, 0.5); }
.nav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.14);
}

.wa-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: #06280f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: 0.25s;
  white-space: nowrap;
}
.wa-header-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- زر تبديل اللغة واختيار العملة ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cur-select select {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.25s;
}
.cur-select select:hover,
.cur-select select:focus-visible { border-color: var(--gold); outline: none; }
.cur-select option { background: var(--bg-2); color: var(--text); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.25s;
}
.lang-btn:hover,
.lang-btn:focus-visible {
  color: #1a1206;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border-color: transparent;
}

/* ---------- الشاشة الافتتاحية: سلايدر ---------- */
.hero {
  position: relative;
  min-height: min(70vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 70px 20px 90px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* تأثير التكبير السينمائي (Ken Burns) للصور */
.hero-slide.active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(16, 14, 12, 0.82) 0%, rgba(16, 14, 12, 0.5) 45%, rgba(16, 14, 12, 0.9) 92%),
    linear-gradient(180deg, rgba(16, 14, 12, 0.6), transparent 32%, transparent 58%, rgba(16, 14, 12, 0.92));
}
/* بدون z-index حتى لا يُعزل الشعار عن الخلفية ويبقى الدمج (screen) فعالاً */
.hero-content { position: relative; max-width: 680px; }
.hero-logo {
  width: min(230px, 54vw);
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.85));
}
/* الشعار نفسه يحمل اسم المحل بالعربي، فيبقى العنوان للقارئات الصوتية ومحركات البحث
   فقط — إلا إذا كتب صاحب المحل عنواناً للشريحة فيظهر مكانه */
html[lang="ar"] .hero-title.hero-title-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-title {
  color: var(--gold-light);
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}
.hero-sub {
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0 auto 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-title, .hero-sub { transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-text-out { opacity: 0; transform: translateY(14px); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(16, 14, 12, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s;
}
.hero-arrow:hover { background: var(--gold); color: #1a1206; }
.hero-arrow.prev { inset-inline-start: 18px; }
.hero-arrow.next { inset-inline-end: 18px; }

.hero-dots {
  position: absolute;
  bottom: 64px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}
.hero-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}
.hero-dots .dot.active { background: var(--gold); box-shadow: 0 0 10px rgba(201, 162, 39, 0.8); width: 26px; border-radius: 999px; }

/* سهم النزول المتحرك */
.hero-scroll {
  position: absolute;
  bottom: 16px;
  inset-inline: 0;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  z-index: 3;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  display: block;
  width: 14px;
  height: 14px;
  /* حدود فيزيائية لا منطقية: السهم يشير للأسفل في العربي والإنجليزي معاً */
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
  animation: scrollbounce 1.8s infinite;
}
@keyframes scrollbounce {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(-45deg) translate(-7px, 7px); opacity: 1; }
}
.btn-gold {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #1a1206;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 13px 38px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.35);
  transition: 0.25s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5); }

/* ---------- الأقسام ---------- */
.section { padding: 55px 24px 30px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-note { color: var(--text-dim); font-size: 0.92rem; margin-top: 8px; }
.section-title {
  color: var(--gold-light);
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-title::before, .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* تبويبا متوفر / مباع */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 10px;
}
.tab {
  background: var(--bg-3);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}
.tab:hover { border-color: var(--gold); }
.tab.active {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #1a1206;
  border-color: var(--gold);
}
.tab .count {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-inline-start: 4px;
}

/* فلاتر الأنواع الفرعية */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}
.filter-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.filter-btn.active { color: var(--gold-light); border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }

/* ---------- بطاقات الأقسام في الرئيسية ---------- */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--text);
  transition: 0.35s;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(201, 162, 39, 0.18);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.15) 20%, rgba(16, 14, 12, 0.92) 88%);
}
.cat-card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.cat-card-title { font-family: "Amiri", serif; font-size: 1.5rem; color: var(--gold-light); }
.cat-card-sub { font-size: 0.82rem; color: var(--text-dim); }
.cat-card-count { font-size: 0.78rem; color: var(--text); opacity: 0.85; }
.cat-card-cta {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  padding: 8px 0;
  border-radius: 999px;
}

/* ---------- لافتة صفحة القسم ---------- */
.cat-banner {
  position: relative;
  padding: 46px 24px 34px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.16), transparent 62%);
}
.cat-banner-title { color: var(--gold-light); font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 6px; }
.cat-banner-sub { color: var(--text-dim); }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 10px; }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

/* شبكة المنتجات */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
}

.card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 162, 39, 0.15);
}
/* مربّع مع contain: القطعة تظهر كاملة بلا اقتطاع مهما كان اتجاه الصورة */
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #0b0a08; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: 0.4s; }
.card:hover .card-media img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}
.badge-type { background: rgba(16, 14, 12, 0.85); color: var(--gold-light); border: 1px solid rgba(201, 162, 39, 0.5); }
.badge-media {
  top: auto;
  bottom: 10px;
  background: rgba(16, 14, 12, 0.85);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
}
.badge-sold {
  inset-inline-start: auto;
  inset-inline-end: 10px;
  background: var(--red);
  color: #fff;
}
.card.sold .card-media img { filter: grayscale(0.7) brightness(0.7); }

.card-body { padding: 14px 16px 16px; }
.card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-price { color: var(--gold-light); font-weight: 800; font-size: 1.05rem; display: inline-flex; flex-direction: column; }
/* التحويل التقريبي: أصغر وأخفت حتى يبقى الدينار هو السعر المعتمد */
.card-approx { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); margin-top: 2px; }
/* السعر غير محدد: نص أصغر بلا لمعة الذهب حتى لا يُقرأ كرقم */
.card-price-ask { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); }
.modal-price .price-ask { font-size: 1.05rem; color: var(--text-dim); }
.modal-price { display: flex; flex-direction: column; gap: 2px; }
.modal-approx { font-size: 1rem; font-weight: 700; color: var(--text); opacity: 0.9; }
.modal-approx-note { font-size: 0.72rem; font-weight: 400; color: var(--text-dim); line-height: 1.6; }
.card-sold-text { color: var(--red); font-weight: 800; font-size: 0.9rem; }
.card-cta {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- نافذة المنتج ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}
.modal {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 5;
  background: rgba(16, 14, 12, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s;
}
.modal-close:hover { color: var(--gold-light); border-color: var(--gold); }

.modal-body { display: grid; grid-template-columns: 1.15fr 1fr; }
/* بدونها يتمدد العمود بعرض شريط الصور المصغّرة فيخرج المحتوى خارج النافذة */
.modal-body > * { min-width: 0; }

.gallery { position: relative; background: #0b0a08; min-width: 0; }
.gallery-main { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.gallery-main img, .gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0a08;
}
.gallery-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: rgba(16, 14, 12, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s;
  z-index: 3;
}
.gallery-arrow:hover { background: var(--gold); color: #1a1206; }
.gallery-arrow.prev { inset-inline-start: 10px; }
.gallery-arrow.next { inset-inline-end: 10px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(16, 14, 12, 0.6);
}
.gallery-thumbs .thumb {
  flex: 0 0 auto;
  width: 66px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  background: #000;
  padding: 0;
}
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb.active { border-color: var(--gold); }
.gallery-thumbs .thumb .play-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.45);
}

.modal-info { padding: 34px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.modal-type {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 4px 14px;
  border-radius: 999px;
}
.modal-info h2 { font-size: 1.7rem; color: var(--text); }
.modal-price { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); }
.modal-price .sold-tag { color: var(--red); font-size: 1.1rem; margin-inline-start: 10px; }
/* الوصف الطويل يلتف بدل أن يُقطع */
.modal-desc { color: var(--text-dim); line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }

.modal-details { list-style: none; border-top: 1px dashed rgba(201, 162, 39, 0.35); padding-top: 12px; }
.modal-details li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px dotted rgba(201, 162, 39, 0.18);
}
.modal-details li span:first-child { color: var(--text-dim); flex: 0 0 auto; }
.modal-details li span:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: start;
  overflow-wrap: anywhere;  /* القيم الطويلة تلتف داخل الصف */
}

.modal-notes {
  background: rgba(201, 162, 39, 0.08);
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #06280f;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 20px;
  border-radius: 12px;
  transition: 0.25s;
  margin-top: 4px;
}
.btn-whatsapp:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-whatsapp.disabled {
  background: #4a4438;
  color: #9a917e;
  pointer-events: none;
}

/* ---------- الفوتر ---------- */
.footer {
  margin-top: 70px;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.05));
  text-align: center;
  padding: 44px 20px 26px;
}
.footer-logo { width: 150px; margin: 0 auto 14px; filter: drop-shadow(0 0 16px rgba(201, 162, 39, 0.25)); }
.footer-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 999px;
  transition: 0.25s;
}
.footer-nav a:hover { color: var(--gold-light); border-color: var(--gold); }
/* أيقونات حسابات التواصل */
.social-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--gold-light);
  /* حلقة ذهبية متدرجة مثل بقية عناصر الموقع */
  background:
    linear-gradient(#15120d, #15120d) padding-box,
    linear-gradient(140deg, var(--gold-light), var(--gold) 45%, var(--gold-dark)) border-box;
  border: 1px solid transparent;
  transition: transform 0.3s, color 0.3s, box-shadow 0.3s;
}
.social-link svg { position: relative; z-index: 1; }
/* اللمعة الذهبية تظهر عند المرور */
.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  opacity: 0;
  transition: opacity 0.3s;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  color: #1a1206;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}
.social-link:hover::before,
.social-link:focus-visible::before { opacity: 1; }

.footer-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.footer-line { color: var(--text-dim); font-size: 0.95rem; }
.footer-line strong { color: var(--gold-light); }
.footer-copy { color: #6f6650; font-size: 0.8rem; border-top: 1px dashed rgba(201, 162, 39, 0.2); padding-top: 16px; max-width: 420px; margin: 0 auto; }

/* ---------- إيفكتات عامة ---------- */

/* الظهور التدريجي أثناء النزول بالصفحة */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
/* تأخير متدرج لبطاقات الشبكة */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* تأثير موجة الضغط (Ripple) */
.ripple-host { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 201, 106, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(3); opacity: 0; }
}

/* لمعة ذهبية تمر على الأزرار */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 34px;
  inset-inline-start: -60px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(18deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { inset-inline-start: -80px; }
  100% { inset-inline-start: calc(100% + 40px); }
}

/* تقليل الحركة لمن يفضل ذلك في إعدادات جهازه */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img, .hero-scroll span, .btn-shine::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- الجوال ---------- */
@media (max-width: 860px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-info { padding: 20px; }
  /* مربّع على الجوال: الصور الطولية تظهر أكبر بلا اقتطاع */
  .gallery-main { aspect-ratio: 1/1; }
  .header { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  /* شريط الأقسام سطر واحد قابل للسحب أفقياً */
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 7px 13px; font-size: 0.92rem; }
  .header-actions { margin-inline-start: auto; gap: 8px; }
  .lang-btn { padding: 7px 11px; font-size: 0.76rem; }
  .lang-btn svg { width: 14px; height: 14px; }
  .section { padding: 40px 14px 20px; }
  .section-title { font-size: 1.5rem; }
  .hero { padding: 36px 16px 46px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-name { font-size: 0.92rem; }
  .card-price { font-size: 0.95rem; }
  /* زر الطلب يبقى ظاهراً أسفل نافذة المنتج أثناء التمرير */
  .btn-whatsapp {
    position: sticky;
    bottom: 6px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  }
  .modal-notes { font-size: 0.8rem; }
  .hero { min-height: 62vh; padding: 44px 16px 80px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .hero-arrow.prev { inset-inline-start: 8px; }
  .hero-arrow.next { inset-inline-end: 8px; }
}
