/*----------------------------------GLOBAL STYLES----------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('../assets/images/Nature BG.png') no-repeat center center fixed;
  background-size: cover;
  color: #1a3c2e;
  min-height: 100vh; /* Add this */
  display: flex; /* Add this */
  flex-direction: column; /* Add this */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/*----------------------------------NAVBAR----------------------------------*/
.top-nav {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.top-nav a {
  text-decoration: none;
  color: #134e29;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.top-nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2e7d32;
  transition: width 0.3s ease;
}

.top-nav a:hover,
.top-nav .active {
  color: #2e7d32;
  transform: translateY(-1px);
}

.top-nav a:hover::after,
.top-nav .active::after {
  width: 100%;
}


/*---------------------------PRODUCT PAGE-----------------------------------*/

.product-banner {
  width: 100%;
  height: 320px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Optional light gradient overlay if needed */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 2rem 3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 700px;
  width: 90%;
}

.banner-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #007e5f;
  font-family: 'Poppins', sans-serif;
}

.banner-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #2b5c4d;
  font-family: 'Poppins', sans-serif;
}

/* Product Listing */
.product-listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  padding-top: 4rem;
}

/* Product Cards */
.product-card {
  box-sizing: border-box;
  width: 100%;
  height: 500px;
  background: rgba(217, 217, 217, 0.58);
  border: 1px solid white;
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border-radius: 17px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  font-weight: bolder;
  color: black;
  padding: 1rem;
  position: relative;
  margin-bottom: 100px;
}

.product-card:hover {
  border: 1px solid black;
  transform: scale(1.05);
}

.product-card:active {
  transform: scale(0.95) rotateZ(1.7deg);
}

/* Image Flip */
.product-image-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
  margin-bottom: 1rem;
  perspective: 1000px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.product-img.back {
  opacity: 0;
}

.product-image-wrapper:hover .product-img.front {
  opacity: 0;
}

.product-image-wrapper:hover .product-img.back {
  opacity: 1;
}

/* Product Text */
.product-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #007e5f;
}

.product-card p {
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

/* Buttons */
.btn-secondary,
.btn-buy {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  color: #007e5f;
  border: 2px solid #007e5f;
}

.btn-secondary:hover {
  background: #007e5f;
  color: white;
}

.btn-buy {
  background: #00c776;
  color: white;
  margin-left: 0.5rem;
}

.btn-buy:hover {
  background: #009e5c;
}

/* Info Icon on Product Card */
.info-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #007e5f;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.info-icon:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-start; /* Changed from center to flex-start */
  z-index: 9999;
  padding: 2rem 1rem; /* Add padding to prevent cut-off */
  overflow-y: auto;   /* Allow scrolling if modal is tall */
}


/* Modal Box Styling */
.modal-content {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  color: #2b5c4d;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Modal Header */
.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #007e5f;
}

/* Modal Text */
.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.8rem 0;
  color: #2b5c4d;
}

/* Modal Close Button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #007e5f;
  background: transparent;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  .modal-content p {
    font-size: 0.9rem;
  }
}

/*--------------------------CART PAGE----------------------------------------*/

/* Cart Table */
.cart-section {
  padding: 4rem 0;
}

/* Glassmorphism style for cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #2e4d2c; /* Earthy green text */
}

.cart-table th {
  background-color: rgba(34, 102, 47, 0.6); /* Ayurvedic deep green */
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.cart-table td img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

/* Cart Summary */
.cart-summary {
  text-align: right;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.cart-summary p {
  font-weight: 600;
  color: #1f3e2e; /* Dark herbal green */
  margin-bottom: 1rem;
}

.cart-summary .btn {
  background-color: transparent;
  color: #22662f;
  border: 2px solid #22662f;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cart-summary .btn:hover {
  background-color: #22662f;
  color: #fff;
}

/* Empty Cart Message */
#cart-items td[colspan="5"] {
  padding: 2rem 1rem;
  font-size: 1.1rem;
  color: #444;
}

/*========================================ABOUT PAGE========================================*/



/*----------------------------------BANNER----------------------------------*/
.banner-premium {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: url('../assets/images/Nature BG.png') no-repeat center center fixed;
  color: #2e7d32;
  background-size: cover; /* Assuming you want this */

  /* More attractive subtle shadow */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Slight vertical offset, blur, and reduced opacity */
}

.banner-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #4caf50;
}

/*----------------------------------ABOUT SECTION----------------------------------*/
.about-section {
  padding: 4rem 0;
}

.about-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  color: #2e3c2f;
}

