
/* ===========================================================
 3️⃣ HERO SECTION — Homepage Banner
----------------------------------------------------------- */
.hero-banner {
  background: var(--beige);
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.hero-wrapper {
  position: relative;
  width: 90%;
  max-width: 1150px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 80px;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--green-dark);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  width: 320px;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--green-dark);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-nav:hover {
  background: var(--orange);
  color: #fff;
}

.hero-nav.prev { left: 15px; }
.hero-nav.next { right: 15px; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s;
}

.dot.active {
  background: var(--orange);
  width: 20px;
  border-radius: 10px;
}

/* HERO RESPONSIVE FIX */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 18px;
    gap: 10px;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .hero-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
  }

  .hero-image img {
    width: 140px;
  }

  .hero-nav { display: none !important; }
}


/* ===========================================================
   🏠 4. HOME PAGE — Featured Products, Reviews, CTA
   =========================================================== */
/* (Home page content styling, grid, and review cards here) */


/* ===========================================================
 4️⃣ HOMEPAGE SECTIONS
   Includes:
   - Featured Products
   - Reviews
   - Call-to-Action (CTA)
=========================================================== */

/* ===========================================================
 🛍️ FEATURED PRODUCTS — FINAL FIXED DESIGN
----------------------------------------------------------- */
.section {
  padding: 70px 0;
  text-align: center;
  position: relative;
}

/* Section Heading */
.section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 2rem;
  margin-bottom: 45px;
  display: inline-block;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* Product Grid */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  justify-items: center;
}

/* Card Container */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 270px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Make whole card clickable */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

/* Card Image Box */
.card-img-box {
  background: #fafafa;
  padding: 18px 12px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 170px;
  position: relative;
}

