* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}
header img {
  max-height: 80px;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #007bff;
}


.hero {                                                                                      /* THIS IS BLUE BANNER, FONT, PADDING AND COLOR SETTINGS  */                                                                                                         
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff, #00c6ff);  
  color: white;
}
.hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 18px;
}

.section {                                                                                                                  /*THIS IS TEXT UNDERLINE*/         
  padding: 40px;
}
.section h3 {                       
  margin-bottom: 20px;
  font-size: 24px;
  border-bottom: 2px solid #007bff; 
  display: inline-block;
}


.products {                                                                                             /* THIS IS PRODUCT CARD, COLOR, RESOLUTION */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product {
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 90px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product img {                                                                                         /* THIS IS PRODUCT CARD IMAGE SIZE,RESOLUTION */
  width: 170%;
  height: 390px;
  object-fit: cover; /* ensures image fits regardless of resolution */
  border-radius: 6px;
  margin-bottom: 10px;
  margin-left: -80px;                                                                                  /*THIS CENTERS THE IMAGE IN PRODUCT CARD */
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  
}
/* Remove default link styles inside product cards */
.product a {
  text-decoration: none;   /* removes underline */
  color: inherit;          /* makes text use normal color */
  display: block;          /* ensures the whole card is clickable */
}

/* Optional: style hover effect */
.product a:hover {
  color: #333;             /* keep text consistent on hover */
}

/* Shop by Category Section */
.categories {                                                                                             /* THIS IS PRODUCT CARD, COLOR, RESOLUTION */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.category {
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 90px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category img {                                                                                         /* THIS IS PRODUCT CARD IMAGE SIZE,RESOLUTION */
  width: 100%;
  height: 390px;
  object-fit: cover; /* ensures image fits regardless of resolution */
  border-radius: 6px;
  margin-bottom: 10px;
  margin-left: -1px;                                                                                  /*THIS CENTERS THE IMAGE IN PRODUCT CARD */
}
.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Remove default link styles inside product cards */
.category a {
  text-decoration: none;   /* removes underline */
  color: inherit;          /* makes text use normal color */
  display: block;          /* ensures the whole card is clickable */
}

/* Optional: style hover effect */
.category a:hover {
  color: #333;             /* keep text consistent on hover */
}


/* Product Detail Page */
.product-detail {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center; /* center all content */
  background-color: #fff;
}
.product-detail img {
  width: 100%;
  max-height: 700px;
  object-fit: cover; /* keeps image contained */
  border-radius: 6px;
  margin-bottom: 20px;
}
.product-detail h2,
.product-detail h4,
.product-detail p,
.product-detail h3 {
  margin-bottom: 10px;
}
.quantity-selector {
  margin: 20px 0;
}
.quantity-selector input {
  padding: 8px;
  width: 60px;
  text-align: center;
}
/* Number input field styling */
.input[type="number"] {
  width: 170px;              /* control width */
  padding: 10px;             /* inner spacing */
  font-size: 16px;           /* text size */
  border: 1px solid #ccc;    /* subtle border */
  border-radius: 6px;        /* rounded corners */
  background-color: #fff;    /* clean background */
  text-align: center;        /* center the number */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
input[type="number"]:hover {
  border-color: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}

/* Focus effect */
input[type="number"]:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* Pay Button */
.pay-button {
  background-color: #099c30;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.pay-button:hover {
  background-color: #11410c;
  transform: scale(1.05); /* hover effect */
}

/* Categories */
.categories {
  display: flex;
  gap: 20px;
}
.category {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.3s ease;
}
.category:hover {
  background-color: #007bff;
  color: white;
}

/* Promo Banner */
.promo {
  margin: 40px 0;
  text-align: center;
}
.promo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.promo p {
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
}

/* About & Signup */
.about-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}
.about, .signup {
  flex: 1;
}
.signup button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.signup button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }
  nav {
    margin-top: 10px;
  }
  .about-signup {
    flex-direction: column;
  }
  .products {
    grid-template-columns: 1fr;
  }