  /* ========= CONSOLIDATED STYLES - ALL CSS FILES MERGED & OPTIMIZED ========= */

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

:root {
  /* Light Theme Colors */
  --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --bg-secondary: rgba(255,255,255,0.95);
  --text-primary: #2c3e50;
  --text-secondary: #555;
  --accent-green: #2d6a4f;
  --accent-green-light: #40916c;
  --accent-green-lighter: #52b788;
  --accent-yellow: #ffd166;
  --accent-yellow-light: #ffb74d;
  --shadow-color: rgba(0,0,0,0.1);
  --glass-border: rgba(255,255,255,0.2);
  --input-bg: rgba(255,255,255,0.8);
  --hover-bg: #f0f8f5;
  --hover-bg-alt: #d1e7d3;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --bg-secondary: rgba(22,33,62,0.95);
  --text-primary: #e6e6e6;
  --text-secondary: #b8b8b8;
  --accent-green: #4ade80;
  --accent-green-light: #22c55e;
  --accent-green-lighter: #16a34a;
  --accent-yellow: #fbbf24;
  --accent-yellow-light: #f59e0b;
  --shadow-color: rgba(0,0,0,0.3);
  --glass-border: rgba(255,255,255,0.1);
  --input-bg: rgba(22,33,62,0.8);
  --hover-bg: rgba(74,222,128,0.1);
  --hover-bg-alt: rgba(34,197,94,0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* cursor: none; */ /* Disabled global cursor none to prevent disappearance */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  transform: scale(1.5);
  border-color: var(--accent-yellow);
}

/* Particle Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: var(--accent-green);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
  animation-delay: -2s;
  background: var(--accent-yellow);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

@keyframes modalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes modalScaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========= LOGO STYLING ========= */
.logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-yellow);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-link {
  position: relative;
}

.logo-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-yellow);
  color: var(--accent-green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid white;
}

/* ========= NAVBAR ========= */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  padding: 15px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Ensure cart icon is always visible in navbar */
.navbar .cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1200;
}

/* Cart Page Upgrades */
.cart {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cart h2 {
  text-align: center;
  color: var(--accent-green);
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  animation: slideInLeft 1s ease-out;
}

.cart h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border-radius: 2px;
}

.cart-container {
  max-width: 900px;
  margin: 20px auto;
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.cart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.05), rgba(52,184,136,0.05));
  border-radius: 20px;
  z-index: -1;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cart-item span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-quantity-controls button {
  background: var(--accent-green);
  color: white;
  border: none;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.cart-quantity-controls button:hover {
  background: var(--accent-yellow);
  color: var(--accent-green);
  transform: scale(1.1);
}

.cart-quantity-controls input {
  width: 60px;
  text-align: center;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 5px;
}

#cart-total {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 30px 0;
  padding: 20px;
  background: rgba(45,106,79,0.1);
  border-radius: 15px;
  border: 2px solid var(--accent-green-light);
}

#checkout-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(45,106,79,0.3);
  margin-top: 20px;
}

#checkout-btn:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45,106,79,0.4);
}

/* Empty Cart Message */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-cart h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-green);
}

.empty-cart p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.empty-cart .btn {
  margin: 0 auto;
}

/* User Profile Page Fixes */
.profile-container {
  max-width: 700px;
  margin: 20px auto;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.profile-container h1 {
  color: var(--accent-green);
  margin-bottom: 15px;
}

.profile-section {
  padding: 12px 15px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* Language Page Fixes */
.language-container {
  max-width: 700px;
  margin: 20px auto;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  position: relative;
}

.language-container h2 {
  color: var(--accent-green);
  margin-bottom: 15px;
  animation: fadeInUp 1s ease-out;
}

/* Ensure logo at top left is in navbar */
.navbar .logo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-yellow);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 1200;
}

.navbar .logo:hover {
  transform: scale(1.05);
}

/* FAQ Page Fixes */
.faq-container {
  max-width: 700px;
  margin: 20px auto;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.faq-container h2 {
  color: var(--accent-green);
  margin-bottom: 15px;
  animation: slideInLeft 1s ease-out;
}

.faq-item {
  margin-bottom: 20px;
}

.question {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent-green);
}

