.breadcrumb-data .am-breadcrumb {
  padding: 20px 20px 20px 20px;
}
/* 主题*/
.main-search {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.main-search-head {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
}
.main-search-head .search-head-top {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1.8rem;
  padding-bottom: 16px;
}
.search-head-top .search-head-title {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-grow: 1;
  background: white;
}
.search-head-top .search-head-title .search-head-title-top {
  display: flex;
  align-items: center;
  padding-bottom: 16px;
}
.search-head-top .search-head-title .search-head-title-main {
  padding:  14px 0;
  font-weight: bold;
  font-size: 14px;
}
.search-head-top .search-head-title .search-head-title-details p a {
  color: #0942c5;
  border-bottom: 1px solid #0942c5;;
}
.search-head-top .search-head-title .search-head-title-details p  {
 font-size: 12px;
}
.search-head-top .search-head-top-right {
  flex-shrink: 1;
  background: white;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.search-head-top .search-head-top-right h4 {
  font-weight: bold;
  white-space: nowrap;
  font-size: 18px;
}
.search-head-top .search-head-top-right .head-top-right-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 创建三列，每列宽度相等 */
  
}
.search-head-top .search-head-top-right .head-top-right-bottom a  {
  padding: 6px 16px;
  text-align: center;
  width: 112px;
  height: 62px;
  word-wrap: break-word;
  overflow: hidden;
}
.search-head-top .search-head-top-right .head-top-right-bottom a div:nth-of-type(1)  {
  width: 80px;
  height: 50px;
  position: relative;
}
.search-head-top .search-head-top-right .head-top-right-bottom div img  {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: contain;
  inset: 0;
  color: transparent;
}
.search-head-top .search-head-title .search-head-title-circuit {
  width: 60px;
  height: 60px;
}
.search-head-title-circuit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.search-head-top .search-head-title h1 {
  font-size: 22px;
  font-weight: bold;
  padding-left: 16px;
}
.main-search-head .search-head-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 创建四列，每列宽度相等 */
  row-gap: 1rem;
  column-gap: 1.5rem;
}
.main-search-head .search-head-bottom a {
  display: flex;
  justify-content: space-between;
  background: white;
  padding: 6px 16px;
  border-radius: 6px;
  height: 43px;
  align-items: center;
  line-height: 16px;
  font-size: 12px;
}
.main-search-head .search-head-bottom a p:nth-of-type(1):hover {
  color: rgb(54 113 176 / var(--tw-text-opacity, 1));
}
/* 筛选器区域 */
.main-search .main-search-category {
  margin-bottom: 12px;
  padding: 0 20px;
}

/* 整体布局容器（筛选区 + 内容区） */
.search-layout-wrapper {
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

/* 筛选器顶部工具栏 */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  margin-bottom: 0;
}

/* 工具栏左侧：Results 计数 */
.filter-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.filter-results-label {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.filter-results-count {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}





.filter-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Portrait / Across 切换按钮组 */
.layout-toggle-group {
  display: flex;
  align-items: center;
  background: #005CA1;
  border-radius: 20px;
  overflow: hidden;
  padding: 2px;
}

.layout-toggle-btn {
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.layout-toggle-btn:hover {
  color: #fff;
}

.layout-toggle-btn.active {
  background: #ffffff;
  color: #000;
  border-radius: 20px;
}


/* 工具栏图标按钮 */
.filter-toolbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 32px;
  border: 1px solid #999999;
  border-radius: 6px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px; 
  padding: 4px 6px;
  font-size: 14px
  width: 120px;
}

.filter-toolbar-icon-btn:hover {
  background: #f5f5f5;
  color: #005CA1;
  border-color: #005CA1;
}
.filter-toolbar-icon-btn .filter-title {
  font-size: 12px;
  font-weight: 600; 
  color: #303133;
}
.filter-toolbar-icon-btn .filter-count {
  color: #909399; 
  font-size: 12px;
}
.filter-toolbar-icon-btn .filter-icon {
  color: #606266; 
  font-size: 16px;
}

/* 筛选面板容器 */
.filter-panels-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  transition: all 0.35s ease;
}

