/* 
  ********** Theme **********
*/

/* Embed Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

/* Variable */
:root {
  --primary-ci-font: 'IBM Plex Sans Thai', 'Roboto', 'Noto Sans Thai', 'Helvetica Neue', Arial, sans-serif;
  --primary-ci-color-110: #b11419;            /* Primary Value Up         */
  --primary-ci-color-100: #F11B21;            /* Primary                  */
  /*--primary-ci-color-90: #ffdc4c;              Primary Value Down       */
  --primary-ci-color-rgb-110: 177, 20, 25;      /* Primary RGB Value Up     */
  --primary-ci-color-rgb-100: 241, 27, 33;      /* Primary RGB              */
  /*--primary-ci-color-rgb-90: 255, 220, 76;       Primary RGB Value Down   */

  --secondary-ci-font: 'Mitr', 'Helvetica Neue', Arial, sans-serif;
  --secondary-ci-color-110: #103320;          /* Secondary Value Up       */
  --secondary-ci-color-100: #0f6a38;          /* Secondary                */
  /*--secondary-ci-color-90: #054169;            Secondary Value Down     */
  --secondary-ci-color-rgb-110: 16, 51, 32;     /* Secondary RGB Value Up   */
  --secondary-ci-color-rgb-100: 15, 106, 56;    /* Secondary RGB            */
  /*--secondary-ci-color-rgb-90: 5, 65, 105;       Secondary RGB Value Down */

  --tertiary-ci-font: 'Prompt', 'Helvetica Neue', Arial, sans-serif;
  --quaternary-ci-font: 'Noto Sans Thai', 'Helvetica Neue', Arial, sans-serif;
}

/* Add font family in main element */
body {
  font-family: var(--primary-ci-font);
  font-size: 1.25rem;
}

/* Add font family in others element */
p,
/* h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, */
#footer p,
#footer,
button.btn,
.btn:not(.close):not(.mfp-close),
a.btn:not([href]):not([tabindex]),
.header-extras > ul > li .topbar-dropdown > .title {
  font-family: var(--primary-ci-font);
  font-size: 1.25rem;
}
#mainMenu nav > ul > li > a,
#mainMenu nav > ul > li .dropdown-menu li a,
#mainMenu nav > ul > li .dropdown-menu li a:hover,
footer,
footer a, 
footer p, 
.list-icon.list-icon-arrow li:before {
  font-family: var(--primary-ci-font);
  font-size: 1.25rem;
}

/* Font Family */
.font-family-primary {
  font-family: var(--primary-ci-font);
}
.font-family-secondary {
  font-family: var(--secondary-ci-font);
}
.font-family-tertiary {
  font-family: var(--tertiary-ci-font);
}
.font-family-quaternary {
  font-family: var(--quaternary-ci-font);
}

/* Color */
.text-ci-primary {
  color: var(--primary-ci-color-100);
}
.text-ci-secondary {
  color: var(--secondary-ci-color-100);
}

/* BG Color */
.bg-ci-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--primary-ci-color-rgb-100), var(--bs-bg-opacity)) !important;
}
.bg-ci-secondary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--secondary-ci-color-rgb-100), var(--bs-bg-opacity)) !important;
}

/* ===
Custom Theme 
=== */

/* Navbar */
.custom-theme #topbar {
  background: var(--primary-ci-color-100) !important;
}
.custom-theme .topbar-line a,
.custom-theme #topbar i.fab.fa-line {
  color: #fff;
}
.custom-theme #topbar a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.custom-theme #mainMenu nav > ul > li:hover >a, 
.custom-theme #mainMenu nav > ul > li.active >a,
.custom-theme #header.header-sticky #mainMenu nav > ul > li:hover > a, 
.custom-theme #header.header-sticky #mainMenu nav > ul > li.active > a {
  /* padding: 0 15px; */
  padding: 12px 15px;
  background-color: transparent;
  color: var(--primary-ci-color-100);
  border: solid 1px var(--primary-ci-color-100);
  border-width: 0 0 5px 0;
}
.custom-theme #mainMenu nav > ul > li .dropdown-menu li a:hover {
  background: var(--primary-ci-color-100);
}
.custom-theme #mainMenu nav > ul > li .dropdown-menu {
  border-top: 1px solid var(--primary-ci-color-100);
}
.custom-theme #mainMenu nav > ul > li.dropdown > a:after,
.custom-theme #mainMenu nav > ul > li.dropdown:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f107";
  font-size: 14px;
  color: var(--primary-ci-color-100);
  margin-left: 3px;
}

