h1,
h2,
h3 h1 a,
h2 a h3 a {
  color: #11217e;
  font-weight: bold;
}
body {
  color: #111;
}

/* จัดการเมนูตัวบน */
.product-banner-hero {
  border-radius: 0px;
}

.ftco-navbar-light .navbar-toggler {
  margin-right: 15px;
}
.navbar-expand-lg .navbar-collapse {
  display: none !important;
}
.navbar-expand-lg .navbar-collapse.collapse.show {
  padding-top: 30px;
  display: block !important;
  background: #fff;
  margin-top: -15px;
}

.hero-wrap h1,
.hero-wrap h2,
.hero-wrap,
.hero-wrap span {
  color: #fff;
  /*text-shadow: none;*/
}
.hero-wrap .slider-text h1 {
  font-size: 4.75rem;
  padding: 0px;
  margin: 0px;
  line-height: 4.5rem;
      text-shadow: 2px 2px 3px #0000008c;
}
.hero-wrap.hero-wrap-2 .slider-text h1{
  font-size:2rem;
}
.hero-wrap .slider-text h2 {
  font-size: 2.45rem;
  line-height: 2.55rem;
  margin-bottom: 10px;
      text-shadow: 2px 2px 3px #0000008c;
}
.hero-wrap .slider-text {
  font-size: 1.75rem;
      text-shadow: 2px 2px 3px #0000008c;
}

.hero-warp .slider-text .caption-desc,
.caption-desc {
  font-size: 1.75rem;
  line-height: 2rem !important;
}
.caption-desc  {
  margin-top:20px 0;
  padding:10px 0;
}

h1,
.product-title {
  word-break: keep-all; /* ป้องกันการตัดกลางคำไทย ถ้าเบราว์เซอร์รองรับ */
  overflow-wrap: break-word; /* ถ้าคำยาวเกินไปจริงๆ ให้ตัดลงบรรทัดใหม่ */
  line-height: 1.4; /* เพิ่มช่องว่างระหว่างบรรทัด ให้ ) ที่ตกลงมาไม่ดูน่าเกลียด */
  display: block;
}
.short-item a {
  display: block;
  font-size: 0.75rem;
  margin: 0px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  background: #223280;
  color: #fff;
  padding: 5px 10px;
  margin: 3px 0px;
  border-radius: 3px;
  box-shadow: 0px 0px 2px #999;
  transition: 0.5s;
}
.short-item a:hover {
  background-color: #ff7219;
}

.slider-text h1 {
  font-size: 2rem;
  text-shadow: 0px 5px 5px #000;
}

.product-forum {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.product-descript {
  padding: 10px;
  border: 1px solid #11217e;
  border-radius: 5px;
  min-height: 80px;
}
h4.p-section-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.ib-icon-socail i {
  background-color: #11217e;
}
.ib-icon-socail i:hover {
  background-color: #ff7219;
}

.nav-breadcrumbs {
  background: #ffffff;
  padding: 10px;
  color: #000000;

  border-bottom: 1px solid #0922a1;
}

.top-bar {
  padding: 0px;
  margin: 0px;
  border-color: #223280 !important;
}
.top-bar .social-icons {
  font-size: 0px;
}
.top-bar .social-icons a {
  width: 26px;
  height: 26px;
  display: inline-block;
  border: 1px solid #223280;
  text-align: center;
  font-size: 13px;
  color: #223280;
  border-radius: 4px;
}
.top-bar .social-icons a:hover {
  background: #ff5100;
  /*color: #fff;*/
}

.top-bar .contact-numbers {
  line-height: 100%;
  color: #0e1c63;
}

.top-bar .nav-link {
  font-size: 14px;
  border-radius: 0 0 8px 8px;
}
.main-top-nav .nav-link {
  padding: 0.7rem 1.25rem 0.25rem;
  font-weight: 500;
}

.nav-item a {
  color: #223280;
  margin-bottom: 5px;
  margin-left: 4px;
  transition: 0.5s;
}
.nav-item a:hover {
  color: #223280;
  background: #f75a00;
  border-radius: 0 0 5px 5px;
  box-shadow: 0px 2px 10px 5px #0e194f54;
}
.nav-item a.active {
  color: #ffffff;
  background: #0e1c63;
  border-radius: 0 0 5px 5px;
  box-shadow: 0px 2px 10px 5px #0e194f54;
}

.sticky-top {
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  max-width: 80px;
}
/* จุดสำคัญ: โลโก้ที่ยื่นลงมาทับ Banner */
.logo-wrapper {
  position: relative;
  z-index: 1021; /* สูงกว่า nav */
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0px; /* ขยับขึ้นไปหา top bar */
  border-radius: 0 0 10px 10px;
}

.navbar {
  height: 70px;
}

nav.scrolled .navbar-brand {
  width: 170px;
  margin-top: 0px;
  box-shadow: 0px 0px 5px #99999900;
}
.form-control {
  height: auto !important;
}

/**
*/
/* NAVBAR */
#ftco-navbar {
  background: #fff;
  border-bottom: 1px solid #dcdcdc;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .brand-logo {
  height: auto;
}

