@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
/* font-family: "Caveat", cursive; */

:root {
  --colorPrimary : "#0054D0";
  --colorSecondary : "#FBAE24";
  --colorWhite : "#fff";
  --colorBlack : "#000";
  --fontBold : 'MiSansThai-Bold','MiSansLatin-Bold';
  --fontSemiBold : 'MiSansThai-Semibold','MiSansLatin-Semibold';
  --fontNormal : 'MiSansThai-Normal','MiSansLatin-Normal';
  --fontMedium : 'MiSansThai-Medium','MiSansLatin-Medium';
}

html {
  -webkit-font-smoothing: antialiased;
}

html.is-hidden {
  overflow: hidden;
}

body {
  background: #fff;
  font-family: var(--fontNormal);
  overflow-x: hidden;
  position: relative;
  line-height: 1.4;
}

.body.overflow-hidden {
  overflow: hidden;
}

main.is-fade {
  opacity: 0.2;
  pointer-events: none;
}

.container {
  position: relative;
}

.btn-type1 {
  font-family: var(--fontSemiBold);
  display: inline-block;
  padding: 7px 32px 9px 20px;
  border-radius: 999px;
  background-image: url(../images/icons/i_right.svg);
  background-position: calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  transition: background 0.12s ease;
  white-space: nowrap;
}


.dot-pagination {
  display: block;
  position: static;
  margin-top: 12px;
}

.dot-pagination .swiper-pagination-bullet {
  border-radius:99px;
  margin:0 2px;
  background: #D9D9D9;
  opacity: 1;
}

.dot-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #545454;
}



.btn-contact-admin {
  position: fixed;
  bottom:40px;
  right: 20px;
  background: #FBAE24;
  border-radius: 999px;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--fontSemiBold);
  padding:6px 16px 6px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-contact-admin.is-show {
  opacity: 1;
  pointer-events:visible;
}

.btn-contact-admin .img {
  width: 32px;
  border-radius: 99px;
  overflow: hidden;
  border:1.5px solid #fff;
}

.btn-contact-admin:hover {
  background: #f1a923;
}

.overlay {
  position: fixed;
  top:0;
  left:0;
  right:0;
  bottom: 0;
  background: rgba(0 0 0 / 25%);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* backdrop-filter: blur(24px); */
}

.overlay.is-show {
  opacity: 1;
  pointer-events: visible;
}

.cta {
  position: fixed;
  right:-100%;
  top:0;
  height: 100%;
  width: 100%;
  max-width: 460px;
  background: #fff;
  z-index: 1000;
  padding: 32px;
  overflow: auto;
  transition: right 0.4s ease-in-out;
  /* backdrop-filter: blur(24px); */
}

.cta.is-show {
  right: 0;
}


.cta-form {
  padding-top: 24px;
}

