@import url('https:fonts.gogleapis.com/css2?family=Poppins:weight@100;300;400:500:600&display=swap');

:root{
    --green: #2e572b;
    --black:#131212;
    --light-color: #666;
    --box-shadow: 0.5rem 1rem rgba(0,0,0,.1);
    --border: 2rem solid rgba(0,0,0,.1);
    --outline: 1rem solid rgba(0,0,0,.1);
    --outline-hover: .2rem solid var(--black);
}


*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body{
    background: #eee;
}


section{
    padding: 2rem 9%;
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: .8rem 3rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    border: .2rem solid var(--black);
    color: var(--black);
    cursor: pointer;
    background: none;
}

.btn:hover{
    background: var(--green);
    color: #fff;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 9%;
    /* background: #e4e4e4; */
    background: #2e572b;
    box-shadow: var(--box-shadow);
}


.header .logo{
    font-size: 2.5rem;
    font-weight: bolder;
    color: var(--black);
}

.header .logo img{
    width: 200px;
 }

.header .navbar a{
   font-size: 1.7rem;
   margin: 0 1rem;
   /* color: var(--green); */
   color: #fff;
   text-decoration: none;
}

.header .navbar a:hover{
   color: var(--black);
}

.header .icons i{
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    border-radius: .5rem;
    background: #eee;
    color: var(--green);
    font-size: 2rem;
    margin-right: .3rem;
    text-align: center;
    cursor: pointer;
}

.header .icons i:hover{
    background: var(--green);
    color: #fff;
}


#menu-btn{
    display: none;
}


.header .search-form{
    position: absolute;
    top: 110%;
    right: -110%;
    width: 50rem;
    height: 5rem;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}


.header .search-form.active{
   right: 2rem;
   transition: .4s ease;
}

.header .search-form input{
    height: 100%;
    width: 100%;
    background: none;
    text-transform: none;
    font-size: 1.6rem;
    color: var(--black);
    padding: 0 1.5rem;
}


.header .search-form label{
     font-size: 2.2rem;
     padding-right: 1.5rem;
     color: var(--black);
     cursor: pointer;
}

.header .search-form label:hover{
    color: var(--green);
}



/* Flyers section */
.flyers{
    margin: 0;
    padding: 0;
}

.flyers .custom-carousel-btn {
    width: 40px;            /* Make the button area bigger */
    height: 40px;
    background: rgba(0, 0, 0, 0.5); /* Faded black background */
    border-radius: 50%;     /* Perfect circle */
    top: 50%;               /* Center vertically */
    transform: translateY(-50%);
    opacity: 0.8;           /* Slight transparency */
    transition: all 0.3s ease;
}

 .flyers .custom-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7); /* Darker on hover */
    opacity: 1;
}

.flyers .carousel-control-prev-icon,
.flyers .carousel-control-next-icon {
    width: 30px;            /* Increase icon size */
    height: 30px;
    background-size: 100% 100%; /* Keep sharp icons */
}



.flyers .carousel-inner .c-item{
    height: 400px;
}


.flyers .carousel-inner .c-item .c-img{
   height: 100%;
   object-fit: contain;
}
/* End of flyers Section */

/* cards section */
            .cards{
                /* background-color: #2e572b; */
                /* background: #2E572B;
                background: linear-gradient(177deg, rgba(46, 87, 43, 0.98) 45%, rgba(255, 255, 255, 1) 100%); */
                /* background: #d7e0d7;
                background: linear-gradient(169deg, rgba(215, 224, 215, 0.98) 0%, rgba(255, 255, 255, 1) 97%); */
                background: #fff;
                margin: 0;
                padding: 0;
                width: 100%;
            }

            .cards .container{
                margin: auto;      
            }

            .cards h4{
                padding: 10px;
                width: 100%;
                color: #2e572b;;
                text-align: center;
                font-weight: 800;
                font-size: 30px;
            }

            .product-card .card-body{
                background-color: #2e572b;
                justify-content: center;
            }


            .product-card .card-body .card-title{
               font-size: 25px;
               color: #fff;
               text-align: center;
               padding-top: 5px;
            }


            .product-card .card-body .btn{
                background-color: #588d40;
                color: #fff;
                margin-left: 35px;
                border: none;
            }



            /* container for track */
             .carousel-wrapper { 
                margin: 0; 
                width: 100%;
            }

            /* the horizontal track */
            .carousel-track{
                display: flex;
                gap: 16px;                      /* space between cards */
                overflow-x: auto;               /* scrollable */
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch; /* smooth touch scrolling */
                padding: 12px 0;
                scroll-snap-type: x mandatory;  /* snap to cards on mobile */

                /* ✅ Hide scrollbar across browsers */
                -ms-overflow-style: none;   /* IE/Edge */
                scrollbar-width: none;      /* Firefox */
                }

           

            /* hide native scrollbar (optional) */
                .carousel-track::-webkit-scrollbar {
                     height: 8px; 
                     display: none;
                    }
                .carousel-track::-webkit-scrollbar-thumb { 
                    border-radius: 6px; background: rgba(0,0,0,0.12);
                 }

            /* card sizing — responsive */
            .product-card{
                flex: 0 0 25%;                  /* desktop: 4 per view */
                max-width: 320px;
                scroll-snap-align: start;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            }

            /* tablet */
            @media (max-width: 992px) {
            .product-card { flex: 0 0 33.333%; } /* 3 per row */
            }

            /* mobile: one main card visible */
            @media (max-width: 576px) {
            .product-card { flex: 0 0 82%; max-width: none; } /* nearly full width */
            }

            /* style the prev/next controls */
            .custom-control {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                z-index: 5;
                width: 44px;
                height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                border: none;
                background: rgba(0,0,0,0.7);
                box-shadow: 0 2px 6px rgba(0,0,0,0.12);
            }

            /* left/right placement */
                .carousel-control-prev.custom-control { left: 8px; }
                .carousel-control-next.custom-control { right: 8px; }

            /* lighter when disabled */
                .custom-control[disabled] { opacity: 0.45; pointer-events: none; }

            /* make sure the bootstrap control icons are visible on our buttons */
            .carousel-control-prev-icon, .carousel-control-next-icon {
                filter: none; /* use bootstrap icon background images */
                width: 18px;
                height: 18px;
            }
