/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b5e20;
  color: white;
  padding: 15px 30px;
}

.navbar .brand {
  font-size: 1.5em;
}

.navbar nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

.navbar nav a:hover {
  text-decoration: underline;
}

/* HERO */
.hero2 {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('https://revoobitproducts.com/wp-content/uploads/2026/02/PRODUCT-OF-MIIRACARE-all-products.webp');
  background-size: cover;
  background-position: center;
  color: white;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}
  
  .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    flex-direction: row;   /* ensures cards are beside each other */
    margin: 20px;
  }
  
  .products h2 {
    width: 100%;           /* header spans full width above the cards */
    text-align: center;
    margin-bottom: 20px;
  }
  
  .product-card {
    flex: 0 1 260px;       /* cards keep their width but flex neatly */
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    background: #fff;
  }

  .product-slideshow {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .product-slide {
    display: none;
  }
  
  .product-slide.active {
    display: block;
  }

  
  .product-carousel {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
  }
  
  .product-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .product-card {
    flex: 0 0 260px;   /* fixed width for each card */
    margin: 0 10px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    background: #fff;
  }
  
  
  .product-card img {
    width: 100%;
    border-radius: 10px;
  }
  
  .testimonials {
    background: #f9f9f9;
  }
  
  .testimonial {
    max-width: 400px;
    margin: 20px auto;
    font-style: italic;
  }
  
  .trust {
    background: #f5f5f5;
  }
  
  .contact {
    background: #e8f5e9;
  }
  
  .btn {
    background: #2e7d32;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .btn:hover {
    background: #1b5e20;
  }
  
  /* SLIDESHOW */
  .slideshow {
    position: relative;
    height: 60px;
  }
  
  .slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s;
    font-size: 3em;
    font-weight: bold;
  }
  
  .slide.active {
    opacity: 1;
  }

  .rating {
    margin: 10px 0;
  }
  
  .rating span {
    font-size: 20px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
  }
  
  .rating span:hover,
  .rating span.active {
    color: gold;
  }

  a{
    text-decoration:none;
    color: white;
  }
  
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 100;
  }
  
  .call-float {
    position: fixed;
    bottom: 90px;   /* 👈 places it ABOVE WhatsApp */
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 100;
  }
  
  .call-float img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
  }
  
  .call-float img:hover {
    transform: scale(1.1);
  }

  .whatsapp-float img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
  }
  
  .whatsapp-float img:hover {
    transform: scale(1.1);
  }
  
  .footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 15px;
  }
  
  .logo {
    width:7%;
    height:5%;
    margin-left:auto;
    margin-right:auto;
    display:block;
    border-radius:50%;
  }

  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 200;
  }
  
  .popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
  }
  
  .popup-content p {
    margin: 8px 0;
  }
  
  .cancel {
    background: gray;
    margin-top: 10px;
  }



  /* Mobile Optimization */
  /* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .navbar nav {
    margin-top: 10px;
  }

  .hero {
    height: 60vh;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .products {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 90%;
  }

  .slide {
    font-size: 1.5em;
  }

  .logo {
    width: 40%;
  }

  .call-float,
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 15px;
  }

  .call-float {
    bottom: 90px;
  }

  .whatsapp-float {
    bottom: 20px;
  }
}

