:root{
  --bg:#0b0f1a;
  --card:#12182a;
  --text:#ffffff;
  --muted:#9aa4c7;
  --green:#6CFF9A;
  --orange:#ffb86b;
  --radius:20px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

/* ================= BACKGROUND (المنوجات) ================= */
.bg{
  position:fixed;
  inset:0;
  z-index:-2;
  overflow:hidden;
}
.blob{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  filter: blur(44px);
  opacity:.45;
  animation: float 14s ease-in-out infinite;
}
.b1{
  left:-170px; top:-190px;
  background: radial-gradient(circle at 30% 30%, #6cff9a, transparent 60%);
}
.b2{
  right:-190px; top:-90px;
  background: radial-gradient(circle at 30% 30%, #ffb86b, transparent 60%);
  animation-duration: 16s;
}
.b3{
  left:35%; bottom:-290px;
  background: radial-gradient(circle at 30% 30%, #6a7dff, transparent 60%);
  animation-duration: 18s;
}
@keyframes float{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(18px,28px) scale(1.03)}
}

/* ================= TOPBAR ================= */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:16px;
  background: linear-gradient(135deg, rgba(15,21,48,.92), rgba(11,15,26,.75));
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}

/* ================= LOGO ================= */
.logoWrap{
  width:58px;
  height:58px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;

  border:1px solid rgba(255,255,255,.22);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 18px rgba(108,255,154,.25),
    0 10px 30px rgba(0,0,0,.45);

  display:flex;
  align-items:center;
  justify-content:center;
}

.logo{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:0;
  background:#fff;
  display:block;
}

.shop{
  font-weight:1000;
  letter-spacing:.2px;
}
.tag{
  font-size:12px;
  color:var(--muted);
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.pill{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:1000;
}

/* ================= CONTENT ================= */
.wrap{
  max-width:1150px;
  margin:auto;
  padding:18px 16px 70px;
}

/* ================= GRID ================= */
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap:16px;
}

/* ================= CARD + ANIMATION ================= */
@keyframes cardIn{
  from{ opacity:0; transform: translateY(14px) scale(.985); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.card{
  background: linear-gradient(180deg, rgba(18,24,42,.95), rgba(15,21,48,.82));
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 12px 35px rgba(0,0,0,.45),
    0 0 22px rgba(108,255,154,.10);

  overflow:hidden;

  opacity:0;
  transform: translateY(10px);
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: transform, opacity;
}

.card.show{
  opacity:1;
  transform:none;
  animation: cardIn .45s ease both;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 18px 45px rgba(0,0,0,.55),
    0 0 34px rgba(108,255,154,.16);
}

.cardImg{
  height:180px;
  background: rgba(255,255,255,.04);
}
.cardImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.noImg{
  height:100%;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.55);
  font-weight:900;
}

.cardBody{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cardName{
  font-weight:1000;
  font-size:18px;
}

/* ================= PRICES ================= */
.priceRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

.k{
  font-size:13px;
  font-weight:900;
  color: rgba(255,255,255,.75);
}

/* ✅ الأسعار: برتقالي + Glow برتقالي */
.v{
  font-weight:1000;
  color: var(--orange);
  text-shadow:
    0 0 6px rgba(255,184,107,.60),
    0 0 16px rgba(255,184,107,.38);
}

/* ================= EMPTY ================= */
.empty{
  display:none;
  text-align:center;
  margin-top:30px;
}
.empty.show{display:block}

/* ================= RTL ================= */
html[dir="rtl"]{direction:rtl}
html[dir="rtl"] .priceRow{flex-direction:row-reverse}

/* ================= MOBILE ================= */
@media (max-width:720px){

  .logoWrap{
    width:66px;
    height:66px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.08),
      0 0 14px rgba(108,255,154,.22),
      0 8px 22px rgba(0,0,0,.45);
  }

  .grid{
    grid-template-columns:1fr;
  }

  .cardImg{
    height:210px;
  }

  .v{
    text-shadow:
      0 0 5px rgba(255,184,107,.55),
      0 0 12px rgba(255,184,107,.30);
  }
}
