/* ==========================================
   1. GLOBAL RESET & OVERFLOW FIXES
   ========================================== */
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8f7f2;
  color: #214830;
  word-wrap: break-word;
}

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

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

/* ==========================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1b3322;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #4a5d4e;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #1b3322;
}

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

/* Hamburger Toggle Menu (Desktop Par Hidden) */
.hamburger-menu {
  display: none;
  font-size: 22px;
  color: #1b3322;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.hamburger-menu:hover {
  color: #25d366;
}

.btn-primary {
  background-color: #214830;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #163020;
}

.header-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.header-whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.08);
}

.cart-icon {
  position: relative;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #d9534f;
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #1b3322;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-text p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-image {
  flex: 1;
  width: 100%;
}

.hero-image img {
  width: 100%;
  max-height: 400px;
  border-radius: 20px;
  object-fit: cover;
}

/* ==========================================
   4. ABOUT & PLANT CARE SECTIONS
   ========================================== */
.about-section {
  padding: 50px 0;
  text-align: center;
}

.about-text {
  max-width: 600px;
  margin: 15px auto;
  color: #5c6e61;
  line-height: 1.6;
}

.care-section {
  padding: 50px 20px;
  background: #eae7dc;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 40px;
}

.care-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.care-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.care-icon {
  font-size: 30px;
  color: #214830;
  margin-bottom: 10px;
}

.care-card p {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

/* ==========================================
   5. PRODUCTS & SHOP SECTION
   ========================================== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid #214830;
  background: transparent;
  color: #214830;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
  background: #214830;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.product-title {
  font-size: 16px;
  margin: 0;
}

.product-price {
  font-weight: bold;
  color: #214830;
  margin: 5px 0 0;
}

.add-to-cart-btn {
  background: #eae7dc;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  color: #214830;
}

/* ==========================================
   6. FLOATING WHATSAPP & FOOTER
   ========================================== */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.footer {
  background-color: #1b3322;
  color: #e2ece9;
  padding: 50px 0 20px;
  margin-top: 60px;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col .logo {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col p {
  font-size: 14px;
  color: #a3b899;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #a3b899;
  text-decoration: none;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #8da18a;
}

/* ==========================================
   7. CART DRAWER & MODALS
   ========================================== */
#cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

#cart-sidebar {
  position: fixed;
  top: 0; right: -350px; width: 320px; height: 100%;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

#cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

#close-cart-btn {
  font-size: 24px;
  cursor: pointer;
}

#cart-items {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 15px;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.checkout-btn, .place-order-btn {
  width: 100%;
  background: #214830;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-content input, .modal-content textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
}

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

.success-icon {
  font-size: 45px;
  color: #25d366;
  margin-bottom: 10px;
}

/* ==========================================
   8. RESPONSIVE MEDIA QUERIES & MOBILE MENU
   ========================================== */

/* Tablets & Small Laptops (Max Width: 992px) */
@media screen and (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Mobile Devices (Max Width: 768px) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 0;
  }

  /* Hamburger icon visible for mobile */
  .hamburger-menu {
    display: block;
  }

  /* Navigation Drawer Effect on Mobile */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    display: none; /* JavaScript toggle .active lagayega */
    z-index: 100;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-actions {
    gap: 12px;
  }

  .hero-content {
    padding: 20px 0;
    gap: 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-image img {
    width: 100%;
    max-height: 280px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .footer-col {
    min-width: 100%;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  #cart-sidebar {
    width: 290px;
  }
}

/* Very Small Screens (Max Width: 480px) */
@media screen and (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}