/* Fix parent theme .site-header { pointer-events: none } leak */
.keless-theme .site-header,
.keless-theme .site-header *,
.keless-theme .main-nav,
.keless-theme .main-nav a,
.keless-theme .main-nav button {
  pointer-events: auto;
}

.keless-theme .header-inner {
  justify-content: flex-start;
  gap: 48px;
}

.keless-theme .main-nav {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.keless-theme .main-nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  min-width: 0;
}

.keless-theme .main-nav__links > a,
.keless-theme .main-nav__links > .nav-dropdown {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .keless-theme .header-inner {
    gap: 20px;
  }

  .keless-theme .main-nav__links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }
}

/* Language switcher — show options on hover (desktop) */
@media (min-width: 961px) {
  .keless-theme .lang-switcher:hover .lang-menu,
  .keless-theme .lang-switcher:focus-within .lang-menu {
    display: block;
  }

  .keless-theme .lang-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }
}

/* Hero — image swiper (Alibaba-style) */
.keless-theme .hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: block;
  background: #111;
  overflow: hidden;
}

.keless-theme .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.keless-theme .hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.keless-theme .hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.keless-theme .hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 24, 48, 0.78) 0%,
    rgba(8, 24, 48, 0.45) 42%,
    rgba(8, 24, 48, 0.2) 100%
  );
  z-index: 1;
}

.keless-theme .hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 16px 72px;
}

.keless-theme .hero-slide__content h1 {
  max-width: 920px;
}

.keless-theme .hero-slide__content p {
  max-width: 680px;
}

.keless-theme .hero-swiper__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}

.keless-theme .hero-swiper__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.keless-theme .hero-swiper__prev {
  left: 16px;
}

.keless-theme .hero-swiper__next {
  right: 16px;
}

.keless-theme .hero-dots {
  z-index: 4;
}

.keless-theme .hero-dots button {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  border-color: transparent;
}

.keless-theme .hero-dots button.active {
  width: 28px;
  border-radius: 6px;
  background: var(--accent);
  border-color: var(--accent);
}

/* Floating quick contact — icon bar, tooltip on left */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 16px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.floating-contact__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease, color 0.15s ease;
}

.floating-contact__item:last-child {
  border-bottom: none;
}

.floating-contact__item:hover,
.floating-contact__item:focus-visible {
  background: #f5f5f5;
  color: #222;
  outline: none;
}

.floating-contact__item--whatsapp:hover,
.floating-contact__item--whatsapp:focus-visible {
  color: #25d366;
}

.floating-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Label panel — slides out to the left on hover */
.floating-contact__tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-contact__tip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
  filter: drop-shadow(1px 0 0 #e8e8e8);
}

.floating-contact__item:hover .floating-contact__tip,
.floating-contact__item:focus-visible .floating-contact__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .keless-theme .hero-swiper__arrow {
    width: 36px;
    height: 36px;
  }

  .keless-theme .hero-swiper__prev {
    left: 8px;
  }

  .keless-theme .hero-swiper__next {
    right: 8px;
  }

  .floating-contact {
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    border-radius: 8px 0 0 8px;
  }

  .floating-contact__item {
    width: 48px;
    height: 48px;
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
  }

  .floating-contact__item:last-child {
    border-right: none;
  }

  .floating-contact__tip {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    font-size: 12px;
    white-space: nowrap;
  }

  .floating-contact__tip::after {
    right: auto;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
    border-left-color: transparent;
    filter: drop-shadow(0 1px 0 #e8e8e8);
  }

  .floating-contact__item:hover .floating-contact__tip,
  .floating-contact__item:focus-visible .floating-contact__tip {
    transform: translateX(-50%) translateY(0);
  }
}

/* Section parallax backgrounds */
.keless-parallax-section {
  position: relative;
  overflow: hidden;
}

.keless-parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.06);
  z-index: 0;
}

.keless-parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 246, 248, 0.92);
}

.keless-parallax-section > .container {
  position: relative;
  z-index: 1;
}

.keless-parallax-section--dark .keless-parallax-bg::after {
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.88), rgba(12, 35, 64, 0.72));
}

