/* 🌿 GreenVada Light Premium Herbal Theme */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", sans-serif; }
body { background: #f8f9f7; color: #222; line-height: 1.6; }

/* HEADER */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
}
.logo { font-weight: 800; font-size: 1.6rem; color: #00b894; }
.nav a {
  color: #333; text-decoration: none; margin: 0 1rem; font-weight: 500;
  transition: color .3s;
}
.nav a:hover, .nav a.active { color: #00b894; }
.btn-join {
  background: #00b894; color: #fff; padding: .6rem 1.3rem; border-radius: 25px;
  text-decoration: none; font-weight: 600; transition: 0.3s;
}
.btn-join:hover { background: #03d3a4; }

/* HERO */
.hero {
  background: url("../assets/bg.jpg") center/cover no-repeat;
  padding: 6rem 2rem 4rem;
  text-align: center;
  color: #004d3a;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,0.6);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: auto; }
.hero h1 { color: #008f6b; font-size: 2.8rem; font-weight: 800; }
.hero p { color: #333; margin-top: 1rem; }
.hero-buttons { margin-top: 1.5rem; }
.btn-primary, .btn-outline {
  padding: .8rem 1.6rem; border-radius: 30px; text-decoration: none; font-weight: 600; margin: 0 .5rem;
}
.btn-primary { background: #00b894; color: #fff; box-shadow: 0 3px 10px #00b89450; }
.btn-outline { border: 2px solid #00b894; color: #00b894; }
.btn-primary:hover, .btn-outline:hover { background: #03d3a4; color: #fff; }

/* FEATURE CARDS */
.hero-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-top: 3rem; position: relative; z-index: 1;
}
.feature-card {
  display: flex; align-items: center; background: #fff;
  padding: 1rem 1.2rem; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 280px;
}
.feature-card img { width: 45px; height: 45px; margin-right: 1rem; }
.feature-card h4 { font-size: 1rem; color: #222; }
.feature-card p { font-size: .85rem; color: #555; }

/* ABOUT */
.about { padding: 5rem 2rem; text-align: center; background: #f4f6f4; }
.about h2 { font-size: 2rem; color: #008f6b; }
.about p { max-width: 700px; margin: 1rem auto; color: #444; }

/* PRODUCTS */
.products { padding: 5rem 2rem; background: #fff; }
.products h2 { text-align: center; color: #008f6b; margin-bottom: 2rem; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1.5rem; max-width: 1200px; margin: auto;
}
.product-card {
  background: #f9f9f9; padding: 1.5rem; border-radius: 15px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.product-card img { width: 80px; height: 80px; object-fit: contain; }
.product-card h3 { color: #222; margin: .8rem 0; }
.product-card p { color: #555; font-size: .9rem; }

/* IMPACT */
.impact { padding: 5rem 2rem; background: #f8f9f7; text-align: center; }
.stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.stat {
  background: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  width: 200px;
}
.stat h3 { color: #00b894; font-size: 1.6rem; }
.stat p { color: #555; }

/* FOOTER */
.footer {
  background: #fff; border-top: 1px solid #ddd;
  padding: 3rem 2rem; text-align: center;
}
.footer-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem;
}
.footer a { color: #333; text-decoration: none; margin: 0 .4rem; }
.footer a:hover { color: #00b894; }
.socials img { width: 25px; margin: 0 .3rem; filter: grayscale(1); transition: .3s; }
.socials img:hover { filter: grayscale(0); transform: scale(1.1); }
.footer-bottom { color: #666; font-size: .85rem; margin-top: 2rem; }

/* RESPONSIVE */
@media(max-width:768px){
  .header-inner{flex-direction:column;gap:.8rem;}
  .hero-features{flex-direction:column;align-items:center;}
  .footer-inner{flex-direction:column;}
}
/* AUTH PAGES */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(145deg,#f5f8f6,#fff);
}
.auth-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  width: 350px;
  text-align: center;
}
.auth-card h2 { color: #00b894; font-weight: 800; }
.auth-card p { color: #555; font-size: 0.9rem; margin-bottom: 1.2rem; }
.auth-card form { display: flex; flex-direction: column; gap: 0.8rem; }
.auth-card input {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border 0.2s;
}
.auth-card input:focus {
  outline: none;
  border-color: #00b894;
}
.auth-card button.full {
  width: 100%;
  border: none;
  cursor: pointer;
}
.auth-links { margin-top: 1rem; font-size: 0.85rem; }
.auth-links a { color: #00b894; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
/* DASHBOARD */
.dashboard, .profile-page, .settings-page {
  padding: 4rem 2rem;
  background: #f8f9f7;
  min-height: 80vh;
}
.dashboard h2, .profile-page h2, .settings-page h2 {
  color: #00b894;
  text-align: center;
  margin-bottom: 1rem;
}
.dash-cards {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2rem;
}
.dash-card {
  background: #fff; border-radius: 15px; padding: 2rem; width: 240px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center;
}
.dash-card h3 { color: #222; margin-bottom: .5rem; }
.dash-card p { font-size: 1.1rem; color: #00b894; font-weight: 700; }
.btn-outline.small {
  font-size: .85rem; padding: .4rem 1rem; display: inline-block;
}

/* PROFILE & SETTINGS */
.profile-card, .settings-card {
  background: #fff; border-radius: 18px; padding: 2rem;
  max-width: 500px; margin: 2rem auto; box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.profile-card p { margin: .5rem 0; }
.settings-card form {
  display: flex; flex-direction: column; gap: .8rem;
}
.settings-card input {
  padding: .6rem; border: 1px solid #ccc; border-radius: 10px;
}
.settings-card label {
  font-weight: 600; font-size: .9rem; color: #333;
}
/* SHOP & CART */
.price { color: #00b894; font-weight: 700; margin: .5rem 0; }
.btn-primary.small { padding: .4rem 1rem; font-size: .85rem; }

.cart-page { background: #f8f9f7; padding: 4rem 2rem; min-height: 80vh; }
#cartItems { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 2rem auto; }
.cart-item {
  background: #fff; display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 1rem; box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.cart-item img { width: 60px; height: 60px; object-fit: contain; }
.cart-item button.remove {
  background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #999;
}
.cart-item button.remove:hover { color: #00b894; }
.cart-summary { text-align: center; margin-top: 2rem; }
/* ADMIN PAGE */
.admin-page { background: #f7f8f5; padding: 3rem 1rem; min-height: 85vh; }
.admin-form { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.admin-form input { padding: 0.6rem 1rem; border: 1px solid #ccc; border-radius: 8px; width: 220px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.admin-card {
  background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card img { width: 60px; height: 60px; object-fit: contain; }
.admin-card .delete-btn {
  background: #ff7675; border: none; color: white; border-radius: 8px; padding: 0.4rem 1rem; cursor: pointer;
}
.admin-card .delete-btn:hover { background: #d63031; }

.order-list { display: flex; flex-direction: column; gap: 1.5rem; }
.order-box {
  background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.order-box ul { margin-left: 1.2rem; list-style: disc; }
.user-page { background: #f9faf9; min-height: 85vh; padding: 2rem 1rem; }
.profile-form { display: flex; flex-direction: column; gap: 1rem; max-width: 400px; margin: auto; }
.profile-form input { padding: 0.7rem; border-radius: 8px; border: 1px solid #ccc; }
.settings-box { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; justify-content: center; }

/* switch toggle */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00B894; }
input:checked + .slider:before { transform: translateX(24px); }

/* dark mode */
body.dark { background-color: #1b1b1b; color: #f5f5f5; }
body.dark .order-box, body.dark .profile-form input { background-color: #2a2a2a; border-color: #444; color: #fff; }
.shop-page, .cart-page {
  background: #f7f8f6;
  min-height: 85vh;
  padding: 2rem 1rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Cart */
.cart-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.cart-item {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cart-item img { width: 60px; height: 60px; object-fit: contain; }
.remove-btn {
  background: #ff7675; border: none; color: white;
  border-radius: 8px; padding: 0.4rem 0.8rem; cursor: pointer;
}
.remove-btn:hover { background: #d63031; }
.cart-summary {
  text-align: right;
  font-size: 1.2rem;
  margin-top: 1rem;
}