.cta-txthead {
  font-size: 20px;
  font-family: var(--fontSemiBold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta input {
  width: 100%;
  height: 48px;
  background: #F9F9F9;
  padding: 0 12px;
  border-radius: 6px;
  border:1px solid #EDEDED;
  font-size: 14px;
  line-height: 48px;
}


.cta textarea {
  width: 100%;
  height: 150px;
  background: #F9F9F9;
  padding: 12px 12px;
  border-radius: 6px;
  border:1px solid #EDEDED;
  font-size: 14px;
}

.cta ::-webkit-file-upload-button,
.cta ::file-selector-button {
  display: none;
}

.i_upload {
  position: absolute;
  height: 32px;
  top:calc(50% - (32px / 2));
  left: 8px;
  pointer-events: none;
}

.cta input[type="file"] {
  padding-left: 50px;
  cursor: pointer;
}

.cta input[type="file"]:hover {
  background: #f0f0f0;
}

.cta .btn-submit {
  width: 100%;
  height: 60px;
  border-radius: 10px;
  background: #0054D0;
  font-size: 16px;
  font-family: var(--fontSemiBold);
  color:#fff;
  margin-top: 24px;
}

.btn-view-all{
  display: flex;
  align-items: center;
  font-size: 14px;
  color:#0054D0;
  font-family: var(--fontSemiBold);
  gap: 8px;
}

.card-product {
  padding: 1px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.card-product .group {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 12%);
  display: grid;
  transition: all 0.15s ease;
  position: relative;
  background: #fff;
  height: 100%;
  grid-template-rows: auto 1fr;
}


.card-product .img {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 12%);
  aspect-ratio: 240/170;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.card-product .txt {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.card-product .txt h2 {
  font-family: var(--fontSemiBold);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-product .txt .price {
  font-size: 12px;
  font-family: var(--fontNormal);
  background: #0054D010;
  border-radius: 6px;
  display: inline-block;
  padding: 4px 12px;
  margin-top: 12px;
}

.card-product .txt .price span {
  font-family: var(--fontSemiBold);
  color:#0054D0;
  display: inline-block;
  margin-left: 2px;
}




.card-product:hover {
  background-color: #0054D0;
  transform: translateY(-3px);
}

.card-product:hover .group {
  border-color: #0054D0;
}

 .label-product {
  text-align: center;
  color:#fff;
  font-family: var(--fontSemiBold);
  display: inline-block;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 0 0 12px 0;
  position: absolute;
  left:-1px;
  top:-1px;
  pointer-events: none;
}

.favorite-product {
  width: 22px;
  height: 22px;
  position: absolute;
  right: 6px;
  top:6px;
  border:1px solid rgba(0 0 0 / 12%);
  border-radius: 99px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.favorite-product:hover {
  border:1px solid rgba(0 0 0 / 24%);
  background: rgba(0 0 0 / 2%);
}


.dot-pagination-product {
  position: absolute;
  top:auto !important;
  bottom: -32px !important;
  right:0;
  text-align: right;
}


.control-recent {
  display: flex;
  gap: 8px;
 }

 .control-recent > div {
  width: 40px;
  height: 40px;
  border:1px solid #00000010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
 }

 .control-recent .swiper-button-disabled {
  opacity: 0.2;
 }

 .swiper-recent {
  overflow: visible;
  margin-bottom: 24px;
 }

 .swiper-recent .swiper-wrapper {
  height: auto;
 }

 .swiper-recent .swiper-slide {
  width: 100%;
  max-width: 400px;
  height: auto;
 }

 .card-recent {
  border-radius: 12px;
  overflow: hidden;
  border:1px solid transparent;
  transition: all 0.15s ease;
 }

 .card-recent .group {
  border-radius: 11px;
  border:1px solid rgba(0 0 0 / 12%);
  display: flex;
  overflow: hidden;
  align-items: stretch;
  background: #fff;
  padding-right: 40px;
  transition: all 0.15s ease;
  height: 100%;
 }



 .card-recent .favorite-product {
  right: 8px;
  top: 8px;
 }

 .card-recent:hover {
  border-color: #0054D0;
 }

 .card-recent:hover .group {
  border-color: #0054D0;
 }


 .card-recent .img {
  aspect-ratio: 1/1;
  max-width: 120px;
  width: 100%;
  border-right: 1px solid rgba(0 0 0 / 12%);
 }

 .card-recent .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 }


 .card-recent .txt {
  padding: 12px 0 12px 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.card-recent .txt h2 {
  font-size: 16px;
  font-family: var(--fontSemiBold);
  overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}


 .card-recent .txt .price {
  font-size: 12px;
  font-family: var(--fontNormal);
  background: #0054D010;
  border-radius: 6px;
  display: inline-block;
  padding: 4px 12px;
  margin-top: 12px;
  width: fit-content;
}

.card-recent .txt .price span {
  font-family: var(--fontSemiBold);
  color:#0054D0;
  display: inline-block;
  margin-left: 2px;
}







@media(max-width:1199px){
  .card-product .txt {
    padding: 12px;
  }
}


@media(max-width:1023px){
  main.is-fade {
    opacity: 1;
    pointer-events: visible;
  }
}

@media(max-width:639px){
  .card-product .txt h2 {
    font-size: 12px;
  }
  .card-product .txt .price {
    padding: 4px 8px;
}
.label-product {
  padding: 2px 12px;
}
.card-recent .txt h2 {
  font-size: 14px;
}
.card-recent .txt {
  padding-left: 12px;
}
.card-recent .img {
  max-width: 100px;
}
}

@media(max-width:575px){
  .btn-contact-admin {
    bottom:72px;
    right:12px;
  }

  .cta {
    max-width: 100%;
    padding: 24px 16px;
  }
  .swiper-recent .swiper-slide {
    max-width: 95%;
  }
}






