
/*** Spinner Start ***/
/*** Spinner ***/
@font-face {
  font-family: 'ThangLuang';
  src: url('./fonts/Sarun-ThangLuang.ttf') format('truetype');
  font-display: swap;
}

.dnone {
   display: none;
}




/* ใช้เฉพาะกับป้ายทะเบียน */
.thai-plate, .plate-series, .plate-number, .plate-city {
  font-family: 'Kanit', sans-serif !important;
}

.thai-plate2, .plate-series2, .plate-number2, .plate-city2 {
  font-family: 'Kanit', sans-serif !important;
}
body, html {
  font-family: 'Kanit', sans-serif !important;
}
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}
/* === Thai license plate (refined) === */
.thai-plate{
    width: 100%;
  height: 130px;
  background:#fff;

  border-radius:12px;
  padding:10px 16px 12px;
  display:inline-block;
  box-shadow:
    inset 0 0 0 1px #f7f7f7,
    0 1px 3px rgba(0,0,0,.08);
  position:relative;
  overflow:hidden;
    margin: 0 auto; /* จัดให้อยู่กลาง */
}



.thai-plate .plate-top{
  display:flex;
  align-items:flex-end;
  gap:15px;           /* ระยะห่างตัวอักษรกับตัวเลข */
  line-height:1;
  margin-bottom:2px;
  justify-content: center;
}

.thai-plate .plate-series,
.thai-plate .plate-number{
font-size: 58px;
  color:#000;

  text-shadow:
    0 1px 0 #f1f1f1,
    0 2px 0 #e6e6e6,
    0 3px 3px rgba(0,0,0,.18);
}

.thai-plate .plate-city{
font-size: 28px;
  color:#000;
  text-align:center;
  letter-spacing:.1px;
  text-shadow:0 1px 0 #f3f3f3, 0 2px 2px rgba(0,0,0,.12);
}


.thai-plate2 .plate-series4,
.thai-plate2 .plate-number4{
 font-size: clamp(70px, 3vw, 120px);
  color:#000;
    padding-top: 15px;
  text-shadow:
    0 1px 0 #f1f1f1,
    0 2px 0 #e6e6e6,
    0 3px 3px rgba(0,0,0,.18);
}

.thai-plate2 .plate-city4{
            padding-bottom: 19px;
            

  color:#000;
  text-align:center;
  letter-spacing:.1px;
  text-shadow:0 1px 0 #f3f3f3, 0 2px 2px rgba(0,0,0,.12);
}

.thai-plate2 .plate-city4{
 
 font-size: clamp(20px, 1.5vw, 40px);

}
.thai-plate2{
     width: 100%;
 height:100%;
background: url('../img/ป้ายเทพ.svg');
  position: relative;
  overflow: hidden;          /* มุมโค้งดูเนียน */

  background-position: center;
  background-repeat: no-repeat;

  padding:10px 16px 12px;
  display:inline-block;

    margin: 0 auto; /* จัดให้อยู่กลาง */
}

.thai-plate2 .plate-top2{
  display:flex;
  align-items:flex-end;
  gap:15px;           /* ระยะห่างตัวอักษรกับตัวเลข */
  line-height:1;
  margin-bottom:2px;
  justify-content: center;
}

.thai-plate2 .plate-series2,
.thai-plate2 .plate-number2{
 font-size: clamp(10px, 3vw, 35px);
  color:#000;
    padding-top: 5px;
  text-shadow:
    0 1px 0 #f1f1f1,
    0 2px 0 #e6e6e6,
    0 3px 3px rgba(0,0,0,.18);
}

.thai-plate2 .plate-city2{

    padding-bottom: 10px;
   font-size: clamp(5px, 1.1vw, 15px);
  color:#000;
  text-align:center;
  letter-spacing:.1px;
  text-shadow:0 1px 0 #f3f3f3, 0 2px 2px rgba(0,0,0,.12);
}