.keless-parallax-section--dark .section-label,
.keless-parallax-section--dark .section-title,
.keless-parallax-section--dark .section-desc,
.keless-parallax-section--dark h4,
.keless-parallax-section--dark p,
.keless-parallax-section--dark li {
  color: #fff;
}

.keless-parallax-section--dark .section-desc,
.keless-parallax-section--dark li p {
  color: rgba(255, 255, 255, 0.85);
}

.keless-parallax-section--dark .check-list .check-icon {
  color: var(--accent);
}

/* Factory image carousel — shared chrome */
.factory-carousel {
  width: 100%;
}

.factory-carousel__frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.factory-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.factory-carousel__arrow:hover {
  background: #d96a14;
  transform: translateY(-50%) scale(1.06);
}

.factory-carousel__prev {
  left: 8px;
}

.factory-carousel__next {
  right: 8px;
}

.factory-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  margin-top: 14px;
}

.factory-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.factory-carousel__dots button.active {
  width: 22px;
  border-radius: 6px;
  background: var(--accent);
}

/* Homepage — fade single full image (original layout) */
.factory-carousel--fade .factory-carousel__frame {
  background: #0a1628;
}

.factory-carousel--fade .factory-carousel__viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.factory-carousel--fade .factory-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.factory-carousel--fade .factory-carousel__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.factory-carousel--fade .factory-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About / inner pages — 3-up track carousel */
.factory-carousel--track .factory-carousel__frame {
  background: #f4f6f8;
}

.factory-carousel--track .factory-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.factory-carousel--track .factory-carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s ease;
  will-change: transform;
}

.factory-carousel--track .factory-carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
}

.factory-carousel--track .factory-carousel__slide img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  background: #eef1f4;
  border-radius: 6px;
}

