/**
 * ============================================================
 * CUSTOM OVERRIDES
 * ============================================================
 *
 * 最后加载，用于覆盖所有前面的样式。
 * 放置项目特有的微调和临时修复。
 *
 * ============================================================
 */

/* ========== 星级评分样式（SVG 内联星星） ========== */
.star-rating {
  font-style: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 1px;
  line-height: 1 !important;
}
.star-rating svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
/* 确保 .star i 不被主样式表的 italic 影响 */
.star i,
.star i.star-rating {
  font-style: normal !important;
}
/* 产品列表星级 */
.plist_item_info .star .star-rating svg {
  width: 13px;
  height: 13px;
}
.plist_item_info .star p {
  font-size: 13px;
  color: #666;
}
/* 首页产品卡片星级 */
.index_pro2 .star .star-rating svg,
.index_type .star .star-rating svg {
  width: 13px;
  height: 13px;
}
/* 产品详情页相关产品星级 */
.pro_like .star .star-rating svg {
  width: 13px;
  height: 13px;
}

/* ========== 产品列表页价格滑块样式 ========== */
.plist_price_slider {
  position: relative;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 15px 0;
}
.plist_price_range {
  position: absolute;
  height: 100%;
  background: #333;
  border-radius: 3px;
}
.plist_price_handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.plist_price_handle:hover {
  background: #555;
}

/* ========== 加购按钮 loading 状态 ========== */
.single_add_to_cart_button.loading {
  opacity: .6;
  pointer-events: none;
  position: relative;
}
.single_add_to_cart_button.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sc-spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

/* ========== 变体价格显示（选择变体后下方显示的价格）========== */
/* WC 默认输出 <del>原价</del><ins>现价</ins>，需要调整为先现价后原价 */
.product-summary .woocommerce-variation-price .price,
.product-meta .woocommerce-variation-price .price {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
/* 现价（ins）排到前面 */
.product-summary .woocommerce-variation-price .price ins,
.product-meta .woocommerce-variation-price .price ins {
  order: -1;
  text-decoration: none !important;
  font-size: 36px;
  color: #151523;
  font-family: 'averta-exbold', sans-serif;
}
/* 原价（del）排到后面 */
.product-summary .woocommerce-variation-price .price del,
.product-meta .woocommerce-variation-price .price del {
  order: 1;
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}
/* 无促销时的单价格 */
.product-summary .woocommerce-variation-price .price > .woocommerce-Price-amount,
.product-meta .woocommerce-variation-price .price > .woocommerce-Price-amount {
  font-size: 36px;
  color: #151523;
  font-family: 'averta-exbold', sans-serif;
}
/* 隐藏 ins 内 <span class="amount"> 的多余样式 */
.product-summary .woocommerce-variation-price .price ins .woocommerce-Price-amount,
.product-meta .woocommerce-variation-price .price ins .woocommerce-Price-amount {
  font-size: inherit;
  color: inherit;
  font-weight: 400;
}
.product-summary .woocommerce-variation-price .price del .woocommerce-Price-amount,
.product-meta .woocommerce-variation-price .price del .woocommerce-Price-amount {
  font-size: inherit;
  color: inherit;
}
.single_variation_wrap div.woocommerce-variation{
    margin: 10px 0;
}
    .frm-fluent-form .ff-t-container {
        align-items: flex-start;
    }
   .foot_item  .ff-default .ff_btn_style{
        padding: 10px 20px;
    }