@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@100;300;400;700;900&family=Khmer&display=swap');

:root{
    --main-color:#f69ca6;
    --text:#bb4a6a;
    --black:#4b4b4b;
    --white:#ffffff;
    --light-black:#777;
    --light-white:#fff9;
    --dark-bg:rgba(0,0,0,.7);
    --light-bg:hsl(355, 100%, 97%);
    --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: none;

}



body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1e3c72, #2a5298); /* Blue gradient background */
    height: 100vh;
    /* overflow: hidden; */
    font-family: Arial, sans-serif;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* So snowflakes won't interfere with clicks */
    z-index: 1000; /* Ensure snowflakes appear on top */
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(100vh);
    }
}




html{
    font-size: 60%;
    overflow-x: 1rem;
}

html::-webkit-scrollbar-track{
    background-color: var(--white);
    
}

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: space-between;
}

.header .logo {
    overflow: visible;
    width: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header .logo img {
    width: 160px;
    height: auto;
}

.header .logo h4 {
    font-size: 16px;
    color: var(--white); /* You can adjust color as needed */
    margin-top: 8px; /* Add spacing between image and text */
    font-family: 'Khmer OS Battambang';
    white-space: nowrap; /* មិនអោយធ្លាក់បន្ទាត់ក្រោម */
    overflow: hidden;
}



.navbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    font-family: 'Khmer OS Battambang', sans-serif;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .navbar a {
    text-decoration: none;
    font-size: 2.5rem;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
  }
  
  .navbar a:hover {
    background-color: #e0e0e0;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropbtn {
    font-size: 2.5rem;
    color: var(--white);
    font-family: 'Khmer OS Battambang', sans-serif;
    background-color: transparent;
    border: none;
    cursor: pointer;
    /* font-size: 16px; */
    padding: 8px 12px;
    border-radius: 6px;
  }
  
  .dropbtn:hover {
    background-color: #e0e0e0;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 6px;
    /* overflow: hidden; */
  }
  
  .dropdown-content a {
    font-size: 2.5rem;
    color: var(--black);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: var(--main-color);
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .cart-link {
    margin-left: auto;
    font-size: 20px;
  }

  
  
#menu-btn{
    font-size: 3rem;
    cursor: pointer;
    color: var(--black);
    display: none;
}

.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(--light-white);
    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;
}



#menu-btn{
    font-size: 3rem;
    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 */
}

/* Add to card on page */

.add-to-cart-btn {
    background-color: #009879;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  #cart-notify {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  }
  
  #goToCartBtn {
    background-color: red;
    color: white;
    font-family: Battambang;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  #goToCartBtn:hover{
    background-color: #bd0000;
  }

  .cart-notify {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
  }
  .cart-notify a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  


/* add to cart */
.cart-link {
    position: relative;
    font-size: 24px;
    color: white;
  }
  
  .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;
  }
  

/* slide product */

/* layout */
.section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 90vh;
  padding: 20px;
}

/* default hidden */
.hidden {
  opacity: 0;
  transition: all 0.8s ease;
}

/* text from left */
.left {
  transform: translateX(-150px);
}

/* product from right */
.right {
  transform: translateX(150px);
}

/* show animation */
.show {
  opacity: 1;
  transform: translateX(0);
}

/* image style */
.image img {
  width: auto;
  height: 500px;
  object-fit: cover;
}


/* mobile */
@media(max-width:768px){
  .section {
    flex-direction: column;
    text-align: center;
  }
}


/*for discount*/

.card {
  
    position: relative;
    overflow: hidden; 
    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: var(--text); /* Green color for the new price */
    font-weight: bold;
}
.heading-title{
    text-align: center;
    font-size: 4rem;
    font-family: 'Times New Roman';
    color: var(--text);
    /* text-transform: uppercase; */
    padding-top: 2rem;
}

 h3{
    font-size: 4rem;
    color: var(--text);
    font-family: Battambang;
}

h4{
    font-size: 12px;
    color: var(--black);
    font-family: Battambang;
}

 p{
    font-size: 2rem;
    color: var(--light-black);
    font-family: Battambang;
    line-height: 2;
    padding: 1rem 0;
}


