/* ---------------------- BASE STYLES ---------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8f0;
  position: relative;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #669666;
  color: white;
  padding: 16px 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  width: 50px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: white;
  color: #669666;
}

section {
  padding: 40px;
  text-align: center;
  display: none; /* hide all sections by default */
}

section.active {
  display: block;
}

footer {
  background-color: #669666;
  color: white;
  text-align: center;
  padding: 10px;
}

/* ---------------------- HAMBURGER MENU ---------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100; /* make sure it's above the menu */
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.menu-mobile {
  position: fixed;
  top: 0;
  right: -250px; /* hidden by default */
  width: 250px;
  height: 100%;
  background: #111;
  padding-top: 60px;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex; /* important: keep flex, don't set none */
}

.menu-mobile a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
}

.menu-mobile a:hover {
  background: #333;
}

/* Slide in when active */
.menu-mobile.active {
  right: 0;
}

/* ---------------------- MOBILE RESPONSIVE ---------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide desktop nav on mobile */
  }
  .hamburger {
    display: flex;
  }
  .product-card {
    flex: 0 1 100%; /* full width on mobile */
  }
}

/* ---------------------- IMAGES & CONTENT ---------------------- */
.rounded-image {
  border-radius: 15px;
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

/* ---------------------- BUTTONS ---------------------- */
.order-btn,
.account-btn,
.submit-btn,
.add-to-cart,
.checkout-btn,
.review-btn {
  padding: 12px 25px;
  background-color: #669666;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.order-btn:hover,
.account-btn:hover,
.submit-btn:hover,
.add-to-cart:hover,
.checkout-btn:hover,
.review-btn:hover {
  background-color: #406640;
}

/* ---------------------- MODALS ---------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  box-sizing: border-box;
}

.close-account,
.close-review {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 20px;
}

/* ---------------------- PRODUCT CARDS ---------------------- */
.product-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card {
  flex: 0 1 calc(30% - 20px);
  background-color: #fff8f0;
  border: 2px solid #669666;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}

.product-card img {
  width: 70%;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
}

.product-card h3 {
  margin: 8px 0 5px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  border-color: #ff6600;
}

.quantity-wrapper {
  margin-top: 10px;
}

.quantity {
  width: 60px;
  padding: 5px;
  text-align: center;
  margin-left: 5px;
}

/* ---------------------- ACCOUNT SECTION ---------------------- */
#account {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff8f0;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#account h2 {
  text-align: center;
  color: #A8D08D;
  margin-bottom: 10px;
}

.account-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

#authContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#signupForm, #loginForm {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  width: 300px;
}

#signupForm h3, #loginForm h3 {
  text-align: center;
  color: #A8D08D;
  margin-bottom: 15px;
}

#signupForm input, #loginForm input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#signupForm button, #loginForm button {
  width: 100%;
  padding: 10px;
  background-color: #669666;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

#signupForm button:hover, #loginForm button:hover {
  background-color: #406640;
}

#userPanel {
  text-align: center;
  background-color: #fff3e0;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: #000000;
  font-weight: bold;
  font-size: 1.1rem;
}

#userPanel p {
  margin: 0;
}

/* ---------------------- DASHBOARD LISTS ---------------------- */
#orderHistory, #favoritesList, #userReviews {
  background-color: #fff3e0;
  border-radius: 10px;
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#orderHistory li, #userReviews li, #favoritesList li {
  border-bottom: 1px solid #8fdb7fce;
  padding: 8px 5px;
  font-size: 0.95rem;
}

#orderHistory li:last-child, #userReviews li:last-child, #favoritesList li:last-child {
  border-bottom: none;
}

.review-stars {
  color: #ffcc00;
  font-size: 1.1em;
  margin-bottom: 5px;
}

/* ---------------------- CUSTOMER REVIEWS ---------------------- */
#customer-reviews {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

#customer-reviews h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

#customer-reviews p {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
}

.review-btn {
  display: block;
  margin: 0 auto 30px auto;
  padding: 10px 25px;
  font-size: 1em;
  background-color: #669666;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.review-btn:hover {
  background-color: #406640;
}

#reviewsList {
  margin-top: 30px;
}

.review-item {
  background-color: white;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.review-item p {
  margin: 5px 0;
}

.review-item hr {
  border: none;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* ---------------------- HOME SECTION ---------------------- */
.home-section {
  padding: 60px 20px;
  background: #fff8f0;
  text-align: center;
  min-height: 100vh;
}

.home-section .home-content {
  max-width: 900px;
  margin: 0 auto;
}

.home-section .home-content img.rounded-image {
  width: 250px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.home-section h1 {
  font-size: 2.8rem;
  color: #A8D08D;
  margin-bottom: 10px;
}

.home-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.home-section p.intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.home-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ---------------------- FADE-IN ANIMATION ---------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About Us Section ===== */
#about {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 20px;
    background-color: #fff3e0; /* soft warm background */
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
}

#about h2 {
    font-size: 2rem;
    color: #A8D08D;
    margin-bottom: 20px;
}

#about p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

/* Mission & Vision Blocks */
#about p strong {
    color: #17921d; /* emphasize keywords */
}

#about .mission, #about .vision {
    background-color: #fff8f0;
    border: 2px solid #A8D08D;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    #about {
        padding: 30px 15px;
        margin: 30px 10px;
    }

    #about h2 {
        font-size: 1.6rem;
    }

    #about p {
        font-size: 0.95rem;
    }
}

