/* ECOSYSTEM HQ — the cart (25 Oct 2026). Loaded by cart.js, on any page that has it.
   A bag in the header, a sheet from the right. Light, quiet, a lot of white: the sheet is where the money
   happens, so nothing in it competes with the one button. Colour: the brand blue, #006AFF. */

.cart-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
  margin-left:4px;background:none;border:0;border-radius:999px;cursor:pointer;color:var(--fg,#000);
  transition:background .25s var(--ease-out,ease)}
.cart-btn:hover{background:rgba(0,0,0,.05)}
.cart-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cart-btn .n{position:absolute;top:3px;right:1px;min-width:17px;height:17px;padding:0 5px;border-radius:999px;
  background:#006AFF;color:#fff;font:700 11px/17px var(--sans,system-ui);text-align:center;
  transform:scale(0);transition:transform .35s var(--ease-out,ease)}
.cart-btn.has .n{transform:scale(1)}
.cart-btn.bump .n{animation:cart-bump .45s var(--ease-out,ease)}
@keyframes cart-bump{40%{transform:scale(1.35)}}
@media(max-width:760px){
  .cart-btn{position:absolute;left:86px;top:50%;transform:translateY(-50%);margin:0}
}

/* the sheet */
html.cart-open{overflow:hidden}
.cart-dlg{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,100vw);height:100%;max-width:100vw;max-height:none;
  padding:0;border:0;background:#fff;color:#000;box-shadow:-30px 0 80px rgba(0,0,0,.12);
  font-family:var(--sans,system-ui);transform:translateX(100%);transition:transform .45s var(--ease-out,cubic-bezier(.16,1,.3,1))}
