/* General Reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* Section Headings */
/* Section Heading */
.section-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  padding: 50px 0 20px;
  letter-spacing: 2px;
  position: relative;
}

.section-heading::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: #7f5af0;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  padding: 40px;
  max-width: 1400px;
  margin: auto;
}

/* Product Card */
.product-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 420px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.6s forwards ease-in-out;
}

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

/* Product Image */
.product-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

/* Product Title */
.product-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d2d2d;
  padding: 12px 16px 6px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin-top: auto;
}

/* Product Info */
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 18px;
  margin-top: auto;
}

.product-price {
  color: #7f5af0;
  font-weight: 700;
  font-size: 20px;
}

.cart-link {
  font-size: 24px;
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cart-link:hover {
  color: #0077cc;
}

/* Fade-up Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for each product */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Fix */
@media (max-width: 768px) {
  .section-heading {
    font-size: 28px;
  }

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

  .product-title {
    font-size: 16px;
  }

  .product-price {
    font-size: 18px;
  }

  .cart-link {
    font-size: 20px;
  }
}

/* Shop Now Button */
.shop-now-container {
  text-align: center;
  margin: 50px 0;
}

.shop-now-btn {
  padding: 14px 28px;
  background-color: #222;
  color: #fff;
  font-size: 17px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.shop-now-btn:hover {
  background-color: #000;
}
.shop-now-container {
  text-align: center;  /* Center the button horizontally */
  margin: 40px 0;
}

.shop-now-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 15px rgba(37, 117, 252, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 1.1px;
  cursor: pointer;
}



.shop-now-btn {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: #fff;
  /* baaki properties waisi hi rahengi */
}

.shop-now-btn:hover {
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  box-shadow: 0 12px 20px rgba(37, 117, 252, 0.5);
  transform: translateY(-3px);
  text-decoration: none;
}


/* Responsive Layout */
@media screen and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-title {
    font-size: 15px;
  }

  .product-price,
  .cart-link {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    min-height: 420px;
  }

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