/* 单个筛选面板 */
.filter-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 320px;
}

.filter-panel-header {
  background: #005CA1;
  color: #fff;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.filter-panel-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.filter-search-box {
  padding: 8px 10px;
  flex-shrink: 0;
}

.filter-search-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.filter-search-input:focus {
  border-color: #005CA1;
}

.filter-items-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.filter-items-list::-webkit-scrollbar {
  width: 5px;
}

.filter-items-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.filter-item {
  padding: 5px 14px;
  font-size: 12px;
  line-height: 1.6;
  transition: background 0.15s;
}

.filter-item a {
  color: #333;
  text-decoration: none;
  display: block;
}

.filter-item a:hover {
  color: #005CA1;
}

.filter-item-count {
  color: #999;
  font-size: 11px;
}

.filter-item-active {
  background: #005CA1;
}

.filter-item-active a {
  color: #fff;
  font-weight: 500;
}

.filter-item-active .filter-item-count {
  color: rgba(255, 255, 255, 0.8);
}

.filter-item-active a:hover {
  color: #fff;
}

/* 隐藏项（JS 控制） */
.filter-item.hide {
  display: none;
}

/* ========== Portrait 模式样式 ========== */
/* 筛选器折叠状态 */
.filter-panels-wrapper.collapsed {
  display: none;
}

/* Portrait 模式：筛选器在上方，内容在下方 */
.search-layout-wrapper.is-portrait {
  display: flex !important;
  flex-direction: column !important;
}

.search-layout-wrapper.is-portrait > .main-search-category {
  width: 100% !important;
  padding: 0 20px !important;
  margin-bottom: 12px !important;
  order: 1 !important;
}

.search-layout-wrapper.is-portrait > .search-content-layout {
  width: 100% !important;
  order: 2 !important;
}

.search-layout-wrapper.is-portrait .filter-panels-wrapper {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.search-layout-wrapper.is-portrait .filter-toolbar {
  padding: 8px 0;
  margin-bottom: 0;
}

.search-layout-wrapper.is-portrait .filter-toolbar-left {
  padding-left: 20px;
}

.search-layout-wrapper.is-portrait .filter-toolbar-right {
  padding-right: 20px;
}

/* Portrait 模式下隐藏筛选折叠按钮 */
.search-layout-wrapper.is-portrait #filterCollapseBtn {
  display: none;
}

/* Portrait 模式下显示 Quick Access */
.search-layout-wrapper.is-portrait .quick-access-panel {
  display: block;
}

/* Portrait 模式下隐藏横版结果数量副本 */
.search-layout-wrapper.is-portrait .across-results-count {
  display: none !important;
}

/* 横版模式下结果数量显示在最前端 */
.across-results-count {
  order: -1;
}

/* ========== Across 模式样式 ========== */
/* Across 模式：左右布局，筛选区在左，内容区在右 */
.search-layout-wrapper.is-across {
  display: flex !important;
  flex-direction: row !important;
  gap: 0px !important;
}