.cart-dlg.in{transform:none}
.cart-dlg::backdrop{background:rgba(10,12,20,0);transition:background .45s}
.cart-dlg.in::backdrop{background:rgba(10,12,20,.32)}
.cart-in{display:flex;flex-direction:column;height:100%}
.cart-hd{display:flex;align-items:center;justify-content:space-between;padding:26px 28px 18px;border-bottom:1px solid #eceef1}
.cart-hd h2{font:700 22px/1.2 var(--sans,system-ui);letter-spacing:-.01em;margin:0}
.cart-hd h2 span{color:#6e6e73;font-weight:500}
.cart-x{width:44px;height:44px;border:0;background:#f5f5f6;border-radius:999px;cursor:pointer;font-size:20px;line-height:44px;color:#000}
.cart-x:hover{background:#ebecef}
.cart-body{flex:1;overflow-y:auto;padding:8px 28px 24px;overscroll-behavior:contain}
.cart-note{margin:16px 0 0;padding:13px 15px;border-radius:14px;background:#f0f6ff;color:#0b3d91;font-size:13.5px;line-height:1.5}
.cart-note button{margin-top:9px;display:block;border:0;background:#006AFF;color:#fff;font:600 13px/1 var(--sans);padding:10px 16px;border-radius:999px;cursor:pointer}
.cart-list{list-style:none;margin:0;padding:0}
.cart-it{display:grid;grid-template-columns:64px 1fr auto;gap:16px;align-items:start;padding:20px 0;border-bottom:1px solid #eceef1}
.cart-it .cv{display:block;width:64px}
.cart-it .cv img{display:block;width:64px;height:auto;border-radius:3px;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.cart-it .cv.set{position:relative;height:90px}
.cart-it .cv.set img{position:absolute;top:0;width:44px}
.cart-it .cv.set img:nth-child(1){left:0;transform:rotate(-7deg)}
.cart-it .cv.set img:nth-child(2){left:10px;top:4px}
.cart-it .cv.set img:nth-child(3){left:20px;transform:rotate(7deg)}
.cart-it .t{display:block;font-weight:700;font-size:15.5px;line-height:1.3;color:#000;text-decoration:none}
.cart-it .t:hover{color:#006AFF}
.cart-it small{display:block;margin-top:4px;font-size:12.5px;line-height:1.45;color:#6e6e73}
.cart-it .rm{margin-top:10px;padding:0;border:0;background:none;color:#6e6e73;font:500 12.5px var(--sans);text-decoration:underline;cursor:pointer}
.cart-it .rm:hover{color:#000}
.cart-it .p{font-weight:700;font-size:15px;white-space:nowrap}
.cart-empty{padding:48px 0 12px;text-align:center}
.cart-empty p{font-size:16px;color:#424245;margin:0 0 22px}
.cart-empty a,.cart-more a.all{display:inline-block;background:#006AFF;color:#fff;text-decoration:none;font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase;padding:16px 30px;border-radius:999px}
.cart-more{margin-top:28px}
.cart-more h3{font:600 13px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#6e6e73;margin:0 0 14px}
.cart-more ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cart-more li{text-align:center}
.cart-more button{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;font:600 11.5px/1.3 var(--sans);color:#000}
.cart-more button img{display:block;width:100%;height:auto;border-radius:3px;margin-bottom:8px;box-shadow:0 5px 12px rgba(0,0,0,.1);transition:transform .3s var(--ease-out,ease)}
.cart-more button:hover img{transform:translateY(-3px)}
.cart-more button i{display:block;font-style:normal;color:#006AFF;margin-top:3px}
.cart-skel{height:96px;margin:20px 0;border-radius:14px;background:linear-gradient(90deg,#f3f4f6,#fafafa,#f3f4f6);background-size:200% 100%;animation:cart-sk 1.2s linear infinite}
@keyframes cart-sk{to{background-position:-200% 0}}

.cart-ft{padding:20px 28px 26px;border-top:1px solid #eceef1;background:#fff}
.cart-tot{display:flex;justify-content:space-between;align-items:baseline;font-size:17px;font-weight:700}
.cart-tot b{font-size:22px}
.cart-fine{margin:6px 0 0;font-size:12.5px;color:#6e6e73}
.cart-wv{display:flex;gap:11px;align-items:flex-start;margin-top:16px;padding:13px 14px;border:1px solid #e3e4e8;border-radius:14px;cursor:pointer;transition:border-color .2s,background .2s}
.cart-wv:has(input:checked){border-color:rgba(0,106,255,.45);background:rgba(0,106,255,.04)}
.cart-wv input{margin-top:2px;width:18px;height:18px;flex:none;accent-color:#006AFF;cursor:pointer}
.cart-wv span{font-size:12px;line-height:1.5;color:#424245}
.cart-go{display:block;width:100%;margin-top:14px;padding:19px 24px;border:0;border-radius:999px;background:#006AFF;color:#fff;
  font:700 15px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
  transition:background .25s,transform .25s,box-shadow .25s,opacity .25s}
.cart-go:hover:not(:disabled){background:#0051c7;transform:translateY(-1px);box-shadow:0 14px 34px rgba(0,106,255,.28)}
.cart-go:disabled{opacity:.38;cursor:not-allowed}
.cart-err{margin:10px 0 0;font-size:13px;color:#d92d20;min-height:0}
.cart-err:empty{display:none}
.cart-pay{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0 0;padding:0}
.cart-pay li{display:flex;align-items:center;justify-content:center;height:34px;min-width:52px;padding:0 9px;background:#fff;border:1px solid #e3e4e8;border-radius:8px}
.cart-pay img{height:17px;width:auto;display:block}
.cart-pay li:nth-child(2) img{height:22px}
.cart-pay li:nth-child(3) img{height:26px}
.cart-stripe{margin:10px 0 0;text-align:center;font-size:11.5px;color:#6e6e73}

/* "Added" on the button that added it */
[data-cart-add].added{background:#087f44 !important;border-color:#087f44 !important;color:#fff !important}

@media(max-width:520px){
  .cart-hd{padding:20px 20px 14px}
  .cart-body{padding:4px 20px 20px}
  .cart-ft{padding:16px 20px calc(18px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
  .cart-dlg,.cart-dlg::backdrop,.cart-btn .n,.cart-more button img{transition:none}
  .cart-btn.bump .n,.cart-skel{animation:none}
}

/* ── 28 Oct: the bag, after ORUS and Represent ─────────────────────────────────────────────────────────────
   Black and white, the item on a light grey tile, the brand above the title with the verified seal, a bin to remove,
   "You might also like" as a rail with one-tap Add, then one black pill: Checkout → total. */
.cart-hd{padding:22px 24px 16px}
.cart-hd h2{font-size:24px}
.cart-x{background:none;font-size:26px}
.cart-x:hover{background:#f2f2f2}
.cart-body{padding:0 24px 24px}
.cart-strip{display:flex;align-items:center;gap:8px;margin:0 -24px;padding:12px 24px;border-bottom:1px solid #eceef1;font-size:13.5px;color:#1d1d1f}
.cart-strip svg{width:16px;height:16px;flex:none;fill:none;stroke:#000;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cart-note{background:#f5f5f6;color:#1d1d1f}
.cart-note button{background:#000}
.cart-it{grid-template-columns:96px 1fr auto;gap:16px;padding:20px 0}
.cart-it .cv{width:96px;height:96px;border-radius:14px;background:#efefef;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cart-it .cv img{width:auto;height:84px;max-width:84px;object-fit:contain;border-radius:2px;box-shadow:0 4px 12px rgba(0,0,0,.14)}
.cart-it .cv.set{height:96px}
.cart-it .br,.cart-rc .br{display:flex;align-items:center;gap:5px;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73;margin-bottom:7px}
.cart-it .br .vb{width:14px;height:14px}
.cart-it .t{font-size:16px;line-height:1.28}
.cart-it .t:hover{color:#000;text-decoration:underline}
.cart-it .row{display:flex;align-items:center;gap:12px;margin-top:12px}
.cart-it .qty{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:34px;padding:0 14px;border:1px solid #dcdcdc;border-radius:999px;font:600 14px/1 var(--sans);color:#6e6e73}
.cart-it .rm{margin:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;text-decoration:none}
.cart-it .rm:hover{background:#f2f2f2}
.cart-it .rm svg{width:19px;height:19px;fill:none;stroke:#6e6e73;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cart-it .p{font-size:16px;font-weight:600}
.cart-like{margin-top:26px}
.cart-like h3{font:700 18px/1.2 var(--sans);letter-spacing:-.01em;text-transform:none;color:#000;margin:0 0 14px}
.cart-rail{display:grid;grid-auto-flow:column;grid-auto-columns:150px;gap:10px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.cart-rc{scroll-snap-align:start;border:1px solid #ececec;border-radius:12px;padding:10px;background:#fff;display:flex;flex-direction:column}
.cart-rc img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#f4f4f4;border-radius:8px;margin-bottom:9px}
.cart-rc .br{font-size:9.5px;margin-bottom:5px}
.cart-rc .t{font:600 12.5px/1.3 var(--sans);color:#000;text-decoration:none;flex:1}
.cart-rc .row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.cart-rc .row b{font-size:13px}
.cart-rc .add{width:36px;height:36px;border-radius:999px;border:1px solid #000;background:#fff;font:400 20px/1 var(--sans);cursor:pointer}
.cart-rc .add:hover{background:#000;color:#fff}
.cart-load{color:#9a9a9a;font-size:13px}
.cart-empty{display:grid;gap:10px;justify-items:center}
.cart-empty a{background:#000}
.cart-empty a.ghost{background:#fff;color:#000;border:1px solid #000}
.cart-ft{padding:18px 24px 22px}
.cart-sum{display:flex;justify-content:space-between;font-size:16px;margin:0 0 6px}
.cart-sum b{font-weight:600}
.cart-sum.mute{color:#6e6e73;font-size:15px}
a.cart-go{display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;background:#1d1d1f;color:#fff;
  text-transform:none;letter-spacing:0;font:600 17px/1 var(--sans);padding:20px 24px;margin-top:14px;border-radius:999px}
a.cart-go:hover{background:#000;transform:translateY(-1px);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.cart-fine{text-align:center;margin-top:10px}
.cart-chips{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 0;padding:0}
.cart-chips li{font:500 12px/1 var(--sans);color:#6e6e73;border:1px solid #e3e3e3;border-radius:7px;padding:7px 10px}
.cart-btn .n{background:#000}
@media(max-width:520px){.cart-it{grid-template-columns:80px 1fr auto}.cart-it .cv{width:80px;height:80px}.cart-it .cv img{height:70px}}


/* ── 1 Nov 2026 · the bag, tidied. The site's global .row (a column on phones, padded, with a hover panel) leaked into
   the item and stacked the quantity and the bin in the middle; the brand label was set in a monospace font; the
   checkout pill was 60px. Shop-sized like the product pages (see books.css, 1 Nov). ── */
.cart-it .row,.cart-rc .row{flex-direction:row;padding:0;border:0;background:none;gap:12px}
.cart-it .row:hover,.cart-rc .row:hover{background:none}
.cart-rc .row{justify-content:space-between;gap:6px}
.cart-it .br,.cart-rc .br{font:600 11px/1 var(--sans);letter-spacing:.08em}
.cart-rc .br{font-size:9.5px}
.cart-it .qty{height:32px;min-width:40px;font-size:13px}
.cart-it .rm{width:32px;height:32px}
a.cart-go{min-height:50px;padding:0 24px;font:600 15px/1 var(--sans)}
a.cart-go:hover{transform:none;box-shadow:none}
