/* Product center — values copied from the ENGLISH interface of etommens.com
   (/public/css/product.css?v=5). Selector prefix #container kept identical. */

#container { background: #fff; }
#container, #container * { box-sizing: border-box; }
#container input, #container button { font-family: inherit; }

#container .main-container {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- banner ---------- */
#container .banner {
  margin-bottom: 1.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
#container .banner .image { width: 100%; height: 30.3125rem; overflow: hidden; }
#container .banner .img-word {
  position: absolute;
  display: flex;
  width: 50%;
  justify-content: space-evenly;
  align-items: center;
}
#container .banner .img-word .small_img { width: 15.75rem; height: 15.75rem; margin-right: 30px; }
#container .banner .img-word .right_img_word { color: #fff; }
#container .banner .img-word .right_img_word .right_top_title { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.9375rem; }
#container .banner .img-word .right_img_word .right_center_content { font-size: 0.875rem; margin-bottom: 1.875rem; }
#container .banner .img-word .right_img_word .right_center_content p { margin-bottom: 0.3125rem; }
#container .banner .img-word .right_img_word .right_down_btn {
  display: inline-block;
  padding: 0.3125rem 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  background-color: #fff;
  color: #175292;
  border-radius: 1.25rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* ---------- left classification bar ---------- */
#container .aside-bar-container {
  padding: 32px 16px 32px 8px;
  border-right: 1px solid #115899;
  box-sizing: border-box;
  z-index: 1;
  background: #fff;
}
#container .aside-bar-header {
  height: 16px;
  line-height: 16px;
  font-size: 16px;
  font-weight: bold;
  color: #115899;
  margin-bottom: 20px;
}
#container .aside-bar-container .search-input { margin-bottom: 30px; height: 40px; }
#container .aside-bar-container .search-input .el-input__inner {
  height: 100%;
  border: 1px solid #eee;
  border-radius: 10px;
  padding-left: 10px;
}
#container .search-input .icon { cursor: pointer; }
#container .el-input { position: relative; display: inline-block; width: 100%; }
#container .el-input__inner {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  box-sizing: border-box;
  color: #606266;
  display: inline-block;
  font-size: inherit;
  height: 40px;
  line-height: 40px;
  outline: none;
  padding: 0 15px;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  width: 100%;
}
#container .el-input__suffix {
  position: absolute;
  top: 0;
  right: 5px;
  height: 100%;
  display: flex;
  align-items: center;
  color: #c0c4cc;
}
#container .item { margin-bottom: 15px; border-bottom: 1px solid #ccc; }
#container .title {
  height: 16px;
  line-height: 16px;
  font-size: 16px;
  font-weight: bold;
  color: #115899;
  margin-bottom: 14px;
  cursor: pointer;
}
#container .item .title a { color: #115899; text-decoration: none; display: inline; }
#container .item .list {
  height: 12px;
  line-height: 12px;
  color: #606266;
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
}
#container .item .list a { color: #606266; text-decoration: none; }

/* ---------- right content area ---------- */
#container .content-area { flex: 1; padding: 20px; }
#container .product-list { flex: 1; }

/* ---------- attribute filter panel (desktop) ---------- */
#container .type-filter-container {
  padding: 0 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}
#container .type-filter-container .item {
  display: flex;
  border-bottom: 1px dashed #e4e7ed;
}
#container .type-filter-container .label {
  font-size: 12px;
  width: 60px;
  text-transform: uppercase;
  color: #606266;
  margin-right: 20px;
  z-index: 1;
}
#container .type-filter-container .checkbox-group {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
#container .type-filter-container .checkbox-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 10px;
}
#container .type-filter-container .checkbox-input {
  margin-right: 6px;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
#container .type-filter-container .checkbox-label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #606266;
  user-select: none;
}
#container .type-filter-container .button-group {
  display: flex;
  justify-content: center;
}

/* "More Filters": the secondary axes (Channel, Form Factor) stay out of the
   first screen. Styled as a quiet full-width text toggle so it reads as a
   disclosure control, never as the panel's primary Apply action. */
