/* =================== GENERAL STYLES =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* =================== HEADER =================== */
header {
  background-color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.header-container {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px; /* keep nav and logo a bit inside */
  padding-left: 40px;   /* adds space on the left */
  padding-right: 40px;
}

.logo {
  margin-left: 80px; /* shifts logo slightly to the right */
}

.header-container nav {
  margin-right: 80px; /* optional: shift nav slightly left */
}







/*.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}*/

.logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-size: 16px;
}

nav ul li a:hover {
  color: #d4a1ff;
}

/* Dropdown styles (desktop) */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px 0;
  border: 1px solid #ccc;
  list-style: none;
  min-width: 180px;
  z-index: 999;
}

.dropdown-menu li {
  padding: 4px 16px;
}

.dropdown-menu li a {
  color: black;
  text-decoration: none;
  display: block;
}

/* Show desktop submenu on hover */
@media (min-width: 769px) {
  .dropdown:hover > .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/happy-indian-farmer-organic-bio-products-asthravi.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  display: none !important;
}

/* =================== ABOUT =================== */
.about {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px;
  line-height: 1.6;
  font-size: 18px;
  color: #444;
}

.about h2 {
  font-size: 28px;
  color: #222;
  text-align: center;
  line-height: 1.7rem;
  margin-bottom: 10px;
}

.about h3 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.about p {
  font-size: 16px;
  text-align: justify;
  margin: 10px auto;
  max-width: 850px;
  line-height: 1.5;
}

.about img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =================== PRODUCT CARD =================== */
.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  width: 200px;
  flex-shrink: 0;
  text-align: center;
}

/* =================== THUMBNAILS =================== */
.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.thumbnail {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.info {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 260px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  z-index: 10;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.thumbnail:hover .info {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* =================== SLIDER =================== */
.slider {
  position: relative;
  width: 500px;
  height: 300px;
  overflow: hidden;
  background: transparent;
  border-radius: 10px;
  margin-bottom: 0px;
}

.centered-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 60px 0;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Dots */
.dots {
  text-align: center;
  margin-top: -15px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #d4a1ff;
}

/* =================== FOOTER =================== */
.footer {
  background-color: #e0e0e0;
  padding: 40px 20px;
  color: #000;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style-type: none;
  padding: 0;
}

.footer-column li {
  margin: 6px 0;
}

.footer-column a {
  color: #000;
  text-decoration: underline;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logos img {
  height: 60px;
  object-fit: contain;
}

.footer-note {
  font-size: 14px;
  color: #444;
  text-align: center;
}

/* =================== HAMBURGER & MOBILE NAV =================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* MOBILE NAV */
@media (max-width: 768px) {
    header {
  padding: 5px 20px; /* reduce vertical space */
}

.header-container {
  flex-direction: row; /* keep logo and hamburger in a row */
  align-items: center; /* vertically centered */
}

.logo {
   margin: 0;
  transform: translateY(6px);
}

.hamburger {
  margin: 0;
}
#products-dropdown {
    display: none; /* hide the dropdown entirely on mobile */
  }
  /*.desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }*/

  



  /* Show hamburger */
  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
  }

  /* Hide main nav by default */
  nav#mobile-nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* Show nav when hamburger active */
  nav#mobile-nav.active ul {
    display: flex;
  }

  /* Mobile dropdown submenu hidden by default */
  #mobile-nav .dropdown > .dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding-left: 15px;
    position: relative;
    background: #fff;
    box-shadow: none;
  }

  /* Show submenu only when parent has .active */
  #mobile-nav .dropdown.active > .dropdown-menu {
    display: flex;
  }

  /* Center logo on mobile */
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin: 0 0 10px 0;
  }

  /* Hero adjustments */
  .hero {
    background-size: contain;
    background-position: center top;
    height: auto;
    min-height: 250px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .about {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.5;
    font-size: 16px;
  }

  .about h2 {
    font-size: 22px;
  }

  .about h3 {
    font-size: 18px;
  }

  .about p {
    font-size: 15px;
  }

  .about img {
    max-width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .logo img {
    width: 120px;
    max-width: 55vw;
  }

  .thumbnail img {
    height: 180px;
  }

  section h2 {
    font-size: 20px;
  }

  .container {
    padding: 0 10px;
  }

  .thumbnail .info {
    padding: 10px;
  } }
  .mobile-only {
  display: none;
}
/* === Mobile Navigation Fix === */
@media (max-width: 768px) {
  /* Hide the dropdown version */
  #products-dropdown {
    display: none !important;
  }

  /* Force show flat product links */
  .mobile-only {
    display: block !important;
  }
}

/* On desktop, hide mobile-only links */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
@media (max-width: 768px) {
  #mobile-nav .dropdown {
    display: none;
  }
}


}
