/* ===============================
   GLOBAL RESET & FONT
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f2f2f2;
  color: #222;
}

/* ===============================
   TOP BAR
================================ */
.topbar {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

/* ===============================
   HEADER & NAVBAR
================================ */
.header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ===== Featured Products ===== */

.products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.products .product-box {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.products .product-box:hover {
  transform: translateY(-6px);
}

.products .product-box img {
  width: 100%;
  height: 220px;          /* 🔥 fixed height */
  object-fit: contain;   /* 🔥 image cut nahi hogi */
  margin-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.logo h2 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}


.navbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar a,
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  background: #2e7d32;
  color: #fff;
}

/* ===============================
   PAGE TITLE
================================ */
.page-title {
  font-size: 34px;
  margin: 30px 40px 10px;
  color: #2e7d32;
}

/* ===============================
   PRODUCT GRID
================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 30px 40px;
}

/* ===============================
   PRODUCT CARD
================================ */
.product-box {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

/* ===============================
   PRODUCT IMAGE
================================ */
.product-image {
  width: 100%;
  height: 190px;
  background: #f8f8f8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.product-box:hover .product-image img {
  transform: scale(1.07);
}

/* ===============================
   PRODUCT TEXT
================================ */
.product-box h3 {
  font-size: 16px;
  margin: 10px 0 6px;
  font-weight: 600;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: #8e44ad;
  margin-bottom: 10px;
}

/* ===============================
   QUANTITY BOX
================================ */
.qty-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qty-box button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #2e7d32;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.qty-box button:hover {
  background: #256628;
}

.qty-box span {
  font-size: 16px;
  font-weight: 600;
  min-width: 20px;
}

/* ===============================
   ACTION BUTTONS
================================ */
.action-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ADD TO CART */
.btn-cart {
  flex: 1;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 11px 0;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* BUY NOW */
.btn-buy {
  flex: 1;
  background: #111;
  color: #fff;
  border: none;
  padding: 11px 0;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  background: #2e7d32;
  transform: translateY(-2px);
}

/* ===============================
   FOOTER
================================ */
footer {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}
/* ===============================
   HOME PAGE FIX (SAFE SCOPE)
================================ */
.home-page .hero {
  background: linear-gradient(to right, #e8f5e9, #f1f8e9);
  padding: 80px 20px;
  text-align: left;
}

.home-page .hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.home-page .hero p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 650px;
}

.home-page .hero a {
  display: inline-block;
  margin-right: 12px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.home-page .hero a:first-child {
  background: #2e7d32;
  color: #fff;
}

.home-page .hero a:last-child {
  border: 2px solid #2e7d32;
  color: #2e7d32;
}

/* ===============================
   CATEGORY LIST FIX
================================ */
.home-page .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  padding: 30px 40px;
}

.home-page .category-box {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.home-page .category-box:hover {
  transform: translateY(-5px);
}

.home-page .category-box img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

.home-page .category-box h3 {
  font-size: 18px;
  color: #2e7d32;
}
/* ===== About Section Logo Size Fix ===== */

.about-image img {
  width: 260px;        /* 🔧 yahan size adjust kar sakte ho */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;     /* center align */
}
/* ===== About Section Professional Styling ===== */

.about {
  background: #f7f9f7;
  padding: 70px 20px;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 34px;
  color: #1b5e20;
  margin-bottom: 18px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.about-image img {
  width: 240px;          /* logo controlled */
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    margin-top: 30px;
  }
}
/* ===== Contact Page Styling ===== */

.contact-section {
  background: #f7f9f7;
  padding: 70px 20px;
}

.contact-box {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-box h2 {
  font-size: 32px;
  color: #1b5e20;
  margin-bottom: 10px;
}

.contact-box p {
  color: #555;
  margin-bottom: 25px;
}

.contact-item {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

/* ===== Products Intro ===== */

.products-intro {
  text-align: center;
  padding: 60px 20px 30px;
}

.products-intro h2 {
  font-size: 30px;
  color: #1b5e20;
  margin-bottom: 10px;
}

.products-intro p {
  max-width: 800px;
  margin: auto;
  color: #555;
  font-size: 16px;
}
/* ===== Layout Fix: Fixed Footer + Scrollable Content ===== */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header normal rahe */
.header {
  flex-shrink: 0;
}

/* Center content scroll kare */
.page-content {
  flex: 1;
  overflow-y: auto;      /* 🔥 sirf yahan scroll */
  padding: 30px 20px;
  background: #f5f7f5;
}

/* Footer hamesha neeche fixed */
.footer-fixed {
  flex-shrink: 0;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}
/* ===== SAFE GLOBAL SCROLL FIX (ALL PAGES) ===== */

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;   /* horizontal scroll band */
  overflow-y: auto;     /* ✅ vertical scroll allowed */
}
/* ===== FIXED FOOTER (ALL PAGES) ===== */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  z-index: 999;
}
/* Footer height jitni space neeche do */
body {
  padding-bottom: 80px; /* footer ki approx height */
}
/* ===== COD Notice ===== */

.cod-note {
  font-size: 13px;
  margin-top: 4px;
  color: #ffeb3b;
  font-weight: 600;
}
.cod-note {
  font-size: 13px;
  margin-top: 4px;
  color: #fff;
  background: #c62828;
  padding: 4px 8px;
  display: inline-block;
  border-radius: 6px;
  font-weight: 600;
}
/* ===== Perfect Floating WhatsApp Button ===== */

.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: transparent;   /* 🔥 background hata diya */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* IMAGE FULL CONTROL */
.whatsapp-float img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
/* ===== Products Dropdown ===== */

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 45px;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 10px 0;
  display: none;
  z-index: 9999;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.dropdown-menu a:hover {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Hover effect */
.nav-item:hover .dropdown-menu {
  display: block;
}
/* ===== NAVBAR DROPDOWN FIX ===== */

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;              /* bilkul Products ke niche */
  left: 0;
  background: #ffffff;
  min-width: 220px;
  padding: 8px 0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
}

/* gap remove karne ke liye */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* hover handling */
.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #e8f5e9;
}
/* ===== Fancy Add to Cart Button ===== */
.btn-cart {
  width: 100%;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #f57c00, #ef6c00);
}

.action-row {
  margin-top: 10px;
}
/* ===== UNIVERSAL PRODUCT IMAGE FIX ===== */

.product-image,
.product-box img {
  width: 100%;
  height: 180px;              /* 🔥 same height for all */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f7f7;
  border-radius: 14px;
}

/* Actual image */
.product-image img,
.product-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;        /* 🔥 image cut nahi hogi */
  display: block;
}
.product-box {
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.product-box:hover {
  transform: translateY(-6px);
}
/* ===============================
   SINGLE SOURCE OF TRUTH
   PRODUCT IMAGE FIX
================================ */

.product-image {
  width: 100%;
  height: 200px;              /* same height for all products */
  background: #f6f6f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;        /* no cut, no stretch */
  display: block;
}
/* ===== PAGE TITLE FIX ===== */

.page-title,
h1 {
  margin-top: 25px;   /* topbar se gap */
}

/* agar insecticides heading kisi section me hai */
.products,
.page-content {
  padding-top: 20px;
}