.thai-plate .dots{
  position:relative;
  height:8px;
  margin:2px 40px 4px 8px; /* เผื่อพื้นที่ตรามุมขวา */
  border-radius:8px;
  opacity:.55;
  background: radial-gradient(#cfcfcf 3px, transparent 3.5px) 0 50%/18px 8px repeat-x;
}
.thai-plate .plate-seal{
  position:absolute;
  right:10px;
  bottom:10px;
  width:22px;height:22px;
  border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #f1f1f1 40%, #e2e2e2 60%, #d7d7d7 100%);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.12);
  opacity:.9;
}

.btn.btn-primary {
    background: #0F5298 !important;
    color: #D5F3FE !important;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    transition: 0.5s;
     border: 1px solid #66D3FA;
}

.btn.btn-primary:hover {
    background: #34c1f5 !important;
    color:  #ffeca1 !important;
}

.btn.btn-secondary {
    background:#66D3FA;
    color: #BA3733;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    border: 1px solid #BA3733;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    background: #fff;
    color: #BA3733;
}

/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


.card {
    position: relative;
    display: flex
;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #e9e9e9;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 10px;
}
/*** Topbar End ***/


/*** Navbar ***/
.nav-bar .categories-bars .categories-bars-item {
    padding: 5px 15px;
    border-bottom: 1px solid rgba(256, 256, 256, 0.1);
    display: flex;
    justify-content: space-between;
    transition: 0.5s;
}

.nav-bar .categories-bars .categories-bars-item a,
.nav-bar .categories-bars .categories-bars-item span {
    color: #3C99DC;
    transition: 0.5s;
}

.nav-bar .categories-bars .categories-bars-item:hover {
    background: var(--bs-primary);
}

.nav-bar .categories-bars .categories-bars-item:hover a,
.nav-bar .categories-bars .categories-bars-item:hover span {
    color: var(--bs-white);
}

.nav-bar .navbar.navbar-light {
    padding: 0 !important;
}

.nav-bar .navbar .navbar-nav .nav-link {
    color: #66D3FA;
    padding: 18px 15px;
    font-weight: 500;
font-family: 'Kanit', sans-serif;
    font-size: 17px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

@media (max-width: 992px) {
      .carousel .carousel-header-banner {
    height: 200px; /* ปรับค่าตามที่ต้องการ เช่น 150px, 180px เป็นต้น */
    overflow: hidden;
  }
    .nav-bar .navbar .navbar-nav .nav-link {
        padding: 8px 0px;
    }
      .mt-5 {
    margin-top: 2rem !important
}
.mb-456 {
     margin-top: 0rem !important;
    margin-bottom: 1rem !important
    
}

.display-1 {
        font-size: 5rem;
    }

.thai-plate2{
         width: 100%;
 height:100%;
background: url('../img/ป้ายเทพ.svg');
  position: relative;
  overflow: hidden;          /* มุมโค้งดูเนียน */

  background-position: center;
  background-repeat: no-repeat;





  display:inline-block;

    margin: 0 auto; /* จัดให้อยู่กลาง */
}

.thai-plate2 .plate-top2{
  display:flex;
  align-items:flex-end;
  gap:7px;           /* ระยะห่างตัวอักษรกับตัวเลข */
  line-height:1;
  margin-bottom:2px;
  justify-content: center;
}

  .thai-plate2 .plate-series2,
  .thai-plate2 .plate-number2 {
    
    font-size: 3.5vw;
  }

  .thai-plate2 .plate-city2 {
    font-size: 1.5vw;
  }

  
 .product-sale2 {
    
    width: 32%;
    height: 9px;
    top: -2px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
  }
  .product-sale3 {
    
    width: 32%;
    height: 9px;
    top: -2px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
  }

}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

.navbar .navbar-toggler {
    padding: 5px 15px;
}

#allCat {
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 51px; 
    z-index: 999; 
    background: var(--bs-light);
}

.nav-bar .navbar-toggler {
    border-radius: 5px !important; 
    box-shadow: none !important;
     color: #66D3FA;
}

/*** Navbar End ***/

/*** Carousel Header Start ***/
.header-carousel.owl-carousel .owl-nav .owl-prev,
.header-carousel.owl-carousel .owl-nav .owl-next {
    position: fixed;
    width: 50px;
    height: 50px;
    top: 87%;
    border-radius: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: #BA3733;
}

.header-carousel-item{


 width: auto;
    height: 350px;


}
.header-carousel.owl-carousel .owl-nav .owl-prev {
    background: #ffffff;
    right: 130px;
    transition: 0.5s;
}

.header-carousel.owl-carousel .owl-nav .owl-next {
    background: #ffffff;
    right: 60px;
    transition: 0.5s;
}

.header-carousel.owl-carousel .owl-nav .owl-prev:hover,
.header-carousel.owl-carousel .owl-nav .owl-next:hover {
    
    color: #66D3FA;
}

.carousel .carousel-header-banner {
    position: relative;
}

.carousel .carousel-banner-offer {
    position: absolute;
    top: 20px; 
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel .carousel-banner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 1;
}
/*** Carousel Header End ***/


/*** Page Header start ***/
.page-header {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/*** Page Header end ***/


/*** Products Start ***/
.product .product-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.product .product-item .product-item-inner {
    height: 100%;
}

.product .product-item .product-item-add {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.product .product-item:hover .product-item-add {
    background: var(--bs-white);
    margin-bottom: -124px;
    opacity: 1;
}
.product .product-item:hover .product-item-inner {
    border-bottom: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.product .product-item .product-item-inner .product-item-inner-item {

    position: relative;
    /* border-top-right-radius: 5px;
    border-top-left-radius: 5px; */
    overflow: hidden;
}

.product .product-item .product-item-inner .product-item-inner-item .product-new,
.product .product-item .product-item-inner .product-item-inner-item .product-sale {
    position: absolute;
    /* width: 40px;  */
    /* height: 40px; */
    border-radius: 10px; 
    top: 5px; 
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center; 
}


 .product-sale2 {
    width: 30%;
    font-size: clamp(5px, 1vw, 14px);
    position: absolute;
    /* width: 40px;  */
    height: 18px;
    border-radius: 5px; 
    top: 0px; 
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center; 
}
.product-sale2 {
    background:  #00A551;
    color: var(--bs-white);
}


 .product-sale3 {
    width: 30%;
    font-size: clamp(6px, 1vw, 16px);
    position: absolute;
    /* width: 40px;  */
    height: 18px;
    border-radius: 5px; 
    top: 0px; 
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center; 
}
.product-sale3 {
    background:  #b69400;
    color: var(--bs-white);
}


.product .product-item .product-item-inner .product-item-inner-item .product-sale2 {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
@media (max-width: 768px) {

    .display-1 {

    line-height: 1.5;
}

 .thai-plate2 .plate-series4,
  .thai-plate2 .plate-number4 {
    font-size: 10vw;
    color:#000;
    padding-top: 10px;
  text-shadow:
    0 1px 0 #f1f1f1,
    0 2px 0 #e6e6e6,
    0 3px 3px rgba(0,0,0,.18);
  }

  .thai-plate2 .plate-city4 {
   font-size: 4.5vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 15px;
    color: #000;
    text-align: center;
    letter-spacing: .1px;
    text-shadow: 0 1px 0 #f3f3f3, 0 2px 2px rgba(0, 0, 0, .12);
  }

    
.thai-plate2{
         width: 100%;
 height:100%;
background: url('../img/ป้ายเทพ2.svg');
  position: relative;
  overflow: hidden;          /* มุมโค้งดูเนียน */

  background-position: center;
  background-repeat: no-repeat;

  display:inline-block;

    margin: 0 auto; /* จัดให้อยู่กลาง */
}

.thai-plate2 .plate-top2{
  display:flex;
  align-items:flex-end;
  gap:7px;           /* ระยะห่างตัวอักษรกับตัวเลข */
  line-height:1;
  margin-bottom:2px;
  justify-content: center;
}

  .thai-plate2 .plate-series2,
  .thai-plate2 .plate-number2 {
    
 font-size: clamp(10px, 4vw, 38px);
  }

  .thai-plate2 .plate-city2 {
    font-size: 2vw;
  }

  
 .product-sale2 {
    
    width: 32%;
    height: 9px;
    top: -2px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
  }
  .product-sale3 {
    
    width: 32%;
    height: 9px;
    top: -2px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
  }


}



.product .product-item .product-item-inner .product-item-inner-item .product-new {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.product .product-item .product-item-inner .product-item-inner-item .product-sale {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.product .product-item .product-item-inner img {
    transition: 0.5s;
}

.product .product-item:hover .product-item-inner img {
    transform: scale(1.1);
}

.product .product-item .product-item-inner .product-item-inner-item .product-details {
    position: absolute;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}

.product .product-item .product-item-inner .product-item-inner-item .product-details a i {
    width: 50px; 
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.product .product-item:hover .product-item-inner .product-item-inner-item .product-details a i:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.product .product-item:hover .product-item-inner .product-details {
    opacity: 1;
}

.product .tab-class .nav .nav-item a.active {
    background: #66D3FA !important;
}

.product .tab-class .nav .nav-item a.active span {
    color: var(--bs-white) !important;
}
/*** Product End ***/


/*** ProductList Categories Start ***/
.productList .productList-carousel {
    height: 215px !important;
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item {
    position: relative;
    width: calc(100% - 1px);
    transition: 0.5s;
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item {
    margin-bottom: 75px;
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item:hover {
    border-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.productList .productList-carousel .owl-nav .owl-prev,
.productList .productList-carousel .owl-nav .owl-next {
    position: absolute;
    top: -40px;
    padding: 5px 40px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.productList .productList-carousel .owl-nav .owl-prev:hover,
.productList .productList-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.productList .productList-carousel .owl-nav .owl-prev {
    left: 0;
}

.productList .productList-carousel .owl-nav .owl-next {
    right: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev,
.productList .productList-carousel .productImg-carousel .owl-nav .owl-next {
    position: absolute;
    top: 0px;
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
    opacity: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev:hover,
.productList .productList-carousel .productImg-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev {
    left: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-next {
    right: 0;
}

.productList .productList-carousel .productImg-carousel.productList-item:hover .owl-nav .owl-prev,
.productList .productList-carousel .productImg-carousel.productList-item:hover .owl-nav .owl-next {
    opacity: 1;
}
/*** ProductList Categories End ***/



/*** bestseller Products Start ***/
.products .products-mini .products-mini-item {
    position: relative;
    border-radius: 10px;
    transition: 0.5s;
}

.products .products-mini .products-mini-item:hover {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.products .products-mini .products-mini-item .products-mini-img {
 position: relative;
 overflow: hidden;
}

.products .products-mini .products-mini-item .products-mini-img img {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: 0.5s;
}

.products .products-mini .products-mini-item:hover .products-mini-img img {
    border-bottom-left-radius: 0 !important;
    transform: scale(1.3);
}

.products .products-mini .products-mini-item .products-mini-img .products-mini-icon {
    position: absolute;
    width: 50px; 
    height: 50px; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

.products .products-mini .products-mini-item:hover .products-mini-img .products-mini-icon {
    opacity: 1;
}

.products .products-mini .products-mini-item:hover .products-mini-img .products-mini-icon:hover {
    background: var(--bs-secondary) !important;
}

.products .products-mini .products-mini-item .products-mini-add {
    position: absolute;
    bottom: 0;
    left: -1px;
    right: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bs-white);
    transition: 0.5s;
    z-index: 9;
    opacity: 0;
}

.products .products-mini .products-mini-item:hover .products-mini-add {
    opacity: 1;
    margin-bottom: -75px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/*** bestseller Products End ***/

/*** Pagination Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: #0F5298;
    padding: 5px 10px;
    text-decoration: none;
    transition: 0.5s;
   border: 1px solid #0F5298;
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: #2565AE;
    color: #66D3FA;
    border: 1px solid #0F5298;
}
  
.pagination a:hover:not(.active) {
    color: #f5f900;
    background-color: #78b9ff}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Pagination End ***/

/*** Shop Page Start ***/
.shop .product-categories .categories-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.shop .product-categories .categories-item a {
    transition: 0.5s;
}

.shop .product-categories .categories-item a:hover {
    color: var(--bs-primary) !important;
}

.shop .product-color .product-color-item {
    display: flex;
    padding: 10px 0;
}

.shop .product-color .product-color-item a {
    transition: 0.5s;
}

.shop .product-color .product-color-item a:hover {
    color: var(--bs-secondary);
}

.shop .price {
    padding: 10px 0;
}

.shop .additional-product .additional-product-item {
    padding: 10px 0;
}

.shop .featured-product .featured-product-item {
    display: flex;
    align-items: center;
    justify-content: start;
}

.shop .product-tags .product-tags-items a {
    display: inline-block !important;
    background: var(--bs-white);
    color: var(--bs-dark);
    transition: 0.5;
}

.shop .product-tags .product-tags-items a:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/*** Shop Page End ***/


/*** Single Products Start ***/
.single-product .owl-nav .owl-prev,
.single-product .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -13%;
    font-size: 22px;
    color: var(--bs-primary);
}

.single-product .owl-nav .owl-prev {
    left: 0;
}

.single-product .owl-nav .owl-next {
    right: 0 !important;
}


.single-product .single-carousel .owl-dots {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: 0.5s;
}

.single-product .single-carousel .owl-dots .owl-dot img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-right: 15px;
    border: 2px solid var(--bs-primary);
    transition: 0.5s;
}

.single-product .single-carousel .owl-dots .owl-dot.active img {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    border: 4px solid var(--bs-secondary);
}














.related-product .related-carousel .related-item {
    width: 100%;
    height: 100%;
    position: relative;
    margin-bottom: 125px;
    transition: 0.5s;
}

.related-product .related-carousel .related-item .related-item-add {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: 0.5s;
    z-index: 99;
}

.related-product .related-carousel .related-item:hover .related-item-add {
    background: var(--bs-white);
    margin-bottom: -125px;
    opacity: 1;
}

.related-product .related-carousel .related-item:hover .related-item-inner {
    border-bottom: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item {
    position: relative;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-new,
.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-sale {
    position: absolute;
    width: 60px; 
    height: 60px;
    border-radius: 60px; 
    top: 20px; 
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center; 
    z-index: 5;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-new {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-sale {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item .related-item-inner img {
    transition: 0.5s;
}

.related-product .related-carousel .related-item:hover .related-item-inner img {
    transform: scale(1.1);
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-details {
    position: absolute;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-details a i {
    width: 50px; 
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.related-product .related-carousel .related-item:hover .related-item-inner .related-item-inner-item .related-details a i:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item:hover .related-item-inner .related-details {
    opacity: 1;
}


.related-product .owl-nav .owl-prev,
.related-product .owl-nav .owl-next {
    position: absolute;
    top: -40px;
    padding: 5px 40px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.related-product .owl-nav .owl-prev {
    left: 0;
}

.related-product .owl-nav .owl-next {
    right: 0;
}

.related-product .owl-nav .owl-prev:hover,
.related-product .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
}
/*** Single Products End ***/

/*** Footer Start ***/
.footer {
    background: #efefef;
    
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #3C99DC  !important;
}
/*** copyright end ***/
/* ปรับความสูงของ carousel-header-banner สำหรับโทรศัพท์มือถือ */
@media (max-width: 768px) {
  .carousel .carousel-header-banner {
    height: 120px; /* ปรับค่าตามที่ต้องการ เช่น 150px, 180px เป็นต้น */
    overflow: hidden;
  }
  .mt-5 {
    margin-top: 2rem !important
}
.mb-4 {
     margin-top: 2rem ;
    margin-bottom: 1.5rem 
}
.p-45 {
    padding: 0.5rem ;
}
.ms-4 {
    margin-left: 0.5rem !important;
}
.mb-00 {
    margin-bottom: 0 !important;
    display: none;
}
.px-55 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}
h4, .h4 {
   color: #757575;
    font-size: calc(0.9rem + 1vw);
}
.p-456 {
    padding: 0.9rem !important;
}
.d-flex {
    justify-content: space-evenly;
}

.denone {
   display: none;
}
.ddnone {
   display:  flex;
}
}




@media (max-width: 1024px) {


.thai-plate2{
         width: 100%;
 height:100%;
background: url('../img/ป้ายเทพ.svg');
  position: relative;
  overflow: hidden;          /* มุมโค้งดูเนียน */

  background-position: center;
  background-repeat: no-repeat;

  display:inline-block;

    margin: 0 auto; /* จัดให้อยู่กลาง */
}

.thai-plate2 .plate-top2{
    
  display:flex;
  align-items:flex-end;
  gap:7px;           /* ระยะห่างตัวอักษรกับตัวเลข */
  line-height:1;
  margin-bottom:2px;
  justify-content: center;
}

  .thai-plate2 .plate-series2,
  .thai-plate2 .plate-number2 {
    
    font-size: clamp(10px, 5vw, 27px);
  }

  .thai-plate2 .plate-city2 {
     padding-bottom: 5px;
     font-size: clamp(10px, 1.5vw, 12px);

  }

  
    .product-sale2 {
        width: 30%;
        height: 15px;
        top: 2px;
        font-size: clamp(8px, 1.2vw, 38px);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
    }

  .product-sale3 {
     width: 30%;
        height: 15px;
        top: 2px;
        font-size: clamp(8px, 1.2vw, 38px);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
  }

}

.blink-text {
  animation: blink 1s infinite;
  color: #ff0000; /* เขียว LINE */
  font-weight: bold;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
/* สไตล์ข้อความรอง */
.modal-subtitle {
  font-size: 0.95rem;
}
.nav-link.active {
  color: #ffffff !important; /* สีเขียว LINE */
  font-weight: bold;
  border-bottom: 2px solid #00d5ff;
}
/* ปุ่มลอยมุมขวาล่าง */
.social-floating {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 999;
}

/* ปุ่มหลัก */
#socialToggle {
  width: 60px;
  height: 60px;
  background-color: #00ccff;
  border: none;
  color: rgb(0, 0, 0);
}

/* เมนูโซเชียล */
.social-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.social-menu.show {
  display: flex;
}

/* ปุ่มแต่ละอัน */
.social-menu a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.social-menu a:hover {
  transform: scale(1.15);
}