/* Footer */
.custom-theme footer {
  background: none;
}
.custom-theme a.btn-social {
  width: 40px;
  height: 40px;
  padding: 0 !important;
}

/* Button */
.custom-theme .btn, 
.custom-theme button.btn, 
.custom-theme .btn:not(.close):not(.mfp-close), 
.custom-theme a.btn:not([href]):not([tabindex]) {
  background: var(--primary-ci-color-100);
  border-color: transparent;
}
.custom-theme .btn:hover, 
.custom-theme button.btn:hover, 
.custom-theme button.btn:focus, 
.custom-theme button.btn:not(:disabled):not(.disabled):active, 
.custom-theme button.btn:not(:disabled):not(.disabled).active, 
.custom-theme .btn:not(.close):not(.mfp-close):hover, 
.custom-theme .btn:not(.close):not(.mfp-close):focus, 
.custom-theme .btn:not(.close):not(.mfp-close):not(:disabled):not(.disabled):active, 
.custom-theme .btn:not(.close):not(.mfp-close):not(:disabled):not(.disabled).active, 
.custom-theme a.btn:not([href]):not([tabindex]):hover, 
.custom-theme a.btn:not([href]):not([tabindex]):focus, 
.custom-theme a.btn:not([href]):not([tabindex]):not(:disabled):not(.disabled):active, 
.custom-theme a.btn:not([href]):not([tabindex]):not(:disabled):not(.disabled).active, 
.custom-theme .btn-circle:hover {
  background: rgba(var(--primary-ci-color-rgb-110), 1);
  border-color: transparent;
}

/* Index Section: Product Categories */
.custom-theme .sec-product-cat {
  position: relative;
  background-image: url('../images/index/bg-showroom-01.jpg');
  background-size: cover;
  background-position: center;
}
.custom-theme .sec-product-cat::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(var(--secondary-ci-color-rgb-110), 0.7);
  /* backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px) */
}
.custom-theme .add-button {
  background: var(--primary-ci-color-100)
}
.custom-theme .sec-product-cat .add-button a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}
.custom-theme a:not(.btn):not(.badge):hover, 
.custom-theme a:not(.btn):not(.badge):focus, 
.custom-theme a:not(.btn):not(.badge):active {
  color: var(--primary-ci-color-100)
}

/* Index Section: Product Categories (Slide) */
.custom-theme .sec-product-cat .flickity-viewport,
.custom-theme .sect-news-grid .flickity-viewport {
  padding: 0.75rem 0 0 0;
}
.custom-theme .flickity-page-dots .dot {
  box-shadow: inset 0 0 0 1px #fff;
  background-color: rgba(0, 0, 0, 0.2);
}
.custom-theme .flickity-page-dots .dot:after {
  background-color: var(--primary-ci-color-100);
  box-shadow: inset 0 0 0 1px #fff;
}
.custom-theme .flickity-button {
  background: var(--primary-ci-color-100);
}
.custom-theme .flickity-button:hover {
  background: var(--primary-ci-color-110);
}

/* Equal height cards in carousel - Use CSS with JS (custom.js) */
.custom-theme .sec-product-cat .carousel .polo-carousel-item,
.custom-theme .sect-news-grid .carousel .polo-carousel-item {
  display: flex;
  align-items: stretch;
}

/* Equal height cards in grid layout - Pure CSS (No JS) */
.custom-theme .sect-product-grid .row.equal-height {
  display: flex;
  flex-wrap: wrap;
}
.custom-theme .sect-product-grid .row.equal-height > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.custom-theme .product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.custom-theme .product-card .product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.custom-theme .product-card .price-area {
  margin-top: auto;
}
.custom-theme .news-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 92%;
}
.custom-theme .news-item .news-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .custom-theme .news-item {
    height: auto;
  }
  .custom-theme .news-item .news-image {
      height: auto;
  }
}

/* Index Section: Production Info */
.custom-theme .background-sub-con {
  position: relative;
  background-image: url('../images/index/bg-factory-02.jpg');
  background-size: cover;
  background-position: center;
}
.custom-theme .background-sub-con::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,rgba(var(--secondary-ci-color-rgb-100), 0.7) 0%, rgba(var(--secondary-ci-color-rgb-110), 0.7) 100%);
  /* backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px) */
}

