/* =========================================================
   ياقوت | YAQOUT — الثيم العام
   الألوان مأخوذة من اللوجو: أسود + ذهبي + أحمر ياقوتي
   ========================================================= */
:root {
  --bg: #060504;
  --bg-2: #0e0b08;
  --card: #120e0a;
  --line: rgba(212, 175, 55, .22);
  --gold: #d4af37;
  --gold-2: #f6dc8c;
  --gold-3: #a8791f;
  --ruby: #c3122f;
  --ruby-2: #ff3b5c;
  --ruby-3: #7a0a1c;
  --text: #f3ead7;
  --muted: #b5a88a;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  --grad-gold: linear-gradient(135deg, #8a6418 0%, #f6dc8c 30%, #d4af37 50%, #fff2c4 65%, #a8791f 100%);
  --grad-lux: linear-gradient(90deg, #d4af37, #f6dc8c, #c3122f, #ff3b5c, #f6dc8c, #d4af37);
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-ar-display: "Amiri", "Tajawal", serif;
  --font-en: "Montserrat", system-ui, sans-serif;
  --font-en-display: "Cinzel", Georgia, serif;
  --header-h: 74px;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* خلفية متحركة: بقع ذهبي وأحمر بتتحرك ببطء وتمتزج مع بعض */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(212, 175, 55, .16), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, rgba(195, 18, 47, .16), transparent 70%),
    radial-gradient(30% 30% at 60% 15%, rgba(195, 18, 47, .08), transparent 70%),
    radial-gradient(30% 30% at 25% 85%, rgba(212, 175, 55, .10), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
body::after {
  /* حبيبات خفيفة تدي إحساس فخامة */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1.02); }
}

.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }

/* ---------- نصوص ذهبي/أحمر متحركة ---------- */
.lux-text {
  background: var(--grad-lux);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: luxflow 8s linear infinite;
}
.gold-text {
  background: var(--grad-gold);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: luxflow 6s ease-in-out infinite alternate;
}
@keyframes luxflow { to { background-position: 300% 0; } }

.display {
  font-family: var(--font-ar-display);
  font-weight: 700;
  line-height: 1.25;
}
html[lang="en"] .display { font-family: var(--font-en-display); letter-spacing: .02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::after { transform: scaleX(-1); }

.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section-head { text-align: center; margin-block-end: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .4rem 0 .6rem; }
.section-head p { color: var(--muted); max-width: 620px; margin-inline: auto; }

/* فاصل زخرفي بماسة في النص */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 1rem auto 0; color: var(--gold);
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: min(120px, 25vw);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider i {
  width: 10px; height: 10px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--ruby-2), var(--ruby-3));
  box-shadow: 0 0 12px var(--ruby);
  animation: pulseRuby 2.4s ease-in-out infinite;
}
@keyframes pulseRuby {
  0%, 100% { box-shadow: 0 0 8px var(--ruby); }
  50% { box-shadow: 0 0 22px var(--ruby-2), 0 0 40px rgba(212, 175, 55, .4); }
}

/* ---------- الأزرار ---------- */
.btn {
  --b: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--b);
  background: transparent;
  color: var(--gold-2);
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s, box-shadow .3s, color .3s;
}
.btn::after {
  /* لمعة بتعدّي على الزرار */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s;
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .6); }
.btn:hover::after { transform: translateX(120%); }
.btn-gold {
  background: var(--grad-gold);
  background-size: 200% 100%;
  color: #1a1206;
  border-color: transparent;
  animation: luxflow 6s ease-in-out infinite alternate;
}
.btn-ruby {
  background: linear-gradient(135deg, var(--ruby-3), var(--ruby), var(--ruby-2));
  color: #fff;
  border-color: transparent;
}
.btn-ruby:hover { box-shadow: 0 10px 30px -10px rgba(255, 59, 92, .7); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .3s, background .3s;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(212, 175, 55, .08); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 5, 4, .82);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(212, 175, 55, .25);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--font-ar-display); font-size: 1.4rem; }
.brand-name small { font-family: var(--font-en-display); font-size: .7rem; letter-spacing: .35em; color: var(--gold); }
.main-nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.main-nav a { position: relative; color: var(--muted); font-weight: 500; transition: color .3s; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px;
  background: var(--grad-lux); background-size: 300% 100%;
  transform: scaleX(0); transition: transform .35s; animation: luxflow 6s linear infinite;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-2); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.main-nav + .header-actions { margin-inline-start: 1rem; }
.lang-btn { font-weight: 700; font-size: .85rem; width: auto; padding-inline: .9rem; border-radius: 999px; }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  border-radius: 999px; background: var(--ruby); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.5, 1.8, .5, 1);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .5s; }
@keyframes bump { 50% { transform: scale(1.5); } }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 5, 4, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.5rem;
    transform: translateY(-120%); transition: transform .4s;
    margin: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(212, 175, 55, .08); }
  .main-nav a::after { display: none; }
  .header-actions { margin-inline-start: auto; }
  .brand-name small { display: none; }
}

