/* ============================================================================
   订单 / 购物车 / 我的 三页共用：优惠信息 + 你可能还喜欢（归档 41，2026-11-07）
   结构见 themes/xiaomi/library/side_box.lbi
   换样式/文案时改这里的 .h2-side-* 与页面头部的 side.css?v=xxxx 版本号
   ========================================================================== */
.h2-side{margin:16px 12px 0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif}
.h2-side img{display:block;max-width:100%}

/* 卡片外框：白底 + 极浅描边，白色页面（我的）与灰底页面（购物车/订单）都不脏 */
.h2-side-sec{background:#fff;border:1px solid #EFF1F3;border-radius:12px;padding:13px 13px 11px;margin-bottom:10px}

/* 区块标题 */
.h2-side-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px}
.h2-side-h b{font-size:15px;font-weight:600;color:#1B1F24;letter-spacing:.2px;position:relative;padding-left:9px}
.h2-side-h b:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:3px;border-radius:2px;background:#D93A2B}
.h2-side a.h2-side-more{font-size:11.5px;color:#9AA1A9;text-decoration:none;display:inline-flex;align-items:center;gap:2px;font-weight:400}
.h2-side a.h2-side-more i{font-style:normal;font-size:13px;line-height:1;color:#C5CAD1}

/* 优惠列表 */
.h2-side-list{list-style:none;margin:0;padding:0}
.h2-side-list li+li{border-top:1px dashed #F0F1F3}
.h2-side a.h2-side-item{display:flex;align-items:center;gap:8px;padding:9px 0;text-decoration:none;min-width:0}
.h2-side-ico{flex:none;width:26px;height:26px;border-radius:8px;background:#FDF0EE;display:flex;align-items:center;justify-content:center}
.h2-side-ico svg{width:15px;height:15px;fill:none;stroke:#D93A2B;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.h2-side-tag{flex:none;font-style:normal;font-size:10px;line-height:1;color:#B4762A;background:#FFF4E5;border-radius:3px;padding:3px 5px;letter-spacing:.2px}
.h2-side-txt{flex:1;min-width:0;font-size:12.5px;color:#3A4048;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.h2-side-ar{flex:none;width:6px;height:6px;border-right:1.5px solid #C5CAD1;border-top:1.5px solid #C5CAD1;transform:rotate(45deg);margin-right:2px}
/* 按类型换色：满减橙 / 秒杀红 / 红包深红 / 自定义（活动）红 */
.h2-side-p-seckill .h2-side-ico{background:#FDECEA}
.h2-side-p-seckill .h2-side-ico svg{stroke:#D9342B}
.h2-side-p-seckill .h2-side-tag{color:#D9342B;background:#FDECEA}
.h2-side-p-bonus .h2-side-ico{background:#FBEAE8}
.h2-side-p-bonus .h2-side-ico svg{stroke:#C0392B}
.h2-side-p-bonus .h2-side-tag{color:#C0392B;background:#FBEAE8}
.h2-side-p-custom .h2-side-ico{background:#FDF0EE}
.h2-side-p-custom .h2-side-ico svg{stroke:#D93A2B}
.h2-side-p-custom .h2-side-tag{color:#D93A2B;background:#FDF0EE}

/* 你可能还喜欢：两列大图卡片，规格对齐首页「猜你喜欢」 */
.h2-side-reco .h2-side-h{margin-bottom:10px}
.h2-side-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.h2-side-card{position:relative;background:#fff;border:1px solid #F1F2F4;border-radius:10px;overflow:hidden}
.h2-side a.h2-side-cl{display:block;text-decoration:none;color:inherit}
.h2-side-pic{display:block;position:relative;padding-top:100%;background:#F4F5F7;overflow:hidden}
.h2-side-pic img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}
/* 两行标题（2026-11-19 归档 99 修）
   原来 height:38px + padding-top:8px 是 content-box：行高 13×1.45=18.85，两行 37.7px
   再加上 8px 内边距，实际能显示的区域只剩 30px —— 第二行被裁掉下半截，
   用户看到「点：单细胞 Scissor+空…」只剩上半截的字。
   改成 border-box + 46px（8 内边距 + 2×19 行高），行高写死 19px，字体缩放也不会再挤掉第二行。 */
.h2-side-nm{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
	box-sizing:border-box;-webkit-box-sizing:border-box;
	height:46px;padding:8px 9px 0;font-size:13px;line-height:19px;font-weight:500;color:#22262C;overflow-wrap:anywhere}
.h2-side-pr{display:block;padding:5px 34px 10px 9px;font-size:15px;font-weight:600;color:#D93A2B;
	line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* 右下角红色「+」：直接加入购物车 */
.h2-side-add{position:absolute;right:8px;bottom:8px;width:24px;height:24px;border-radius:50%;z-index:2;
	background:linear-gradient(135deg,#F0553F,#D93A2B);display:flex;align-items:center;justify-content:center;
	box-shadow:0 3px 8px rgba(217,58,43,.28);cursor:pointer;-webkit-tap-highlight-color:transparent;
	transition:transform .12s ease,opacity .15s ease}
.h2-side-add:active{transform:scale(.9)}
.h2-side-add svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round}
.h2-side-add.is-busy{opacity:.55}
.h2-side-add.is-done{background:#2FA46B;box-shadow:0 3px 8px rgba(47,164,107,.3)}
/* 轻提示 */
.h2-side-tip{position:fixed;left:50%;bottom:96px;z-index:9999;transform:translate(-50%,10px);
	max-width:76%;padding:9px 16px;border-radius:18px;background:rgba(24,28,33,.86);color:#fff;font-size:13px;
	line-height:1.4;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.h2-side-tip.show{opacity:1;transform:translate(-50%,0)}

/* 三页各自的收尾间距 */
.h2-cart .h2-side{margin-top:14px;padding-bottom:4px}
.ect-pro-list.user-order+.h2-side{margin-top:12px}
.con>.h2-side:last-child{margin-bottom:20px}
/* 2026-11-19 归档 99：商品详情页底部（本页底部是固定的客服/购物车/加购/立即购买条） */
.h2-goods-side{padding:0 0 92px}
.h2-goods-side .h2-side{margin-top:14px}

/* 订单为空时的空状态（2026-11-07 归档 41） */
.h2-ord-empty{padding:56px 30px 34px;text-align:center}
.h2-ord-empty-ico{width:78px;height:78px;margin:0 auto 16px;border-radius:50%;background:#fff;
	display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(20,26,33,.06)}
.h2-ord-empty-ico svg{width:38px;height:38px;fill:none;stroke:#D8DCE1;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.h2-ord-empty p{margin:0 0 7px;font-size:14px;color:#3A4048;font-weight:500}
.h2-ord-empty em{display:block;font-style:normal;font-size:12px;color:#9AA1A9}
.h2-ord-empty a.h2-ord-empty-btn{display:inline-block;margin-top:20px;padding:0 28px;height:38px;line-height:38px;border-radius:19px;
	background:linear-gradient(135deg,#F0553F,#D93A2B);color:#fff !important;font-size:13.5px;text-decoration:none;
	box-shadow:0 4px 10px rgba(217,58,43,.24)}
