body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f4f4f4; }
header { text-align: center; background: #4CAF50; color: white; padding: 20px; }

#products-container {
  display: grid;
  gap: 25px;
  margin: 30px auto;
  max-width: 1100px;   /* keeps it centered */
  padding: 0 20px;
}

/* Desktop (max 3 per row) */
@media (min-width: 1024px) {
  #products-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets (max 2 per row) */
@media (min-width: 600px) and (max-width: 1023px) {
  #products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (1 per row) */
@media (max-width: 599px) {
  #products-container {
    grid-template-columns: 1fr;
  }
}


.product { background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.product img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ensures square shape */
  object-fit: cover;     /* crops image nicely */
  border-radius: 8px;    /* optional, makes edges smooth */
}

.product h3 { margin: 10px 0; }
.product p { color: #666; }
.amazon-link { display: inline-block; background: #FF9900; color: white; padding: 8px 16px; text-decoration: none; border-radius: 4px; }


/* Hero Section */
.hero {
  text-align: center;
  background: url('images/logo.png') no-repeat center/cover;
  color: white;
  padding: 80px 20px;
  height: 380px;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }
.btn {
  background: #ff9900;
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover { background: #e68900; }

/* Info Sections */
.info-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}
.info-section h2 { margin-bottom: 15px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #2e7d32, #66bb6a); /* Green gradient */
  color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.logo { font-size: 1.5rem; font-weight: bold; }
.nav-menu a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}
.nav-menu a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2e7d32, #66bb6a); /* same gradient for balance */
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}


/* Admin additional styles*/
/* Smaller hero for admin */
.small-hero {
  padding: 40px 20px;
  background: #388e3c;
}

/* Admin container */
.admin-container {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Admin form */
.admin-form input,
.admin-form textarea,
.admin-form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.admin-form button {
  background: #2e7d32;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}
.admin-form button:hover {
  background: #256628;
}

/* Existing products list */
.existing-products {
  margin-top: 30px;
}
.existing-products ul {
  list-style: none;
  padding: 0;
}
.existing-products li {
  background: #f4f4f4;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
}


/* Info Sections (About & Contact) */
.info-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.info-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #2e7d32;
}

.info-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Contact cards */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-card {
  background: #f9f9f9;
  padding: 20px 30px;
  border-radius: 10px;
  flex: 1 1 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

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

.contact-card h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}




/* Product page */
/* Product details page */
.product-view {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.product-card-large {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.product-card-large img {
  flex: 1 1 350px;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card-large .details {
  flex: 2 1 400px;
  padding: 30px;
}

.product-card-large h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2e7d32;
}

.product-card-large p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
}

/* Product end */