.answer {
  margin-bottom: 15px;
  color: var(--text-secondary);
  margin-left: 20px;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--accent-green);
}

.faq-answer {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-center {
  justify-content: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 25px;
  animation: slideInRight 1s ease-out;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255,209,102,0.2);
  border-radius: 25px;
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-yellow);
  transform: translateY(-2px);
}

#cart-count {
  font-weight: bold;
  color: var(--accent-yellow);
  background: rgba(255,209,102,0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 14px;
}

.user-initial {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--accent-green);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.user-initial:hover {
  background: var(--accent-green-light);
}

.user-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 120px;
  z-index: 1200;
  display: none;
  border: 1px solid rgba(255,255,255,0.2);
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.user-dropdown a:hover {
  background: var(--hover-bg);
}

.user-dropdown .logout-btn {
  color: #ef4444;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.user-dropdown .logout-btn:hover {
  background: rgba(239,68,68,0.1);
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 25px;
  padding: 6px 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 180px;
  margin: 0 auto;
}

.search-input {
  border: none;
  outline: none;
  padding: 4px 8px;
  font-size: 13px;
  background: transparent;
  width: 120px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.search-input::placeholder {
  color: #7f8c8d;
  font-style: italic;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 18px;
  color: var(--accent-green);
  transition: all 0.3s ease;
  border-radius: 50%;
}

.search-btn:hover {
  color: var(--accent-green-light);
  transform: scale(1.1);
  background: rgba(45,106,79,0.1);
}

/* ========= HERO SECTION ========= */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 50%, var(--accent-green-lighter) 100%);
  color: white;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 30px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.hero h1 span {
  color: var(--accent-yellow);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffb74d 100%);
  color: var(--accent-green);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255,209,102,0.3);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9f1a 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255,209,102,0.4);
}

/* ========= ABOUT PAGE ========= */
.about {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.05), rgba(52,184,136,0.05));
  border-radius: 20px;
  z-index: -1;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.about-container h2 {
  color: var(--accent-green);
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.about-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border-radius: 2px;
}

.about-container p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* ========= CONTACT PAGE ========= */
.contact {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.05), rgba(52,184,136,0.05));
  border-radius: 20px;
  z-index: -1;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.contact-form-container h2 {
  color: var(--accent-green);
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  animation: slideInRight 1s ease-out;
}

.contact-form-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border-radius: 2px;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-container input,
.contact-form-container textarea {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.contact-form-container textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-container button {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(45,106,79,0.3);
}

.contact-form-container button:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45,106,79,0.4);
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
}

.form-message.success {
  background-color: rgba(34,197,94,0.1);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.form-message.error {
  background-color: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* ========= ABOUT PREVIEW ========= */
.about-preview {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-secondary);
  margin: 60px auto;
  max-width: 900px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light), var(--accent-green-lighter));
  border-radius: 22px;
  z-index: -1;
  opacity: 0.1;
}

.about-preview h2 {
  color: var(--accent-green);
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  animation: slideInLeft 1s ease-out;
}

.about-preview h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border-radius: 2px;
}

/* ========= ORDER HISTORY ========= */
.order-group {
  padding: 25px 30px;
  background: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-color);
  max-width: 900px;
  margin: 30px auto;
  transition: box-shadow 0.3s ease;
}

.order-group:hover {
  box-shadow: 0 15px 60px var(--shadow-color);
}

.order-group h3 {
  color: var(--accent-green);
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-green-light);
  padding-bottom: 10px;
}

.order-item {
  background: #f0f8f5;
  margin-bottom: 20px;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(45,106,79,0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.order-item:hover {
  background: var(--hover-bg-alt);
  box-shadow: 0 12px 40px rgba(45,106,79,0.15);
}

.order-item h4 {
  margin-top: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.order-item ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 15px;
}

.order-item ul li {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.order-item p {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-green);
  margin: 0;
}

/* ========= SHOP PAGE ========= */
.shop {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: slideInLeft 1s ease-out;
}

.shop h2 {
  text-align: center;
  color: var(--accent-green);
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  animation: slideInRight 1s ease-out;
}

.shop h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  border-radius: 2px;
}

.category {
  margin-bottom: 40px;
}

.category-title {
  color: var(--accent-green);
  font-size: 2rem;
  margin-bottom: 20px;
  animation: slideInLeft 1s ease-out;
}

.products {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.products::-webkit-scrollbar {
  height: 8px;
}

.products::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

.products::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 10px;
}

.products::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green-light);
}

