img{
    height: auto;
}

/* ---- Webflow initial states (hidden until IX2 reveals them) ---- */
html.w-mod-js:not(.w-mod-ix3) :is(.menu-button-icon, :is(.btn-link-b, .btn-link-b) .btn-link-bg, :is(.btn-link-b, .btn-link-b) .btn-text-b, :is(.btn-link-b, .btn-link-b) .btn-link-b-icon.green, :is(.btn-link-b, .btn-link-b) .btn-link-b-icon.white, :is(.products-iteam-b, .products-iteam-b) .products-corner-img-w, :is(.products-iteam-b, .products-iteam-b) .products-corner-arrow-g, :is(.products-iteam-b, .products-iteam-b) .products-corner-img-g, :is(.products-iteam-b, .products-iteam-b) .products-corner-arrow-w, [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"]:is(:is([data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"]:is(.navigation-menu), [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"] :is(.navigation-menu)) > *), [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"] :is(:is([data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"]:is(.navigation-menu), [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"] :is(.navigation-menu)) > *), [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"]:is(.brand-logo), [data-wf-component-id="4246f5ff-20fc-9086-3f74-b9808a3df1a7"] :is(.brand-logo), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(:is([data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(.query-main-b), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(.query-main-b)) > *), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(:is([data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(.query-main-b), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(.query-main-b)) > *), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(:is([data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(.footer-main-b), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(.footer-main-b)) > *), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(:is([data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"]:is(.footer-main-b), [data-wf-component-id="cead5c25-61b2-0a8c-bb34-81a5875d5e39"] :is(.footer-main-b)) > *), .sub-banner-bg-img, .sub-banner-b > *, .section.breadcrumb, .section.breadcrumb *, .home-brand-img-b .home-brand-img-b, .swiper-wrapper > *, .home-products-info > *, .home-products-col > *, .home-brand-row > *, .home-map-text-b > *, .home-map-col.map, .home-factory-banner-b, .home-info-text-b > *, .home-info-img-b > *, .home-factory-main-b .title-b, .home-factory-gird > *, .business-info-b.top *, .business-info-b.inner > *, .products-info-b > *, .product-inner-banner-b > *, .business-info-b > *, .products-inner-b > *, .products-inner-col.text > *, .our-clients-map-text-b > *, .our-clients-map-row > *, .image-full, .product-inner-banner-b, .products-bg-img-b.our-clients, .title-b, .contact-us-row > *, .brand-info-mood-img-b, .brand-info-text-b > *, .brand-img-mood-img-b, .brand-list-grid-b > *, .brand-list-col-b.img > *, [data-wf-target*='["6acc4d9238881bba416784a5","4cd241a8-a66f-f7cc-584d-7f1cb4e577ab"]'], .products-col > *, .brand-inner-row-b > *, .brand-inner-list-gird > *, .brand-inner-other-b .title-b, .brand-inner-other-row > *) {
        visibility: hidden !important;
      }

/* ---- Global ---- */
@media print {
  .navbar-sticky {
    display: none;
  }
}
html {
  scroll-padding-top: 100px;
}

/* ---- Content images are driven by the CMS (inline style), so drop the hard-coded backgrounds ---- */
.home-brand-col._01,
.home-brand-col._03,
.brand-inner-image {
  background-image: none;
}

/* ---- Rich text / CMS output inside Webflow blocks ---- */
.business-date-b p,
.products-inner-date-b p,
.business-text-b p {
  margin: 0;
}
/* Editor output: spacing between paragraphs, none after the last one */
.home-info-text-b p,
.home-products-info-col.text p,
.map-inner-text p,
.business-info-b.top p,
.brand-info-text-b p,
.brand-inner-text-b p {
  margin: 0 0 1em;
}
.home-info-text-b p:last-child,
.home-products-info-col.text p:last-child,
.map-inner-text p:last-child,
.business-info-b.top p:last-child,
.brand-info-text-b p:last-child,
.brand-inner-text-b p:last-child {
  margin-bottom: 0;
}
.home-factory-gird-text-b p,
.brand-list-grid-text-b p {
  margin: 0;
}
.business-date-b a {
  color: var(--text-color);
  text-decoration: none;
  transition: color .5s;
}
.business-date-b a:hover {
  color: var(--21683e);
}

