/* === Base & Typography === */
:root {
  --primary: #2d8a4a;
  --primary-light: #3aa757;
  --primary-dark: #1c6e3a;
  --secondary: #f5a623;
  --dark: #1e1e1e;
  --light: #f9f9f9;
  --lighter: #f0f0f0;
  --success: #28a745;
  --danger: #dc3545;
  --gray: #666666;
  --gray-light: #cccccc;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--dark);
}
/* continued from previous section */
h1, h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--dark);
}

p {
  margin: 0 0 1rem 0;
}

.text-center {
  text-align: center;
}

/* === Layout === */
main {
  flex-grow: 1;
}

.section {
  padding: 4rem 0;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-gradient {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.section-title-large {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* === Header === */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo a {
  text-decoration: none;
  color: var(--primary);
}

.logo-suffix {
  color: var(--dark);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-light);
  color: #fff;
}

.nav-link.active {
  background-color: var(--primary);
}

/* === Hamburger Menu === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

.header[data-menu-open="true"] .nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 500;
}

.header[data-menu-open="true"] .nav-list {
  flex-direction: column;
}

.header[data-menu-open="true"] .nav-link {
  margin: 0.5rem 1rem;
  padding-left: 1.5rem;
}

.header[data-menu-open="true"] .nav-link:hover {
  background-color: var(--lighter);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: url("https://via.placeholder.com/1920x1080?text=Fresh+Vegetables") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 60, 30, 0.6));
  opacity: 0.9;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* === Features & Cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card h3 {
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  color: #fff;
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.product-title {
  font-size: 1.15rem;
  padding: 1rem 1.2rem 0.4rem;
  margin: 0;
  color: var(--dark);
  font-weight: 600;
}

.product-price {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  padding: 0 1.2rem 0.8rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--gray);
  padding: 0 1.2rem 1rem;
  margin: 0;
  line-height: 1.5;
}

.product-card .btn {
  margin: 0 1.2rem 1.2rem;
  margin-top: auto;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  min-width: 120px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-white {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
}

.cta-content h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.cta-subtitle {
  font-size: 1rem;
  margin: 0 0 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === About Page Layout === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* === Values List === */
.values-list {
  margin-top: 1.5rem;
  list-style: none;
  display: grid;
  gap: 1.2rem;
}

.values-list li {
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary);
  font-size: 1rem;
  line-height: 1.6;
  transition: var(--transition);
}

.values-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.values-list li strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

/* === Footer === */
.footer {
  background-color: #1e1e1e;
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
}

.footer-light {
  background-color: #f5f5f5;
  color: #444;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.footer-logo a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-logo a:hover {
  text-decoration: underline;
}

.footer-logo a span {
  color: #fff;
}

.footer-contact a,
.footer-contact a:hover {
  color: #ccc;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #aaa;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-info {
  padding-right: 1.5rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-details li {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}

/* === Form Styles === */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* === Password Toggle === */
.password-input-group {
  position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* === Password Rules === */
.password-rules {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.password-rules li {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0 0.3rem 0.3rem 0;
  border-radius: 2rem;
  border: 1px solid var(--gray-light);
  color: var(--gray);
}

.password-rules li.valid {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success);
  border-color: var(--success);
}

/* === Form Messages === */
.form-message {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-message.success {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message.error {
  background-color: rgba(220, 53, 68, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* === Error Messages === */
.error-message {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 1.2rem;
}

/* === Product Filters === */
.product-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.product-filters span {
  color: var(--gray);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  background-color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

/* === Legal Article === */
.legal-article {
  line-height: 1.7;
}

.legal-article h2 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.4rem;
  color: var(--dark);
}

.legal-article ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-article ul li {
  margin: 0.4rem 0;
}

/* === Auth Pages (Login / Signup) === */
.auth-section {
  background-color: #f0f0f0;
  padding: 4rem 0;
}

.auth-form {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 480px;
}

.auth-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.password-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.auth-footer {
  margin-top: 1.2rem;
  text-align: center;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* === Mobile Adjustments === */
@media (max-width: 768px) {
  .hero {
    height: 55vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
  }

  .features-grid,
  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-filters {
    flex-wrap: wrap;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* === Extra Small Devices (Phones) === */
@media (max-width: 480px) {
  .section,
  .cta-section {
    padding: 2rem 0;
  }

  .auth-form {
    padding: 1.5rem;
  }
}

/* === Additional Enhancements === */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-title-large {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title-large::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
}

.feature-icon {
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover::before {
  left: 100%;
}

.product-img {
  transition: transform 0.5s ease;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.product-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  
  .section-title-large::after {
    width: 60px;
  }
}