.animal-farm {
  overflow-y: hidden;
}

.product {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  flex: 0 0 200px;
  scroll-snap-align: start;
  max-height: 280px; /* Limit vertical height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: bounceIn 1s ease-out;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.product-image {
  width: 100%;
  height: 100px; /* Reduced height */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Specific smaller sizes for requested images */
.product img[src="milk.png"],
.product img[src="chicken.png"],
.product img[src="ghee.png"],
.product img[src="dragonfruit.png"],
.product img[src="soursop.png"],
.product img[src="lemon.png"],
.product img[src="pawpaw.png"],
.product img[src="pixies.png"],
.product img[src="avocadoes.png"],
.product img[src="yellow-passion.png"],
.product img[src="coriander.png"],
.product img[src="mint.png"],
.product img[src="soursop-herbs.png"],
.product img[src="lettuce.png"],
.product img[src="managu.png"],
.product img[src="terere.png"],
.product img[src="salgaa.png"],
.product img[src="spinach.png"],
.product img[src="apples.png"],
.product img[src="raw-bananas.png"] {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Specific smaller sizes for requested images in product modal */
.product-modal-body img[src="milk.png"],
.product-modal-body img[src="chicken.png"],
.product-modal-body img[src="ghee.png"],
.product-modal-body img[src="dragonfruit.png"],
.product-modal-body img[src="soursop.png"],
.product-modal-body img[src="lemon.png"],
.product-modal-body img[src="pawpaw.png"],
.product-modal-body img[src="pixies.png"],
.product-modal-body img[src="avocadoes.png"],
.product-modal-body img[src="yellow-passion.png"],
.product-modal-body img[src="coriander.png"],
.product-modal-body img[src="mint.png"],
.product-modal-body img[src="soursop-herbs.png"] {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ========= PRODUCT MODAL ========= */
.product-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: modalFadeIn 0.3s ease;
}

.product-modal-content {
  background: var(--bg-secondary);
  margin: 1% auto;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  width: 85%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: modalScaleIn 0.3s ease;
  position: relative;
}

.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-modal-header h3 {
  color: var(--accent-green);
  font-size: 1.8rem;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255,255,255,0.1);
}

.product-modal-body {
  text-align: center;
}

.product-modal-body img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1rem;
}

.product-price-modal {
  color: var(--accent-green);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-controls button {
  background: var(--accent-green);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.quantity-controls button:hover {
  background: var(--accent-yellow);
  color: var(--accent-green);
  transform: scale(1.1);
}

.quantity-controls input {
  width: 60px;
  text-align: center;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 5px;
}

.add-to-cart-modal {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45,106,79,0.3);
}

.add-to-cart-modal:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,0.4);
}

/* ========= PAYMENT SECTION ========= */
#payment-section {
  padding: 40px 30px;
  max-width: 600px;
  margin: 40px auto;
  background: var(--bg-secondary);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

#payment-section h2 {
  text-align: center;
  color: var(--accent-green);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
}

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

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

#payment-form .btn {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
}

#payment-form .btn:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45,106,79,0.4);
}

/* Floating Cart Button */
#floating-cart-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--accent-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(45,106,79,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  transition: background 0.3s ease;
}

#floating-cart-btn:hover {
  background: var(--accent-green-light);
}

#floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-yellow);
  color: var(--accent-green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid white;
}

/* Toast Notification */
#cart-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-green);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(45,106,79,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1600;
  font-weight: 600;
  font-size: 14px;
}

#cart-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========= RESPONSIVE PHONE LAYOUT FIXES ========= */

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
  }
  .nav-left, .nav-right {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
  .navbar .logo {
    position: static !important;
    margin-right: 10px;
    height: 40px;
    width: 40px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 14px;
  }
  .hero {
    padding: 80px 15px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.2rem;
    max-width: 90%;
  }
  .btn {
    padding: 14px 30px;
    font-size: 16px;
  }
  .shop {
    padding: 40px 10px;
  }
  .products {
    gap: 15px;
  }
  .product {
    flex: 0 0 150px;
    max-height: 240px;
    padding: 10px;
  }
  .product-image {
    height: 80px;
    margin-bottom: 10px;
  }
  .category-title {
    font-size: 1.6rem;
  }
}