.search-layout-wrapper.is-across > .main-search-category {
  width: 280px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  transition: all 0.35s ease !important;
  display: flex !important;
  flex-direction: column !important;
  order: 1 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

/* 工具栏精确对齐在筛选器主体正上方 */
.search-layout-wrapper.is-across .filter-toolbar {
  width: 100% !important;
  margin-bottom: 8px !important;
  padding: 8px 0 !important;
  box-sizing: border-box !important;
}

.search-layout-wrapper.is-across .filter-panels-wrapper {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
  flex: none;
  width: 100% !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

.search-layout-wrapper.is-across .filter-panel {
  max-height: 280px;
  width: 100%;
}

.search-layout-wrapper.is-across > .search-content-layout {
  flex: 1 !important;
  min-width: 0 !important;
  transition: all 0.35s ease !important;
  order: 2 !important;
}

/* Across 模式下筛选区隐藏 */
.search-layout-wrapper.is-across .main-search-category.filter-hidden {
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Across 模式下隐藏 Quick Access */
.search-layout-wrapper.is-across .quick-access-panel {
  display: none;
}

/* Across 模式下隐藏原工具栏左侧的结果数量，改由 image-button-group 内显示 */
.search-layout-wrapper.is-across .filter-toolbar-left:not(.across-results-count) {
  display: none !important;
}

/* ========== 图片按钮组 ========== */
.image-button-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 12px 20px;
  margin-bottom: 4px;
}

.image-btn-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.image-btn-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  vertical-align: middle;
  position: initial;
}


.image-btn {
  display: inline-block;
  border: 2px solid #d0d5dd;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  background: #fff;
  padding: 3px 8px;
  font-weight: 800;
}


.image-btn:hover {
  color: #005CA1;
}

.image-btn.active {
  color: #118FDB;
}

/* ========== 商品列表表格 ========== */
.product-table-wrapper, .page-wrapper {
  padding: 0 20px;
  overflow-x: auto;
}

/* Quick Access + 主内容区 布局容器 */
.search-content-layout {
  position: relative;
}

/* Quick Access 快速访问面板（绝对定位，不影响主区域宽度） */
.quick-access-panel {
  position: absolute;
  left: -152px;
  top: 0;
  width: 172px;
  padding: 0 8px 0 0;
  z-index: 999;
  text-align:right;
  /* 仅对视觉增强属性做过渡，不对 position/top/left 做过渡（坐标系切换会导致跳动） */
  transition: box-shadow 0.3s ease;
}

.quick-access-panel.is-sticky {
  position: fixed;
  top: 200px; /* 固定距离视口顶部 200px */
}

.quick-access-header {
  display: inline-block;
  background: #005BA1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px 4px 0 4px;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align:right;
  position:relative;
}
/* 右半三角形（直角在右下） */
.quick-access-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-top: 10px solid #005BA1;
  border-right: 0;
}

.quick-access-header span {
  white-space: nowrap;
}

.quick-access-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  
}

.quick-access-item {
  display: block;
  text-align: right;
  padding: 8px 12px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-right: 1px solid #e0e0e0;
}

.quick-access-item:hover {
  border-right: 2px solid #0E90DB;
}

.quick-access-item:focus {
  outline: 2px solid #0E90DB;
  outline-offset: -2px;
  border-right: 2px solid #0E90DB;
}

.quick-access-item-active,
.quick-access-item[aria-current="true"] {
  /* color: #0E90DB; */
  /* font-weight: 600; */
  border-right: 2px solid #0E90DB;
  /* background: rgba(14, 144, 219, 0.06); */
}

.quick-access-item:last-child {
  margin-bottom: 0;
}

/* Anchor target scroll offset */
.product-brand-header[id] {
  scroll-margin-top: 20px;
}

.product-card-group {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.12);
}

.product-card-group:last-child {
  margin-bottom: 0;
}

.product-table {
  width: 100%;
  min-width: 900px;
  font-size: 12px;
  table-layout: fixed;
  border-collapse: collapse;  /* 关键：让边框合并 */
  border: hidden;             /* 关键：隐藏表格自身的外边框 */
}

.product-table tbody tr {
  transition: background-color 0.15s;
}

.product-table tbody tr:hover {
  background-color: #f5f9ff;
}

.product-table tbody td,
.product-table tbody th {
  padding: 8px;
  vertical-align: top;
  border: 1px solid #e0e0e0;
  font-size: 12px;
}
.product-table tbody th{
  padding-bottom: 4px;
}

/* Checkbox column */
.col-checkbox {
  width: 30px !important;
  max-width: 30px !important;
  min-width: 30px !important;
  text-align: center;
  padding: 8px 4px !important;
  vertical-align: top !important;
  overflow: hidden;
}

.col-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  position: initial;
}

/* Mfr Part column */
.col-part {
  width: 130px !important;
  max-width: 130px !important;
  min-width: 130px !important;
  overflow: hidden;
}