.card-img-box img {
  width: 82%;
  height: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-box img {
  transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Body Section */
.card-body {
  padding: 14px;
  text-align: center;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.card-body .muted {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 10px;
}

/* Price */
.price {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
}

.price .mrp {
  margin-left: 6px;
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 0.85rem;
}

/* Add to Cart Button */
.add-to-cart {
  background: var(--green-dark);
  color: #fff;
  border: none;
  width: 100%;
  padding: 11px 0;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: var(--orange);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section h2 { font-size: 1.6rem; }
  .card-img-box { height: 150px; }
  .card-img-box img { height: 120px; }
}

@media (max-width: 480px) {
  .grid-products {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .card-img-box { height: 130px; }
  .card-img-box img { height: 105px; }
  .card-body h3 { font-size: 0.85rem; }
}



/* ===========================================================
   📰 HOME PAGE — Blog Preview Section
   (Do NOT modify — remains as-is)
   =========================================================== */

.blogs-section {
  text-align: center;
  padding: 80px 0;
  background: var(--beige);
}

.blogs-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 45px;
  position: relative;
  display: inline-block;
}

.blogs-section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 45px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 18px;
}

.blog-card.reverse {
  flex-direction: row-reverse;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.blog-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.blog-card:hover img {
  transform: scale(1.04);
}

.blog-info {
  flex: 1;
  text-align: left;
  padding: 10px 5px;
}

.blog-info h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.blog-info p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.6;
}

.read-more-btn {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.read-more-btn:hover {
  color: var(--orange);
}

@media (max-width: 900px) {
  .blog-card,
  .blog-card.reverse {
    flex-direction: column;
    text-align: center;
  }
  .blog-img img {
    height: 200px;
  }
  .blog-info {
    padding: 5px;
  }
}




/* ===========================================================
   💬 UNIVERSAL REVIEWS SECTION — FIXED SCROLL + ARROWS (v7.5)
=========================================================== */



/* ================= Reviews Slider (Autoplay, responsive) ================= */

.reviews-section {
  margin: 60px auto;
  padding: 48px 20px;
  background: var(--beige);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative;
  overflow: visible;
}

/* Title premium style */
.reviews-title {
  font-family: var(--font-heading);
  color: var(--green-dark);
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.6rem;
  font-weight: 700;
}

/* container */
.reviews-carousel {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  align-items: start;
}

/* visible scrollbar (desktop) */
.reviews-carousel::-webkit-scrollbar { height: 8px; }
.reviews-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }

/* Review card (premium look) */
.review-card {
  background: var(--green-dark);
  border-radius: 14px;
  min-width: 320px;            /* desktop default shows ~3 in row via grid container width */
  max-width: 340px;
  flex: 0 0 auto;
  padding: 22px;
  box-shadow: 0 6px 16px rgba(8,24,12,0.04);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 220px;
}

/* Premium accent for heading inside card */
.review-card .review-name {
  font-weight: 700;
  font-size: 1.05rem;
  color:  #fff; 
  text-align: center;
  margin-bottom: 6px;
}

/* Stars */
.review-rating {
  text-align: center;
  margin-bottom: 8px;
}
.review-rating i {
  font-size: 1.05rem;
  margin: 0 3px;
}
/* filled = gold, empty = muted */
.star-gold { color: #d4a017; }        /* gold */
.star-muted { color: #c6c6c6; }

/* Body text trimmed */
.review-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.review-comment {
  color:#fff; 
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  max-height: 8.5rem;            /* restrict large reviews; approx 8-9 lines */
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 6px 4px;
}

/* gradient fade bottom to indicate truncated content */
.review-comment.truncated::after {
  content: "";
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: 0;
  height: 40px;

  /* FADE: transparent → solid green */
  background: linear-gradient(
      180deg, 
      rgba(255, 255, 255, 0) 0%,   /* fully transparent */
      rgba(0, 0, 0, 0) 0%,        /* transparent start */
      var(--card) 100%            /* solid green background */
  );

  pointer-events: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}


/* Read more button */
.read-more {
  margin-top: 8px;
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
}

/* Large reviews: when expanded */
.review-comment.expanded {
  max-height: none;
}
.read-more[aria-expanded="true"]::after { content: " (show less)"; font-weight: 400; }


/* Mobile: single card view */
@media (max-width: 600px) {
  .review-card { min-width: 90%; max-width: 92%; min-height: 300px; }
  .rev-btn { display: none; } /* hide buttons on small screens (can be toggled if you prefer) */
  .review-comment { text-align: left; padding: 8px 12px; max-height: 11rem; }
}

/* Tablet: two visible */
@media (min-width: 601px) and (max-width: 960px) {
  .review-card { min-width: 46%; max-width: 48%; min-height: 260px; }
}

/* Desktop: show more compact cards */
@media (min-width: 961px) {
  .review-card { min-width: 28%; max-width: 30%; min-height: 220px; }
}

/* Accessibility focus */
.reviews-carousel:focus { outline: none; }
.rev-btn:focus { box-shadow: 0 0 0 3px rgba(34,139,34,0.12); }

/* ensure review form kept tidy */
.review-form { margin-top: 24px; }



/* ===========================================================
   BOTTOM NAVIGATION BUTTONS (PRODUCT DETAIL ONLY)
   =========================================================== */

.product-detail-reviews .reviews-bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 25px;
}

.product-detail-reviews .rev-btn-pd {
  width: 40px;
  height: 40px;
  font-size: 22px;

  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: 0.25s ease;
}

.product-detail-reviews .rev-btn-pd:hover {
  background: var(--green);
  transform: scale(1.08);
}

@media (max-width: 550px) {
  .product-detail-reviews .rev-btn-pd {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}


/* Arrow icon color change on hover */
.product-detail-reviews .rev-btn-pd:hover i {
  color: var(--green-dark);
}


/* ===========================================================
 💬 CALL TO ACTION (CTA)
----------------------------------------------------------- */
.cta {
  background: var(--green-dark);
  color: #fff;
  padding: 70px 20px;
  border-radius: 16px;
  text-align: center;
  margin-top: 80px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta p {
  font-size: 1.1rem;
  color: #e7f1e7;
  margin-bottom: 25px;
}

.cta .btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--green-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta .btn-primary:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta {
    padding: 60px 20px;
  }
  .cta h2 {
    font-size: 1.6rem;
  }
  .cta p {
    font-size: 1rem;
  }
}
