@font-face {
    font-family: 'KhmerOSMoulLight';
    src: url('https://cdn.jsdelivr.net/gh/khmeros/fonts/KhmerOS/KhmerOSMoulLight.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/khmeros/fonts/KhmerOS/KhmerOSMoulLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body{
  height: 100%;
  font-family: 'Noto Sans Khmer', sans-serif;
  font-family: 'Roboto', sans-serif;
  font-family: 'KhmerOSMoulLight', sans-serif;
  box-sizing: border-box;
  /* background-color: #e3f2fd; */
  
}
/* ------------------ Main Container ------------------ */
.Main {
    position: fixed;    /* fixed នៅលើ viewport */
    top: 0;             /* ចំលើគេ */
    left: 0;            /* ចាប់ពី left */
    width: 100%;        /* ប្រើទាំង width page */
    z-index: 999;       /* លើក UI elements ផ្សេងៗ */
   /* background-color: #f8f9fa; /* preserve background */
    background-color: #4c4d4e; /* light grey background */
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* ------------------ Logo Section ------------------ */
.Main .logo{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin: 0 auto;
}

.Main .logo img{
    margin-top: -15px;
    margin-bottom: 10px;
    height:70px;
    width: auto;
}

.Main .logo h2{
    font-family: khmer os muol light;
    font-size:20px;
    font-weight:bold;
    color:#fff;
    margin:0;
}
/* ------------------ Navbar ------------------ */
.navbar {
    color: #fff;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-menu {
    font-size: 24px;
    cursor: pointer;
    color: #343a40;
    user-select: none;
    transition: color 0.3s ease;
}
.btn-menu:hover {
  color: #0d6efd; /* bootstrap primary blue */
}
.navbar .btn {
   
  font-weight: bold;
  padding: 5px 15px;
} 
/* Cart Badge */
#cart-count {
    font-size: 12px;
}
/* ------------------ Menu ------------------ */
.menu-btn {
  text-align: right;
  text-align: center;   /* ដាក់ menu ទៅកណ្ដាល */
  margin-top: 10px;
}
.menu-btn ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-btn ul li {
  display: inline-block;   /* 🔥 សំខាន់ */
  margin: auto;          /* ចន្លោះគ្នា */
}
.menu-btn ul li a {
  font-family: khmer os;
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.3s ease;
}

.menu-btn ul li a:hover {
  background-color: #0d6efd;
  color: #fff;
}

.map-container{
  position: absolute;
  top: 20%;
  left: 10%;
}

#map {
    width: 100%;
    height: 700px;
    border-radius: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 0;
  }

  .card {
    border-radius: 15px;
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
  }

  .btn-location {
    font-size: 18px;
    padding: 10px 20px;
  }

  @media (max-width: 576px){
    #map { height: 350px; }
    .btn-location { font-size:16px; padding:8px 16px; }
  }

#btn-menu{
  font-size: 30px;
  color: #fff;
  float: left;
}
/*ចប់ Menu Bar*/
.add-btn{ 
  border-radius: 5px;
  width: 100px;
  border: none;
  box-shadow: 1px 1px 5px 0 black;
  margin: 3px;
  cursor: pointer;
  background:#2196f3;
  color:white;
  border:none;
  padding: 15px;
}
.add-btn:hover{
  background-color: #166FE5;
}
.remove-btn{
  background:red;
  color:white;
  border:none;
}
#cart{
  color:#1d1a1a;
  margin-top:15px;
  padding:10px;
  width:100%;
}
#productList ul {
  padding-left: 20px;
}
.messenger-btn{
  background-color: #2196f3;
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.messenger-btn:hover{
  background-color: #166FE5;
}
.bg-img{
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
}
.container{

  width: 100%;
  max-width: 1200px; 
  margin: auto;
  margin-top: 10px;
}
.row{
  flex-wrap: wrap;
  margin: auto;
}
.custom-row{
  display: flex;
  flex-wrap: wrap;
}

.text-result{
  max-width: 400px;
  margin: 30px auto;
  padding: 15px;
  background: #75cbda;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  position: relative;

}
#searchInput {
  margin-top: 280px;
  margin: auto;
  width: 100%;              /* ប្រើពេញ container */
  max-width: 400px;         /* ចូរត្រួសត្រាយអតិបរមា */
  padding: 12px 20px;       /* ខាងក្នុង input ឲ្យស្រួលវាយ */
  border: 2px solid #ccc;   /* ពណ៌ស border ធម្មតា */
  border-radius: 10px;      /* រាងចិញ្ចៀនស្អាត */
  font-size: 16px;          /* អក្សរ readability ល្អ */
  transition: 0.3s;         /* effect smooth នៅ focus */
  outline: none;            /* Remove default outline */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 9999;
}
.tt{
  color: #fff;
    background-color: #0d6efd;
    width: 100%;
    z-index: 999;
    text-align: center;
  
  }