.part-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 130px;
  overflow: hidden;
}

.part-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.part-image {
  flex-shrink: 0;
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  padding: 3px;
  border-radius: 4px;
}

.part-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 产品图标网格 */
.product-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  flex-shrink: 0;
}

.product-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  cursor: pointer;
  transition: transform 0.15s;
}

.product-icon-item .icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.product-icon-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 收藏切换 */
.favorite-toggle {
  cursor: pointer;
  text-decoration: none;
}

.part-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.part-number {
  color: #333;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  display: block;
  max-width: 120px;
}

.part-number:hover {
  color: #0066cc;
  text-decoration: underline;
}

.part-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: 10px;
  overflow: hidden;
}

.part-meta span {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}

.part-meta .meta-name {
  font-style: normal;
  color: #222;
  display: inline-block;
  width: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.part-meta .meta-value {
  font-style: normal;
  color: #66AAD8;
  display: inline-block;
  min-width: 40px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Description column */
.col-collect {
  width: 30px;
  overflow: hidden;
}
.col-supplier {
  width: 200px;
  overflow: hidden;
}
.col-brand {
  width: 200px;
  overflow: hidden;
}
.col-desc {
  width: 150px;
  max-width: 150px;
  min-width: 150px;
  overflow: hidden;
}

.desc-content p {
  margin: 0;
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quantity Available column */
.col-qty {
  width: 65px;
  max-width: 65px;
  min-width: 65px;
  text-align: center;
  overflow: hidden;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}

.product-table .qty-control .qty-input {
  width: 42px;
  height: 23px;
  border: 1px solid #ccc;
  border-radius: 3px 0 0 3px;
  text-align: center;
  font-size: 11px;
  padding: 0 2px;
  flex-shrink: 0;
}

.btn-add {
  background: #005CA1;
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-add:hover {
  background: #005CA1;
}

.est-price {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  text-align: left;
}

.est-price strong {
  color: #2D98EC;
}

/* Price column */
.col-price {
  width: 110px !important;
  max-width: 110px !important;
  min-width: 110px !important;
  overflow: visible;
}

/* Price filter wrapper */
.price-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  position: relative;
}

.price-qty-filter-input {
  width: 80px;
  padding: 2px 4px;
  font-size: 11px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
  color: #303133;
}

.price-qty-filter-input:focus {
  border-color: #409eff;
}

.price-qty-filter-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #fff;
  cursor: help;
  position: relative;
  z-index: 10;
  background: #005CA1;
  border-radius: 50%;
}

.price-qty-filter-tip {
  display: none;
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  max-width: 280px;
}

.price-qty-filter-tip.is-visible {
  display: block;
}

.price-qty-filter-tip-content {
  background: #FFFFFF;
  color: #303133;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 4px;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #e4e7ed;
  position: relative;
}

.price-qty-filter-tip-arrow {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #FFFFFF;
}

.price-qty-filter-tip-arrow::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  border: 7px solid transparent;
  border-top-color: #e4e7ed;
}

/* Filtered price tier (hidden by quantity filter) */
.price-tier.tier-filtered {
  display: none;
}

.price-tiers {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-tier {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 8px;
}

.tier-qty {
  color: #333;
  font-weight: 500;
}

.tier-price {
  color: #333;
  white-space: nowrap;
}

/* Price tier toggle button */
.price-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 0;
  font-size: 11px;
  color: #005CA1;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.price-toggle-btn:hover {
  color: #004278;
}

.price-toggle-btn .toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  transform: rotate(90deg);
}

.price-toggle-btn.expanded .toggle-arrow {
  transform: rotate(-90deg);
}

/* Hidden price tier (for collapse/expand) */
.price-tier.tier-hidden {
  display: none;
}

/* Package / Case column */
.col-package {
  width: 80px !important;
  max-width: 80px !important;
  min-width: 80px !important;
  font-size: 11px;
  color: #555;
  overflow: hidden;
}

