@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --primary-green: #2f855a;
  --secondary-leaf: #68d391;
  --earth-tone: #8b5e3c;
  --bg-primary: #f7faf7;
  --bg-secondary: #edf2f1;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --white: #ffffff;
  
  /* Accents */
  --lime-glow: rgba(104, 211, 145, 0.25);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  
  /* Borders */
  --radius-card: 16px;
  --radius-btn: 12px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Layout Spacing */
  --container-max: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 100px;
}

.section-padding {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #236845;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--lime-glow);
}

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

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Header & Nav */
.header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.logo svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-green);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-green);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--primary-green);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: var(--earth-tone);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 60px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Features / Why Choose Us */
.features {
  background-color: var(--white);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-leaf);
}

.category-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.8rem;
  color: var(--secondary-leaf);
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
}

/* Delivery Section */
.delivery-section {
  background-color: var(--bg-secondary);
  border-radius: 24px;
  padding: 60px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.delivery-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.delivery-list {
  margin-top: 20px;
}

.delivery-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.delivery-list svg {
  color: var(--primary-green);
  width: 24px;
  height: 24px;
}

.delivery-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* Content Pages (About, Contact, Terms) */
.page-header {
  background-color: var(--bg-secondary);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--primary-green);
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-green);
}

.page-content p {
  margin-bottom: 20px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.contact-info-card h3 {
  margin-bottom: 20px;
  color: var(--primary-green);
}

.contact-detail {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-detail svg {
  color: var(--secondary-leaf);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--lime-glow);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Shop Sidebar Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.shop-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-secondary);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-list li {
  margin-bottom: 12px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.shop-products .products-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about p {
  margin-top: 20px;
  color: var(--text-secondary);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .container { padding: 0 70px; }
  .products-grid, .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-products .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 50px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 2.5rem; }
  .hero-buttons { justify-content: center; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .delivery-section { grid-template-columns: 1fr; padding: 40px 30px; text-align: center; }
  .delivery-list li { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .products-grid, .categories-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.5rem; }
  .shop-products .products-grid { grid-template-columns: 1fr; }
}