/* About page — factory carousel */
.factory-carousel--about.factory-carousel--track .factory-carousel__frame {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.factory-carousel--about.factory-carousel--track .factory-carousel__track {
  gap: 20px;
}

.factory-carousel--about.factory-carousel--track .factory-carousel__slide img {
  height: 300px;
  background: transparent;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.factory-carousel--about .factory-carousel__dots button {
  border-color: var(--accent);
}

.about-factory-hero {
  margin-top: 8px;
  margin-bottom: 8px;
}

.about-factory-hero .factory-carousel {
  width: 100%;
}

.keless-parallax-section--dark .factory-carousel--fade .factory-carousel__frame {
  background: rgba(255, 255, 255, 0.06);
}

.keless-parallax-section--dark .factory-carousel--fade .factory-carousel__slide img {
  background: transparent;
}

@media (max-width: 960px) {
  .factory-carousel--fade .factory-carousel__viewport {
    height: 320px;
  }

  .factory-carousel--track .factory-carousel__track {
    gap: 14px;
  }

  .factory-carousel--about.factory-carousel--track .factory-carousel__track {
    gap: 16px;
  }

  .factory-carousel--track .factory-carousel__slide img {
    height: 180px;
  }

  .factory-carousel--about.factory-carousel--track .factory-carousel__slide img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .factory-carousel--fade .factory-carousel__viewport {
    height: 260px;
  }

  .factory-carousel--track .factory-carousel__track {
    gap: 0;
  }

  .factory-carousel--track .factory-carousel__slide img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .factory-carousel__arrow {
    width: 32px;
    height: 32px;
  }

  .factory-carousel__prev {
    left: 4px;
  }

  .factory-carousel__next {
    right: 4px;
  }
}

/* Application Industries — image ratio ~373×255 */
.services-grid .service-card .service-thumb {
  height: auto;
  aspect-ratio: 373 / 255;
}

.services-grid .service-card .service-thumb img {
  object-fit: cover;
  object-position: center;
}

/* 文字区与图片左右对齐，仅去掉横向内边距 */
.services-grid .service-card .service-body {
  padding-left: 0;
  padding-right: 0;
}

.page-top-bar,
.products-listing-section {
  background: #f4f4f4;
}

.page-top-bar {
  padding: 16px 0;
}

.page-top-bar .container {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.page-top-bar .breadcrumb--top {
  margin: 0;
}

.products-listing-section {
  padding: 32px 0 48px;
}

.breadcrumb--top,
.products-listing-section .breadcrumb--top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #767676;
  opacity: 1;
}

.breadcrumb--top a,
.products-listing-section .breadcrumb--top a {
  color: #767676;
  text-decoration: none;
}

.breadcrumb--top a:hover,
.products-listing-section .breadcrumb--top a:hover {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb--top .breadcrumb__current,
.products-listing-section .breadcrumb--top .breadcrumb__current {
  color: #222;
}

.breadcrumb--top .breadcrumb__sep,
.products-listing-section .breadcrumb--top .breadcrumb__sep {
  color: #999;
  font-size: 12px;
  user-select: none;
}

/* Product listing section padding moved above with page-top-bar */

/* Product detail — same shell as listing page */
.products-listing-section .product-detail-page .products-main {
  min-width: 0;
}

.products-listing-section .product-detail-page .product-detail {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.products-listing-section .product-detail-page .product-detail-tabs {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.products-listing-section .product-detail-page .detail-tab-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 12px;
}

.products-listing-section .product-detail-page .detail-tab-btn {
  background: transparent;
  color: #666;
  font-weight: 400;
}

.products-listing-section .product-detail-page .detail-tab-btn.active {
  background: transparent;
  color: #1a1a1a;
  font-weight: 600;
}

.products-listing-section .product-detail-page .detail-tab-panel {
  padding: 24px;
}

.products-listing-section .products-layout {
  gap: 20px;
  align-items: start;
}

/* Left column — catalog + hot products as separate panels */
.products-listing-section .sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 88px;
  align-self: start;
  z-index: 5;
}

/* Left catalog — white panel */
.products-listing-section .sidebar {
  position: static;
  top: auto;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.products-listing-section .sidebar-search {
  margin: 16px 16px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.products-listing-section .sidebar-search input {
  padding: 10px 12px;
  font-size: 14px;
  color: #222;
}

.products-listing-section .sidebar-search input::placeholder {
  color: #999;
}

.products-listing-section .sidebar-search button {
  width: 44px;
  background: #222;
}

.products-listing-section .sidebar-search button:hover {
  background: #000;
}

.products-listing-section .sidebar__heading {
  margin: 0;
  padding: 12px 16px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0;
  line-height: 1.4;
}

.products-listing-section .sidebar .cat-tree {
  padding-bottom: 8px;
}

/* Hot products — independent panel (Alibaba sidebar style) */
.products-listing-section .sidebar-hot-products {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.sidebar-hot-products__viewport {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.sidebar-hot-products__track {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.25s ease;
  will-change: transform;
}

.sidebar-hot-products__item {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-hot-products__item:last-child {
  border-bottom: none;
}

.sidebar-hot-products__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sidebar-hot-products__link:hover {
  background: #f7f7f7;
}

.sidebar-hot-products__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #eee;
}

.sidebar-hot-products__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-hot-products__title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-hot-products__nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 8px 14px 10px;
  border-top: 1px solid #f0f0f0;
}

.sidebar-hot-products__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sidebar-hot-products__arrow:hover:not(:disabled) {
  color: #222;
}

.sidebar-hot-products__arrow:disabled {
  color: #ccc;
  cursor: default;
}

/* Default visible rows when carousel active */
[data-hot-products]:has([data-hot-prev]) .sidebar-hot-products__viewport {
  /* 4 rows × 96px */
  max-height: 384px;
}

/* Right content area */
.products-listing-section .products-main {
  min-width: 0;
}

.products-listing-section .category-intro {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: none;
}

.products-listing-section .category-intro h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.35;
  display: block;
}

.products-listing-section .category-intro h2::before {
  display: none;
}

.products-listing-section .category-intro p {
  color: #767676;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.products-listing-section .products-toolbar {
  margin-bottom: 16px;
}

.products-listing-section .products-toolbar p {
  color: #767676;
  font-size: 13px;
}

/* Product grid */
.products-listing-section .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 1100px) {
  .products-listing-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .products-listing-section .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product card — image + title + Get Quote */
.products-listing-section .product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.products-listing-section .product-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-color: #e8e8e8;
}

.products-listing-section .product-card__media {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.products-listing-section .product-card .thumb {
  aspect-ratio: 1;
  background: #fff;
  padding: 6px;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.products-listing-section .product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.products-listing-section .product-card:hover .thumb img {
  transform: scale(1.02);
}

.products-listing-section .product-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px 12px;
  text-align: left;
  background: #fff;
}

.products-listing-section .product-card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  min-height: 2.8em;
}

.products-listing-section .product-card__title a {
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.products-listing-section .product-card__title a:hover {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.products-listing-section .product-card__quote {
  align-self: center;
  width: calc(100% - 4px);
  max-width: 180px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.products-listing-section .product-card__quote:hover {
  background: #222;
  color: #fff;
}

/* Pagination — bottom-right */
.products-listing-section .products-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 8px;
}

.products-listing-section .products-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.products-listing-section .products-pagination a.page-numbers:hover {
  background: #f5f5f5;
  border-color: #ddd;
  color: #111;
}

.products-listing-section .products-pagination .page-numbers.current {
  background: #222;
  border-color: #222;
  color: #fff;
  cursor: default;
}

.products-listing-section .products-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #767676;
}

.products-listing-section .products-pagination .prev.page-numbers,
.products-listing-section .products-pagination .next.page-numbers {
  min-width: 36px;
  padding: 0;
}

.products-listing-section .products-pagination .products-pagination__arrow {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 768px) {
  .products-listing-section {
    padding: 24px 0 36px;
  }

  .products-listing-section .products-pagination {
    justify-content: center;
  }
}

/* Product card shared (listing + related products) */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.product-card__media {
  display: block;
  text-decoration: none;
  background: #fff;
}

.product-card .thumb {
  aspect-ratio: 1;
  background: #fff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px 12px;
  text-align: left;
  background: #fff;
}

.product-card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  min-height: 2.8em;
}

.product-card__title a {
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.product-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-card__quote {
  align-self: center;
  width: calc(100% - 4px);
  max-width: 180px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-card__quote:hover {
  background: #222;
  color: #fff;
}

/* ── Blog listing ──────────────────────────────────────────────── */

.blog-listing-section .sidebar .blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.blog-listing-section .sidebar .blog-cat-list a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-listing-section .sidebar .blog-cat-list a:hover {
  background: #f5f5f5;
  color: #222;
}

.blog-listing-section .sidebar .blog-cat-list a.active {
  background: #f0f0f0;
  color: #222;
  font-weight: 600;
}

.blog-listing-section .products-main {
  min-width: 0;
}

.blog-list {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-list-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-item__media {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 4 / 3;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  display: block;
}

.blog-list-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.blog-list-item__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.blog-list-item__title a {
  color: #1a6fb5;
  text-decoration: none;
}

.blog-list-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-list-item__date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
}

.blog-list-item__date svg {
  flex-shrink: 0;
  color: #aaa;
}

.blog-list-item__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-list-item__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.blog-list-item__btn {
  display: inline-block;
  padding: 8px 20px;
  background: #58a5d3;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.blog-list-item__btn:hover {
  background: #4693c1;
  color: #fff;
}

.blog-list-empty {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px 24px;
  color: #666;
  text-align: center;
}

.blog-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.blog-pagination a.page-numbers:hover {
  border-color: #58a5d3;
  color: #58a5d3;
}

.blog-pagination .page-numbers.current {
  background: #58a5d3;
  border-color: #58a5d3;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-list-item {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .blog-list-item__media {
    width: 100%;
  }

  .blog-pagination {
    justify-content: center;
  }
}

/* ── Blog detail ───────────────────────────────────────────────── */

.blog-detail {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px 36px 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-detail__header {
  margin-bottom: 24px;
}

.blog-detail__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 800;
  color: #111;
}

.blog-detail__date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #888;
}

.blog-detail__date svg {
  flex-shrink: 0;
  color: #aaa;
}

.blog-detail__author {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.blog-detail__abstract {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.blog-detail__abstract p {
  margin: 0;
}

.blog-detail__figure {
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
}

.blog-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-detail__content {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}

.blog-detail__content > :first-child {
  margin-top: 0;
}

.blog-detail__content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .blog-detail {
    padding: 20px 16px 28px;
  }
}

/* ── Product detail content — imported HTML cleanup ───────────── */

.detail-tab-panel .entry-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.detail-tab-panel .entry-content > :first-child {
  margin-top: 0;
}

/* Content images (tables, hero photos) stay block; tiny bullet icons do not */
.detail-tab-panel .entry-content img {
  max-width: 100%;
  height: auto;
}

.detail-tab-panel .entry-content table img,
.detail-tab-panel .entry-content td img:not([width="12"]):not([height="12"]),
.detail-tab-panel .entry-content p > img:not([width="12"]):not([height="12"]) {
  display: block;
}

/* Alibaba-style feature bullets — flex + small ::before dot (no oversized icon img) */
.detail-tab-panel .entry-content p:has(> img[width="12"]),
.detail-tab-panel .entry-content p:has(> img[height="12"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.65 !important;
  font-size: 14px;
  color: #333;
}

.detail-tab-panel .entry-content p:has(> img[width="12"])::before,
.detail-tab-panel .entry-content p:has(> img[height="12"])::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
}

.detail-tab-panel .entry-content p:has(> img[width="12"]) > img,
.detail-tab-panel .entry-content p:has(> img[height="12"]) > img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Imported tables — responsive, cleaner spacing */
.detail-tab-panel .entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.detail-tab-panel .entry-content table.table_txt_img td,
.detail-tab-panel .entry-content table.table_replace td {
  vertical-align: top;
  padding: 12px 16px;
  border: 1px solid #eee;
  font-size: 14px;
  line-height: 1.65;
}

.detail-tab-panel .entry-content table.table_txt_img td:first-child {
  width: 58%;
}

.detail-tab-panel .entry-content table.table_icon td {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid #eee;
  font-size: 13px;
  vertical-align: middle;
}

.detail-tab-panel .entry-content table.table_icon img {
  display: inline-block;
  max-width: 48px;
  margin: 0 auto 8px;
}

.detail-tab-panel .entry-content h3,
.detail-tab-panel .entry-content strong span {
  font-size: 18px;
  color: var(--primary);
}

.detail-tab-panel .entry-content p[style*="line-height: 3em"] {
  line-height: 1.5 !important;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .detail-tab-panel .entry-content table.table_txt_img,
  .detail-tab-panel .entry-content table.table_replace {
    display: block;
    overflow-x: auto;
  }

  .detail-tab-panel .entry-content table.table_txt_img tr,
  .detail-tab-panel .entry-content table.table_replace tr {
    display: block;
    margin-bottom: 16px;
  }

  .detail-tab-panel .entry-content table.table_txt_img td,
  .detail-tab-panel .entry-content table.table_replace td {
    display: block;
    width: 100% !important;
  }
}

/* About — certificate click-to-zoom */
.keless-theme .cert-card-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  background: #f5f7fa;
  cursor: zoom-in;
  text-align: left;
}

.keless-theme .cert-card-trigger img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.keless-theme .cert-card:hover .cert-card-trigger img {
  transform: scale(1.02);
}

.keless-theme .img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.keless-theme .img-lightbox[hidden] {
  display: none;
}

.keless-theme .img-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.keless-theme .img-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.keless-theme .img-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.keless-theme .img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.keless-theme .img-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.keless-theme .img-lightbox-caption {
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 992px) {
  .keless-theme .cert-card-trigger img {
    height: 180px;
  }
}

/* ── Contact page ─────────────────────────────────────────────── */

.contact-page-band {
  background: #f0f2f5;
  padding: 48px 0;
}

.contact-page-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: stretch;
}

.contact-page-map {
  position: relative;
  min-height: 360px;
  background: #e4e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.contact-page-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  pointer-events: none;
}

.contact-page-map__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}

.contact-page-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
}

.contact-page-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.contact-page-line strong {
  color: #1a1a1a;
  font-weight: 700;
}

.contact-page-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page-link:hover {
  color: #d96a14;
}

.contact-page-form-section {
  background: #fff;
  padding: 56px 0 72px;
}

.contact-page-form-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: uppercase;
}