.btn{
    display: inline-block;
    background: var(--main-color) !important;
    margin-top: 1rem;
    color: var(--white);
    font-family: Battambang;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    cursor: pointer;
}

.btn:hover{
    background: var(--text) !important;
}

.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);
}



/* slide pic */

.card {
  width: 250px;
  margin: auto;
  text-align: center;
}

/* slider container */
.slider {
scroll-behavior: smooth;
display: flex;
overflow: hidden;
width: 100%;
height: 100%;
scroll-snap-type: x mandatory;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
object-fit: cover; /* Ensures the image covers the container */
cursor: pointer;
}

/* hide scrollbar */
.slider::-webkit-scrollbar {
  display: none;
}

/* images */
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  scroll-snap-align: start;
  
  
}


/* about us */
.about{
    padding: 2rem;
    width: 100%;
    height: auto; /* កំណត់ height:auto ដើម្បីចៀសវាងលំហទំនេរ */
    /* display: flex; ប្រើ flex ដើម្បីបែងចែក content */
    gap: 2rem; /* បន្ថែមលំហរក្នុងចន្លោះអត្ថបទនិងរូបភាព */
    align-items: center;
}
.about-slider{
    background-color: rgba(255, 255, 255, 0.802);
    box-shadow: var(--box-shadow);
    width: 35%;
    border-radius: 50%;
}
.about_img{
    width: 100%;
}
.about .silde .content{
    width: 5rem;
    display: none;
}

.about p {
    font-size: 2rem; /* កំណត់ទំហំ font ឲ្យសមស្រប */
    line-height: 1.6; /* កំណត់ចន្លោះបន្ទាត់ */
    text-align: justify; /* ចង្អុលអត្ថបទឲ្យស្អាត */
}

.footer{
    background-color:var(--main-color);
    width: 100%;
    /* height: auto; */
    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:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:flex-start;
  align-items:flex-start;
  padding:20px;
  
}

/* .card_control{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    padding:2rem 2rem;
    gap: 10px;
    margin-bottom: 2rem;
} */


/* .card{
  
  width:320px;
  background:white;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  transition:0.3s;
  margin:0;
} */

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.card h3 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-family: Battambang;
}


.card h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-family: Battambang;
}

.card p {
    font-size: 2rem;
    color: #555;
    margin: 5px 0 15px;
}

.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;
}

/* admin */
.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .order-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    transition: 0.3s;
  }
  
  .order-card:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .order-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #3b82f6;
  }
  
  .order-card ul {
    padding-left: 20px;
    margin-bottom: 10px;
  }
  
  .status-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
    background-color: #f1f5f9;
    font-weight: bold;
  }
  .delete-btn {
    background-color: #f87171;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }
  .delete-btn:hover {
    background-color: #ef4444;
  }
  


  /* login */

  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
  }
  
  .logo {
    width: 150px;
    margin-bottom: 20px;
  }
  
  .login-box h2 {
    font-family: 'Khmer OS Battambang', sans-serif;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
  }
  
  .login-box input {
    font-family: 'Khmer OS Battambang', sans-serif;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
  }
  
  .login-box button {
    font-family: 'Khmer OS Battambang', sans-serif;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s;
  }
  


/* 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;
    }
}


  /* ✅ Mobile Responsive Fix */
  @media screen and (max-width: 768px) {
    .dropdown {
      width: 100%;
    }
  
    .dropbtn {
      width: 100%;
      text-align: left;
      background-color: #ccc;
      font-size: 18px;
    }
  
    .dropdown-content {
      position: static;
      width: 100%;
      box-shadow: none;
      border-radius: 0;
      background-color: #f7f7f7;
    }
  
    .dropdown-content a {
      font-size: 16px;
      padding: 12px;
    }
  }
  


  /* =========================
   LOCATION
========================= */

.branch-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;

    padding: 20px;
    align-items: stretch;
}

/* CARD */
.branch-container .card {
    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 15px;

    background: #fff;
    border-radius: 15px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
}

/* IMAGE BOX */
.branch-container .card .branch-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
}