/* Effect ពេល focus */
#searchInput:focus {
  border-color: #431df0;    /* ពណ៌ primary */
  box-shadow: 0 4px 10px rgba(67,29,240,0.2);
}
.product-item {
  transition: 0.3s;
}
.stars {
  font-size: 30px;
  cursor: pointer;
}
.star {
  color: rgb(34, 32, 32);
}

.star.active {
  color:  gold;
}
.Main-products{
  display: flex;
  box-shadow: 2px 2px 10px 0 rgb(160, 146, 146);
  border-radius: 5px 0px 0px 5px;
  width: 100%;
  width: 360px;
  height: 550px;
  margin: 3px 5px;
}
.Main-image{
  overflow: hidden;
  padding: 0;
  border:1px solid #ddd;
  border-radius: 5px 0px 0px 5px;
  width: 70%;
  height: 100%;
}
.Main-image .big{
  width: 100%;
  height: 55%;
}
.Main-image .big:hover{
  transform: scale(1.1);
  transition: 0.3s;
}
.big img{
  width: 100%;
  mix-blend-mode: multiply; 
  filter: brightness(1.1) contrast(0.8); 
}

.big .bg-1{
  position: absolute;
  font-family: khmer os bokor;
  font-size: 10px; 
  color: #fff; 
  clip-path: polygon(0% 20%,60% 20%, 60% 0%,100% 50%,60% 100%,60% 80%,0% 80%);
}
.Main-image .big-1{
  width: 100%;
  height: 45%;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  margin: 5px 0;
}

.small-image{
  overflow: hidden;
  display: flex;
  width: 30%;
  object-position: center;
  text-align: center;
  flex-direction: column;
   gap: 2px; 
   object-fit: cover;
}
.small-image .small{
  flex: 1; 
}
.small-image .small:hover{
  transform: scale(1.1);
  transition: all 03s ease;
}

.small-image .small img{  
  width: 100%;
  height: 100%;
   mix-blend-mode: multiply;
  filter: brightness(0.8) contrast(1.0); 
}
.Main-products-1{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; 
  border:1px solid #ddd;
  box-shadow: 2px 2px 10px 0 rgb(160, 146, 146);
  border-radius: 5px 0px 0px 5px;
  width: 100%; 
  max-width: 360px;
  height: 550px;
  margin: 0;
} 
.Main-products-1 .Main-image-1:hover{
  transform: scale(1.1);
  transition: 0.3s;
}
.Main-products-1 .Main-image-1{
  width: 100%;
  height: 55%;
  float: left;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 350px 330px;
  mix-blend-mode: multiply; 
  filter: brightness(1.1) contrast(0.9);
}
.Main-image-1 img{
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}


.Main-products-1 .big-1{
  width: 100%;
  height: 45%;
  float: left;
  text-align: center;
}

