@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@100;300;400;700;900&family=Khmer&display=swap');

:root{
    --main-color:#e75725;
    --text-color: #000000;
    --black:#222;
    --white:#ffffff;
    --light-black:#777;
    --light-white:#fff9;
    --dark-bg:rgba(0,0,0,.7);
    --light-bg:#ebebeb;
    --border:.1rem solid var(--black);
    --box-shadow:0 .5rem 1rem rgba(0, 0, 0, 0.1);
    --text-shadow: 0 1.5rem 3rem rgba(0,0,0,.3);

}


*{
    .khmer-regular {
        font-family: "khmer", sans-serif;
        font-weight: 400;
        font-style: normal;
      }
        margin: 0; padding: 0;
        box-sizing: border-box;
        outline: none; border: none;
        text-decoration: none;
        text-transform: capitalize;

}
html{
    font-size: 60%;
    overflow-x: 1rem;
}

html::-webkit-scrollbar-track{
    background-color: var(--main-color);
    
}

html::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
body{
    background: var(--light-bg);
}


@keyframes fadeIn {
    0%{
        transform: scale(0);
        opacity: 0;
    }
}

.header{
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: var(--main-color);
    display: flex;
    padding: 2rem 10rem;
    box-shadow: var(--box-shadow);
    align-items: center;
    justify-content: center;
}


 .header .logo img:hover{
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     transform: scale(1.1);
 }
 
 .header .logo {
     display: flex;
     justify-content: center;
     flex-direction: column;
     align-items: center;
     text-align: center;
 }
 
 .header .logo img {
     width: 160px;
     height: auto;
 }
 
 .header .logo h4 {
     font-size: 12px;
     color: white; /* You can adjust color as needed */
     margin-top: 5px; /* Add spacing between image and text */
     font-family: Franklin Gothic Heavy;
 }
 
 .header .navbar a{
     font-size: 2.5rem;
     margin-left: 2rem;
     color: var(--white);
 }
 .navbar a.active {
     color: black; 
     font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
     letter-spacing: 0.5px;
 }
 
 .header .navbar a:hover{
     color: var(--black);
 }

#menu-btn{
    font-size: 0;
    cursor: pointer;
    color: var(--black);
    display: none;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: red;
    color: white;
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#scrollToTopBtn:hover {
    background-color:var(--main-color); /* Change to a darker color on hover */
}

#no-results {
    font-family: 'Khmer OS Battambang';
    color: #ff0000;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}


/* search */
.search-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  #search {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    padding: 10px 20px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-color:var(--text-color) ;
  }
  
.home{
    padding: 0;
}
.home .silde{
    text-align: center;
}
.banner_img{
    width: 100%;
}

.home .silde .content{
    width: 85rem;
    display: none;
}

.home .swiper-slide-active .content{
    display: inline-block;
}

.home .silde span{
    display: block;
    font-size: 2.2rem;
    color: var(--main-color);
    padding-bottom: 1rem;
    animation:fadeIn .2s linear backwards .2s;
}

.home .silde .content h3{
    font-size: 6vw;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
    text-shadow: var(--text-shadow);
    padding: 1rem 0;
    animation:fadeIn .2s linear backwards .4s;
}

.home .swiper-button-next,
.home .swiper-button-prev{
    top: inherit;
    left: inherit;
    right: 0;
    bottom: 0;
    height: 7rem;
    width: 7rem;
    background: var(--white);
    color: var(--black);
}

.home .swiper-button-next:hover,
.home .swiper-button-prev:hover{
    background: var(--main-color);
    color: var(--white);
}

.home .swiper-button-next::after,
.home .swiper-button-prev::after{
    font-size: 2rem;
}

.home .swiper-button-prev{
    right: 7rem;
}

.heading-title{
    text-align: center;
    font-size: 4rem;
    font-family: 'Khmer Viravuth';
    color: var(--main-color);
    text-transform: uppercase;
    padding-top: 1.5rem;
}

 h3{
    font-size: 2.5rem;
    color: var(--main-color);
    font-family: 'NiDA Angkor';
}

 p{
    font-size: 1.5rem;
    color: var(--light-black);
    font-family: 'Khmer OS Battambang';
    line-height: 2;
    padding: 0.5rem 0;
}
/*for discount*/

