/* Quant Toolbox — cart page (Cart Page build, 2026-11-17).
   Layered over shop2.css: same palette, same components (.panel, .totals,
   .cartline, .qtyctl, .btn, .guarantee, .honest). The Amazon cart pattern
   in house execution: a list and a totals box, nothing else shouting —
   line items with photos on the left, a sticky honest totals rail on the
   right, a save-for-later shelf underneath, and (mobile) the real total
   riding at the bottom of the screen while the list scrolls. */

.ct-head{max-width:760px;}
.ct-head h1{margin-bottom:6px;}
.ct-sub{color:var(--ink-soft);font-size:16px;line-height:1.55;}

.ct-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:22px;align-items:start;margin-top:8px;}
@media (max-width:860px){ .ct-grid{grid-template-columns:1fr;} }
.ct-rail{position:sticky;top:14px;}
@media (max-width:860px){ .ct-rail{position:static;} }
.ct-rail .panel, .ct-maincol .panel{margin-top:0;}
.ct-maincol .panel + .panel{margin-top:16px;}

.ct-sec{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--sky);margin:2px 0 8px;}

/* ---- line items -------------------------------------------------------- */
.cline{display:flex;gap:14px;align-items:flex-start;border-bottom:1px solid var(--line);padding:14px 0;min-width:0;}
.cline:last-child{border-bottom:none;}
.cthumb{flex:0 0 84px;width:84px;height:84px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:#f4fafd;}
.cmain{flex:1;min-width:0;}
.cmain .t{font-weight:700;font-size:16px;line-height:1.35;}
.cmain .s{font-size:12.5px;color:var(--ink-soft);overflow-wrap:anywhere;margin-top:2px;}
.cmain .code{font-size:11.5px;color:var(--ink-soft);letter-spacing:.04em;}
.cside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 0 auto;}
.ltotal{font-weight:800;white-space:nowrap;font-size:16.5px;}
.acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;}
.acts button{background:none;border:none;border-right:1px solid var(--line);color:var(--sky);font-weight:700;font-size:13.5px;cursor:pointer;padding:6px 10px 6px 0;min-height:36px;font-family:inherit;}
.acts button:last-child{border-right:none;padding-right:0;}
.acts button:hover{text-decoration:underline;}
.sizelink{display:inline-block;margin-top:7px;font-size:13.5px;font-weight:700;color:var(--sky);}
@media (max-width:560px){
  .cline{flex-wrap:wrap;}
  .cthumb{flex-basis:64px;width:64px;height:64px;}
  .cmain{flex:1 1 calc(100% - 78px);}
  .cside{flex-direction:row;align-items:center;justify-content:space-between;width:100%;}
}

