/* أنماط أساسية متطورة */
:root {
  --primary-color: #8e44ad; /* لون بنفسجي أنيق */
  --secondary-color: #f39c12; /* لون برتقالي دافئ */
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --success-color: #27ae60;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f9f9f9;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* شريط التنقل الفاخر */
.navbar {
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 50px;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* سلايدر رئيسي متطور */
.main-slider {
  height: 80vh;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}

.carousel-item {
  height: 100%;
  transition: transform 1s ease-in-out;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  text-align: right;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease;
}

.carousel-item.active .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, white, #f1c40f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  background: var(--primary-color);
}

/* بطاقات المنتجات الفاخرة */
.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 30px;
  background: white;
  position: relative;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.product-card .card-title {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.add-to-cart {
  background: var(--primary-color);
  border: none;
  border-radius: 30px;
  padding: 8px 15px;
  font-weight: 500;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.sudanese-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, var(--success-color), #2ecc71);
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  animation: bounce 2s infinite;
}

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

/* تأثيرات دخول العناصر */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* صفحة المنتج */
.product-image-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.product-image-container:hover {
  transform: scale(1.02);
}

#main-product-image {
  max-height: 500px;
  width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-color);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: white;
}

#product-quantity {
  width: 70px;
  text-align: center;
  margin: 0 10px;
  font-weight: bold;
}

/* سلة التسوق */
.cart-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.cart-table img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--box-shadow);
}

.cart-summary h5 {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

/* زر الدفع */
.checkout-btn {
  background: linear-gradient(45deg, var(--primary-color), #9b59b6);
  border: none;
  border-radius: 30px;
  padding: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(142, 68, 173, 0.6);
}

/* التذييل الفاخر */
footer {
  background: linear-gradient(135deg, var(--dark-color), #34495e);
  color: white;
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/pattern.png');
  opacity: 0.05;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-logo img {
  max-height: 80px;
  margin-bottom: 40px;
}

.footer-links h5 {
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
}

/* تأثيرات متحركة */
.floating {
  animation: floating 3s ease-in-out infinite;
}

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

/* تأثيرات للهواتف */
@media (max-width: 768px) {
  .main-slider {
    height: 60vh;
  }
  
  .carousel-caption h2 {
    font-size: 1.8rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
  
  .footer-links {
    margin-bottom: 30px;
  }
}
.product-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover {
  transform: rotateY(15deg) rotateX(5deg) translateY(-15px);
  box-shadow: 0 40px 60px -20px rgba(142, 68, 173, 0.4);
}

.product-card::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, rgba(142, 68, 173, 0.1), rgba(241, 196, 15, 0.1));
  opacity: 0;
  transition: opacity 0.6s;
}

.product-card:hover::after {
  opacity: 1;
}
.hero-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(90deg, #8e44ad, #f39c12, #e74c3c, #f39c12, #8e44ad);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 8s ease infinite;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* الانتقال بين الصفحات */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  z-index: 9999;
  transform: translateY(100%);
}

.page-transition.active {
  animation: pageTransition 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes pageTransition {
  0% { transform: translateY(100%); }
  40% { transform: translateY(0); }
  60% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    bottom: 100px;
}