/* Small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .navbar {
    padding: 8px 10px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .navbar .logo {
    position: static;
    margin: 0 auto 10px;
  }
  .nav-left, .nav-right {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
  }
  .nav-link {
    padding: 5px 8px;
    font-size: 13px;
    text-align: center;
  }
  .hero {
    padding: 60px 10px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  .shop {
    padding: 30px 5px;
  }
  .products {
    gap: 10px;
  }
  .product {
    flex: 0 0 120px;
    max-height: 200px;
    padding: 8px;
  }
  .product-image {
    height: 70px;
    margin-bottom: 8px;
  }
  .category-title {
    font-size: 1.4rem;
  }
}

/* ========= CHATBOT STYLES ========= */

/* Floating Chatbot Button */
.floating-chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(45,106,79,0.4), 0 0 0 0 rgba(45,106,79,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  animation: gentlePulse 3s infinite;
}

.floating-chatbot-btn:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(45,106,79,0.5), 0 0 20px rgba(45,106,79,0.3);
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(45,106,79,0.4), 0 0 0 0 rgba(45,106,79,0.7); }
  50% { box-shadow: 0 10px 30px rgba(45,106,79,0.4), 0 0 15px rgba(45,106,79,0.5); }
}

.chatbot-emoji {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Chatbot Sidebar */
.chatbot-sidebar {
  position: fixed;
  top: 20px;
  right: -450px;
  width: 450px;
  height: calc(100vh - 40px);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(255,255,255,0.98) 100%);
  border-left: 2px solid var(--accent-green-light);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.chatbot-sidebar.open {
  right: 0;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 50%, var(--accent-green-lighter) 100%);
  color: white;
  padding: 20px 25px;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(45,106,79,0.3);
  position: relative;
}

.chatbot-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.chatbot-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.chatbot-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: linear-gradient(180deg, rgba(45,106,79,0.02) 0%, rgba(52,184,136,0.02) 100%);
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green-light);
}

.chatbot-message {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.chatbot-message:hover {
  transform: translateY(-1px);
}

.chatbot-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  border-bottom-right-radius: 5px;
}

.chatbot-message.user::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent-green);
  border-bottom: 8px solid transparent;
  border-top: 8px solid transparent;
}

.chatbot-message.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255,255,255,0.9) 100%);
  color: var(--text-primary);
  border: 1px solid rgba(45,106,79,0.1);
  border-bottom-left-radius: 5px;
}

.chatbot-message.bot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -8px;
  width: 0;
  height: 0;
  border-right: 8px solid rgba(255,255,255,0.9);
  border-bottom: 8px solid transparent;
  border-top: 8px solid transparent;
}

.chatbot-input-area {
  padding: 20px 25px;
  border-top: 2px solid rgba(45,106,79,0.1);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255,255,255,0.95) 100%);
  position: relative;
}

.chatbot-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid rgba(45,106,79,0.2);
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chatbot-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
  background: white;
}

.chatbot-send {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45,106,79,0.3);
}

.chatbot-send:hover {
  background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45,106,79,0.4);
}

.chatbot-typing {
  display: none;
  align-self: flex-start;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255,255,255,0.9) 100%);
  border-radius: 18px;
  border: 1px solid rgba(45,106,79,0.1);
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chatbot-typing::after {
  content: '';
  animation: spin 1s linear infinite;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-green);
  border-top: 2px solid transparent;
  border-radius: 50%;
  margin-left: 8px;
}

/* ========= RESPONSIVE CHATBOT ========= */

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .chatbot-sidebar {
    width: 400px;
    right: -400px;
  }
}

/* Small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .chatbot-sidebar {
    width: 100vw;
    right: -100vw;
  }

  .floating-chatbot-btn {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .chatbot-header {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .chatbot-messages {
    padding: 10px;
  }

  .chatbot-message {
    font-size: 0.85rem;
  }

  .chatbot-input-area {
    padding: 10px;
  }

  .chatbot-input {
    font-size: 0.85rem;
  }

  .chatbot-send {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