.contact-page-form-accent {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-2px);
}

/* Shared inquiry form — contact page & inquiry modal */
.keless-inquiry-form--page {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.keless-inquiry-form--modal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
}

.keless-inquiry-form__field {
  display: block;
}

.keless-inquiry-form--page .keless-inquiry-form__message-wrap,
.keless-inquiry-form--page .keless-inquiry-form__submit,
.keless-inquiry-form--page .keless-inquiry-form__success {
  grid-column: 1 / -1;
}

.keless-inquiry-form--modal .keless-inquiry-form__field input,
.keless-inquiry-form--modal .keless-inquiry-form__field textarea {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
}

.keless-inquiry-form__field input,
.keless-inquiry-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f4f6;
  font: inherit;
  color: #222;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.keless-inquiry-form__field input::placeholder,
.keless-inquiry-form__field textarea::placeholder {
  color: #8b95a5;
}

.keless-inquiry-form__field input:focus,
.keless-inquiry-form__field textarea:focus {
  outline: none;
  background: #fff;
  border-color: #d0d5dd;
  box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.1);
}

.keless-inquiry-form__message-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.keless-inquiry-form__message-wrap:focus-within {
  background: #fff;
  border-color: #d0d5dd;
  box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.1);
}

.keless-inquiry-form__field--message {
  margin: 0;
}