/* CARD CONTENT */
.branch-container .card .card-content {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

/* TITLE */
.branch-container .card .card-content h2 {
    width: 100%;

    text-align: center;

    font-size: 24px;
    line-height: 1.5;

    color: var(--text);

    margin: 15px 0 10px;
}

/* TEXT */
.branch-container .card .card-content p {
    width: 100%;

    text-align: center;

    font-size: 17px;
    line-height: 1.8;

    margin: 5px 0;
}

/* MAP BUTTON */
.branch-container .card .map-btn {
    display: inline-block;

    margin: 15px auto 0;

    padding: 10px 20px;

    background: var(--main-color) !important;
    color: white;

    border-radius: 8px;

    text-align: center;
}

.branch-container .card .map-btn:hover {
    background: var(--text) !important;
}


/* =========================
   SEARCH + PROVINCE
========================= */

.top-bar {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto 20px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 12px;

    flex-wrap: wrap;
}

.top-bar input,
.top-bar select {
    height: 45px;

    padding: 0 15px;

    border: 1px solid #ccc;
    border-radius: 10px;

    font-size: 16px;

    background: white;
}

.top-bar input {
    width: 190px;
}

.top-bar select {
    width: 135px;
}


/* TOTAL LOCATION */
.province-count {
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--text);

    color: white;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    white-space: nowrap;
}


/* =========================
   RESPONSIVE
========================= */

/* Laptop */
@media (max-width: 1200px) {

    .branch-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

}


/* Tablet */
@media (max-width: 992px) {

    .branch-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

}


/* Mobile */
@media (max-width: 768px) {

    .branch-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;

        padding: 15px;
    }

    .branch-container .card {
        padding: 10px;
    }

    .branch-container .card .branch-image {
        height: 180px;
    }

    .branch-container .card .card-content h2 {
        font-size: 20px;
    }

    .branch-container .card .card-content p {
        font-size: 15px;
    }

}


/* Small Mobile */
@media (max-width: 480px) {

    .branch-container {
        grid-template-columns: 1fr;

        max-width: 380px;

        margin: 0 auto;
    }

    .branch-container .card .branch-image {
        height: 230px;
    }

    .top-bar {
        justify-content: center;
    }

}


  /* location */
/* HEADER */

header{
  /* background:var(--text); */
  font-family: 'Khmer OS Battambang';
  color:var(--text);
  text-align:center;
  padding:20px;
  font-size:30px;
  border-radius:12px;
  margin-bottom:20px;
}
/* total location */


.province-filter{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:auto;
}
.province-count{
  background: var(--text);
  color:white;
  padding:10px 15px;
  border-radius:8px;
  font-weight:bold;
  font-size: 16px;
}





@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@300;400;700&family=Khmer&display=swap');

