/* styles.css */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
  color: #333;
}

.navbar {
  position: sticky;
  top: 0;
  background: white;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.heading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #8b5cf6;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #f3e8ff, #fdf4ff);
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  color: #4b0082;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: #8b5cf6;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #7c3aed;
}
/* Product Section */
.products {
  padding: 4rem 2rem;
  background-color: #fff7fb;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #4b0082;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.price {
  font-size: 1.1rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.add-btn {
  background-color: #8b5cf6;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-btn:hover {
  background-color: #7c3aed;
}
/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links a {
    margin-left: 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 1rem;
  }

  .btn, .add-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero {
    padding: 60px 1rem;
  }
}
/* Product Detail Page */
.product-detail {
  padding: 3rem 1.5rem;
  background-color: #fefefe;
}

.product-detail-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.product-detail img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
}

.product-info {
  flex: 1;
}

.product-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-info .price {
  color: #8b5cf6;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.product-info .desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}
/* Contact Section */
.contact-section {
  padding: 4rem 1rem;
  background-color: #fefefe;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form .btn {
  background-color: #9872f1;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #6d28d9;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

#closeModal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}