/* ---- Home banner (Swiper) ---- */
.swiper-slide-text-b {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  pointer-events: none !important;
}
.swiper-slide.swiper-slide-active .swiper-slide-text-b,
.swiper-slide.swiper-slide-duplicate-active .swiper-slide-text-b {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.swiper-pagination {
  text-align: left !important;
}
.swiper-pagination-bullet {
  background-color: #D9D9D9 !important;
  opacity: 1 !important;
  width: 6px !important;
  height: 6px !important;
  margin-right: 8px !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: #21683E !important;
}

/* ---- Client map tabs (home + our clients). Map keys come from client_regions.url_slug ---- */
.map-all-b,
.map-americas-b,
.map-europe-b,
.map-africa-b,
.map-middle-east-b,
.map-asia-b,
.map-oceania-b {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  pointer-events: none !important;
}
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.all.w--current) .map-all-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.americas.w--current) .map-americas-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.europe.w--current) .map-europe-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.africa.w--current) .map-africa-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.middle-east.w--current) .map-middle-east-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.asia.w--current) .map-asia-b,
:is(.home-map-row, .our-clients-map-row):has(.map-tabs-link.oceania.w--current) .map-oceania-b {
  opacity: 1 !important;
}

/* ---- OEM product detail gallery (Swiper) ---- */
.swiper-thumbnails,
.swiper-main {
  width: 100%;
}
.swiper-thumbnails .swiper-slide {
  opacity: 0.5;
  cursor: pointer;
  transition: 0.3s;
  aspect-ratio: 1 / 1;
  height: auto;
}
.swiper-thumbnails .swiper-slide-thumb-active {
  opacity: 1;
}
.swiper-thumbnails .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Brand product page: other products ---- */
.brand-inner-other-image {
  border: 5px solid transparent;
  transition: border 500ms ease-in-out;
}
.brand-inner-other-iteam-link-b.w--current .brand-inner-other-image {
  border: 5px solid #21683E !important;
}
.brand-inner-other-iteam-link-b:hover .brand-inner-other-image {
  border: 5px solid #21683E;
}

/* ---- Enquiry form ---- */
.footer-from-b .w-form-done,
.footer-from-b .w-form-fail {
  display: none;
}

.w-form-fail{
  color: red;
}
.w-form-done{
  color: black;
}
/* ---- OEM product detail: multi-column specification rows (e.g. 3 product types) ---- */
.products-inner-date-cols {
  display: grid;
  grid-template-columns: repeat(var(--spec-cols, 1), minmax(0, 1fr));
  grid-column-gap: 0;
  grid-row-gap: 10px;
}
.products-inner-date-cols > div {
  min-width: 0;
  padding: 0 10px;
  overflow-wrap: break-word;
}
.products-inner-date-cols > div:first-child {
  padding-left: 0;
}
.products-inner-date-cols > div:last-child {
  padding-right: 0;
}
/* Boxed variant, same look as .products-inner-date-inner-b (background + dividers between columns) */
.products-inner-date-cols.is-box {
  background-color: #f4e7d7;
  padding: 5px 10px;
  font-size: 13px;
}
.products-inner-date-cols.is-box > div:not(:last-child) {
  border-right: 1px solid var(--text-color);
}
/* Heading row uses the same padding so the headings line up with the boxed columns below */
.products-inner-date-cols.is-head {
  padding: 5px 10px;
}
.products-inner-date-col-title {
  display: none;
}
.products-inner-date-title{
  width: 180px;
}
.brand-info-b:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 1200px) and (min-width: 992px) {
  .products-inner-col.text {
    width: 65%;
  }
  .products-inner-col.img {
    width: 35%;
  }
}
@media screen and (max-width: 991px) {
  .products-inner-date-title{
    width: 100%;
  }
}
/* Products with size columns need more room: wider text column, and long headings wrap instead of stretching the heading column */
@media screen and (min-width: 768px) {
  .products-inner-row.has-size-cols .products-inner-col.text {
    width: 62%;
  }
  .products-inner-row.has-size-cols .products-inner-col.img {
    width: 38%;
  }
}
@media screen and (min-width: 480px) {
  .products-inner-date-grid.has-size-cols {
    grid-template-columns: minmax(min-content, 28%) 1fr;
  }
}
@media screen and (max-width: 479px) {
  .products-inner-date-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .products-inner-date-cols > div,
  .products-inner-date-cols > div:first-child,
  .products-inner-date-cols > div:last-child {
    padding-left: 0;
    padding-right: 0;
  }
  .products-inner-date-cols.is-box > div:not(:last-child) {
    border-right-width: 0;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 10px;
  }
  /* The heading row is dropped on mobile, each column shows its own heading instead */
  .products-inner-date-title.is-empty,
  .products-inner-date-b.is-head {
    display: none;
  }
  .products-inner-date-col-title {
    display: block;
  }
}