/* Tape package column */
.col-tape {
  width: 90px !important;
  max-width: 90px !important;
  min-width: 90px !important;
  font-size: 10px;
  color: #555;
  line-height: 1.4;
  overflow: hidden;
}

/* Qty min/max column */
.col-qty-min {
  width: 110px;
  max-width: 110px;
  min-width: 110px;
  font-size: 10px;
  color: #555;
  overflow: hidden;
}

.qty-range {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

/* Product Status column */
.col-status {
  width: 70px !important;
  max-width: 70px !important;
  min-width: 70px !important;
  text-align: left;
  overflow: hidden;
}

.btn-buy {
  background: #005CA1;
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-buy:hover {
  background: #005CA1;
}

/* Updated column */
.col-updated {
  width: 60px !important;
  max-width: 60px !important;
  min-width: 60px !important;
  font-size: 11px;
  color: #555;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Title row inside tbody */
.title-row th {
  background: #005CA1;
  color: #fff;
  font-weight: 600;
  padding: 4px 8px;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid #999;
  white-space: nowrap;
}

.title-row-1 th{
  background: #005CA1;
}

.title-row-2 th{
  background: #23AF4C !important;
}

.title-row-3 th{
  background: #005CA1 !important;
}

/* Anchor jump scroll offset for supplier-type clickable targets */
.title-row-2,
.title-row-3 {
  scroll-margin-top: 20px;
}

.title-row-4 th{
  background: #FE802B !important;
}

/* 供应商类型标签栏 */
.supplier-type-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 12px;
}

.supplier-type-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  position: relative;
}

.supplier-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.supplier-type-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.supplier-type-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #0F91DB;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  font-size: 20px;
}

.supplier-type-tip-trigger:hover {
  background: #fff;
}

.supplier-type-tip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  min-width: 250px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px 14px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.supplier-type-item:last-child:hover .supplier-type-tip {
  display: block;
}

.supplier-type-tip:hover {
  display: block;
}

.supplier-type-tip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 12px;
  width: 10px;
  height: 10px;
  background: white;
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  transform: rotate(45deg);
}

/* 表格展开/折叠按钮容器 */
.table-toggle-wrapper {
    padding: 8px 12px;
    text-align: left;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.product-card-group .table-toggle-btn {
    background: #fff;
    color: rgb(13 82 161 / var(--tw-text-opacity, 1));
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.table-toggle-btn:hover {
    color: #118FDB;
}

.table-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* 隐藏行的样式（JS 控制） */
.product-table .row-hidden {
    display: none;
}

/* 行展开/折叠过渡效果 */
.product-table tbody tr:not(.title-row):not(.row-hidden) {
    transition: opacity 0.2s ease;
}

/* 产品品牌头部 */
.product-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    height: 45px;
}
.brand-info .brand-logo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    object-fit: cover;
}
.supplier-types {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.supplier-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.supplier-type-icon i {
    color: white;
    font-size: 14px;
}

.supplier-type-label {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.supplier-type-tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    flex-shrink: 0;
}

.supplier-type-tip-trigger i {
    font-size: 15px;
    color: #2196F3;
}

.supplier-type-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
}

.supplier-type-item:hover .supplier-type-tip {
    display: block;
}

.supplier-type-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transform: translateX(-50%) rotate(45deg);
}

.supplier-type-tip-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.request-quote-btn {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    color: #4CAF50;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.request-quote-btn:hover {
    background: #c8e6c9;
}

.request-quote-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.request-quote-tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.request-quote-tip-trigger i {
    font-size: 18px;
    color: #2196F3;
}

.request-quote-tip-trigger-2 {
  background: #fff;
  border: 1px solid #999;
  color: #999;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

.request-quote-tip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
    max-width: 300px;
}

.request-quote-tip-trigger:hover + .request-quote-tip,
.request-quote-tip:hover {
    display: block;
}

.request-quote-tip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 8px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.request-quote-tip-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 响应式样式 - 根据布局模式调整主体宽度 */
/* Portrait 模式：主体宽度 1200px */
.main-search.layout-portrait {
  max-width: 1200px;
  margin-bottom: 20px;
}

