:root{--brand:#22c55e;--brand2:#16a34a;--ink:#0e1726}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;800&display=swap');
*{scroll-behavior:smooth}
body{font-family:'Tajawal',sans-serif;background:#f7f8fb;color:var(--ink)}
.btn-brand{background:var(--brand);color:#fff;border:0}
.btn-brand:hover{background:var(--brand2);color:#fff;transform:translateY(-1px)}

/* AL AJOURI logo */
.logo-aj{display:inline-flex;align-items:center;gap:.35rem;font-weight:800;letter-spacing:1px}
.logo-aj b{color:#e11d48}
.logo-aj span{background:linear-gradient(90deg,#22c55e,#16a34a,#0ea5e9);-webkit-background-clip:text;background-clip:text;color:transparent}

/* =========================
   HERO + CATEGORIES (Improved)
   ========================= */
.hero{position:relative;border-radius:1.25rem;overflow:visible; /* مهم: يظهر شريط الأقسام */ 
      box-shadow:0 16px 40px rgba(22,163,74,.12)}
.hero .hero-bg{position:absolute;inset:0;background:
  radial-gradient(1000px 420px at 85% -10%, rgba(255,255,255,.25), transparent 60%),
  radial-gradient(900px 280px at 10% 120%, rgba(255,255,255,.18), transparent 55%),
  linear-gradient(115deg,#22c55e 0%,#16a34a 45%,#0ea360 100%)}
.hero .hero-content{position:relative;padding:3rem 2rem 6.5rem}  /* مسافة أسفل لظهور الشريط */
.hero .collage{max-height:360px;width:100%;object-fit:contain;filter:drop-shadow(0 14px 24px rgba(2,6,23,.18));animation:floatY 5.5s ease-in-out infinite}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.hero .badge-soft{background:rgba(255,255,255,.92);color:#08361f;border-radius:999px;padding:.45rem .9rem;font-weight:700;box-shadow:0 6px 16px rgba(0,0,0,.06)}
.hero-wave{position:absolute;left:0;right:0;bottom:-1px}

/* شريط الأقسام داخل البانر */
.cat-wrap{position:absolute;left:0;right:0;bottom:-20px;display:flex;justify-content:center;pointer-events:none;z-index:5}
.cat-tray{pointer-events:auto;display:flex;gap:.5rem;align-items:center;padding:.65rem .9rem;
  max-width:min(1180px,94vw);background:rgba(255,255,255,.82);
  border:1px solid rgba(226,232,240,.9);border-radius:999px;
  box-shadow:0 14px 30px rgba(2,6,23,.14), 0 2px 6px rgba(2,6,23,.06);
  backdrop-filter:saturate(140%) blur(10px);
  overflow:auto hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  position:relative}
.cat-tray::-webkit-scrollbar{height:8px}
.cat-tray::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:8px}

/* تلميح تمرير على الحواف */
.cat-tray::before,.cat-tray::after{content:"";position:absolute;top:0;bottom:0;width:42px;pointer-events:none}
.cat-tray::before{left:-1px;background:linear-gradient(90deg, rgba(247,248,251,1), rgba(247,248,251,0))}
.cat-tray::after{right:-1px;background:linear-gradient(270deg, rgba(247,248,251,1), rgba(247,248,251,0))}

.chip{scroll-snap-align:start;white-space:nowrap;display:inline-flex;align-items:center;gap:.35rem;
  padding:.55rem .95rem;border:1px solid #e5e7eb;border-radius:999px;background:#fff;
  color:#0e1726;text-decoration:none;box-shadow:0 6px 14px rgba(15,23,42,.04);
  transition:transform .15s ease,box-shadow .15s ease}
.chip i{opacity:.7}
.chip:hover{transform:translateY(-2px);box-shadow:0 12px 22px rgba(2,6,23,.12)}

/* =========================
   Product cards
   ========================= */
.card.product-card{border:none;border-radius:1rem;overflow:hidden;background:#fff;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 8px 20px rgba(2,6,23,.06)}
.card.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(2,6,23,.10)}
.card.product-card .card-img-top{height:230px;object-fit:cover}
.price{font-weight:800;color:#0ea360}
.fade-in{opacity:0;transform:translateY(6px);transition:.35s ease}.fade-in.loaded{opacity:1;transform:none}

/* =========================
   Product page media
   ========================= */
.media-16x9{position:relative;width:100%;padding-top:56.25%;background:#000;border-radius:1rem;overflow:hidden}
.media-16x9 video,.media-16x9 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb{height:70px;width:100%;object-fit:cover;border-radius:.5rem;cursor:pointer;border:2px solid transparent}
.thumb.active{border-color:#22c55e}
.specs td{padding:.5rem .75rem;border-top:1px solid #eef2f7}

/* =========================
   Footer
   ========================= */
.site-footer{background:#fff;border-top:0;position:relative}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#22c55e,#16a34a,#0ea5e9)}
.link-footer{color:#334155;text-decoration:none}
.link-footer:hover{color:#0ea360;text-decoration:underline}

/* Responsive tweaks */
@media (max-width:575.98px){
  .hero{border-radius:.9rem}
  .hero .hero-content{padding-bottom:6.2rem}
  .cat-tray{max-width:94vw;padding:.55rem .65rem}
  .chip{padding:.45rem .75rem;font-size:.95rem}
}

.hero .hero-content {
  padding: 3rem 2rem 6rem;
  color: #fff;
}

.hero .hero-bg {
  background: linear-gradient(115deg,#22c55e 0%,#16a34a 45%,#0ea360 100%);
}

.hero h1, .hero p { color: #fff; }
.hero .badge-soft { background: rgba(255,255,255,.9); color: #08361f; }