.about-intro h2 {
  font-size: 2.5rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.about-intro p {
  font-size: 1.05rem;
  color: #3a5433;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/*----------------------------------ABOUT GRID----------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-block {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 100, 0, 0.2);
  color: #1b3b2f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.about-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 100, 0, 0.25);
}

.about-block h3 {
  font-size: 1.4rem;
  color: #1a5d1a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-block p {
  font-size: 1rem;
  color: #204a34;
  line-height: 1.6;
}

.about-values {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.about-values li {
  background-color: rgba(200, 255, 200, 0.3);
  color: #1b4523;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(34, 139, 34, 0.2);
}



/*===================================CONTACT PAGE============================================*/

.contact-form-section {
  padding: 4rem 0;
  min-height: 80vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
  animation: fadeInUp 1s ease-in-out;
}

/* Contact Info */
.contact-info {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(34, 139, 34, 0.2);
  color: #1e3c2e;
  line-height: 1.7;
  transition: transform 0.3s ease;
}

.contact-info h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 1.5rem;
}

.contact-info p,
.contact-info a {
  font-size: 1rem;
  color: #2a4d3d;
  text-decoration: none;
  display: block;
  margin-bottom: 0.7rem;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #388e3c;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(34, 139, 34, 0.2);
  color: #1f3c2c;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c5234;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  color: #1a3d2c;
  font-size: 1rem;
  box-shadow: inset 0 2px 6px rgba(0, 100, 0, 0.08);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7b9e89;
}

.btn-submit {
  background-color: #2e7d32;
  color: #ffffff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
}


/*---------------------------------FOOTER-----------------------*/
/* Premium Footer Style */
.footer {
  background: #e3f9e5;
  color: var(--dark-green);
  border-top: 1px solid #ccebd7;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
  margin-top: auto; /* Add this line */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 1rem;
  gap: 2rem;
}

.footer-left,
.footer-right {
  flex: 1 1 45%;
  min-width: 280px;
}

.footer-left h4,
.footer-right h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1b4332;
}

.footer-left p,
.footer-right p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.footer-left i,
.footer-right i {
  color: #1b4332;
  margin-right: 0.5rem;
}

.footer-left a,
.footer-right a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover,
.footer-right a:hover {
  color: #2d6a4f;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ccebd7;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #2f5f3a;
}


/*=======================================================================================*/
.hamburger {
  display: none;
  font-size: 28px;
  color: #1d6602;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  color: white;
  font-size: 22px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #76aa48;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 1101;
}

@media (max-width: 768px) {
  nav,
  .nav-icons {
    display: none;
  }

  .hamburger {
    display: block;
  }
}


/*======================== RESPONSIVE ADJUSTMENTS ========================*/
@media (max-width: 1200px) {
  /* General Adjustments */
  .container {
    width: 95%;
  }

  /* Navbar */
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .top-nav ul {
    gap: 2rem;
  }

  /* Product Banner */
  .banner-title {
    font-size: 2.2rem;
  }

  /* About Section */
  .about-intro h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  /* Navbar */
  .top-nav a {
    font-size: 0.95rem;
  }

  /* Product Cards */
  .product-card {
    height: 450px;
    margin-bottom: 80px;
  }

  /* Cart Table */
  .cart-table th,
  .cart-table td {
    padding: 0.8rem;
  }

  /* Contact Grid */
  .contact-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* General Adjustments */
  body {
    font-size: 14px;
  }

  /* Navbar */
  .nav-container {
    padding: 0.8rem 1rem;
  }

  /* Product Banner */
  .product-banner {
    height: 280px;
  }

  .banner-content {
    padding: 1.5rem;
  }

  .banner-title {
    font-size: 1.8rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  /* Product Listing */
  .product-listing {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .product-card {
    height: 420px;
    padding: 0.8rem;
    margin-bottom: 60px;
  }

  .product-image-wrapper {
    height: 160px;
  }

  /* Cart Table */
  .cart-table td img {
    width: 50px;
  }

  /* About Section */
  .about-intro h2 {
    font-size: 1.8rem;
  }

  .about-block {
    padding: 1.5rem;
  }

  /* Contact Section */
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Product Banner */
  .banner-title {
    font-size: 1.6rem;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  /* Product Cards */
  .product-listing {
    grid-template-columns: 1fr;
  }

  .product-card {
    height: auto;
    min-height: 400px;
  }

  /* Cart Table */
  .cart-table {
    font-size: 0.9rem;
  }

  .cart-table th {
    font-size: 0.8rem;
    padding: 0.6rem;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Form */
  .contact-form input,
  .contact-form textarea {
    padding: 0.6rem;
  }

  .btn-submit {
    width: 100%;
  }

  /* Mobile Menu */
  .mobile-menu a {
    font-size: 18px;
  }
}

/* Tablet Landscape Optimization */
@media (max-width: 992px) and (orientation: landscape) {
  .product-banner {
    height: 240px;
  }

  .product-card {
    height: 380px;
  }
}

/* Mobile Menu Refinements */
@media (max-width: 768px) {
  .mobile-menu li {
    margin: 15px 0;
  }

  .close-button {
    top: 15px;
    right: 20px;
    font-size: 28px;
  }
}

