/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(to bottom right, #2e7d32, #43a047), 
              url('../images/hero.jpg') center/cover no-repeat;
  min-height: 85vh;
  padding: 4rem 1rem;
  position: relative;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 2.5rem;
  border-radius: 15px;
  max-width: 700px;
  margin: 0 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e8f5e9;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: #c8e6c9;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: #43a047;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background-color: #2e7d32;
  transform: scale(1.05);
}

/* --- SEARCH SECTION --- */
.search-section {
  background-color: #f0fdf4;
  text-align: center;
  padding: 2.5rem 1rem;
}

.search-section h2 {
  color: #2e7d32;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto 1rem auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.6rem;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 30px;
  font-size: 1rem;
  color: #333;
}

.search-box .btn-search {
  background-color: #43a047;
  border: none;
  color: #fff;
  border-radius: 50%;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.search-box .btn-search:hover {
  background-color: #2e7d32;
  transform: scale(1.05);
}

.search-note {
  color: #388e3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* --- CATEGORY SECTION --- */
.categories {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #f9fafb;
}

.categories h2 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 2rem;
}

.category-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-card h3 {
  margin: 0.8rem 0;
  color: #1b5e20;
}

/* --- FEATURED PRODUCTS --- */
.featured {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #f0fdf4;
}

.featured h2 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 2rem;
}

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

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.6rem 0;
  color: #1b5e20;
}

.product-card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.btn-add {
  background-color: #43a047;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-bottom: 1rem;
}

.btn-add:hover {
  background-color: #2e7d32;
  transform: scale(1.05);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 4rem 1rem;
  }

  .hero-overlay {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .btn-primary {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA BANNER SECTION --- */
.cta-banner {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 3rem auto;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: rotate(25deg);
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e8f5e9;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background-color: #fff;
  color: #2e7d32;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background-color: #e8f5e9;
  transform: scale(1.05);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
  }
}

/* --- Dynamic Category Styles --- */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #2e7d32;
  font-weight: 500;
  padding: 1rem;
}

.category-card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #c8e6c9;
  transform: scale(1.1);
}

.trust-section {
  background: #f0fdf4;
  padding: 2.5rem 1rem;
}
/*
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.trust-grid i {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.trust-grid h3 {
  font-size: 1.2rem;
  color: #1b5e20;
  margin-bottom: 0.5rem;
}
.trust-grid p {
  color: #555;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
*/

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 1000px;
  margin: auto;
}

/*
.trust-card {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(129,199,132,0.15),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.trust-card:hover::before {
  transform: translateX(100%);
}

.trust-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(46,125,50,0.25);
}
*/

.trust-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  isolation: isolate;
  transition: all 0.35s ease;
}

/* Gradient animated border */
.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    120deg,
    #2e7d32,
    #43a047,
    #81c784,
    #43a047,
    #2e7d32
  );
  background-size: 300% 300%;
  animation: cardBorderFlow 12s linear infinite;
  z-index: -1;
}

/* Inner white layer */
.trust-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: #ffffff;
  z-index: -1;
}

.trust-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 35px rgba(46,125,50,0.25);
}

.trust-card:hover::before {
  filter: drop-shadow(0 0 14px rgba(46,125,50,0.35));
  animation-play-state: paused;
}

.trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg,#2e7d32,#43a047);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(46,125,50,0.35);
}

/*
.mobile-order-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2e7d32;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
}
*/

.mobile-order-btn {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #43a047;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.mobile-order-btn:hover {
  background: #2e7d32;
  transform: translateX(-50%) scale(1.05);
}

@media (min-width: 768px) {
  .mobile-order-btn {
    display: none;
  }
}

/* --- HERO LOGO --- */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hero-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  background: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-overlay > * {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.brand-tagline {
  color: #c8e6c9;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-logo img {
    max-width: 200px;
    padding: 0.6rem 1rem;
  }
}

/* ==============================
   TESTIMONIALS SECTION
================================ */

.testimonials {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  padding: 4rem 1rem;
  text-align: center;
}

.testimonials h2 {
  color: #2e7d32;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* --- Wrapper (viewport) --- */
.testimonial-wrapper {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* --- Moving track --- */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollTestimonials 40s linear infinite;
}

/* Pause animation when user interacts */
.testimonial-wrapper:hover .testimonial-track {
  animation-play-state: paused;
}

/* --- Individual card --- */
.testimonial-card {
  background: #fff;
  min-width: 300px;
  max-width: 300px;
  padding: 1.4rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==============================
   TESTIMONIAL CARD BORDER
================================ */

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  isolation: isolate;
}

/* Gradient border */
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    120deg,
    #2e7d32,
    #43a047,
    #81c784,
    #43a047,
    #2e7d32
  );
  background-size: 300% 300%;
  animation: cardBorderFlow 10s linear infinite;
  z-index: -1;
}

/* Inner white layer */
.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: #fff;
  z-index: -1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(46,125,50,0.25);
}

.testimonial-card:hover::before {
  filter: drop-shadow(0 0 14px rgba(46,125,50,0.35));
  animation-play-state: paused;
}

@keyframes cardBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .testimonial-card::before {
    border-radius: 14px;
  }

  .testimonial-card::after {
    border-radius: 12px;
  }
}

/* --- Header --- */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

/* --- Avatar --- */
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #2e7d32;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Text --- */
.testimonial-name {
  font-weight: 600;
  color: #1b5e20;
  font-size: 0.95rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: #4caf50;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* --- Infinite scroll animation --- */
@keyframes scrollTestimonials {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .testimonial-card {
    min-width: 240px;
    max-width: 240px;
  }
}

/* --- HERO BADGE --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e8f5e9;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  animation: floatBadge 4s ease-in-out infinite;
}

.pulse-dot { 
  width: 8px; 
  height: 8px; 
  background: #81c784; 
  border-radius: 50%; 
  box-shadow: 0 0 0 rgba(129,199,132, 0.6); 
  animation: pulse 2s infinite; 
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(129,199,132,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(129,199,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(129,199,132,0); }
}

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tagline-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(129,199,132,0.35);
  color: #e8f5e9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(129,199,132,0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.pill:hover::before {
  transform: translateX(100%);
}

.pill:hover {
  color: #fff;
  background: linear-gradient(135deg,#2e7d32,#43a047);
  box-shadow: 0 0 15px rgba(67,160,71,0.45);
  transform: translateY(-2px) scale(1.05);
}

.trust-title-pill {
  display: inline-block;
  padding: 6px 14px;
  margin: 0.6rem 0 0.4rem;
  border-radius: 999px;
  background: rgba(67,160,71,0.08);
  border: 1px solid rgba(67,160,71,0.35);
  color: #1b5e20;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Animated glow sweep */
.trust-title-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(67,160,71,0.35),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.trust-card:hover .trust-title-pill::before {
  transform: translateX(100%);
}

.trust-card:hover .trust-title-pill {
  background: linear-gradient(135deg,#2e7d32,#43a047);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(67,160,71,0.45);
  transform: scale(1.05);
}