#container .type-filter-container .more-filter-toggle-wrap { border-bottom: none; padding: 0; margin: 4px 0 8px; }
#container .type-filter-container .more-filter-toggle {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px dashed #dcdfe6;
  padding: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #115899;
  cursor: pointer;
  text-align: center;
}
#container .type-filter-container .more-filter-toggle:hover { color: #469ffc; }
#container .type-drawer .more-filter-toggle-wrap { border-bottom: none; padding: 0; margin: 10px 0; }
#container .type-drawer .more-filter-toggle {
  width: 90%;
  margin: 0 auto;
  display: block;
  background: none;
  border: none;
  border-top: 1px dashed #dcdfe6;
  padding: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #115899;
  cursor: pointer;
}

#container .type-filter-container .button {
  width: 120px;
  height: 30px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
#container .type-filter-container .button-primary {
  background-color: #469ffc;
  color: white;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
#container .type-filter-container .button-danger {
  background-color: #f56c6c;
  color: white;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* ---------- zero-result fallback notice ----------
   A filter that matches nothing no longer leaves the listing empty: the
   category's unfiltered products are shown instead, behind this line. */
#container .product-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f5f8fd;
  border: 1px solid #d6e4f7;
  border-left: 4px solid #469ffc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #606266;
}
#container .product-notice-reset {
  height: 30px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid #469ffc;
  background: #fff;
  color: #115899;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
#container .product-notice-reset:hover { background: #469ffc; color: #fff; }

/* ---------- product grid / cards ---------- */
#container .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
#container .product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
#container .product-card:hover { transform: translateY(-5px); }
#container .product-media { display: block; background: #fff; text-decoration: none; }
#container .product-image { width: 100%; height: 200px; object-fit: contain; display: block; }
#container .product-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
#container .product-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #303133;
}
#container .product-title a { color: #303133; text-decoration: none; }
#container .product-title a:hover { color: #115899; }
#container .product-model { font-size: 13px; font-weight: 600; color: #115899; margin: 0 0 6px; letter-spacing: 0.02em; }
/* P6: the old .product-todo "see details" placeholder rule is gone — a card now
   omits the model line entirely when the catalogue cannot name one. */

/* Real ratings pulled from the catalogue's own range facets: power / voltage /
   current. P6: promoted to the card's main technical block — a wider, labelled
   row so the three headline ratings are readable at a glance on the first
   screen, while staying a quiet instrument label rather than a sales badge
   (same #115899 accent the model line uses, no new palette). */
#container .product-specs {
  list-style: none;
  margin: 0 0 10px;
  padding: 8px 0 0;
  border-top: 1px solid #eef1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}
#container .product-spec {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #e4e7ed;
  border-radius: 3px;
  padding: 3px 7px;
  background: #fafbfc;
}
#container .product-spec-k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a93a0; }
#container .product-spec-v { font-size: 13px; font-weight: 600; color: #1d2b3a; }

#container .product-brief {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 12px;
  min-height: 39px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#container .product-actions { margin-top: auto; display: flex; gap: 8px; }
#container .product-btn {
  flex: 1;
  height: 30px;
  line-height: 28px;
  padding: 0 8px;
  border-radius: 20px;
  border: 1px solid #469ffc;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
#container .product-btn-primary { background-color: #469ffc; color: #fff; }
#container .product-btn-primary:hover { background-color: #115899; border-color: #115899; color: #fff; }
#container .product-btn-quote { background-color: #fff; color: #115899; }
#container .product-btn-quote:hover { background-color: #115899; color: #fff; }
#container .product-category { font-size: 14px; color: #666; margin: 0; }
#container .empty-state { text-align: center; padding: 50px 0; color: #999; }