/* Across 模式：主体宽度 1440px */
.main-search.layout-across {
  max-width: 1440px;
}

@media screen and (max-width: 1400px) {
  .filter-panels-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 1200px) {
  .filter-panels-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }

  .main-search {
    width: 100%;
    padding: 0 10px;
  }

  .quick-access-panel {
    width: 152px;
    padding: 0 8px 0 0;
  }

  .quick-access-header {
    font-size: 13px;
    padding: 5px 12px;
  }

  .quick-access-item {
    font-size: 13px;
    padding: 7px 10px;
  }

  
}

@media screen and (max-width: 992px) {
  .filter-panels-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }



  .quick-access-panel {
    width: 132px;
    padding: 0 8px 0 0;
  }

  .quick-access-header {
    font-size: 12px;
    padding: 5px 10px;
  }

  .quick-access-item {
    font-size: 12px;
    padding: 6px 8px;
  }

}

@media screen and (max-width: 768px) {
  .filter-panels-wrapper {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    max-height: 250px;
  }

  .quick-access-panel {
    width: 112px;
    padding: 0 8px 0 0;
  }

  .quick-access-header {
    font-size: 11px;
    padding: 4px 8px;
  }

  .quick-access-item {
    font-size: 11px;
    padding: 5px 6px;
  }

}

@media screen and (max-width: 480px) {


  .quick-access-panel {
    display: none;
  }

}

/* ========== 产品通用头部（product-common-header）========== */
/* 使用高特异性选择器，确保样式仅作用于目标区域 */
.main-search-table .product-table-wrapper .product-common-header {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

/* 三列布局：左(图片+图标) | 中(型号+元数据) | 右(价格+数量) */
.main-search-table .product-table-wrapper .product-common-header .pch-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}

