:root {
  --color-bg1: rgb(0, 0, 0);
  --color-bg2: rgba(0, 22, 54);
  --color1: 43, 82, 156;
  --color2: 43, 82, 156;
  --color3: 43, 82, 156;
  --color5: 43, 82, 156;
  --color-interactive: 43, 82, 156;
  --circle-size: 50%;
  --blending: hard-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(50%);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }

  50% {
    transform: translateX(50%) translateY(10%);
  }

  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}


.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));

  /* المهم */
  z-index: -9999;
  pointer-events: none;
  /* يجعل العنصر خلف كل العناصر ذات z-index >= 0 */

  svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
  }
}



.gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.g1 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: center center;
  animation: moveVertical 30s ease infinite;

  opacity: 1;
}

.g2 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;

  opacity: 1;
}

.g3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);

  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;

  opacity: 1;
}

.g4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;

  opacity: 0.7;
}

.g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);

  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));

  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;

  opacity: 1;
}

.interactive {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;

  opacity: 0.7;
}


.glowbox {
  box-shadow: 0 8px 20px rgba(51, 54, 234, 0.3);

}

.sidebar {
  width: 100%;
  height: 100%;
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: 1.5rem;
}

.categories-card {
  padding: 16px;
  box-shadow: 0 20px 50px rgba(38, 0, 255, 0.096);
  border-radius: 10px;
}

.categories-title {
  font-size: 1rem;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.category-item a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.category-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #00E6FF;
}



/* ==========================================
            Animations (Required for Gradient Text)
        ========================================== */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}



.section-header-centered {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header-centered .section-title {
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}



/* ==========================================
            Utility Classes (Required for Logo)
        ========================================== */
.gradient-text {
  background: linear-gradient(90deg, #89d5f8 0%, #03b1e6 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* ==========================================
            Header CSS
        ========================================== */
header {

  position: static;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: linear-gradient(90deg,
      rgba(42, 107, 247, 0.2),
      rgba(51, 63, 234, 0.2));

}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 8px 20px rgba(51, 63, 234, 0.2);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: #5580f7;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #33a7ea, #4b48ec);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
}

.search-box input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  color: white;
  outline: none;
  width: 200px;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(29, 218, 243, 0.753);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.5;
  color: white;
}

.icon-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background 0.3s;
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #00E6FF, #0F00D4);
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
}

/* ==========================================
            Responsive (from original file)
        ========================================== */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .search-box {
    display: none;
  }
}



/* لإخفاء الأسهم في متصفح فايرفوكس */
input[type=number] {
  -moz-appearance: textfield;
}

/* لإخفاء الأسهم في كروم وسفاري وإيدج */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  z-index: -9999;
  pointer-events: none;
  /* تبقى في الخلف */
}

header {
  position: relative;
  z-index: 100;
  /* يرفع الهيدر فوق الخلفية */
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 200;
  /* يرفع القائمة فوق الهيدر */
}