/* CATALOG BAR */
/* NAVBAR */
.main-navbar {
  border-bottom: 1px solid #ddd;
  padding: 0;
}

/* CONTAINER */
#ftco-navbar .container {
  display: flex;
  align-items: center;
  height: 80px;
}

.ib-product-item .ib-cover-table a {
  display: block;
}
.ib-product-item h4 {
  font-size: 0.75rem;
  margin: 0px 5px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.ib-thumbnail .caption {
  text-align: center;
}
.ib-thumbnail .caption .ib-items-title a {
  background: #21317e;
  border-radius: 4px;
  color: #fff;
  display: block;
  padding: 0.25rem 0.5rem;
  margin-top: 4px;

  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}
/* LOGO */
.navbar .navbar-brand {
  flex: 0 0 auto;
  padding: 0;
  margin-right: 20px;
  z-index: 1000;
  position: relative;
  background: #fff;
  padding: 10px;
  width: 220px;

  border-radius: 0 0 10px 10px;
  margin-top: 30px;
  box-shadow: 0px 5px 5px #00000036;
}

/* CATALOG BAR */
.catalog-nav {
  flex: 1 1 auto;
  overflow: hidden;
  height: 80px;
}

/* ICON LIST */
.catalog-icons-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 5px;
  padding: 10px 0;
  scroll-behavior: smooth; /* เลื่อนลื่น */
}

/* ITEM */
.catalog-item {
  min-width: 80px;
  text-align: center;

  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px 0px;
  height: 60px;
  transition: 0.5s;
  font-size: 0px;
}

/* ICON */
.catalog-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 100%;
}

/* TEXT */
.catalog-item span {
  display: block;
  font-size: 0.55rem;
  color: #1e3c8c;
  white-space: nowrap; /* บรรทัดเดียว */
  overflow: hidden; /* ซ่อนส่วนเกิน */
  text-overflow: ellipsis; /* ... */

  margin: 0px 5px;
}

/* HOVER */
.catalog-item:hover {
  background: #f75a00;
  box-shadow: 0x 0px 5px #999;
}
.catalog-item.active {
  background: #f75a00;
  box-shadow: 0x 0px 5px #999;
}

/* SCROLL BAR */
.catalog-icons-container::-webkit-scrollbar {
  height: 4px;
}

.catalog-icons-container::-webkit-scrollbar-thumb {
  background: #ccc;
}

.catalog-icons-container {
  cursor: grab;
}

.catalog-icons-container.dragging {
  cursor: grabbing;
}

/**
* SIDE BAR
*/

#sidebar .list-group-item.menuside_sub {
  display: none;
}

