/* === NAVBAR STYLES === */
.custom-navbar {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  padding: 0.5rem 1rem;
  background-color: #1f1f2c;
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.5, 0.52, 0.5, 0.52);
}
body {
  background-color: #121212;
  color: #fff;
  padding-top: 100px; /* مسافة من الهيدر */
  font-family: Tahoma, Arial, sans-serif;
}


/* لتطبيقه على العناوين */
h1, h2, h3, h4, h5, h6 {
font-family: Tahoma, Arial, sans-serif;
}

/* Logo Section */
.navbar-logo a {
  display: flex;
  align-items: center;
  height: 60px;
}
.logo-light {
  display: block;
  height: 100%;
}
.logo-dark {
  display: none;
  height: 60px;
}

body.dark .logo-light {
  display: none;
}
body.dark .logo-dark {
  display: block;
}

/* Links */
.navbar-links {
  display: none;
}
.navbar-links ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-links li a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #f9fbff; /* gray-700 */
  text-decoration: none;
  transition: color 0.2s ease;
}
.navbar-links li a:hover {
  color: var(--color-primary, #3b82f6);
}
body.dark .navbar-links li a {
  color: #d1d5db; /* gray-300 */
}
body.dark .navbar-links li a:hover {
  color: var(--color-primary, #3b82f6);
}

/* Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-actions button,
.navbar-actions a {
  background: transparent;
  border: none;
  color: #f9fbff; /* gray-600 */
  cursor: pointer;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.navbar-actions button:hover,
.navbar-actions a:hover {
  color: var(--color-primary, #3b82f6);
}

body.dark .navbar-actions button,
body.dark .navbar-actions a {
  color: #9ca3af; /* gray-400 */
}
body.dark .navbar-actions button:hover,
body.dark .navbar-actions a:hover {
  color: var(--color-primary, #3b82f6);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--color-primary, #3b82f6);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: bold;
}

.cart-price {
  font-size: 0.9rem;
}

.user-avatar img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.2); /* primary/20 */
}

/* Show full navbar on large screens */
@media (min-width: 1024px) {
  .navbar-links {
    display: block;
  }
}
.hero-swiper .swiper-slide {
  width: 100% !important;
}