:root{--main-color:#f69ca6;--text:#bb4a6a;--white:#fff;--black:#4b4b4b;--light-bg:#fff5f6;--shadow:0 4px 14px rgba(0,0,0,.10)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:62.5%}
body{background:var(--light-bg);color:var(--black);font-family:Arial,'Battambang',sans-serif}

.location-header{width:100%;text-align:center;padding:25px 15px 15px}
.location-header h1{color:var(--text);font-family:'Battambang',sans-serif;font-size:3.5rem;font-weight:700}

.location-section{width:100%;max-width:1600px;margin:0 auto;padding:10px 20px 50px}

.top-bar{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:25px}
.top-bar input,.top-bar select{height:45px;background:#fff;border:1px solid #ccc;border-radius:10px;font-size:16px}
.top-bar input{width:215px;padding:0 12px}
.top-bar select{min-width:160px;padding:0 12px;cursor:pointer}
.top-bar input:focus,.top-bar select:focus{border-color:var(--main-color);outline:none}
.province-count{min-height:45px;display:inline-flex;align-items:center;justify-content:center;background:var(--text);color:#fff;padding:8px 16px;border-radius:8px;font-size:16px;font-weight:bold;white-space:nowrap}
.refresh-btn{min-height:45px;padding:8px 16px;border:0;border-radius:8px;background:var(--main-color);color:#fff;font-size:16px;cursor:pointer}
.refresh-btn:hover{background:var(--text)}

.branch-container{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;align-items:stretch}

.location-card{width:100%;min-width:0;background:#fff;border-radius:15px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;align-items:stretch;transition:.25s}
.location-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,.13)}

.location-image-box{width:100%;height:250px;padding:10px;display:flex;align-items:center;justify-content:center;background:#fff}
.location-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:10px}

.location-content{width:100%;flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 18px 20px}
.location-name{width:100%;color:var(--text);font-family:'Battambang',sans-serif;font-size:2.4rem;font-weight:700;line-height:1.5;text-align:center;margin:5px 0 12px}
.location-info{width:100%;color:#555;font-family:'Battambang',sans-serif;font-size:1.7rem;line-height:1.8;text-align:center;margin:3px 0}
.location-phone{margin-top:8px}
.map-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:auto;padding:10px 22px;background:var(--main-color);color:#fff;border-radius:8px;text-decoration:none;font-size:1.7rem;transition:.2s}
.map-btn:hover{background:var(--text)}

.loading,.empty-message,.error-message{width:100%;text-align:center;font-family:'Battambang',sans-serif;font-size:1.8rem;padding:30px 15px}
.loading{color:var(--text)}
.empty-message{display:none;color:#777}
.error-message{display:none;color:#d33}

#scrollToTopBtn{position:fixed;right:22px;bottom:22px;width:48px;height:48px;display:none;align-items:center;justify-content:center;border:0;border-radius:50%;background:var(--main-color);color:#fff;font-size:26px;font-weight:bold;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.2);z-index:9999}
#scrollToTopBtn:hover{background:var(--text)}

@media(max-width:1300px){.branch-container{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.branch-container{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){
  .location-section{padding-left:12px;padding-right:12px}
  .branch-container{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
  .location-image-box{height:210px}
  .location-name{font-size:2rem}
  .location-info{font-size:1.5rem}
}
@media(max-width:500px){
  .location-header h1{font-size:2.8rem}
  .top-bar{justify-content:center}
  .top-bar input,.top-bar select,.province-count,.refresh-btn{width:100%}
  .branch-container{grid-template-columns:1fr;max-width:380px;margin:0 auto}
  .location-image-box{height:250px}
}

/* =========================================
   JUNBIE BROCHURE
   RESPONSIVE PDF VIEWER
========================================= */


/* =========================================
   ROOT
========================================= */

:root {

    --main-color: #f69ca6;

    --text: #bb4a6a;

    --white: #ffffff;

    --black: #4b4b4b;

    --light-bg: hsl(355, 100%, 97%);

    --pdf-bg: #eeeeee;

    --box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.10);

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


/* =========================================
   HTML
========================================= */

html {

    scroll-behavior: smooth;

    overflow-x: hidden;

}


/* =========================================
   BODY
========================================= */

body {

    margin: 0;

    padding: 0;

    background: var(--light-bg);

    color: var(--black);

    font-family:
        "Battambang",
        Arial,
        sans-serif;

    overflow-x: hidden;

}


/* =========================================
   BROCHURE SECTION
========================================= */

.brochure-section {

    width: 100%;

    min-height: 100vh;

    padding:
        30px
        20px
        50px;

    text-align: center;

}


/* =========================================
   TITLE
========================================= */

.brochure-title {

    font-family:
        "Battambang",
        sans-serif;

    font-size: 35px;

    font-weight: 700;

    color: var(--text);

    margin-bottom: 20px;

}


/* =========================================
   LANGUAGE BUTTONS
========================================= */

.language-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;

    flex-wrap: wrap;

}


/* =========================================
   LANGUAGE BUTTON
========================================= */

.language-btn {

    border: 1px solid var(--main-color);

    outline: none;

    cursor: pointer;

    padding:
        10px
        25px;

    border-radius: 10px;

    background: var(--white);

    color: var(--text);

    font-family:
        "Battambang",
        Arial,
        sans-serif;

    font-size: 16px;

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .2s ease;

}


/* =========================================
   HOVER
========================================= */

.language-btn:hover {

    background: var(--main-color);

    color: var(--white);

}


/* =========================================
   ACTIVE
========================================= */

.language-btn.active {

    background: var(--main-color);

    color: var(--white);

    box-shadow:
        0 4px 10px
        rgba(246, 156, 166, .35);

}


/* =========================================
   CURRENT LANGUAGE
========================================= */

.current-language {

    margin-bottom: 15px;

    font-size: 18px;

    color: var(--text);

    font-weight: 700;

}


/* =========================================
   PDF CONTAINER
========================================= */

.pdf-container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    background: var(--white);

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        var(--box-shadow);

}


/* =========================================
   PDF VIEWER
========================================= */

.pdf-viewer {

    width: 100%;

    height: 80vh;

    min-height: 500px;

    overflow: auto;

    background: var(--pdf-bg);

    padding: 15px;

    -webkit-overflow-scrolling: touch;

    touch-action:
        pan-x
        pan-y;

    overscroll-behavior:
        contain;

}


/* =========================================
   PDF PAGES
========================================= */

.pdf-pages {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    gap: 20px;

}


/* =========================================
   PDF CANVAS
========================================= */

.pdf-page {

    display: block;

    background: #ffffff;

    flex-shrink: 0;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, .15);

}


/* =========================================
   LOADING
========================================= */

.loading {

    width: 100%;

    text-align: center;

    padding:
        50px
        20px;

    color: var(--text);

    font-family:
        "Battambang",
        sans-serif;

    font-size: 17px;

}


/* =========================================
   OPEN PDF CONTAINER
========================================= */

.open-pdf-container {

    margin-top: 18px;

    text-align: center;

}


/* =========================================
   OPEN PDF BUTTON
========================================= */

.open-pdf-btn {

    display: inline-block;

    text-decoration: none;

    background: var(--main-color);

    color: var(--white);

    padding:
        10px
        25px;

    border-radius: 8px;

    font-size: 16px;

    font-family:
        "Battambang",
        Arial,
        sans-serif;

    transition:
        background-color .3s ease,
        transform .2s ease;

}


/* =========================================
   OPEN PDF HOVER
========================================= */

.open-pdf-btn:hover {

    background: var(--text);

    transform:
        translateY(-2px);

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {


    .brochure-section {

        padding:
            20px
            10px
            40px;

    }


    .brochure-title {

        font-size: 28px;

        margin-bottom: 15px;

    }


    .language-buttons {

        gap: 8px;

    }


    .language-btn {

        padding:
            9px
            18px;

        font-size: 15px;

    }


    .current-language {

        font-size: 16px;

    }


    .pdf-container {

        border-radius: 10px;

    }


    .pdf-viewer {

        height: 75vh;

        min-height: 500px;

        padding: 8px;

        overflow:
            auto;

        touch-action:
            pan-x
            pan-y;

    }


    .pdf-pages {

        width: 100%;

        min-width: 100%;

    }


    .open-pdf-btn {

        padding:
            9px
            20px;

        font-size: 15px;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {


    .brochure-section {

        padding:
            15px
            5px
            30px;

    }


    .brochure-title {

        font-size: 23px;

        margin-bottom: 12px;

    }


    .language-buttons {

        gap: 6px;

    }


    .language-btn {

        padding:
            8px
            14px;

        font-size: 14px;

        border-radius: 8px;

    }


    .current-language {

        font-size: 14px;

        margin-bottom: 10px;

    }


    .pdf-container {

        width: 100%;

        border-radius: 8px;

    }


    .pdf-viewer {

        width: 100%;

        height: 75vh;

        min-height: 500px;

        padding: 5px;

        overflow:
            auto;

        -webkit-overflow-scrolling:
            touch;

        touch-action:
            pan-x
            pan-y;

    }


    .pdf-pages {

        width: 100%;

        min-width: 100%;

        align-items: center;

    }


    .pdf-page {

        max-width: none;

    }


    .open-pdf-btn {

        padding:
            9px
            18px;

        font-size: 14px;

    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {


    .brochure-title {

        font-size: 21px;

    }


    .language-btn {

        padding:
            7px
            11px;

        font-size: 13px;

    }


    .pdf-viewer {

        height: 70vh;

        min-height: 450px;

    }

}