/* ---- complete-the-set (one quiet mate row, never pre-added) ------------ */
.mate{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;border:1px solid var(--line);background:#fbfdff;border-radius:11px;padding:8px 10px;font-size:13.5px;}
.mate .mt{color:var(--ink-soft);}
.mate .mt b{color:var(--ink);}
.mate button{font-family:inherit;cursor:pointer;}
.mate .madd{border:1.5px solid var(--sky);background:#fff;color:var(--sky);font-weight:800;border-radius:999px;padding:7px 14px;min-height:38px;font-size:13.5px;}
.mate .mx{border:none;background:none;color:var(--ink-soft);font-size:16px;line-height:1;padding:8px;min-height:38px;min-width:38px;}

/* ---- bundle math banner ------------------------------------------------- */
.bundlebox{border:1.5px solid #bfe8d2;background:#f0fbf5;border-radius:14px;padding:14px 16px;margin-bottom:16px;font-size:15px;line-height:1.55;}
.bundlebox b{color:var(--green);}
.bundlebox .bacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.bundlebox .bacts button{font-family:inherit;cursor:pointer;font-weight:800;border-radius:999px;min-height:42px;padding:8px 16px;font-size:14px;}
.bundlebox .bswap{border:none;background:var(--green);color:#fff;}
.bundlebox .bx{border:1.5px solid var(--line);background:#fff;color:var(--ink-soft);}

/* ---- enquiry items ------------------------------------------------------- */
.enq-note{font-size:13.5px;color:var(--ink-soft);line-height:1.55;margin-top:8px;}
.enq-price{font-weight:800;}
.enq-tag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.06em;color:#8a5a00;background:#fff4d6;border:1px solid #f0d48a;border-radius:999px;padding:2px 8px;margin-left:8px;vertical-align:middle;}

/* ---- totals rail ---------------------------------------------------------- */
.ct-go{width:100%;min-height:58px;font-size:17.5px;border-radius:14px;margin-top:16px;display:flex;align-items:center;justify-content:center;text-decoration:none;}
.giftrow{display:flex;gap:10px;align-items:flex-start;margin-top:16px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;}
.giftrow input{width:22px;height:22px;flex:0 0 22px;margin-top:1px;accent-color:var(--sky);}
.giftrow .gt{font-weight:700;font-size:15px;}
.giftrow .gs{font-size:13px;color:var(--ink-soft);line-height:1.5;margin-top:2px;}
.quiet{font-size:12.5px;color:var(--ink-soft);line-height:1.55;margin-top:12px;text-align:center;}
.ct-keepshop{font-size:13.5px;margin-top:10px;}

/* gift card / coupon disclosure — same shape as the checkout page */
.ct-gc{border:1px dashed #17a8e0;border-radius:12px;padding:12px 14px;margin-top:16px;}
.ct-gc summary{cursor:pointer;font-weight:700;font-size:14.5px;color:var(--sky);min-height:32px;}
.ct-gc .gcrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.ct-gc input{flex:1;min-width:200px;font-size:16px;min-height:52px;padding:12px 13px;border:1.5px solid var(--line);border-radius:11px;background:#fbfdff;color:var(--ink);font-family:inherit;}

/* "See more details" — settled explanatory copy, one tap away */
.ct-more{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:#fff;}
.ct-more summary{cursor:pointer;font-weight:700;font-size:14.5px;color:var(--sky);min-height:32px;}
.ct-more .honest{margin-top:6px;}

/* ---- saved for later ------------------------------------------------------ */
.ct-saved{margin-top:26px;}
.savedgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:12px;}
.scard2{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff;display:flex;gap:12px;align-items:flex-start;}
.scard2 .cthumb{flex-basis:64px;width:64px;height:64px;}
.scard2 .t{font-weight:700;font-size:14.5px;line-height:1.35;}
.scard2 .s{font-size:12.5px;color:var(--ink-soft);margin-top:2px;overflow-wrap:anywhere;}
.pchange{font-size:12.5px;font-weight:700;color:#8a5a00;margin-top:4px;}

/* ---- empty state: route back to the departments --------------------------- */
.deptgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:16px;}
.deptcard{display:block;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff;text-decoration:none;color:var(--ink);}
.deptcard:hover{border-color:var(--sky);}
.deptcard .t{font-weight:800;font-size:15.5px;display:block;}
.deptcard .b{font-size:13px;color:var(--ink-soft);line-height:1.5;display:block;margin-top:3px;}
.deptcard .n{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--sky);display:block;margin-top:8px;}

/* ---- sticky honest total (mobile) ------------------------------------------
   Rides at the bottom of the screen, above the app nav, while the list
   scrolls. It is rendered from the same totals as the rail — it can only
   change when the customer changes something. */
#ct-sticky{position:fixed;left:0;right:0;bottom:calc(57px + env(safe-area-inset-bottom));z-index:9998;display:none;background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid #d9ecf7;box-shadow:0 -6px 24px rgba(11,111,164,.14);padding:10px 14px;align-items:center;gap:12px;}
#ct-sticky .st{flex:1;min-width:0;font-size:13px;color:var(--ink-soft);line-height:1.4;}
#ct-sticky .st b{display:block;font-size:17px;color:var(--ink);}
#ct-sticky a{flex:0 0 auto;min-height:48px;display:flex;align-items:center;padding:10px 18px;border-radius:12px;font-weight:800;text-decoration:none;}
@media (max-width:860px){
  body.ct-bar-on #ct-sticky{display:flex;}
  body.ct-bar-on{padding-bottom:86px;}
}
