/* 洪泰五金 · 分类列表页样式 */
.ht-container { max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; font-size: 14px; color: #2b3440; }
.ht-container a { text-decoration: none; color: inherit; }

.ht-crumb { padding: 6px 0 12px; font-size: 13px; color: #8a97a6; }
.ht-crumb a:hover { color: #0f6fd6; }
.ht-cat-title { font-size: 22px; font-weight: 800; color: #14324f; margin: 0 0 14px; }
.ht-cat-title small { font-size: 13px; font-weight: 400; color: #8a97a6; margin-left: 10px; }

/* ===== 筛选面板 ===== */
.ht-filter-panel { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; overflow: hidden; }
.ht-filter-active { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #eef1f5; flex-wrap: wrap; gap: 8px; }
.ht-active-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ht-active-label { font-weight: 700; color: #14324f; }
.ht-tag { display: inline-flex; align-items: center; gap: 6px; background: #e8f2ff; color: #0f6fd6; border: 1px solid #bcd9f8; padding: 3px 10px; border-radius: 4px; font-size: 13px; }
.ht-tag a { color: #7ea9d8; font-weight: 700; }
.ht-tag a:hover { color: #ff5b2a; }
.ht-clear { color: #0f6fd6; font-size: 13px; }
.ht-clear:hover { color: #ff5b2a; }

.ht-filter-row { display: flex; align-items: stretch; border-bottom: 1px solid #f0f3f7; }
.ht-filter-row:last-child { border-bottom: none; }
.ht-filter-label { width: 92px; flex-shrink: 0; background: #f7f9fb; color: #5a6878; display: flex; align-items: center; justify-content: center; font-weight: 600; border-right: 1px solid #f0f3f7; }
.ht-fvalues { flex: 1; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.ht-fval { padding: 2px 10px; margin-right: 6px; border-radius: 4px; color: #3a4757; white-space: nowrap; font-size: 13.5px; }
.ht-fval:hover { color: #0f6fd6; background: #eef5fd; }
.ht-fval-on { background: #0f6fd6; color: #fff; }
.ht-fval-on:hover { background: #0a4fa0; color: #fff; }
.ht-fval-cur { background: #0f6fd6; color: #fff; }
.ht-fval-cur:hover { background: #0a4fa0; color: #fff; }
.ht-collapsed .ht-hideable { display: none; }
.ht-more { color: #0f6fd6; }
.ht-multi-tip { font-size: 11px; color: #b6c2cf; border: 1px dashed #d9e2ec; padding: 2px 8px; border-radius: 12px; margin-left: auto; }

/* ===== 排序条 ===== */
.ht-toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e6eaf0; border-radius: 8px 8px 0 0; padding: 10px 18px; margin-top: 16px; border-bottom: none; flex-wrap: wrap; gap: 8px; }
.ht-sorts { display: flex; gap: 4px; flex-wrap: wrap; }
.ht-sort { padding: 4px 14px; border-radius: 4px; color: #5a6878; }
.ht-sort:hover { color: #0f6fd6; }
.ht-sort-on { background: #0f6fd6; color: #fff; }
.ht-count { font-size: 13px; color: #8a97a6; }
.ht-count b { color: #ff5b2a; }

/* ===== 商品表格 ===== */
.ht-table-wrap { background: #fff; border: 1px solid #e6eaf0; border-radius: 0 0 8px 8px; overflow-x: auto; }
table.ht-table { width: 100%; border-collapse: collapse; min-width: 1040px; }
.ht-table th { background: #0f6fd6; color: #fff; font-size: 13px; font-weight: 600; padding: 10px 8px; text-align: left; white-space: nowrap; }
.ht-table th.c { text-align: center; }
.ht-table td { padding: 16px 12px; border-bottom: 1px solid #f0f3f7; vertical-align: top; font-size: 13px; }
.ht-table tr:last-child td { border-bottom: none; }
.ht-table tr:hover td { background: #f8fbff; }
.ht-table td.c { text-align: center; }

.ht-pinfo { display: flex; gap: 12px; min-width: 230px; align-items: center; }
.ht-pimg { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #f2f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ht-pimg img { width: 100%; height: 100%; object-fit: cover; }
.ht-pname { font-size: 14px; font-weight: 700; color: #2b3440; }
.ht-pname:hover { color: #0f6fd6; }

.ht-spec { font-weight: 700; color: #14324f; white-space: nowrap; }

.ht-stock-n { font-weight: 700; color: #14324f; white-space: nowrap; }
.ht-stock-ok { display: inline-block; background: #e8f8ef; color: #1a9e56; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; margin-top: 4px; }
.ht-stock-no { display: inline-block; background: #fdeeee; color: #d64545; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; margin-top: 4px; }
.ht-moq { color: #e05e00; }

.ht-price { color: #ff5b2a; white-space: nowrap; }
.ht-price b { font-size: 19px; font-weight: 800; }
.ht-price-pack { font-size: 12px; color: #98a4b1; margin-top: 2px; }

.ht-buy { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ht-qty-row { display: flex; align-items: center; justify-content: center; }
.ht-buy input.ht-qty { width: 64px; height: 32px; border: 1px solid #d5dde6; border-radius: 4px 0 0 4px; text-align: center; font-size: 14px; outline: none; }
.ht-buy input.ht-qty:focus { border-color: #0f6fd6; }
.ht-qty-unit { height: 32px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #d5dde6; border-left: none; border-radius: 0 4px 4px 0; background: #f7f9fb; font-size: 13px; color: #3a4757; white-space: nowrap; }
.ht-qty-calc { font-size: 11.5px; color: #5a6878; white-space: nowrap; }
.ht-qty-calc b { color: #0f6fd6; }
.ht-qty-warn { font-size: 11px; color: #ff5b2a; white-space: nowrap; }
.ht-qty-none { color: #b6c2cf; }

.ht-btn-cart { display: inline-block; background: #0f6fd6; color: #fff; padding: 8px 14px; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ht-btn-cart:hover { background: #0a58a8; color: #fff; }
.ht-btn-view { background: #eef5fd; color: #0f6fd6; }
.ht-btn-view:hover { background: #dbeeff; }

/* 数量增减按钮 & 行内加购按钮 */
.ht-qty-btn {
  width: 28px; height: 32px; border: 1px solid #0f6fd6; background: #0f6fd6;
  color: #fff; font-size: 16px; line-height: 1; font-weight: 700;
  display: flex; align-items: center; justify-content: center; user-select: none; cursor: pointer;
}
.ht-qty-btn:first-child { border-radius: 4px 0 0 4px; }
.ht-qty-btn:hover { background: #0a4fa0; border-color: #0a4fa0; }
.ht-qty-btn:active { background: #0a58a8; }
.ht-qty-row .ht-qty { border-radius: 0; border-left: none; border-right: none; width: 52px; }
.ht-btn-mini {
  display: inline-block; margin-top: 6px; padding: 5px 14px; font-size: 12px;
}

.ht-empty { padding: 50px; text-align: center; color: #98a4b1; }
.ht-empty a { color: #0f6fd6; }

.ht-pagination { display: flex; justify-content: center; gap: 8px; padding: 26px 0; flex-wrap: wrap; }
.ht-pagination .page-numbers { min-width: 36px; height: 36px; border: 1px solid #e0e6ed; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #5a6878; padding: 0 6px; }
.ht-pagination a.page-numbers:hover { border-color: #0f6fd6; color: #0f6fd6; }
.ht-pagination .page-numbers.current { background: #0f6fd6; color: #fff; border-color: #0f6fd6; }

@media (max-width: 768px) {
  .ht-filter-label { width: 64px; font-size: 12.5px; }
  .ht-multi-tip { display: none; }
}

/* 商品详情页：规格联动包规信息条 */
.ht-var-pack-info {
  background: #f0f7ff; border: 1px solid #cfe4f8; border-radius: 6px;
  padding: 10px 14px; margin: 12px 0; font-size: 13.5px; color: #3a4757;
}
.ht-var-pack-info b { color: #0f6fd6; }


/* ===== AJAX 加购：飞入动画 / 角标 / 按钮已加入状态 ===== */
.ht-fly-dot {
  position: fixed; z-index: 9999; width: 28px; height: 28px; border-radius: 50%;
  background: #ff8a2a; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.42,-0.2,.58,1.2), opacity .7s ease;
  box-shadow: 0 4px 12px rgba(255,138,42,.45);
}
.ht-cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #ff5b2a; color: #fff; font-size: 11px; font-weight: 700;
}
.ht-cart-badge.ht-bump { animation: htBump .4s ease; }
@keyframes htBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.ht-btn-added {
  background: #1a9e56 !important; color: #fff !important;
  border-color: #1a9e56 !important; cursor: default !important;
  white-space: nowrap;
}
.ht-btn-cart { white-space: nowrap; }
/* 数量单元格内容强制单行 */
.ht-buy, .ht-qty-row, .ht-qty-calc, .ht-qty-warn { white-space: nowrap; }

/* ===== 悬浮购物车按钮 ===== */
.ht-cart-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #0f6fd6; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(15,111,214,.4);
  transition: transform .2s ease, background .2s ease;
}
.ht-cart-fab:hover { background: #0a4fa0; transform: scale(1.06); }
.ht-cart-fab .ht-cart-badge {
  position: absolute; top: -4px; right: -4px;
}
.ht-cart-fab.ht-bump { animation: htBump .4s ease; }


/* ===== 非标定制询盘表单 ===== */
.ht-inq-wrap { max-width: 640px; margin: 24px 0; }
.ht-inq-form .ht-inq-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.ht-inq-form .ht-inq-row label { width: 90px; flex-shrink: 0; font-size: 14px; color: #3a4757; padding-top: 8px; text-align: right; }
.ht-inq-form input[type=text], .ht-inq-form textarea {
  flex: 1; border: 1px solid #d5dde6; border-radius: 6px; padding: 9px 12px; font-size: 14px; outline: none;
}
.ht-inq-form input[type=text]:focus, .ht-inq-form textarea:focus { border-color: #0f6fd6; }
.ht-inq-ok { background: #e8f8ef; border: 1px solid #b8e6cc; border-radius: 8px; padding: 22px 26px; color: #1a7a45; }
.ht-inq-err { color: #d64545; background: #fdeeee; border: 1px solid #f3caca; padding: 10px 14px; border-radius: 6px; }