.list-group-item.menuside_sub.active {
  display: block !important;
}
.menuside_sub {
  display: none;
}

.sidebar-box {
  border-radius: 0.25rem;
  border: 2px solid #0e1c63;
}

.categories li a.list-group-item {
  color: #fff;
  background: #0e1c63;
}
.categories li a.list-group-item i.ib.fa {
  opacity: 0;
}
#sidebar .list-group-item.menuside_sub {
  color: #000;
  background: #fff;
  font-size: 13px;
}
.categories li a:hover,
#sidebar .list-group-item.menuside_sub:hover {
  color: #db642d;
}
#sidebar .list-group-item.menuside_sub.active {
  color: #0e1c63;
}
#sidebar .list-group-item.menuside_sub i.ib.fa {
  opacity: 1;
  margin-left: 5px !important;
}
#sidebar .list-group-item.menuside_sub .quantity {
  right: 2px;
  color: #ffffff;
  font-size: 11px;
  background: #0e1c63;
  display: inline-block;
  padding: 5px 10px;
  line-height: 0.5rem;
  top: 10px;
  border-radius: 20px;
}
.categories li a span,
.sidelink li a span {
  position: absolute;
  right: 30px;
  top: 0;
  color: #ffffff;
}

.btn-toggole-menusub {
  color: #ffffffad;
  font-size: 10px;
}

.main-top-nav .nav-item {
  position: relative;
}

/**
*
*/

.ib-catelog-item .caption {
  text-align: center;
  color: #fff;
  padding: 0.25rem 0.25rem;
  background-color: #102765;
  color: #ffffff;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  text-align: center;
  transition: 0.3s;
}
.ib-catelog-item:hover {
  border: 1px solid #ddd;
  box-shadow: 0px 0px 10px 3px #999;
}
.ib-catelog-item:hover .caption {
  background-color: #db642d;
}