/* 左列：图片 + 图标（垂直排列） */
.main-search-table .product-table-wrapper .product-common-header .pch-left-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 8px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-product-image-wrap {
  flex-shrink: 0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-product-img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 4px;
  background: #f5f5f5;
  padding: 4px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-product-img-placeholder {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 4px;
  color: #999;
  font-size: 24px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-left-section .pch-icon-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-icon-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.main-search-table .product-table-wrapper .product-common-header .pch-icon-item:hover {
  background: #f0f0f0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* 中列：型号/制造商 | 价格/描述（水平排列），元数据在下方 */
.main-search-table .product-table-wrapper .product-common-header .pch-middle-section {
  flex: 1;
  min-width: 400px;
  max-width: 825px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 32px;
}

/* 中间区域顶部行：型号列 | 价格列 */
.main-search-table .product-table-wrapper .product-common-header .pch-middle-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-part-number-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  width: 220px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-price-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-part-number-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-part-number {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.main-search-table .product-table-wrapper .product-common-header .pch-file-icon {
  color: #005CA1;
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-file-icon:hover {
  color: #004a82;
}

.main-search-table .product-table-wrapper .product-common-header .pch-manufacturer-name {
  font-size: 13px;
  color: #005CA1;
  font-weight: 600;
  display: block;
}

.main-search-table .product-table-wrapper .product-common-header .pch-middle-section .pch-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-search-table .product-table-wrapper .product-common-header .pch-meta-item {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  width: 32%;
}

.main-search-table .product-table-wrapper .product-common-header .pch-meta-label {
  color: #888;
}

.main-search-table .product-table-wrapper .product-common-header .pch-meta-value {
  color: #333;
  font-weight: 500;
}

/* 右列：数量/状态（左对齐） */
.main-search-table .product-table-wrapper .product-common-header .pch-right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
  min-width: 160px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-price-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.main-search-table .product-table-wrapper .product-common-header .pch-price-value {
  font-size: 16px;
  font-weight: 700;
  color: #005CA1;
}

.main-search-table .product-table-wrapper .product-common-header .pch-desc-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  max-width: 100%;
  width: 100%;
}

.main-search-table .product-table-wrapper .product-common-header .pch-desc-label {
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-desc-text-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}

.main-search-table .product-table-wrapper .product-common-header .pch-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  transition: max-height 0.3s ease;
}

.main-search-table .product-table-wrapper .product-common-header .pch-desc-text.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.main-search-table .product-table-wrapper .product-common-header .pch-more-link {
  color: #005CA1;
  text-decoration: none;
  font-size: 11px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.main-search-table .product-table-wrapper .product-common-header .pch-more-link:hover {
  text-decoration: underline;
}

.main-search-table .product-table-wrapper .product-common-header .pch-quantity-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-quantity-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.main-search-table .product-table-wrapper .product-common-header .pch-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  color: #999;
  border: 1px solid #999;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  line-height: 1;
}

.main-search-table .product-table-wrapper .product-common-header .pch-help-tooltip {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  background: #fff;
  color: #333;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 9999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.main-search-table .product-table-wrapper .product-common-header .pch-help-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.main-search-table .product-table-wrapper .product-common-header .pch-help-icon:hover .pch-help-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.main-search-table .product-table-wrapper .product-common-header .pch-quantity-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-search-table .product-table-wrapper .product-common-header .pch-quantity-input {
  width: 70px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  text-align: center;
  font-size: 12px;
  padding: 0 4px;
  outline: none;
}

.main-search-table .product-table-wrapper .product-common-header .pch-quantity-input:focus {
  border-color: #005CA1;
}

.main-search-table .product-table-wrapper .product-common-header .pch-combine-btn {
  height: 30px;
  padding: 0 14px;
  background: #005CA1;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.main-search-table .product-table-wrapper .product-common-header .pch-combine-btn:hover {
  background: #004a82;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11px;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-item {
  color: #666;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-item.pch-reel {
  color: #333;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-item.pch-active {
  color: #28a745;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-item.pch-other {
  color: #f00;
}

.main-search-table .product-table-wrapper .product-common-header .pch-status-value {
  font-weight: 500;
}

.main-search-table .product-table-wrapper .product-common-header .pch-compare {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}

.main-search-table .product-table-wrapper .product-common-header .pch-compare-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.main-search-table .product-table-wrapper .product-common-header .pch-compare-label {
  font-size: 12px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

/* 响应式：小屏幕下堆叠布局 */
@media screen and (max-width: 992px) {
  .main-search-table .product-table-wrapper .product-common-header .pch-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-search-table .product-table-wrapper .product-common-header .pch-left-section {
    margin-right: 0;
  }

  .main-search-table .product-table-wrapper .product-common-header .pch-middle-section {
    max-width: 100%;
    width: 100%;
    min-width: unset;
    margin-right: 0;
  }

  .main-search-table .product-table-wrapper .product-common-header .pch-middle-top-row {
    flex-direction: column;
    gap: 8px;
  }

  .main-search-table .product-table-wrapper .product-common-header .pch-right-section {
    width: 100%;
    min-width: unset;
  }
}

/* ========== Inventory Insufficient Styles ========== */
/* Request a Quote button wrapper */
.quote-request-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  position: relative;
}

/* Request a Quote button */
.btn-request-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: transparent;
  color: #005CA1;
  border: 1px solid #005CA1;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-request-quote:hover {
  background: #005CA1;
  color: #fff;
}

/* Question mark tooltip trigger */
.quote-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #999;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  position: relative;
  line-height: 1;
}

.quote-tip-trigger:hover {
  border-color: #005CA1;
  color: #005CA1;
}

/* Tooltip - uses position:fixed to escape all overflow:hidden ancestors */
.quote-tip-tooltip {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  min-width: 180px;
  max-width: 250px;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
}

.quote-tip-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.quote-tip-tooltip.below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #fff;
}

.quote-tip-tooltip.visible {
  display: block;
}

/* Disabled est price */
.est-price-disabled {
  opacity: 0.5;
}

.est-price-disabled strong {
  color: #999 !important;
}