/* ---------- الهيرو ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}
#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo-wrap {
  position: relative;
  width: min(340px, 72vw);
  margin: 0 auto 1.5rem;
  aspect-ratio: 1;
}
.hero-logo-wrap::before {
  /* حلقة ذهبي/أحمر بتلف حوالين اللوجو */
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from var(--angle), var(--gold), var(--ruby), var(--gold-2), var(--ruby-2), var(--gold));
  animation: spin 6s linear infinite;
  filter: blur(1px);
}
.hero-logo-wrap::after {
  content: "";
  position: absolute; inset: -40px; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 18, 47, .35), rgba(212, 175, 55, .15) 45%, transparent 70%);
  animation: glowSwap 5s ease-in-out infinite alternate;
}
.hero-logo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #000;
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { --angle: 360deg; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes glowSwap {
  0% { filter: hue-rotate(0deg); opacity: .8; transform: scale(.95); }
  100% { filter: hue-rotate(-25deg); opacity: 1; transform: scale(1.08); }
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); margin: .5rem 0; }
.hero p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 1.5rem; inset-inline: 0; margin: auto;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; z-index: 1;
}
.scroll-hint::after {
  content: ""; position: absolute; top: 8px; inset-inline: 0; margin: auto;
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- كروت الأقسام ---------- */
.cat-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem;
  background: var(--card);
}
.cat-card::before {
  /* إطار متحرك ذهبي/أحمر */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--gold) 72%, var(--ruby-2) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
  opacity: .5; transition: opacity .4s;
}
.cat-card:hover::before { opacity: 1; }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 5, 4, .95) 5%, rgba(6, 5, 4, .35) 50%, transparent 80%);
}
.cat-card:hover img { transform: scale(1.08) rotate(-1deg); filter: saturate(1.2) brightness(1.1); }
.cat-card h3 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cat-card span { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.cat-card span svg { width: 16px; height: 16px; transition: transform .3s; }
.cat-card:hover span svg { transform: translateX(-5px); }
html[dir="ltr"] .cat-card span svg { transform: scaleX(-1); }
html[dir="ltr"] .cat-card:hover span svg { transform: scaleX(-1) translateX(-5px); }

/* ---------- كروت المنتجات ---------- */
.product-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }
.product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, .6);
  box-shadow: 0 25px 50px -25px rgba(195, 18, 47, .55), 0 0 0 1px rgba(212, 175, 55, .2);
}
.product-media {
  position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #241a10, #0a0806 75%);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .25) 50%, transparent 65%);
  transform: translateX(-100%);
}
.product-card:hover .product-media::after { transform: translateX(100%); transition: transform 1s; }
.badge {
  position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 1;
  padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(6, 5, 4, .75); border: 1px solid var(--line); color: var(--gold-2);
  backdrop-filter: blur(6px);
}
.product-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.product-meta { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.price { font-weight: 800; font-size: 1.1rem; margin-block-start: auto; }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.add-btn {
  margin-top: .6rem;
  padding: .65rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(212, 175, 55, .06);
  color: var(--gold-2); font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background .3s, color .3s, border-color .3s;
}
.add-btn svg { width: 18px; height: 18px; }
.add-btn:hover { background: var(--grad-gold); color: #1a1206; border-color: transparent; }
.add-btn.added { background: linear-gradient(135deg, var(--ruby-3), var(--ruby)); color: #fff; border-color: transparent; }
@media (max-width: 600px) {
  .product-body { padding: .7rem; }
  .product-body h3 { font-size: .9rem; }
  .product-meta { font-size: .74rem; }
  .add-btn { font-size: .85rem; padding: .55rem; }
}

/* ---------- صفحة المتجر: الفلاتر ---------- */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .4rem 0; }
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.filters {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: rgba(18, 14, 10, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  backdrop-filter: blur(10px);
}
.filters h4 { margin: 0 0 .7rem; color: var(--gold); font-size: .95rem; }
.filter-group + .filter-group { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(212, 175, 55, .1); }
.field {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
select.field option { background: var(--bg-2); }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: .88rem;
  transition: all .3s;
}
.chip:hover { color: var(--gold-2); border-color: var(--gold); }
.chip.active {
  background: var(--grad-gold); color: #1a1206; border-color: transparent; font-weight: 700;
}
.cat-tabs {
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .45rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--muted); transition: all .3s;
}
html[dir="rtl"] .cat-tab { padding: .45rem .45rem .45rem 1rem; }
.cat-tab img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.cat-tab.active, .cat-tab:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(212, 175, 55, .08); }
.cat-tab.active { box-shadow: 0 0 20px -6px var(--gold); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); }
.shop-toolbar .field { width: auto; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .filter-toggle { display: inline-flex; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
}
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); grid-column: 1 / -1; }
.empty-state svg { width: 60px; height: 60px; color: var(--gold); opacity: .6; margin: 0 auto 1rem; }