/* Index Section: Production Info */
.custom-theme .bg-cover {
  position: relative;
  background-image: url('../images/index/bg-factory-01.jpg');
  background-size: cover;
  background-position: center;
}
.custom-theme .bg-cover::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,rgba(var(--secondary-ci-color-rgb-100), 0.7) 0%, rgba(var(--secondary-ci-color-rgb-110), 0.9) 100%);
  /* backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px) */
}
.custom-theme .bg-cover .cover-text,
.custom-theme .breadcrumb-item+.breadcrumb-item::before,
.custom-theme .breadcrumb-item a {
  color: #fff;
}
.custom-theme .bg-cover h2.cover-text {
  font-size: 2rem;
}

/* Control Text Editor */
.ctrl-text-editor img {
  max-width: 100%;
  width: auto;
  margin: auto;
  display: flex;
}

/* Button go to top */
#scrollTop i {
  background-color: var(--primary-ci-color-100) !important;
}

/* Pagiantion */
.custom-theme .pagination .page-item:not(.disabled).active>.page-link, 
.custom-theme .pagination .page-item:not(.disabled):active>.page-link, 
.custom-theme .pagination .page-item:not(.disabled):focus>.page-link, 
.custom-theme .pagination .page-item:not(.disabled):hover>.page-link {
  background-color: var(--primary-ci-color-100);
  border-color: var(--primary-ci-color-100);
}

/* Product List */
.custom-theme .product-card .title {
  line-height: normal;
}

/* Product Details */
.custom-theme .swiper-button-next, 
.custom-theme .swiper-button-prev {
  color: var(--primary-ci-color-100)
}
.custom-theme .swiper-button-next-thumb, .swiper-button-prev-thumb {
  color: var(--primary-ci-color-100);
}
.custom-theme .swiper-button-prev-thumb::after {
  font-family: inspiro-icons;
  content: "\e92f";
}
.custom-theme .swiper-button-next-thumb::after {
  font-family: inspiro-icons;
  content: "\e930";
}
.custom-theme .swiper-button-next-thumb:hover, .swiper-button-prev-thumb:hover {
  background: var(--primary-ci-color-110);
  border-color: var(--primary-ci-color-110);
  color: #fff;
}

/* Article */
.custom-theme .news-item .news-date {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

/* FAQ */
.custom-theme .accordion .ac-item .ac-title:before,
.custom-theme .accordion .ac-item.ac-active .ac-title:before {
  color: var(--primary-ci-color-100);
}

/* Index Section: Why us */
.custom-theme .why-us-section {
  padding: 80px 0;
  background-color: #fff;
  overflow: hidden;
}
.custom-theme .feature-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  border: 1px solid #eef0f2;
  transition: all 0.3s ease;
  height: auto;
  position: relative;
  z-index: 1;
  min-height: 345px;
}
.custom-theme .feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: transparent;
}
.custom-theme .icon-wrapper {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: rgba(var(--primary-ci-color-rgb-100), 0.1);
  color: var(--primary-ci-color-100);
  font-size: 32px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.custom-theme .feature-box:hover .icon-wrapper {
  background: var(--primary-ci-color-100);
  color: #ffffff;
}
.custom-theme .feature-title:hover {
  color: var(--primary-ci-color-100);
}
.custom-theme .feature-desc {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}
.custom-theme .center-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.main-img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  width: 100%;
  object-fit: cover;
  border: 5px solid #fff;
  height: auto;
}
@media (max-width: 991px) {
  .custom-theme .why-us-section {
    padding: 50px 0;
  }
  .custom-theme .feature-box {
    text-align: center;
    margin-bottom: 15px;
  }
  .custom-theme .center-image-container {
    margin-bottom: 30px;
  }
}
@media (min-width: 992px) {
  .main-img {
      height: 100%;
      min-height: 450px;
  }
  .main-img-col {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }
}
.custom-theme .img-style {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 5px solid #fff;
}

/* Product Card: V2 */
.all-product {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  position: relative;
  /* cursor: pointer; */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.all-product::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.all-product:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}
.all-product:hover .card-bg-img {
  transform: scale(1.1);
}
.card-overlay-content {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  padding: 2rem;
  width: 100%;
  color: white;
}
.card-category {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.8;
}
.card-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}