/* 商品详情 / SKU 弹层 / 购物车 */

/* 商品详情 */
.p-nav { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 12; padding: 0 8px; }
.p-nav .nav-back { background: rgba(255, 255, 255, .88); border-radius: 50%; width: 32px; height: 32px; box-shadow: var(--shadow-sm); margin-left: 0; }
body[data-mode="android"] .p-nav { display: none; }
.pcarousel { aspect-ratio: 1; margin: 0; border-radius: 0; background: #EEE; }
.pcarousel .slide-cap { display: none; }
.pcarousel .dots { bottom: 10px; }
.pcarousel .dots i { background: rgba(255, 255, 255, .55); }
.pcarousel .dots i.on { background: #fff; }
.p-price { padding: 12px; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.p-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .price { font-size: 26px; }
.p-orig { font-size: 13px; color: var(--text-3); }
.p-meta { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); width: 100%; }
.p-title { padding: 12px; }
.p-title h1 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.p-title .p-sub { font-size: 12px; color: var(--primary); margin-top: 4px; }
.p-tags { display: flex; gap: 6px; margin-top: 8px; }
.promo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 12px; cursor: pointer; }
.promo-tag { color: var(--accent); background: var(--accent-light); border: 1px solid #FFD3BC; border-radius: 3px; padding: 0 4px; font-size: 11px; }
.promo-text { flex: 1; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.service-row { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; font-size: 12px; color: var(--text-2); }
.service-row span { display: inline-flex; align-items: center; gap: 4px; }
.service-row .ic { width: 14px; height: 14px; color: var(--primary); stroke-width: 2.4; }
.params { width: 100%; font-size: 13px; padding: 0 12px 12px; }
.params div { display: flex; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.params div:last-child { border-bottom: 0; }
.params span { width: 80px; color: var(--text-3); flex: none; }
.rate-tags { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.rate-tags span { font-size: 11px; background: var(--bg); border-radius: 3px; padding: 2px 6px; color: var(--text-2); }
.rate-tags span.on { background: var(--primary-light); color: var(--primary); }
.review { padding: 12px; border-top: 1px solid var(--divider); }
.review-hd { display: flex; align-items: center; gap: 8px; }
.review-hd b { font-size: 13px; font-weight: 500; }
.review-hd .stars { margin-left: 2px; }
.review-hd time { margin-left: auto; font-size: 11px; color: var(--text-3); }
.review p { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }
.review .spec { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.life-img { width: calc(100% - 24px); margin: 0 12px; border-radius: var(--r-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.detail-text { padding: 12px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.detail-text h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; }

/* 商品底部操作栏 */
.p-foot .foot-ic {
  width: 44px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px;
  color: var(--text-2); position: relative; flex: none;
}
.p-foot .foot-ic .ic { width: 22px; height: 22px; }
.p-foot .foot-ic .badge { position: absolute; top: -4px; left: 26px; }
.p-foot .btn { flex: 1; min-width: 0; padding: 0 10px; font-size: 14px; }
.p-foot .foot-ic.service { width: 38px; }

/* SKU 弹层 */
.sku-hd { display: flex; gap: 12px; margin-top: -44px; padding: 0 16px 12px; align-items: flex-end; }
.sku-hd img { width: 96px; height: 96px; border-radius: var(--r-sm); object-fit: cover; box-shadow: var(--shadow-md); background: #fff; }
.sku-hd .bd { flex: 1; padding-bottom: 4px; min-width: 0; }
.sku-hd .row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sku-hd .price { font-size: 24px; }
.sku-hd s { font-size: 12px; color: var(--text-3); }
.sku-hd .sel { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.sku-hd .stock { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.sku-group { padding: 4px 16px 12px; }
.sku-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sku-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-opts .chip { height: 32px; }
.sku-opts .chip.disabled { text-decoration: line-through; }
.sku-qty { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 16px; }
.sku-qty span { font-size: 14px; }
.sku-foot { padding: 0 16px 16px; }

/* 购物车 */
.cart-store { padding: 0; }
.cart-store .nav { position: static; padding-right: 12px; }
body[data-mode="wechat"] .cart-store .nav { padding-right: 104px; }
.cart-store .nav .ic { width: 16px; height: 16px; color: var(--primary); }
.cart-store .nav b { font-size: 15px; }
.cart-store .nav .dist { font-size: 11px; color: var(--text-3); }
.cart-store .nav .switch { margin-left: auto; font-size: 12px; color: var(--primary); display: inline-flex; align-items: center; }
.fulfill-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--divider); font-size: 11px; color: var(--text-3); }
.fulfill-row .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.cart-list { padding: 0; }
.cart-item { border-top: 1px solid var(--divider); position: relative; overflow: hidden; }
.cart-item:first-child { border-top: 0; }
.cart-swipe { display: flex; align-items: stretch; transition: transform .2s; touch-action: pan-y; }
.cart-item.del-open .cart-swipe { transform: translateX(-72px); }
.cart-main { display: flex; gap: 10px; padding: 12px; flex: 1; min-width: 0; background: #fff; align-items: center; }
.cart-main img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--bg); }
.cart-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.cart-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cart-spec { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.cart-price { display: flex; align-items: baseline; gap: 6px; }
.cart-price .price { font-size: 17px; }
.cart-price s { font-size: 11px; color: var(--text-3); }
.cart-del { width: 72px; background: var(--error); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.cart-item.invalid .cart-main img { filter: grayscale(1); opacity: .6; }
.cart-item.invalid .cart-main .checkbox, .cart-item.invalid .cart-main .stepper { visibility: hidden; }
.invalid-sec .hd { display: flex; align-items: center; justify-content: space-between; padding: 12px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.invalid-sec .hd .ic { width: 16px; height: 16px; transition: transform .2s; }
.invalid-sec.open .hd .ic { transform: rotate(180deg); }
.invalid-sec .bd { display: none; border-top: 1px solid var(--divider); }
.invalid-sec.open .bd { display: block; }
.invalid-mask {
  position: absolute; left: 52px; top: 12px; width: 76px; height: 76px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.promo-progress { padding: 10px 12px; }
.promo-progress .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.promo-progress .row b { color: var(--accent); }
.promo-progress .progress { height: 8px; }
.addmore { padding: 0; }
.addmore .hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px; font-size: 14px; font-weight: 600; }
.addmore .hd span { font-size: 11px; color: var(--accent); font-weight: 400; }
.addmore .scroll-x { padding: 4px 12px 12px; gap: 8px; }
.addmore .item { flex: none; width: 88px; background: var(--bg); border-radius: var(--r-sm); padding: 6px; position: relative; cursor: pointer; }
.addmore .item img { width: 76px; height: 76px; border-radius: 6px; object-fit: cover; }
.addmore .item .t { font-size: 11px; line-height: 1.3; height: 28px; margin-top: 4px; }
.addmore .item .price { font-size: 14px; }
.addmore .item .add-btn { position: absolute; right: 6px; bottom: 30px; width: 22px; height: 22px; }
.cart-foot { gap: 10px; }
.cart-foot .check-all { display: flex; align-items: center; gap: 6px; font-size: 13px; flex: none; }
.cart-foot .total { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cart-foot .total .row { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.cart-foot .total .price { font-size: 20px; }
.cart-foot .total small { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.cart-foot .btn { min-width: 120px; padding: 0 18px; }
