body {
  font-family: 'Poppins', sans-serif;
}

/* 🟣 الـ Banner */
.category-banner {
  position: relative;
  width: 80%;
  max-width: 1400px;
  height: 360px;
  overflow: hidden;
  border-radius: 18px;
  margin: 50px auto;
  background: #000;
  box-shadow: 0 0 25px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-40px);
  animation: bannerIn 1.2s ease-out forwards; /* ✨ حركة الدخول */
}

/* الصورة */
.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: brightness(90%) contrast(1.15);
  transition: transform 0.8s ease, filter 0.5s ease;
}

.category-banner:hover img {
  transform: scale(1.03);
  filter: brightness(95%) contrast(1.25);
}

/* ✨ التدرج الغامق */
.category-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* النصوص */
.banner-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  text-align: left;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.banner-text h1 {
  font-size: 3.9rem;
  font-weight: 800;
  margin: 5px 0 20px;
  background: linear-gradient(90deg, #00e0ff, #00ffaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
  position: relative;
}

/* الخط المتحرك */
.banner-text h1::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #00ffaa, #00e0ff);
  border-radius: 2px;
  animation: slideLine 2s infinite alternate ease-in-out;
}

/* النص الفرعي */
.banner-text p {
  font-size: 1.1rem;
  color: #f3f3f3;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* الزر */
.banner-btn {
  display: inline-block;
  background: linear-gradient(90deg, #00ffaa, #00e0ff);
  color: #0b1724;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0,255,255,0.4);
  transition: all 0.3s ease;
}
.banner-btn:hover {
  background: linear-gradient(90deg, #00e0ff, #00ffaa);
  box-shadow: 0 0 20px rgba(0,255,200,0.7);
  transform: translateY(-2px);
}

/* 💫 حركة دخول البانر */
@keyframes bannerIn {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* الحركات التانية */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30%); }
  to { opacity: 1; transform: translateY(-50%); }
}

@keyframes slideLine {
  0% { transform: scaleX(0.8); opacity: 0.6; }
  100% { transform: scaleX(1.2); opacity: 1; }
}

/* موبايل */
@media (max-width: 768px) {
  .category-banner {
    width: 90%;
    height: 200px;
  }
  .banner-text {
    left: 7%;
  }
  .banner-text h1 {
    font-size: 1.8rem;
  }
  .banner-text h1::after {
    width: 60px;
  }
  .banner-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #00e0ff;
  font-weight: 600;
  font-size: 1.1rem;
}
/* =======================
   Category Page Layout
   ======================= */
.category-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 35px;
  align-items: flex-start;
  margin: 40px auto;
  padding: 0 40px;
  max-width: 1500px;
  justify-content: start;
}

/* =======================
   Filters Sidebar
   ======================= */
.filters-panel {
  background: #0b1424;
  color: #fff;
  border-radius: 16px;
  padding: 22px 20px 28px;
  height: fit-content;
  font-family: 'Rajdhani', sans-serif;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  width: 100%;
  min-width: 250px;
  position: sticky;
  top: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.filters-panel label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: #bcd0ff;
}

.filters-panel input,
.filters-panel select {
  width: 100%;
  background: #15223a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: all 0.2s ease-in-out;
}

.filters-panel input:focus,
.filters-panel select:focus {
  outline: none;
  border-color: #00e0ff;
  box-shadow: 0 0 6px rgba(0, 224, 255, 0.3);
}

.filters-panel select option {
  background: #0b1424;
  color: #fff;
}

/* =======================
   Reset Button
   ======================= */
.filters-panel .btn-reset {
  width: 100%;
  background: linear-gradient(90deg, #c91414, #e42222);
  color: white;
  padding: 11px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.filters-panel .btn-reset:hover {
  background: linear-gradient(90deg, #e42222, #f73535);
  transform: translateY(-1px);
}

/* =======================
   Product Section
   ======================= */
.category-products-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 25px;
}

/* =======================
   Responsive Design
   ======================= */
@media (max-width: 1100px) {
  .category-layout {
    grid-template-columns: 230px 1fr;
    padding: 0 25px;
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .category-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
    max-width: 100%;
  }

  .filters-panel {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 25px;
  }

  .filters-panel h3 {
    justify-content: center;
  }
}
/* Logo on product cards */