.card {
    position: relative;
    overflow: hidden; /* Ensure ribbon stays within card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    background: white;
    margin: 10px;
    border-radius: 8px;
    
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Old price style (strikethrough) */
.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

/* New price style */
.new-price {
    color: #cc2e2e; /* Green color for the new price */
    font-weight: bold;
}







/* .btn{
    display: inline-block;
    background: var(--main-color);
    margin-top: 1rem;
    color: var(--white);
    font-family: 'Khmer OS Battambang';
    font-size: 1.5rem;
    padding: 1rem 3rem;
    cursor: pointer;
}

.btn:hover{
    background: var(--main-color);
} */

.btn {
    display: inline-block;
    background: var(--main-color) !important;
    color: #fff;
    margin-top: 1rem;
    font-family: 'Khmer OS Battambang', sans-serif;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.2s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--white) ; /* Border color */
    border-radius: 5px;
    box-sizing: border-box;
    animation: borderGlow 1.5s linear infinite;
}

.btn:hover {
    background: var(--text-color) !important; /* Slightly darker shade on hover */
    color: #fff; /* Ensure text remains visible */
}

/* Animation effect */
@keyframes borderGlow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.waterimg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    object-fit: cover; /* Ensures the image covers the container */
}

.waterimg:hover{
    transform: scale(1.1);
}



/* about us */
.about{
    padding: 2rem;
    width: 100%;
    height: 100%;
}
.about-slider{
    background-color: rgba(255, 255, 255, 0.802);
    box-shadow: var(--box-shadow);
    width: 35%;
    border-radius: 15%;
}
.about_img{
    width: 100%;
}
.about .silde .content{
    width: 5rem;
    display: none;
}

.about p {
    text-align: center;
    font-size: 2rem;
}

.footer{
    background-color: var(--main-color);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding:2rem;
}

.footer .box-container{
    padding-left: 20%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.footer .box-container .box h3{
    color: var(--white);
    font-size: 2rem;
    padding-bottom: 2rem;
    
}

.footer .box-container .box a{
    color: var(--white);
    font-size: 1.5rem;
    padding-bottom: 1rem;
    display: block;
}

.footer .box-container .box a i{
    color: var(--white);
    padding-right: .5rem;
    transition: .2s linear;
}


.footer .box-container .box a:hover i{
    padding-right: 2rem;
}

.footer .credit{
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: .1rem solid var(--light-white);
    font-size: 2rem;
    color: var(--white);
}

.footer .credit span{
    color: var(--light-white);
}

/* water card css  */
.card_control{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    padding:2rem 2rem;
    gap: 10px;
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.card h4 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.card p {
    font-size: 2rem;
    color: #555;
    text-align: left;
    margin: 3px 0 3px;
}

.card a {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 2rem;
}

.card button:hover {
    background-color: #333;
}

/* Responsive adjustments */
@media (min-width: 580px) {
    .card_control{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .card_control{
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .card {
        max-width: 500px;
    }

    .card button {
        padding: 12px 24px;
    }
}

@media (min-width: 1024px) {
    .card_control{
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }
    .card {
        max-width: 400px;
    }

    .card h2 {
        font-size: 3rem;
    }

    .card button {
        padding: 14px 28px;
    }
}
/* end water card  */

/* medai queries */

@media (max-width:991px){
    .header {
        padding: 2rem 2rem;
    }
    html{
        font-size: 55%;
    }
}

@media (max-width:768px){
    
    .header .logo img{
        width: 130px;
     }
    #menu-btn{
        display: inline-block;
        transition: .2s linear;
    }
    #menu-btn.fa-times{
        transition: rotate(180deg);
    }
    
    .header .navbar{
        position: absolute;
        top: 99%; left:0; right: 0;
        background-color: var(--main-color);
        border-top: var(--border);
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);

    }

    .header .navbar.active{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .navbar a{
        display: block;
        margin: 2rem;
        text-align: center;
    }
}


@media (max-width:450px){
    html{
        font-size: 50%;
    }
    .heading-title{
        font-size: 3.5rem;
    }
    .h3{
        font-size: 2.5rem;
    }
}