
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: url('images/img.jpg') center center / cover fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(36, 47, 255, 0.3) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: start;
  backdrop-filter: blur(5px);
}

.transparent-navbar {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
  margin-top: 250px;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #ffffff 0%, #242fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  color: #f0f0f0;
}

.hero-content input[type="search"] {
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 600px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-content input[type="search"]:focus {
  outline: none;
  border-color: #242fff;
  box-shadow: 0 8px 32px rgba(36, 47, 255, 0.4);
  transform: translateY(-2px);
}


/* اللوجو */
.logo {
  width: 80px;
  height: auto;
}

/* روابط الناف بار */
.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #242fff 0%, #1a1fd9 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a:hover {
  color: #fff;
  background-color: #2566d6;
  box-shadow: 1px 1px 5px #ffffff;
}

/* زر الوضع الداكن والفاتح */
.mode-btn {
  background-color: #ffffff;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mode-btn:hover {
  background-color:#2566d6;
  color: white;
 
  
}

/* أزرار الدخول والخروج */
.nav-btn {
  background: linear-gradient(135deg, #242fff 0%, #2566d6 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(36, 47, 255, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 47, 255, 0.4);
  background: linear-gradient(135deg, #1a1fd9 0%, #242fff 100%);
}

/* الترحيب باليوزر */
.welcome-text {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.13);
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 20px;
  padding: 6px 16px;
  margin-right: 8px;
  box-shadow: 0 2px 8px #1e2fe933;
  transition: background-color 0.3s, color 0.3s;
  animation: fadeIn 1s ease-in-out;
}

.user-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px #1e2fe933;
  animation: fadeIn 1s ease-in-out;
}

/* أيقونة العربة */
.nav-item {
  list-style: none;
  margin-left: 15px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* تسجيل الدخول في الركن */
.nav-item.btn a {
  background-color: #ffffff;
  color: #0b2c52;
  border-radius: 4px;
  border: 1px solid blue;
  font-weight: bold;
  padding: 4px 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.nav-item.btn a:hover {
  background-color: #0068fa;
  color: white;
}



#searchInput:focus {
  box-shadow: 0 0 10px #393e46;
  background-color: #393e46;
  outline: none;
}

main {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  min-height: 100vh;
}

.productCard {
  width: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(36, 47, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  cursor: pointer;
}

.productCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #242fff 0%, #1a1fd9 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.productCard:hover::before {
  transform: scaleX(1);
}

.productCard:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(36, 47, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.productCard:hover .addToCartBtn {
  display: flex;
  animation: slideInUp 0.3s ease-out;
}

.productCard:hover .addToFav {
  display: flex;
  animation: slideInUp 0.3s ease-out 0.1s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.productCard .carousel-item img {
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.productCard .carousel-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.productCard h3 {
  color: #2c3e50;
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.productCard h4 {
  color: #242fff;
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
  margin-top: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  color: white;
  height: 80px;
  text-align: center;
  line-height: 80px;
  font-weight: 500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.priceDollr {
  span {
    color: gold;
  }
}

/* .addToCartBtn {
  position: absolute;
  display: none;
  z-index: 10;
  top: 88%;
  left: 75%; */

  /* border: none; */
  /* background-color: transparent !important; */
  /* background: linear-gradient(135deg, #242fff 0%, #1a1fd9 100%);
  color: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(36, 47, 255, 0.3); */
  /* width: 20px;
  height: 20px; */
/* } */
.addToCartBtn {
  position: absolute;
  display: none;
  z-index: 10;
  top: 88%;
  left: 75%;
  cursor: pointer; 
  transition: transform 0.3s ease;
}

.addToCartBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(36, 47, 255, 0.4);
}

.addToFav{
  position: absolute;
  display: none;
  /* border: none; */
  top: 88%;
  left: 18%;
  /* background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%); */
  /* color: white; */
  /* padding: 12px; */
  /* border-radius: 50%; */
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); */
  z-index: 10;
}

.addToFav:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#notification-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 9999;
}

.notification {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  color: #2c3e50;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 400px;
  position: relative;
  animation: slideInUp 0.3s ease-out;
}

.notification .close-btn {
  position: absolute;
  top: 5px;
  right: 3px;
  cursor: pointer;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تنسيقات الأيقونات الثابتة */
.nav-icons-fixed {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
  position: relative;
}

.nav-icons-fixed .nav-link {
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.nav-icons-fixed .nav-link:hover {
  color: #242fff;
  transform: scale(1.1);
}

.nav-icons-fixed .nav-link i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-icons-fixed .fa-heart:hover {
  color: #ff4757;
  animation: heartBeat 0.3s ease;
}

.nav-icons-fixed .bi-cart-fill:hover {
  color: #2ecc71;
  animation: bounce 0.3s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* تحسينات للشاشات الصغيرة */
/* Desktop styles */
@media (min-width: 992px) {
  .nav-icons-fixed {
    margin-left: 20px;
  }
  
  .navbar-collapse {
    flex-grow: 0;
  }
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .productCard {
    width: 100%;
    max-width: 350px;
  }
  
  .transparent-navbar {
    padding: 15px 20px;
  }

  #navbarContent {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
  }
  
  .nav-links a {
    margin: 10px 0;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .nav-actions button {
    margin: 5px 0;
    width: 100%;
  }

  .navbar-toggler {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* الأيقونات الثابتة في حالة الموبايل */
  .nav-icons-fixed {
    position: relative;
    right: auto;
    margin: 0 10px;
  }

  .nav-icons-fixed .nav-link {
    display: inline-block;
    padding: 8px;
    margin: 0 5px;
  }
}

