/* ===========================================================
   好品质果仓 · 用户端体验补丁  v1
   创建: 2026-10-13   作用域: https://wap.tugongzi.com
   说明: 不修改供应商编译产物，仅通过本文件覆盖样式
   =========================================================== */

/* ---------- 1. 详情页返回箭头可见性（原为白色叠浅色图，几乎不可见） ---------- */
.uicon-nav-back {
  color: #1f1f1f !important;
}
.u-back-wrap {
  background: rgba(255, 255, 255, .94) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .18) !important;
}
.u-back-wrap .u-icon__icon {
  color: #1f1f1f !important;
}

/* ---------- 2. 通用悬浮返回栏（商家页等无导航栏的页面） ---------- */
#gc-backbar {
  position: fixed;
  left: 10px;
  top: 11px;
  z-index: 99998;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
}
#gc-backbar svg {
  width: 20px;
  height: 20px;
  display: block;
}
#gc-backbar:active {
  transform: scale(.93);
}

/* ---------- 3. 店内搜索框 ---------- */
#gc-search {
  padding: 7px 12px 8px;
  background: #fff;
  position: relative;
  z-index: 20;
}
#gc-search .gc-box {
  display: flex;
  align-items: center;
  height: 34px;
  background: #f4f5f7;
  border-radius: 17px;
  padding: 0 12px;
}
#gc-search .gc-box svg {
  flex: 0 0 auto;
  margin-right: 6px;
}
#gc-search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #333;
  min-width: 0;
}
#gc-search .gc-btn {
  flex: 0 0 auto;
  font-size: 13px;
  color: #ff1242;
  padding-left: 8px;
}

/* ---------- 4. 搜索结果浮层 ---------- */
#gc-results {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 99997;
  background: rgba(0, 0, 0, .35);
  display: none;
}
#gc-results.gc-on {
  display: block;
}
#gc-results .gc-panel {
  background: #fff;
  max-height: 72%;
  overflow-y: auto;
  border-radius: 0 0 12px 12px;
}
#gc-results .gc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #f4f4f4;
}
#gc-results .gc-close {
  color: #ff1242;
  font-size: 13px;
}
#gc-results .gc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
}
#gc-results .gc-row:active {
  background: #fafafa;
}
#gc-results .gc-info {
  flex: 1 1 auto;
  min-width: 0;
}
#gc-results .gc-nm {
  font-size: 14px;
  color: #222;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#gc-results .gc-pr {
  color: #ff1242;
  font-size: 15px;
  font-weight: 600;
}
#gc-results .gc-st {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}
#gc-results .gc-empty {
  padding: 26px 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 5. 库存标签 ---------- */
.gc-inv {
  display: inline-block;
  font-size: 11px;
  line-height: 16px;
  color: #ff8a00;
  background: #fff6e8;
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.gc-inv.gc-low {
  color: #ff1242;
  background: #fff0f3;
}
.gc-inv.gc-out {
  color: #999;
  background: #f2f2f2;
}

/* ---------- 6. 详情页数量选择器 ---------- */
#gc-qty {
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex: 0 0 auto;
}
#gc-qty .gc-lab {
  font-size: 12px;
  color: #666;
  margin-right: 6px;
}
#gc-qty .gc-minus,
#gc-qty .gc-plus {
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background: #fff;
  user-select: none;
}
#gc-qty .gc-minus:active,
#gc-qty .gc-plus:active {
  background: #f2f2f2;
}
#gc-qty .gc-num {
  width: 46px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border: 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  font-size: 14px;
  color: #222;
  background: #fff;
  box-sizing: border-box;
  padding: 0;
  -webkit-appearance: none;
}
#gc-qty .gc-num::-webkit-outer-spin-button,
#gc-qty .gc-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#gc-qty .gc-stock {
  font-size: 11px;
  color: #ff8a00;
  margin-left: 8px;
  white-space: nowrap;
}