/* ---------- pagination (ui-pagination plugin) ---------- */
#container .l-page { margin-top: 1.875rem; margin-bottom: 3.4375rem; text-align: center; }
#container .ui-pagination-container { display: inline-block; }
#container .ui-pagination-page-item {
  margin: 0 .625rem;
  padding: .3125rem .625rem;
  color: #636363;
  font-size: .875rem;
  border-radius: 50%;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
#container .ui-pagination-page-item.active {
  background: #2771ff;
  border: .0625rem solid #2771ff;
  color: #fff;
}

/* ---------- mobile filter bar ---------- */
#container .filter-bar-container {
  background-color: #fff;
  padding: 10px 5px;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  margin-bottom: 20px;
}
#container .filter-bar-container .list {
  position: relative;
  height: 35px;
  line-height: 35px;
  font-size: 14px;
  font-weight: 300;
  color: #606266;
  padding-right: 16px;
  cursor: pointer;
}
#container .filter-bar-container .list::before {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 6px 5.5px 0 5.5px;
  border-color: #858585 transparent transparent transparent;
  content: '';
}
#container .filter-bar-container .search-input { display: inline-block; width: auto; }
#container .filter-bar-container .search-input .el-input__inner {
  height: 35px;
  line-height: 35px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding-left: 10px;
}

/* ---------- mobile drawers ---------- */
#container .overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}
#container .overlay.active { display: block; }
#container .el-drawer {
  border-radius: 10px 10px 0 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90%;
  background: #fff;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}
#container .el-drawer.active { transform: translateY(0); }
#container .el-drawer__header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e7ed;
}
#container .drawer-title { font-size: 16px; font-weight: bold; color: #303133; margin: 0; }
#container .category-drawer .item { padding: 15px 0; }
#container .category-drawer .title {
  height: 16px;
  line-height: 16px;
  font-size: 16px;
  font-weight: bold;
  color: #115899;
  margin-bottom: 13px;
  cursor: pointer;
}
#container .category-drawer .column {
  height: 12px;
  line-height: 12px;
  font-size: 12px;
  font-weight: 300;
  color: #606266;
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
}
#container .category-drawer .column a { color: #606266; text-decoration: none; }
#container .type-drawer .item { margin-bottom: 20px; padding: 15px 0; }
#container .type-drawer .title {
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 9px;
}
#container .type-drawer .column {
  background: #e4e7ed;
  border-radius: 99em;
  margin: 0 8px 8px 0;
  padding: 5px 15px;
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: #606266;
}
#container .type-drawer .column.active { background: #469ffc; color: #fff; }
#container .type-drawer .button-group { display: flex; width: 90%; margin: 0 auto; }
#container .type-drawer .button-group button {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
#container .type-drawer .button-group .button-primary { background-color: #469ffc; color: white; }
#container .type-drawer .button-group .button-blue { background-color: #3a5996; color: white; }

/* ---------- media queries (origin) ---------- */
@media (min-width: 769px) {
  #container .filter-bar-container { display: none !important; }
}
@media (max-width: 768px) {
  #container .aside-bar-container,
  #container .type-filter-container { display: none; }
  #container .filter-bar-container { display: flex !important; }
  #container .search-input { display: flex; }
  #container .search-input .el-input__inner { width: 140px; }
  #container .main-container { display: block; }
}
@media (max-width: 992px) {
  #container .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 48rem) {
  #container .banner .image { transition: 0.3s; width: 100%; overflow: hidden; }
}
@media (max-width: 31.25rem) {
  #container .banner .image { transition: 0.3s; width: 100%; height: 10.75rem; overflow: hidden; }
  #container .banner .img-word { display: none; }
}
@media (max-width: 660px) {
  #container .banner { margin-bottom: 0; }
}
@media (max-width: 560px) {
  #container .products-grid { grid-template-columns: 1fr; }
}

/* ---------- task 14: de-emphasised power-based / empty categories ---------- */
#container .aside-bar-container .list.cat-muted,
#container .aside-bar-container .list.cat-muted a { color: #9aa4b2; font-size: 11px; }
#container .category-drawer .column.cat-muted { color: #9aa4b2; font-size: 11px; }