/* End of cards section */

/* Ads Section */
.ads{
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: center;
   
}     

.ads .video{
    background-image: url(img/brushing-teeth-01.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.ads .video img{
  z-index: 3;
  position: relative;
  right: 100px;
  cursor: pointer;
  width: 100px;
}


.ads .video i {
    color: #fff;
    font-size: 50px;
    padding: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    position: relative;
    z-index: 2; /* put the play icon above */
    cursor: pointer;
    margin-left: 100px;
}

.ads .video i::before,
.ads .video i::after {
    content: '';
    position: absolute;
    top: -30px;   /* expand outward instead of covering */
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    border: 8px solid;
    opacity: 0;
    z-index: 1; /* keep ripples below */
}

.ads .video i::before {
    border-color: #2e572b;
    animation: animate 1.5s linear infinite;
}

.ads .video i::after {
    border-color: #fff;
    animation: animated 1.5s linear infinite;
    animation-delay: .6s;
}

@keyframes animate {
    0%{
        transform: scale(.5);
    }

    50%{
        opacity: 1;
    }

    100%{
        transform: scale(1.5);
    }
}


@keyframes animated {
    0%{
        transform: scale(.5);
    }

    50%{
        opacity: 1;
    }

    100%{
        transform: scale(1.5);
    }
}



/* video css */
.modal-content {
  border-radius: 12px;
  border: none;
}

.modal-title {
  color: #2e572b;
  font-weight: 700;
}

.btn-success {
  background-color: #2e572b;
  border: none;
}

.btn-success:hover {
  background-color: #3b6a38;
}

/* End of video css */


.ads .text{
    font-size: 20px;
    width: 500px;
    color: #2e572b;
}

.ads .text img{
    width: 400px;
}

.ads .text h4{
    font-size: 30px;
    font-weight: 800;
}
          


/* advert, mobile view */
@media only screen and (max-width: 600px){
    /* .ads .advert{
        flex-direction: column;
    } */

    .ads .text{
        font-size: 18px;
        padding: 10px;
    }

    .ads .text img{
        width: 300px;
    }

     .ads .text h4{
        font-size: 25px;
     }


}

/* gallery */
.gallery-img img {
  width: 100%;
  height: 220px; /* uniform height */
  object-fit: cover; /* crop proportionally */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img img:hover {
  transform: scale(1.05);
}

/* Remove background scroll effect handled by Bootstrap modal */
.modal {
  overflow-y: hidden !important;
}


/* End of gallery */

/* middle flyer */
    .m-flyer{
        min-width: 100%;
        height: 600px;
        background-image: url(img/middle\ ad-01.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    @media only screen and (max-width: 600px) {
        .m-flyer{
            height: 150px;
        }
    }

    @media only screen and (max-width: 768px) {
        .m-flyer{
            height: 250px;
        }
    }

/* End of middle flyer */


/* media queries */
@media (max-width:991px){
    html{
        font-size: 55%;
    }

    .header{
        padding: 2rem;
    }

    section{
        padding: 2rem ;
    }
}

@media (max-width:768px){
    #menu-btn{
        display: inline-block;
    }

    .header .search-form{
        width: 90%;
    }

    

   .header .navbar{
    position: absolute;
    top: 110%; right: -100%;
    width: 30rem;
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    background: #2e572b;
    color: #fff;
    display: block;
   } 

    .header .navbar.active{
        right: 2rem;
        transition: .4s linear;
    }

   .header .navbar a{
    font-size: 2rem;
    margin: 2rem 2.5rem;
    display: block;
   }
}

@media (max-width:450px){
    html{
        font-size: 50%;
    }
}


  .swal-button {
    background-color: #2e572b;
  }

  .swal-button:not([disabled]):hover {
    background-color: #244723;
  }


  