.big-1 p{
  color: #212121;
  font-family: khmer os;
  font-weight: bold;
  z-index: 9999;
} 
.Main-products-2{
  height: 500px;
  max-height: 550px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
  border:1px solid #292525;
  box-shadow: 2px 2px 10px 0 rgb(160, 146, 146);
  border-radius: 5px 0px 0px 5px; 
  padding: 0;
  margin: 0;
}
.Main-products-2 .Main-image-1:hover{
  transform: scale(1.1);
  transition: 0.3s;
}
.Main-products-2 .Main-image-1{
  width: 60%;
  height: 50%;
  float: left;
}
.Main-image-1 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.Main-products-2 .big-1{
  line-height: 20px;
  width: 60%;
  height: 50%;
  margin: 0;
  padding: 0;
  text-align: center;
  float: left;
  margin-top: 20px;
}


.Main-products-2 .contains{
  width: 40%;
  height: 100%;
  float: right;
}
.contains p{
  font-family: khmer os;
  font-size: 15px;
  color: #212121;
  font-weight: bold;
  margin-top: 5px;
  margin-left: 10px;
  text-align: justify;
  line-height: 1.7;
  z-index: 9999;
}

.sidebar{
  position: fixed;
  height:100%;
  width: 0;
  position:fixed;
  top:0;
  left:0;
  background:#4c4d4e;
  overflow-x:hidden;
  transition:0.4s;
  padding-top:60px;
  z-index: 9999;
  transition: 0.3s;

}
.sidebar .active{
  left: 0;
}

.sidebar ul{
  list-style:none;
  padding:0;
}

.sidebar ul li a{
  font-family: khmer os;
  display:block;
  padding:12px 20px;
  color:white;
  text-decoration:none;
}

.sidebar ul li a:hover{
  background:#0d6efd;
}

.close-btn{
  position:absolute;
  top:10px;
  right:20px;
  font-size:30px;
  color:white;
  text-decoration:none;
}

.menu-btn1{
  text-align:start;
  position: fixed;
  z-index: 9999;
  font-size:20px;
  padding:10px 15px;
  /* background:#4c4d4e; */
  color:#333;
  border:none;
  top: 90px;
  
}
/*  button chate*/

.chat-widget{
position:fixed;
bottom:20px;
right:20px;
z-index:999;
font-family:sans-serif;
}

.chat-toggle{
width:60px;
height:60px;
border:none;
border-radius:50%;
background:#0088cc;
color:white;
font-size:24px;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

.chat-box{
display:none;
width:260px;
background:white;
border-radius:10px;
box-shadow:0 4px 15px rgba(0,0,0,0.3);
padding:15px;
margin-bottom:10px;
}

.chat-box input{
width:100%;
margin:5px 0;
padding:8px;
border:1px solid #ddd;
border-radius:5px;
}

.chat-box button{
width:100%;
background:#ff6a00;
color:white;
border:none;
padding:10px;
border-radius:5px;
margin-top:10px;
}

@media(max-width:768px){
.chat-box{
width:220px;
}
}

  /*   star */
 
/*==============================
  MOBILE SMALL: 320px – 480px
==============================*/
@media (min-width: 320px) and (max-width: 480px) {

  /* Main Products layout */
  .Main-products {
    flex-direction: column;
    height: auto;
  }

  /* Main image: full width */
  .Main-image{
  overflow: hidden;
  width: 70%;
  height: 100%;
}
  .Main-image .big{
  width: 100%;
  height: 55%;
}
.Main-image .big:hover{
  transform: scale(1.1);
  transition: 0.3s;
}
.big img{
  width: 100%;
  mix-blend-mode: multiply; 
  filter: brightness(1.1) contrast(0.8); 
}
.Main-image .big-1{
  width: 100%;
  height: 45%;
}

/* Small images: keep original row layout */
.small-image{
  overflow: hidden;
  display: flex;
  width: 30%;
 /* object-position: center;
  text-align: center;
  flex-direction: column;
   gap: 2px; 
   object-fit: cover;*/
}
.small-image .small{
  flex: 1; 
}
.small-image .small:hover{
  transform: scale(1.1);
  transition: all 03s ease;
}

.small-image .small img{  
  width: 100%;
  height: 100%;
  display: flex;
  gap: 5px;
}


  /* Search input */
  #searchInput{
    position: fixed;
    margin-top: 35px;
    width: 40%;
    right: 0;
  }

  /* Hide logo & main menu, show mobile button */
  .logo{
    display: none !important;
  }
  .menu-btn{
    display: none !important;
  }
  .menu-btn1{
    display: block !important;
  }

  /* Top banner */
  .tt{
    position: fixed;
    top: 170px;
    background-color: #0d6efd;
    width: 100%;
    z-index: 9999;
    margin: auto;
    left: 0;
  }
  .tt div h2{
    font-size: 16px;
    padding: 5px 0;
    text-align: center;
    color: #fff;
  }
}


