/* ========== 固定分类条（已停用，分类仅在顶栏下拉） ========== */
.pisces-cat-strip-fixed,
#pisces-cat-strip-fixed {
  display: none !important;
}

body.pisces-page-goods #app .main .goods-details img {
  cursor: zoom-in !important;
}

.pisces-goods-details-card img,
.pisces-goods-cover-img {
  cursor: zoom-in;
}

body.pisces-page-goods #app .main .goods-image {
  cursor: zoom-in !important;
}

body.pisces-page-cfm #app .main .goods-image,
body.pisces-route-cfm #app .main .goods-image {
  cursor: default !important;
}

body.pisces-page-cfm .pisces-img-zoom-hint,
body.pisces-page-cfm .pisces-img-lens,
body.pisces-page-cfm .pisces-img-zoom-pane,
body.pisces-route-cfm .pisces-img-zoom-hint,
body.pisces-route-cfm .pisces-img-lens,
body.pisces-route-cfm .pisces-img-zoom-pane {
  display: none !important;
}

.pisces-img-zoom-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.pisces-img-zoom-wrap .goods-image {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.pisces-img-zoom-wrap.is-zooming .goods-image {
  opacity: 0.85;
}

.pisces-img-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  white-space: nowrap;
}

.pisces-img-zoom-wrap:hover .pisces-img-zoom-hint {
  opacity: 1;
}

.pisces-img-lens {
  display: none;
  position: absolute;
  border: 2px solid rgb(99 102 241 / 0.6);
  background: rgb(99 102 241 / 0.12);
  pointer-events: none;
  z-index: 4;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5) inset;
}

.pisces-img-zoom-pane {
  display: none;
  position: absolute;
  left: calc(100% + 16px);
  top: 0;
  width: min(420px, 45vw);
  height: 100%;
  min-height: 280px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 16px 48px rgb(15 23 42 / 0.12);
}

.pisces-img-zoom-pane {
  background-color: #fff;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .pisces-img-zoom-pane {
    display: none !important;
  }

  .pisces-img-lens {
    display: none !important;
  }

  .pisces-img-zoom-wrap .goods-image {
    cursor: pointer;
  }

  .pisces-img-zoom-hint {
    opacity: 1;
  }
}

/* ========== 图片幻灯片灯箱 ========== */
.pisces-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pisces-img-lightbox.is-open {
  display: flex;
}

.pisces-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.82);
  backdrop-filter: blur(4px);
}

.pisces-lb-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pisces-lb-stage {
  width: 100%;
  max-height: calc(92vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.4);
}

.pisces-lb-img {
  max-width: 100%;
  max-height: calc(92vh - 100px);
  object-fit: contain;
  display: block;
}

.pisces-lb-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.pisces-lb-close:hover {
  background: rgb(255 255 255 / 0.28);
}

.pisces-lb-prev,
.pisces-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.pisces-lb-prev {
  left: -56px;
}

.pisces-lb-next {
  right: -56px;
}

.pisces-lb-prev:hover,
.pisces-lb-next:hover {
  background: rgb(255 255 255 / 0.3);
}

.pisces-lb-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  padding: 0 8px;
}

.pisces-lb-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgb(255 255 255 / 0.1);
  transition: border-color 0.2s, transform 0.2s;
}

.pisces-lb-thumb.is-active {
  border-color: #818cf8;
  transform: scale(1.05);
}

.pisces-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.pisces-lb-open {
  overflow: hidden;
}

/* ========== 确认订单页（放大镜禁用，布局见 pisces-pages-ui.css） ========== */
body.pisces-route-cfm #app .box-card-pay .el-radio[data-pisces-hidden-balance] {
  display: none !important;
}

@media (max-width: 768px) {
  .pisces-lb-prev {
    left: 8px;
  }

  .pisces-lb-next {
    right: 8px;
  }

  .pisces-lb-close {
    top: 8px;
    right: 8px;
    position: fixed;
    z-index: 10001;
  }
}
