/* ===== General ===== */
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden; /* prevent horizontal scroll */
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Top Bar ===== */
.top-bar span {
  font-size: 0.9rem;
}

.top-bar .container {
  flex-wrap: wrap;
  text-align: center;
  gap: 0.5rem;
}

.top-bar a {
  font-size: 0.9rem;
}

/* ===== Navbar ===== */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #333;
  margin-right: 1rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007b3e; /* Success green */
}

/* ===== Footer ===== */
.footer {
  position: relative;
}

.footer h5,
.footer h6 {
  font-weight: 600;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  transition: 0.3s;
}

.footer-link:hover {
  color: green;
}

/* ===== Floating Buttons ===== */
#scrollTop,
#scrollDown,
#chatBtn {
  width: 45px;
  height: 45px;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
  position: fixed;
  right: 20px;
}

#scrollTop {
  bottom: 80px;
}

#scrollDown {
  bottom: 50px;
  display: block; /* Optional: adjust visibility */
}

#chatBtn {
  bottom: 140px;
  display: block;
}

#chatBtn i,
.btn-success i {
  color: #fff;
}

/* Hover effects */
.btn-success:hover {
  background-color: #006b34;
}

/* ===== Hero Slider ===== */
.hero-slide {
  height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* dark overlay */
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-caption h1 {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* ===== Products Hero Section ===== */
.products-hero {
  position: relative;
  background: url('images/products-hero.jpg') center/cover no-repeat;
  padding: 5rem 0;
}
.products-hero .overlay {
  position: absolute;
  inset: 0;
}
.hero-text {
  position: relative;
  z-index: 2;
}

/* ===== Product Card ===== */
.product-card {
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.product-image {
  height: 200px;
  object-fit: cover;
}

/* ===== Cart Badge ===== */
#cartCount {
  font-size: 0.75rem;
}

/* ===== Modal Image ===== */
#productModalImg {
  object-fit: cover;
  max-height: 300px;
  width: 100%;
}

/* ===== Toast ===== */
#cartToast {
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ===== Search and Filter Section ===== */
@media (max-width: 768px) {
  .row.g-3.align-items-center {
    flex-direction: column;
  }

  .col-md-6.d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  #searchInput {
    width: 100%;
  }
}

#scrollBtn {
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
  }

/* ===== General Responsive Adjustments ===== */
@media (max-width: 768px) {
  .top-bar span {
    font-size: 0.8rem;
  }
  .hero-slide {
    height: 70vh;
  }
  .carousel-caption h1 {
    font-size: 1.75rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }

  #productModal .modal-body {
    flex-direction: column;
  }
}
  .whatsapp-float {
  position: fixed;
  bottom: 110px; /* above scroll buttons */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 211, 102, 0.5);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
}