.keless-inquiry-form__field--message textarea {
  min-height: 160px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.keless-inquiry-form--modal .keless-inquiry-form__field--message textarea {
  min-height: 88px;
  max-height: 120px;
}

.keless-inquiry-form__field--message textarea:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.keless-inquiry-form__ai {
  position: relative;
  border-top: 1px solid #e5e7eb;
}

.keless-inquiry-form--modal .keless-inquiry-form__ai-toggle {
  padding: 8px 12px;
  font-size: 13px;
}

.keless-inquiry-form__ai-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: linear-gradient(90deg, #e8f6fc 0%, #edf8ff 100%);
  color: #1d6fa5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.keless-inquiry-form__ai-toggle:hover,
.keless-inquiry-form__ai-toggle[aria-expanded="true"] {
  background: linear-gradient(90deg, #d9f0fb 0%, #e4f5ff 100%);
}

.keless-inquiry-form__ai-icon {
  color: #2b9fd9;
}

.keless-inquiry-form__ai-pencil {
  color: #1d6fa5;
}

.keless-inquiry-form--modal .keless-inquiry-form__ai-panel {
  max-height: 132px;
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.keless-inquiry-form--modal .keless-inquiry-form__ai-hint {
  margin-bottom: 8px;
  font-size: 12px;
}

.keless-inquiry-form--modal .keless-inquiry-form__ai-option {
  padding: 6px 10px;
  font-size: 12px;
}

.keless-inquiry-form__ai-panel {
  padding: 14px 16px 16px;
  background: #f8fbfd;
  border-top: 1px solid #e5e7eb;
}

.keless-inquiry-form__ai-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #667085;
}

.keless-inquiry-form__ai-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keless-inquiry-form__ai-option {
  padding: 8px 14px;
  border: 1px solid #cfe8f6;
  border-radius: 999px;
  background: #fff;
  color: #1d6fa5;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.keless-inquiry-form__ai-option:hover {
  background: #e8f6fc;
  border-color: #9fd4ef;
  color: #155a87;
}

.keless-inquiry-form--page .keless-inquiry-form__submit {
  justify-self: center;
  min-width: 220px;
  margin-top: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.keless-inquiry-form--modal .keless-inquiry-form__submit {
  width: 100%;
  margin-top: 2px;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}

.keless-inquiry-form--modal .keless-inquiry-form__success {
  font-size: 13px;
  padding: 8px;
}

.inquiry-modal-dialog {
  width: min(100%, 500px);
  padding: 18px 22px 20px;
}

.inquiry-modal-dialog h2 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #333;
  flex-shrink: 0;
}

.contact-page-cta {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 960px) {
  .contact-page-band__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-page-map,
  .contact-page-map iframe {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .contact-page-band {
    padding: 32px 0;
  }

  .contact-page-form-section {
    padding: 40px 0 56px;
  }

  .keless-inquiry-form--page {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