/* ---------- مميزات ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature {
  text-align: center; padding: 1.8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212, 175, 55, .05), transparent);
  transition: transform .4s, border-color .4s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--ruby); }
.feature .ico {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 59, 92, .35), rgba(212, 175, 55, .12));
  border: 1px solid var(--line); color: var(--gold-2);
}
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- الفروع ---------- */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .branches { grid-template-columns: 1fr; } }
.branch {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  display: flex; flex-direction: column;
}
.branch-map { aspect-ratio: 16 / 10; background: #0b0907; position: relative; }
.branch-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }
.branch-map .map-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle, rgba(212, 175, 55, .1), transparent 70%);
}
.branch-map .map-ph svg { width: 54px; height: 54px; animation: float 3s ease-in-out infinite; }
.branch-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.branch-body h3 { margin: 0; font-size: 1.25rem; }
.branch-body p { margin: 0; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; font-size: .93rem; }
.branch-body p svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--gold); }
.branch-actions { display: flex; gap: .6rem; margin-top: auto; padding-top: .8rem; }
.branch-actions .btn { flex: 1; padding: .65rem 1rem; font-size: .9rem; }

/* ---------- عن ياقوت / CTA ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-art {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  max-width: 440px; margin-inline: auto; width: 100%;
}
.about-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-art::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, .4);
  animation: spin 40s linear infinite;
}
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 1rem; }
.about-text p { color: var(--muted); }

.cta-band {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(195, 18, 47, .45), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(212, 175, 55, .35), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .6rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.6rem; }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; margin-top: 4rem; background: rgba(0, 0, 0, .35); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer li a { color: var(--muted); transition: color .3s; }
.site-footer li a:hover { color: var(--gold-2); }
.site-footer p { color: var(--muted); margin: .8rem 0 0; font-size: .92rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.copy { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(212, 175, 55, .1); }

/* ---------- سلة المشتريات ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 100;
  width: min(430px, 100%);
  background: linear-gradient(180deg, #120d09, #070504);
  border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
html[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.open, html[dir="rtl"] .drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer-foot { padding: 1.2rem 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid rgba(212, 175, 55, .1); align-items: center; animation: slideIn .4s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } }
.cart-item img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.cart-item h4 { margin: 0 0 .2rem; font-size: .95rem; }
.cart-item .meta { color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: .4rem; }
.qty button { width: 30px; height: 30px; background: none; border: 0; color: var(--gold-2); font-size: 1.1rem; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.remove-btn { background: none; border: 0; color: var(--muted); padding: .3rem; }
.remove-btn:hover { color: var(--ruby-2); }
.remove-btn svg { width: 18px; height: 18px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; }
.cart-note { color: var(--muted); font-size: .8rem; margin: 0; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--gold); opacity: .5; }

/* ---------- المودال (عرض منتج + إتمام الطلب) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  width: min(880px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #15100b, #080605);
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 40px 80px -30px rgba(195, 18, 47, .5);
  transform: translateY(30px) scale(.97); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.modal.show .modal-box { transform: none; }
.modal-box.sm { width: min(520px, 100%); padding: 1.6rem; }
.modal-close { position: absolute; top: .9rem; inset-inline-end: .9rem; z-index: 2; background: rgba(6, 5, 4, .7); }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .qv { grid-template-columns: 1fr; } }
.qv-media { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #241a10, #0a0806 75%); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.qv-body h2 { margin: 0; font-size: 1.7rem; }
.qv-body .desc { color: var(--muted); margin: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .4rem 0; }
.specs div { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; }
.specs small { display: block; color: var(--muted); font-size: .75rem; }
.specs b { color: var(--gold-2); }
.form-grid { display: grid; gap: .9rem; margin-top: 1rem; }
.form-grid label { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.radio-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.radio-row label { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.radio-row input { accent-color: var(--gold); }
.radio-row label:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, .08); }

/* ---------- واتساب عائم + توست ---------- */
.wa-float {
  position: fixed; bottom: 1.3rem; inset-inline-start: 1.3rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: ripple 2s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
@keyframes ripple { to { transform: scale(1.7); opacity: 0; } }
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 120;
  transform: translate(-50%, 150%);
  padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--grad-gold); color: #1a1206; font-weight: 700;
  box-shadow: 0 15px 40px -10px rgba(212, 175, 55, .6);
  transition: transform .45s cubic-bezier(.5, 1.6, .5, 1);
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- ظهور العناصر مع السكرول ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* شاشة البداية */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: grid; place-items: center;
  transition: opacity .8s, visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader img { width: 140px; border-radius: 50%; animation: preload 1.4s ease-in-out infinite alternate; }
@keyframes preload {
  from { filter: drop-shadow(0 0 10px rgba(212, 175, 55, .6)); transform: scale(.95); }
  to { filter: drop-shadow(0 0 30px rgba(255, 59, 92, .8)); transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
