body.deye-products-page {
  background: #fff;
  color: #191f2f;
}

body.deye-products-page *,
body.deye-products-page *::before,
body.deye-products-page *::after {
  box-sizing: border-box;
}

.products-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(120deg, rgba(11, 43, 71, 0.88), rgba(25, 31, 47, 0.42)), url("../img/hv-three-phase-ess-banner-en.jpg") center/cover no-repeat;
}

.products-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.products-hero .ui.container2 {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 94px 0 88px;
}

.products-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.products-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: #f6c243;
}

.products-hero h1 {
  max-width: 820px;
  margin-top: 0;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
}

.products-hero p {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.products-main {
  margin-top: 20px;
  padding: 56px 0 86px;
  background: #fff;
  overflow: visible;
}

.products-main > .ui.container2 {
  max-width: 1660px;
}

.products-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.products-sidebar {
  flex: 0 0 280px;
  width: 280px;
}

.products-sidebar-inner {
  position: relative;
  width: 280px;
}

.products-category-sticky {
  position: relative;
}

.products-category-box {
  border: 1px solid #e5edf5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: static;
  z-index: 2;
}

.products-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #191f2f;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.products-category-header::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
}

.products-category-tree {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.products-category-tree > li {
  border-bottom: 1px solid #ece7e7;
  background: #fff;
}

.products-category-tree > li:last-child {
  border-bottom: 0;
}

.products-category-tree .tree-node {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

.products-category-tree > li > .tree-node > a {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  color: #202020;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.products-category-tree .tree-label {
  display: block;
  width: 100%;
}

.products-category-tree .tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 54px;
  height: auto;
  margin-right: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.products-category-tree .tree-toggle i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.products-category-tree > li > .tree-node > a:hover,
.products-category-tree > li > .tree-node > a.is-active {
  background: #191f2f;
  color: #fff;
}

.products-category-tree > li > .tree-node > a.is-active {
  font-weight: 600;
}

.products-category-tree > li.expanded > .tree-node .tree-toggle {
  color: #fff;
  background: #191f2f;
}

.products-category-tree > li.expanded > .tree-node .tree-toggle i {
  transform: rotate(180deg);
}

.products-category-tree > li ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.products-category-tree > li ul > li a {
  display: block;
  padding: 14px 22px 14px 48px;
  color: #6a6a6a;
  font-size: 14px;
  text-decoration: none;
  border-top: 1px solid #f1ecec;
  transition: color 0.2s ease, background 0.2s ease;
}

.products-category-tree > li ul > li a:hover {
  color: #fff;
  background: #191f2f;
}

.products-category-tree > li ul > li a.is-active {
  color: #fff;
  background: #191f2f;
  font-weight: 600;
}

.products-category-tree > li ul > li:last-child a {
  border-bottom: 0;
}

.products-category-tree > li.no-children .tree-toggle {
  display: none;
}

.products-category-tree > li.expanded > ul {
  max-height: 600px;
  opacity: 1;
}

.products-contact-card {
  margin-top: 20px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.products-contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin: 0;
  background: #191f2f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.products-contact-card h3::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: #fff;
}

.products-contact-card .contact-content {
  padding: 18px;
}

.products-contact-card p {
  margin: 0 0 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.products-contact-card p strong {
  color: #333;
}

.products-contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border-radius: 6px;
  background: #191f2f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.products-contact-card a:hover {
  background: #2658b5;
}

.products-right {
  flex: 1;
  min-width: 0;
}

.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e5edf5;
  border-radius: 10px;
}

.products-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.products-page-title::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: #191f2f;
}

.products-page-title h2 {
  margin: 0;
  color: #222;
  font-size: 22px;
  font-weight: 700;
}

.products-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-search-field {
  position: relative;
}

.products-search input {
  width: 260px;
  height: 40px;
  padding: 0 42px 0 14px;
  border: 1px solid #dbe7f3;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.products-search input:focus {
  border-color: #191f2f;
}

.products-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 49, 92, 0.08);
  color: #6f7f97;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.products-search.has-value .products-search-field:hover .products-search-clear,
.products-search.has-value .products-search-field:focus-within .products-search-clear {
  opacity: 1;
  visibility: visible;
}

.products-search-clear:hover {
  background: #191f2f;
  color: #fff;
}

.products-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: #191f2f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.products-search button:hover {
  background: #2658b5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.products-empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed #d7e4f3;
  border-radius: 18px;
  background: #f8fbff;
  text-align: center;
}

.products-empty-state h3 {
  margin: 0 0 12px;
  color: #13315c;
  font-size: 28px;
  font-weight: 700;
}

.products-empty-state p {
  margin: 0;
  color: #6f7f97;
  font-size: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(21, 45, 86, 0.12);
  border-color: rgba(49, 111, 218, 0.18);
}

.product-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #eaf4ff 100%);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.product-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #191f2f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-category::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #191f2f;
}

.product-card-body h3 {
  margin: 0 0 10px;
  color: #151b28;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card:hover .product-card-body h3 {
  color: #191f2f;
}

.product-card-body p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 6px;
  background: #191f2f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.product-card-link::after {
  content: none !important;
}

.product-card-link:hover {
  background: #2658b5;
}

.products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 58px;
}

.products-pagination-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.products-page-meta,
.products-page-nav,
.products-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #d9dee7;
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.products-page-meta {
  min-width: 106px;
}

.products-page-number {
  min-width: 42px;
  padding: 0 12px;
}

.products-page-number.current,
.products-page-nav:hover,
.products-page-number:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(49, 111, 218, 0.18);
}

@media (max-width: 1180px) {
  .products-layout {
    flex-direction: column;
  }

  .products-sidebar {
    flex: none;
    width: 100%;
  }

  .products-sidebar-inner {
    position: static;
    display: flex;
    gap: 20px;
  }

  .products-category-sticky {
    flex: 1;
    min-height: 0 !important;
  }

  .products-category-box,
  .products-contact-card {
    flex: 1;
    position: static;
    top: auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 24px;
  }

  .products-pagination-box {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .products-hero .ui.container2 {
    padding: 70px 20px 64px;
  }

  .products-main {
    padding: 48px 0 60px;
  }

  .products-sidebar-inner {
    flex-direction: column;
  }

  .products-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .products-search {
    width: 100%;
  }

  .products-search-field {
    flex: 1;
  }

  .products-search input {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-page-meta,
  .products-page-nav,
  .products-page-number {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .product-card-image {
    border-radius: 12px 12px 0 0;
  }

  .product-card-body h3 {
    font-size: 17px;
  }
}