.ib-catelog-item .caption h4,
.ib-catelog-item .caption p {
  color: #fff;
  padding: 0px;
  margin: 0px;
}
.ib-catelog-item .caption h4 {
  font-size: 1.05rem;
  color: #fff;
}
.ib-catelog-item .caption h4 a {
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib-catelog-item .caption p {
  font-size: 0.55rem;
}
.ib-catelog-item {
  transition: 0.5s;
  margin: 0px;

  padding: 5px;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.ib-catelog-item .ib-cover-table a {
  display: block;
}

.ib-catelog-item .ib-thumbnail {
  transition: 0.5s;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.ib-catelog-item .ib-thumbnail .ib-media-cover {
  flex: 1 0 auto;
}

.ftco-footer .ftco-footer-widget h2 {
  font-weight: normal;
  color: #000;
  margin-bottom: 40px;
  font-size: 1.55rem;
  font-weight: bold;
}

.office-time h3,
.office-time h4 {
  font-weight: normal;
  color: #000;

  font-size: 1.55rem;
  font-weight: bold;
}

.ftco-footer a {
  transition:
    color 0.3s ease,
    transform 0.5s ease;
}

.ftco-footer a:hover {
  color: #db4500;
}

.ftco-footer .txt-label {
  font-size: 13px;
}
.ftco-footer .txt-info {
  font-size: 16px;
  color: #000;
}

#page_no a.actives {
  background: #0e1c63;
}
#page_no a {
  border-radius: 3px;
  background: #8f8f8f;
}
.product-slide .item {
  padding: 10px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.product-slide .item:hover {
  border: 1px solid #666;
}

.btn.btn-primary {
  background: #102765;
  border: 1px solid #102765;
  color: #fff;
}
.ftco-navbar-light {
  background: #fff;
}

.footer-site-map h5 a {
  color: #000;
  font-size: 1rem;
  font-weight: bold;
}
.footer-site-map h5 a:hover {
  color: #ff5722;
}
.footer-site-map ul,
.footer-site-map ul li {
  list-style: none;
  margin: 0px;
  padding: 0px;
}
.footer-site-map ul li {
  margin-bottom: 4px;
  padding: 3px 0px;
}
.footer-site-map ul li a {
  display: block;
  margin-right: 30px;
  padding: 3px 10px;
  color: #fff;
  background: #102765;
  border-radius: 2px;
  font-size: 0.75rem;
  transition: 0.3s;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0px 0px 3px #999;
}
.footer-site-map ul li a:hover {
  background: #ff5722;
}
.footer-site-map ul li span {
  font-size: 0.55rem;
  float: right;
  width: 25px;
  height: 25px;
  text-align: center;
  border-radius: 3px;
  line-height: 16px;
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transform: translateY(20px);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-wrap .slider-text {
  height: 600px;
}
@media (max-width: 1025px) {
  .main-top-nav .nav-link {
    padding: 0.7rem 1rem 0.25rem;
    font-weight: 500;
    font-size: 13px;
    margin-left: 2px;
  }

  #main-slider {
    height: 450px;
    overflow: hidden;
  }
  .hero-wrap {
    height: 450px;

    background-size: cover !important;
    background-position: left;
  }
  .hero-wrap .slider-text {
    height: 450px;
  }
  .hero-wrap.hero-wrap-2 {
    height: 350px;
    background-size: cover !important;
    background-position: left;
  }

   .hero-wrap .slider-text h1 {
  font-size: 2.75rem;
    padding: 0px;
    margin: 0px;
    line-height: 2.5rem;

}
.hero-wrap .slider-text h2 {
 font-size: 1.75rem;
    line-height: 1.75rem;
    margin-bottom: 10px;

}
.hero-wrap .slider-text {
  font-size:0.75rem
}

.hero-warp .slider-text .caption-desc , .caption-desc {
   font-size:1.25rem;
  line-height:1.25rem !important;
   
}

}
@media (max-width: 900px) {
  .catalog-nav {
    display: none;
  }
  .top-bar {
    padding: 10px 5px;
  }
  .navbar .navbar-brand {
    width: 180px;

    margin-top: 0px;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
@media (max-width: 600px) {
  .ib-product-item h4 {
    font-size: 0.75rem;
    margin: 0px;
  }
  .product-forum {
    font-size: 1.05rem;
  }
  .ib-product-item {
    padding: 5px;
  }
  .ib-product-item .ib-thumbnail {
    margin-bottom: 5px;
    border: 1px solid #ddd;
    text-align: center;
  }
  #main-slider {
    height: 250px;
    overflow: hidden;
  }

  .slider-text h1 {
    font-size: 1.25rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .hero-wrap {
    height: 250px;

    background-size: cover !important;
    background-position: center;
  }
  .hero-wrap .slider-text {
    height: 250px;
  }
  .office-time h3,
  .office-time h4 {
    font-size: 1.25rem;
  }
  .hero-wrap.hero-wrap-2 {
    height: 250px;
    background-size: cover !important;
    background-position: left;
  }
  .slider-text {
    color: #fff;
    height: 400px;
  }
  .catalog-nav {
    display: none;
  }
  .toolbar-search {
    display: none;
  }
  .top-bar {
    padding: 10px 5px;
  }
  .navbar .navbar-brand {
    width: 180px;

    margin-top: 0px;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .hero-wrap .slider-text h1 {
    font-size: 1.75rem;
    padding: 0px;
    margin: 0px;
    line-height: 1.5rem;
  }
  .hero-wrap .slider-text h2 {
    font-size: 1rem;
    line-height: 1rem;
    margin-bottom: 10px;
  }
  .hero-wrap .slider-text {
    font-size: 0.75rem;
  }

  .hero-warp .slider-text .caption-desc,
  .caption-desc {
    font-size: 0.75rem;
    line-height: 0.75rem !important;
  }
  .caption-desc  {
    margin-top:10px 0;
    padding:10px 0;
  }
}