/*==============================
  MOBILE LARGE: 481px – 767px
==============================*/
@media (min-width: 481px) and (max-width: 767px){

  .Main-products{
    margin: 10px;
  }

   /* Main image: full width */
  .Main-image{
  overflow: hidden;
  width: 70%;
  height: 100%;
}
  .Main-image .big{
  width: 100%;
  height: 55%;
}
.Main-image .big:hover{
  transform: scale(1.1);
  transition: 0.3s;
}
.big img{
  width: 100%;
  mix-blend-mode: multiply; 
  filter: brightness(1.1) contrast(0.8); 
}
.Main-image .big-1{
  width: 100%;
  height: 45%;
}

/* Small images: keep original row layout */
.small-image{
  overflow: hidden;
  display: flex;
  width: 30%;
 /* object-position: center;
  text-align: center;
  flex-direction: column;
   gap: 2px; 
   object-fit: cover;*/
}
.small-image .small{
  flex: 1; 
}
.small-image .small:hover{
  transform: scale(1.1);
  transition: all 03s ease;
}

.small-image .small img{  
  width: 100%;
  height: 100%;
  display: flex;
  gap: 5px;
}



  /* Search input */
  #searchInput{
    margin-top: 180px;
    width: 50%;
    z-index: 999;
  }

  /* Hide logo & main menu, show mobile button */
  .logo{
    display: none !important;
  }
  .menu-btn {
    display: none !important;
  }
  .menu-btn1 {
    display: block !important;
  }
}


/*screen Tablet*/
@media (min-width: 768px) and (max-width: 1024px){
  #searchInput {
  margin-top: 280px;
  }
  .big .bg-1{
    position: absolute;
    margin-left: 180px;
  }
  .row{
    margin: auto;
  }
  .small-image {
    gap: 1px;
  }
  .Main .menu-btn{
    display: block;
  }
  .menu-btn1 {
    display: none !important;
  }
    
}

/* screen laptop*/
@media(min-width: 1025px) and (max-width: 1366px){
   #searchInput {
  margin-top: 280px;
  }
 .big .bg-1{
    position: absolute;
    margin-left: 160px;
  }
  .row{
    margin: auto;
  }
  .Main .menu-btn{
    display: block;
  }
  .menu-btn1 {
    display: none;
  }

}



/* screen destop*/
@media(min-width: 1367px){
  #searchInput {
  margin-top: 280px;
  }
  .big .bg-1{
    position: absolute;
    margin-left: 165px;
  }
  .row{
    margin: auto;
  }
  .Main .menu-btn{
    display: block;
  }
  .menu-btn1 {
    display: none;
  }
}







/*-----------!!!----------------*/
/*----------footer------------*/

.modern-footer {
  background: linear-gradient(135deg, #111, #1c1c1c);
  color: #ddd;
  font-family: sans-serif;
  width: 100%;
 
  
}
 .footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 8%;
  
} 

.footer-box h3 {
  color: #fff;
  margin-bottom: 15px;
  position: relative;
}

.footer-box h3::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #00c6ff;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.footer-box p,
.footer-box a {
  color: #bbb;
  font-size: 14px;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box a {
  text-decoration: none;
  transition: 0.3s;
}

.footer-box a:hover {
  color: #00c6ff;
  padding-left: 5px;
}

.social a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  transition: 0.3s;
}

.social a:hover {
  transform: translateY(-4px);
  color: #00c6ff;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background: #0b0b0b;
  font-size: 13px;
  color: #888;
}
 
