:root {
  --purple-primary: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #a78bfa;
  --purple-lighter: #ede9fe;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Enhanced custom toast with better styling */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
  border-left: 4px solid var(--purple-primary);
  backdrop-filter: blur(10px);
}

.custom-toast.hiding {
  animation: slideOutRight 0.3s ease-out forwards;
}

.custom-toast-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple-lighter) 0%, #f3e8ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-primary);
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.custom-toast-content {
  flex: 1;
}

.custom-toast-title {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.custom-toast-message {
  color: #666;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.custom-toast-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border-radius: 6px;
  font-size: 0.875rem;
}

.custom-toast-close:hover {
  background: #f5f5f5;
  color: #333;
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Enhanced header with gradient and better shadow */
.header-top {
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
}

/* Enhanced navbar with smoother transitions */
.navbar {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  transition: var(--transition);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  transition: var(--transition);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.bg-purple {
  background-color: var(--purple-primary) !important;
}

.text-purple {
  color: var(--purple-primary) !important;
}

/* Enhanced buttons with better shadows and hover effects */
.btn-purple {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  letter-spacing: 0.01em;
}

.btn-purple:hover {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #4c1d95 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.btn-purple:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-outline-purple {
  border: 2px solid var(--purple-primary);
  color: var(--purple-primary);
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-purple:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* Enhanced carousel with better visual effects */
.carousel-slide {
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.bg-gradient-purple {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
}

.bg-gradient-purple-light {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-primary) 100%);
}

.bg-gradient-purple-dark {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #4c1d95 100%);
}

/* Enhanced product cards with smoother animations */
.product-card {
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(124, 58, 237, 0.1);
}

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

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

.product-card .card-body {
  padding: 1.5rem;
}

/* Enhanced discount badge with gradient */
.badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10;
  letter-spacing: 0.02em;
}

/* Enhanced promo cards with better hover effects */
.promo-card {
  transition: var(--transition);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.promo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.promo-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.promo-card:hover .promo-icon {
  transform: scale(1.15) rotate(8deg);
}

.promo-icon i {
  font-size: 2.5rem;
}

.bg-purple-light {
  background-color: var(--purple-lighter);
}

/* Enhanced features section with better animations */
.feature-icon {
  font-size: 3rem;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.15));
}

.feature-box {
  padding: 24px;
  transition: var(--transition);
  border-radius: 12px;
}

.feature-box:hover {
  background: rgba(124, 58, 237, 0.03);
  transform: translateY(-4px);
}

.feature-box:hover .feature-icon {
  transform: scale(1.2);
  color: var(--purple-dark) !important;
  filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.25));
}

/* Enhanced footer with better gradient */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding-top: 5%;
}

.social-links a {
  font-size: 1.5rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--purple-light) !important;
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Enhanced cart items with better hover effects */
.cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
  transition: var(--transition);
  border-radius: 12px;
}

.cart-item:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.02) 0%, rgba(124, 58, 237, 0.04) 100%);
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-control button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 600;
}

.quantity-control button:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Enhanced input groups with better styling */
.input-group-lg {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.input-group-lg .form-control {
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
}

.input-group-lg .form-control:focus {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  border-color: var(--purple-primary);
}

/* Enhanced cards with better border radius */
.card {
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.shadow-sm {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide {
    min-height: 300px;
  }

  .carousel-slide h1 {
    font-size: 2rem;
  }

  .product-card img {
    height: 150px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item img {
    margin-bottom: 15px;
  }

  .custom-toast {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
  }
}

/* Enhanced product detail page */
.product-detail-img {
  max-height: 500px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.info-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  transition: var(--transition);
  border-left: 4px solid var(--purple-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateX(6px);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.info-section h5 {
  color: var(--purple-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
