/* TrimsPackaging pages/cart.css (from static cart.html, infra sections removed) */

:root{
  --brand:#1890FF; --brand-600:#0E7AE6; --brand-700:#0A5FB8; --brand-50:#E8F4FF;
  --brand-grad:linear-gradient(180deg,#3AA0FF 0%,var(--brand) 55%,var(--brand-600) 100%);
  --brand-glow:rgba(24,144,255,.22); --brand-glow-soft:rgba(24,144,255,.10);
  --ink:#1D2129; --ink-2:#2A2F38; --body:#4E5969; --muted:#86909C;
  --line:#E5E6EB; --bg:#F5F7FA; --card:#FFFFFF; --surface-2:#FAFCFF;
  --orange:#FF7D00; --red:#F53F3F; --green:#00B42A;
  --radius:8px;
  --shadow:0 12px 32px -8px rgba(29,33,41,.08);
  --shadow-lg:0 24px 56px -16px rgba(29,33,41,.16);
  --hairline:linear-gradient(90deg,transparent,rgba(229,230,235,0) 6%,#E5E6EB 22%,#E5E6EB 78%,rgba(229,230,235,0) 94%,transparent);
  --font-display:'Outfit',system-ui,sans-serif;
  --font-body:'Inter',system-ui,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--ink);background:#F5F7FA;background-image:linear-gradient(180deg,#EDF4FC 0%,#F5F7FA 340px,#F5F7FA 100%);background-repeat:no-repeat;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.wrap{max-width:none;margin:0;padding:0 clamp(24px,3.5vw,72px)}
h1,h2,h3,.display{font-family:var(--font-display)}

/* ---------- CTA helpers（蓝渐变全宽 + 小幽灵钮） ---------- */
.btn-grad{width:100%;height:48px;border-radius:var(--radius);background:var(--brand-grad);color:#fff;font-family:var(--font-display);font-size:15px;font-weight:700;letter-spacing:.01em;box-shadow:0 2px 6px rgba(24,144,255,.28);transition:all .16s;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.btn-grad:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(24,144,255,.34)}
.btn-grad:active{transform:translateY(0)}
.btn-grad:disabled{opacity:.75;cursor:default;transform:none}
.btn-grad .spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:rot .7s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.btn-ghost-sm{height:40px;padding:0 18px;border-radius:var(--radius);border:1px solid var(--line);background:#fff;color:var(--body);font-size:13px;font-weight:600;transition:all .15s}
.btn-ghost-sm:hover{border-color:var(--brand);color:var(--brand)}

/* ---------- Crumbs（PDP 同款：白底 + 角标 sep） ---------- */
.crumbs{background:#fff;padding-top:16px}
.crumbs .wrap{display:flex;align-items:center;gap:8px;padding-top:11px;padding-bottom:11px;font-size:12.5px;color:var(--muted)}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--brand)}
.crumbs .sep{display:inline-block;width:5px;height:5px;border-right:1px solid #C9CDD4;border-bottom:1px solid #C9CDD4;transform:rotate(-45deg)}
.crumbs .cur{color:var(--ink);font-weight:500}

/* ---------- Cart ---------- */
.page-head{background:#fff;border-bottom:1px solid var(--line)}
.page-head .wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-top:24px;padding-bottom:20px}
h1.ph-title{font-size:clamp(24px,2.8vw,32px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.ph-sub{margin-top:6px;font-size:13.5px;color:var(--muted)}
.cart-main{padding:24px 0 72px}
.ship-band{margin:0;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px 18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ship-band .sb-ic{flex:none;width:38px;height:38px;border-radius:var(--radius);background:var(--brand-50);color:var(--brand);display:grid;place-items:center;transition:background .2s,color .2s}
.ship-band .sb-ic svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}
.ship-band.ok .sb-ic{background:#E8FFEA;color:var(--green)}
.ship-band .sb-t{min-width:0}
.ship-band .sb-t b{display:block;font-size:13.5px}
.ship-band .sb-t span{font-size:12.5px;color:var(--muted)}
.sp-track{margin-left:auto;width:min(280px,32%);height:6px;background:var(--bg);border:1px solid var(--line);border-radius:999px;overflow:hidden;flex:none}
.sp-track i{display:block;height:100%;width:0;background:var(--brand-grad);border-radius:999px;transition:width .3s}
.cart-grid{margin:20px 0 0;display:grid;grid-template-columns:minmax(0,1fr) 356px;gap:20px;align-items:start}
.c-list{display:flex;flex-direction:column;gap:14px;min-width:0}
.c-item{position:relative;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;grid-template-columns:96px minmax(0,1fr) 110px 128px 116px 96px;gap:8px 18px;align-items:center;transition:opacity .25s,transform .25s}
.c-item.is-out{opacity:0;transform:translateX(12px)}
.c-img{width:96px;height:96px;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden;background:var(--bg);display:block}
.c-img img{width:100%;height:100%;object-fit:cover;display:block}
.c-cat{font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.c-name{font-family:var(--font-body);font-size:14.5px;font-weight:600;margin-top:2px;line-height:1.35}
.c-name a:hover{color:var(--brand)}
.c-spec{font-size:12px;color:var(--muted);margin-top:3px}
.c-tags{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.ctag{font-size:10.5px;font-weight:700;letter-spacing:.3px;padding:2.5px 8px;border-radius:var(--radius)}
.ctag.info{background:var(--brand-50);color:var(--brand)}
.ctag.ok{background:#E8FFEA;color:var(--green)}
.c-cell small{display:block;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:3px}
.c-cell b{font-family:var(--font-display);font-size:15px;font-weight:800;letter-spacing:-.2px;color:var(--ink)}
.c-line b{font-size:16px}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--radius);overflow:hidden;height:38px;background:#fff}
.q-btn{width:34px;height:100%;display:grid;place-items:center;color:var(--body);font-size:16px;transition:background .15s,color .15s}
.q-btn:hover{background:var(--brand-50);color:var(--brand)}
.q-in{width:48px;height:100%;border:none;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font-size:13.5px;font-weight:600;color:var(--ink);outline:none;font-family:var(--font-body);background:#fff}
.q-in:focus{background:var(--surface-2)}
.c-remove{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--muted);padding:7px 9px;border-radius:var(--radius);transition:all .15s}
.c-remove svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
.c-remove:hover{color:var(--red);background:#FEECEC}
.c-ctrl{display:contents}
.c-moq{grid-column:2/-1;display:none;align-items:flex-start;gap:8px;background:#FFF7EF;border:1px solid #FFDFB8;border-radius:var(--radius);padding:8px 10px;font-size:12px;color:#8A4B00;line-height:1.55}
.c-item.below .c-moq{display:flex}
.c-moq svg{flex:none;width:14px;height:14px;stroke:var(--orange);fill:none;stroke-width:2;margin-top:2px}
.c-moq button{color:var(--brand);font-weight:600;font-size:12px;text-decoration:underline}
/* Summary */
.c-side{position:sticky;top:84px;display:flex;flex-direction:column;gap:14px}
.sum-card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:22px;box-shadow:0 2px 8px rgba(29,33,41,.04)}
.sum-card h3{font-size:16px;font-weight:800;letter-spacing:-.01em;margin-bottom:14px}
.sum-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--body);padding:7px 0}
.sum-row b{font-family:var(--font-display);font-weight:800;font-size:14.5px;color:var(--ink)}
.sum-row .free{color:var(--green)}
.promo{display:flex;gap:8px;margin:10px 0 4px}
.promo input{flex:1;height:42px;border:1.5px solid var(--line);border-radius:var(--radius);padding:0 12px;font-size:13px;font-family:var(--font-body);color:var(--ink);outline:none;min-width:0;transition:border-color .15s,box-shadow .15s}
.promo input::placeholder{color:var(--muted)}
.promo input:focus{border-color:var(--brand);box-shadow:0 0 0 3.5px var(--brand-glow-soft)}
.promo button{height:42px;padding:0 16px;border-radius:var(--radius);border:1.5px solid var(--line);background:#fff;font-size:13px;font-weight:600;color:var(--body);transition:all .15s}
.promo button:hover{border-color:var(--brand);color:var(--brand)}
.sum-div{height:1px;background:var(--line);margin:12px 0}
.sum-total{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}
.sum-total>span{font-size:14px;font-weight:600;color:var(--ink)}
.sum-total b{font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.5px;color:var(--ink);line-height:1.1}
.sum-total small{display:block;text-align:right;font-size:11.5px;color:var(--muted);margin-top:3px}
.sum-cta{display:flex;flex-direction:column;gap:10px}
.sum-trust{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.sum-trust span{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--body)}
.sum-trust svg{flex:none;width:14px;height:14px;color:var(--green)}
.sum-pay{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;gap:14px;font-size:10.5px;letter-spacing:1.1px;color:var(--muted);font-weight:600}
.help-card{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:16px 18px;display:flex;gap:12px;align-items:flex-start}
.help-card svg{flex:none;width:18px;height:18px;stroke:var(--brand);fill:none;stroke-width:1.8;margin-top:2px}
.help-card b{display:block;font-size:13px}
.help-card p{font-size:12.5px;color:var(--muted);margin-top:2px;line-height:1.55}
.help-card a{color:var(--brand);font-weight:600}
/* Empty state */
.c-empty{margin:20px 0 0;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:64px 24px;text-align:center;display:none}
.c-empty.show{display:block}
.ce-ic{width:72px;height:72px;border-radius:50%;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;margin:0 auto 18px}
.ce-ic svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.6}
.c-empty h2{font-size:22px;font-weight:800;letter-spacing:-.01em}
.c-empty p{margin:8px auto 22px;font-size:13.5px;color:var(--muted);max-width:380px}
/* Cross-sell（首页产品卡体系） */
.cross{margin:44px 0 0}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.sec-head h2{font-size:clamp(22px,2.6vw,28px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.eyebrow-line{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:10px}
.eyebrow-line::before{content:"";width:20px;height:2px;background:var(--brand);border-radius:1px}
.prod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.p-card{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:all .2s;box-shadow:0 2px 8px rgba(29,33,41,.04)}
.p-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--brand-glow)}
.p-media{position:relative;aspect-ratio:1/1;background:var(--bg);overflow:hidden;display:block;border-bottom:1px solid var(--line)}
.p-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.p-card:hover .p-media img{transform:scale(1.05)}
.badge{position:absolute;top:8px;left:8px;z-index:2;color:#fff;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:var(--radius);letter-spacing:.3px;box-shadow:0 2px 10px rgba(0,0,0,.14)}
.badge.pop{background:var(--red)}
.badge.eco{background:var(--green)}
.badge.info{background:var(--brand)}
.p-fav{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:var(--radius);background:rgba(255,255,255,.94);display:grid;place-items:center;color:var(--body);opacity:0;transform:translateY(-4px);transition:all .2s;box-shadow:0 2px 8px rgba(29,33,41,.10);z-index:2;border:1px solid var(--line)}
.p-card:hover .p-fav{opacity:1;transform:none}
.p-fav:hover{color:var(--red);border-color:var(--red)}
.p-fav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.p-fav.on{background:var(--brand);border-color:var(--brand)}
.p-fav.on svg{stroke:#fff;fill:#fff}
.p-body{padding:14px 14px 15px;display:flex;flex-direction:column;gap:6px;flex:1}
.p-cat{font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.p-name{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.35;font-family:var(--font-body)}
.p-name:hover{color:var(--brand)}
.p-rate{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.stars{display:flex;gap:2px}
.stars svg{width:13px;height:13px;fill:var(--orange)}
.p-foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.p-price{font-family:var(--font-display);font-size:17px;font-weight:800;letter-spacing:-.3px;color:var(--ink)}
.p-price small{font-size:11px;font-weight:500;color:var(--muted)}
.p-moq{font-size:11px;color:var(--muted)}
.p-order{height:30px;padding:0 14px;border-radius:var(--radius);background:var(--brand-grad);color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.04em;box-shadow:0 2px 6px rgba(24,144,255,.28);transition:all .16s}
.p-order:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(24,144,255,.34)}
/* Responsive */
@media(max-width:1080px){.cart-grid{grid-template-columns:1fr}.c-side{position:static}}
@media(max-width:860px){
  .c-item{grid-template-columns:72px minmax(0,1fr);row-gap:0}
  .c-img{width:72px;height:72px;align-self:start}
  .c-ctrl{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;grid-column:1/-1;border-top:1px dashed var(--line);margin-top:12px;padding-top:12px}
  .c-cell small{margin-bottom:1px}
  .c-moq{grid-column:1/-1}
  .page-head .wrap{flex-direction:column;align-items:flex-start}
}
@media(max-width:560px){.prod-grid{grid-template-columns:repeat(2,1fr);gap:12px}.sp-track{width:100%;margin-left:0}}



/* relocated from infra Buttons section */
.btn-outline{height:42px;padding:0 24px;background:#fff;color:var(--brand);border:1.5px solid var(--brand)}
.btn-outline:hover{background:var(--brand-50);transform:translateY(-1px)}
