/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  line-height: 1.6;
}

/* Import font at top of CSS file */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  padding: 15px 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #00bcd4;
  transform: translateY(-2px);
}

/* Scroll effect */
nav.scrolled {
  background-color: #222;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



/* Hero Section */
.hero {
  padding: 120px 20px 60px;
  background: linear-gradient(to right, #1976d2, #64b5f6);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
}

/* Product Section */
.product-section {
  padding: 40px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.product-card {
  background: white;
  width: 300px;
  height: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100px;
  height: 140px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 5px 0;
}

.product-card p {
  color: #333;
  margin-bottom: 5px;
}

.product-card button {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}

.product-card button:hover {
  background-color: #0d47a1;
}

.product-image-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for visibility */
  overflow: hidden;
  border-radius: 10px;
  background-color: #ddd; /* fallback color if image doesn't load */
}

.product-image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.product-image-slider img.active {
  opacity: 1;
  z-index: 1;
}


/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

.section {
  padding: 40px 20px;
  text-align: center;
}

/* Hero Button */
.hero .btn {
  margin-top: 20px;
  background-color: #fff;
  color: #1976d2;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

/* Category Cards */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.category-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

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

/* Deals */
.deals {
  background: #ffecb3;
}

.deal-card {
  background: #fff8e1;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #ffc107;
  display: inline-block;
}

/* Testimonials */
blockquote {
  margin: 15px auto;
  font-style: italic;
  color: #555;
  max-width: 500px;
}

/* Newsletter */
.newsletter form {
  margin-top: 10px;
}

.newsletter input[type="email"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.newsletter button {
  padding: 10px 15px;
  background-color: #1976d2;
  color: white;
  border: none;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
}

