:root {
  --primary-color: #7B1FA2;
  --secondary-color: #EC407A;
  --accent-color: #FF9800;
  --dark-color: #333;
  --light-color: #F5F5F5;
}

body {
  background: var(--light-color);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-navbar {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link {
  color: white !important;
  margin: 0 8px;
  padding: 8px 15px !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

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


.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  height: 100%;
}

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

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.4rem;
  margin: 10px 0;
}

.rating {
  color: #FFD700;
  margin: 10px 0;
}


.btn {
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

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

.buy-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

.buy-btn.active {
  background: #dc3545;
}

.wishlist-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.wishlist-icon.active {
  color: var(--secondary-color);
}


.carousel-item img {
  height: 400px;
  object-fit: cover;
  filter: brightness(0.8);
}

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


.footer {
  background: linear-gradient(45deg, var(--dark-color), #222);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer h5,
.footer h6 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

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

.footer ul li {
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.footer ul li:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.social-icons {
  font-size: 24px;
}

.social-icons i {
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.social-icons i:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}


.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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


.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

#searchInput {
  padding-left: 45px;
  border-radius: 25px;
  border: 2px solid #ddd;
}

#filterSelect {
  border-radius: 25px;
  border: 2px solid #ddd;
  padding: 10px 15px;
}


@media (max-width: 768px) {
  .carousel-item img {
    height: 250px;
  }

  .card {
    margin-bottom: 20px;
  }
}



.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.wishlist-btn:hover {
  background: #f8f9fa;
}


.loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #f3f3f3;
  border-top: 5px solid #7B1FA2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}