.tc-drawer *,.tc-overlay,.tc-toast,.tc-modal *{box-sizing:border-box;margin:0;padding:0}

/* ── Overlay ────────────────────────── */
.tc-overlay{position:fixed;inset:0;z-index:999990;background:rgba(255,255,255,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;-webkit-tap-highlight-color:transparent}
.tc-overlay.tc-on{opacity:1;visibility:visible}

/* ── Drawer (wider for 2 columns) ──── */
.tc-drawer{position:fixed;top:0;right:0;bottom:0;z-index:999995;width:100%;max-width:680px;background:#fafafa;display:flex;flex-direction:row;transform:translateX(100%);transition:transform .35s cubic-bezier(.32,.72,0,1);box-shadow:-10px 0 40px rgba(0,0,0,.1);font-family:"Questrial",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;color:#1a1a1a}
.tc-drawer.tc-on{transform:translateX(0)}

/* ── Left sidebar (cross-sells) ────── */
.tc-side{width:200px;flex-shrink:0;background:#f5f5f7;border-right:1px solid #e8e8ea;display:flex;flex-direction:column;overflow:hidden}
.tc-side-t{padding:16px 14px 12px;font-size:11px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid #e0e0e2;flex-shrink:0;text-align:center}
.tc-side-list{flex:1;overflow-y:auto;padding:8px 0;-webkit-overflow-scrolling:touch}
.tc-side-list::-webkit-scrollbar{width:2px}
.tc-side-list::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:1px}
.tc-side-card{display:flex;flex-direction:column;align-items:center;padding:12px 14px;text-align:center;border-bottom:1px solid #ebebed;cursor:pointer;transition:background .15s}
.tc-side-card:hover{background:#ededef}
.tc-side-card:last-child{border-bottom:none}
.tc-side-card img{width:80px;height:80px;object-fit:cover;border-radius:8px;border:1px solid #f0f0f0;margin-bottom:8px;display:block;background:#f5f5f4}
.tc-side-card-n{font-size:11px;font-weight:600;line-height:1.3;margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc-side-card-p{font-size:12px;font-weight:700;margin-bottom:8px}
.tc-side-btn{display:inline-flex;align-items:center;justify-content:center;height:26px;padding:0 12px;border:1.5px solid #1a1a1a;border-radius:6px;font-size:10px;font-weight:700;color:#1a1a1a;background:#fff;cursor:pointer;font-family:inherit;transition:background .15s,color .15s;text-transform:uppercase;letter-spacing:.04em}
.tc-side-btn:hover{background:#1a1a1a;color:#fff}
.tc-side-empty{padding:24px 14px;text-align:center;font-size:12px;color:#bbb}

/* ── Main cart column ──────────────── */
.tc-main{flex:1;min-width:0;display:flex;flex-direction:column;background:#fafafa;overflow:hidden}

/* Header */
.tc-hd{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:56px;flex-shrink:0;background:#fff;border-bottom:1px solid #eee}
.tc-hd-title{font-size:16px;font-weight:700}
.tc-hd-cnt{font-size:13px;color:#888;font-weight:400;margin-left:6px}
.tc-x{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:#f5f5f4;color:#666;cursor:pointer;border-radius:50%;transition:background .15s,color .15s;padding:0;font-size:0}
.tc-x:hover{background:#e5e5e5;color:#1a1a1a}
.tc-x svg{width:18px;height:18px}

/* Scroll — this is the ONLY scrollable area, items + cross-sells scroll here */
.tc-scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;position:relative}
.tc-scroll::-webkit-scrollbar{width:3px}
.tc-scroll::-webkit-scrollbar-thumb{background:#ddd;border-radius:2px}

/* Items */
.tc-it{display:flex;gap:14px;padding:16px 20px;background:#fff;border-bottom:1px solid #f0f0f0;position:relative;transition:opacity .2s,transform .2s}
.tc-it:last-child{border-bottom:none}
.tc-it.tc-rm{opacity:0;transform:translateX(50px);max-height:0;padding:0 20px;overflow:hidden}
.tc-it-img{width:72px;height:72px;border-radius:10px;overflow:hidden;background:#f5f5f4;flex-shrink:0;border:1px solid #f0f0f0}
.tc-it-img img{width:100%;height:100%;object-fit:cover;display:block}
.tc-it-img-e{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.tc-it-img-e svg{width:24px;height:24px;color:#d0d0d0}
.tc-it-bd{flex:1;min-width:0;display:flex;flex-direction:column}
.tc-it-n{font-size:13px;font-weight:600;line-height:1.35;margin-bottom:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-right:28px}
.tc-it-m{font-size:12px;color:#999;margin-bottom:auto}
.tc-it-bot{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.tc-it-p{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}

/* Qty */
.tc-q{display:inline-flex;align-items:center;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;height:30px}
.tc-q button{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:none;background:#fff;color:#1a1a1a;cursor:pointer;font-size:15px;padding:0;transition:background .1s;font-family:inherit}
.tc-q button:hover{background:#f5f5f4}
.tc-q button:disabled{color:#ddd;cursor:default}
.tc-q-v{width:28px;text-align:center;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;line-height:30px}

/* Remove */
.tc-del{position:absolute;top:14px;right:16px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:#ccc;cursor:pointer;border-radius:50%;transition:color .15s,background .15s;padding:0;font-size:0}
.tc-del:hover{color:#ef4444;background:#fef2f2}
.tc-del svg{width:14px;height:14px}

/* Shipping — now inside footer */
.tc-ship-wrap{margin-bottom:12px}
.tc-ship-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#f5f5f7;border:1.5px solid #e5e5e5;border-radius:10px;cursor:pointer;font-family:inherit;font-size:13px;color:#1a1a1a;transition:border-color .15s}
.tc-ship-trigger:hover{border-color:#ccc}
.tc-ship-trigger svg{width:14px;height:14px;color:#999;transition:transform .2s}
.tc-ship-trigger.tc-open svg{transform:rotate(180deg)}
.tc-ship-trigger-l{display:flex;align-items:center;gap:8px}
.tc-ship-trigger-l svg{width:16px;height:16px;color:#888}
.tc-ship-trigger-val{font-weight:600}
.tc-ship-dd{position:absolute;bottom:100%;left:0;right:0;margin-bottom:4px;background:#fff;border-radius:10px;border:1px solid #e0e0e0;box-shadow:0 -4px 20px rgba(0,0,0,.1),0 1px 4px rgba(0,0,0,.06);max-height:280px;display:flex;flex-direction:column;animation:tc-ddIn .15s ease-out;z-index:10}
@keyframes tc-ddIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.tc-ship-search{padding:8px 10px;border-bottom:1px solid #f0f0f0;flex-shrink:0}
.tc-ship-search input{width:100%;height:36px;border:1px solid #e5e5e5;border-radius:8px;padding:0 10px;font-size:13px;outline:none;background:#fafaf9;font-family:inherit}
.tc-ship-search input:focus{border-color:#1a1a1a}
.tc-ship-opts{overflow-y:auto;flex:1}
.tc-ship-opt{width:100%;text-align:left;padding:10px 14px;font-size:13px;color:#1a1a1a;background:transparent;border:none;cursor:pointer;font-family:inherit;display:block;transition:background .1s}
.tc-ship-opt:hover{background:#f5f5f5}
.tc-ship-opt.tc-sel{color:#0071e3;background:#f0f5ff;font-weight:600}

/* Empty */
.tc-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 32px;text-align:center;background:#fff}
.tc-empty h3{font-size:18px;font-weight:700;margin-bottom:8px;color:#1a1a1a}
.tc-empty p{font-size:14px;color:#999;line-height:1.6;margin-bottom:28px;max-width:260px}
.tc-empty a{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 28px;background:#1a1a1a;color:#fff;border-radius:10px;font-size:14px;font-weight:600;text-decoration:none;transition:opacity .15s}
.tc-empty a:hover{opacity:.85}

/* ── Footer (FIXED) ────────────────── */
.tc-ft{flex-shrink:0;background:#fff;border-top:1px solid #eee;padding:16px 20px 20px}
.tc-ft-row{display:flex;justify-content:space-between;align-items:baseline;padding:3px 0}
.tc-ft-lbl{font-size:13px;color:#888}
.tc-ft-val{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.tc-ft-grand{padding-top:10px;margin-top:6px;border-top:1.5px solid #e5e5e5}
.tc-ft-grand .tc-ft-lbl{font-size:15px;font-weight:700;color:#1a1a1a}
.tc-ft-grand .tc-ft-val{font-size:20px;font-weight:700;letter-spacing:-.02em}
.tc-ft-free{color:#059669!important;font-weight:700!important}

.tc-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border:none;border-radius:12px;background:#0071e3;color:#fff;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;text-decoration:none;transition:all .25s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 14px rgba(0,113,227,.3);margin-top:14px;position:relative;overflow:hidden;letter-spacing:.01em}
.tc-cta::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.18) 0%,transparent 50%,rgba(255,255,255,.06) 100%);opacity:0;transition:opacity .3s}
.tc-cta:hover{background:#005ecb;box-shadow:0 8px 28px rgba(0,113,227,.45),0 0 0 3px rgba(0,113,227,.12);transform:translateY(-2px);letter-spacing:.02em}
.tc-cta:hover::before{opacity:1}
.tc-cta:active{transform:translateY(0);box-shadow:0 2px 8px rgba(0,113,227,.25)}
@keyframes tc-pulse{0%,100%{box-shadow:0 4px 14px rgba(0,113,227,.3)}50%{box-shadow:0 4px 20px rgba(0,113,227,.5),0 0 0 4px rgba(0,113,227,.08)}}
.tc-cta{animation:tc-pulse 3s ease-in-out infinite}
.tc-cta svg{width:16px;height:16px}

.tc-cont{display:block;text-align:center;font-size:13px;color:#999;margin-top:10px;cursor:pointer;border:none;background:none;width:100%;font-family:inherit;transition:color .15s;padding:0}
.tc-cont:hover{color:#1a1a1a}
.tc-trust{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.tc-trust-i{display:flex;align-items:center;gap:4px;font-size:10px;color:#bbb;white-space:nowrap}
.tc-trust-i svg{width:12px;height:12px;color:#ccc}

/* ── Variation modal ───────────────── */
.tc-modal{position:fixed;inset:0;z-index:9999999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;padding:20px}
.tc-modal.tc-on{opacity:1;visibility:visible}
.tc-modal-box{background:#fff;border-radius:16px;width:100%;max-width:400px;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.25);transform:translateY(20px) scale(.97);transition:transform .3s cubic-bezier(.32,.72,0,1);padding:0}
.tc-modal.tc-on .tc-modal-box{transform:translateY(0) scale(1)}
.tc-modal-top{position:relative;padding:20px 20px 0}
.tc-modal-close{position:absolute;top:16px;right:16px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:none;background:rgba(0,0,0,.06);color:#555;cursor:pointer;border-radius:50%;font-size:0;transition:background .15s,color .15s;z-index:2}
.tc-modal-close:hover{background:rgba(0,0,0,.12);color:#1a1a1a}
.tc-modal-close svg{width:16px;height:16px}
.tc-modal-img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:#f5f5f4;display:block}
.tc-modal-body{padding:16px 20px 20px}
.tc-modal-name{font-size:17px;font-weight:700;margin-bottom:4px;line-height:1.3}
.tc-modal-price{font-size:20px;font-weight:700;color:#1a1a1a;margin-bottom:18px;font-variant-numeric:tabular-nums}
.tc-modal-attr{margin-bottom:16px}
.tc-modal-attr-lbl{display:block;font-size:11px;font-weight:700;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em}
.tc-swatches{display:flex;flex-wrap:wrap;gap:8px}
.tc-swatch{width:60px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;border:2px solid transparent;border-radius:10px;padding:4px;transition:border-color .15s,background .15s}
.tc-swatch:hover{background:#f5f5f7}
.tc-swatch.tc-sel{border-color:#1a1a1a;background:#f5f5f7}
.tc-swatch img{width:50px;height:50px;object-fit:cover;border-radius:8px;display:block;border:1px solid #eee}
.tc-swatch span{font-size:10px;font-weight:600;color:#555;text-align:center;line-height:1.2;max-width:56px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc-modal-sel{width:100%;height:42px;border:1.5px solid #e0e0e0;border-radius:10px;padding:0 14px;font-size:14px;font-family:inherit;color:#1a1a1a;background:#fff;appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;transition:border-color .15s}
.tc-modal-sel:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.tc-modal-add{width:100%;min-height:48px;padding:12px 24px;border:none;border-radius:12px;background:#1a1a1a;color:#fff;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .2s,transform .1s;margin-top:8px;text-align:center;display:flex;align-items:center;justify-content:center}
.tc-modal-add:hover{background:#333;transform:translateY(-1px)}
.tc-modal-add:active{transform:translateY(0)}
.tc-modal-add:disabled{opacity:.35;cursor:default;transform:none}

/* ── Totals expand toggle (mobile) ─── */
.tc-ft-expand{display:none;align-items:center;justify-content:center;gap:4px;margin-bottom:6px;border:none;background:none;cursor:pointer;font-family:inherit;font-size:12px;font-weight:600;color:#0071e3;width:100%;padding:8px 0;-webkit-tap-highlight-color:transparent}
.tc-ft-expand svg{width:12px;height:12px;transition:transform .2s}
.tc-ft-expand.tc-open svg{transform:rotate(180deg)}

/* ── Ship modal (mobile fullscreen) ── */
.tc-ship-modal{position:fixed;inset:0;z-index:9999999;background:#fff;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s cubic-bezier(.32,.72,0,1);font-family:"Questrial",-apple-system,sans-serif}
.tc-ship-modal.tc-on{transform:translateY(0)}
.tc-ship-modal-hd{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:56px;border-bottom:1px solid #eee;flex-shrink:0}
.tc-ship-modal-hd span{font-size:16px;font-weight:700}
.tc-ship-modal-search{padding:12px 20px;border-bottom:1px solid #f0f0f0;flex-shrink:0}
.tc-ship-modal-search input{width:100%;height:44px;border:1.5px solid #e0e0e0;border-radius:10px;padding:0 16px;font-size:15px;outline:none;font-family:inherit;background:#fafaf9}
.tc-ship-modal-search input:focus{border-color:#1a1a1a}
.tc-ship-modal-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.tc-ship-modal-opt{width:100%;text-align:left;padding:14px 20px;font-size:15px;color:#1a1a1a;background:transparent;border:none;border-bottom:1px solid #f5f5f5;cursor:pointer;font-family:inherit;display:block;transition:background .1s}
.tc-ship-modal-opt:active{background:#f0f0f0}
.tc-ship-modal-opt.tc-sel{color:#0071e3;font-weight:700;background:#f0f5ff}

/* ── Delivery estimate ───────────��──── */
.tc-delivery{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#f0fdf4;border-radius:8px;margin-top:10px;font-size:12px;color:#166534;font-weight:600;line-height:1.4}
.tc-delivery svg{width:16px;height:16px;flex-shrink:0;color:#16a34a}

/* ── Mobile inline cross-sells (collapsible, compact) */
.tc-xs-inline{display:none;background:#f5f5f7;border-bottom:1px solid #eee}
.tc-xsi-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:11px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.06em}
.tc-xsi-toggle svg{width:14px;height:14px;color:#999;transition:transform .2s}
.tc-xsi-toggle.tc-open svg{transform:rotate(180deg)}
.tc-xsi-body{display:none;padding:0 16px 12px}
.tc-xsi-body.tc-open{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tc-xsi-body::-webkit-scrollbar{height:0}
/* Compact chip cards */
.tc-xsi-chip{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;background:#fff;border-radius:10px;border:1px solid #eee;cursor:pointer;transition:border-color .15s;white-space:nowrap}
.tc-xsi-chip:hover{border-color:#ccc}
.tc-xsi-chip img{width:40px;height:40px;object-fit:cover;border-radius:7px;display:block;flex-shrink:0}
.tc-xsi-chip-info{min-width:0}
.tc-xsi-chip-n{font-size:11px;font-weight:600;color:#1a1a1a;line-height:1.2;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-xsi-chip-p{font-size:11px;font-weight:700;color:#555}
.tc-xsi-chip-add{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:1.5px solid #1a1a1a;border-radius:50%;background:#fff;color:#1a1a1a;cursor:pointer;font-size:14px;flex-shrink:0;transition:background .15s,color .15s;padding:0;font-family:inherit;line-height:1}
.tc-xsi-chip-add:hover{background:#1a1a1a;color:#fff}
@media(max-width:640px){
  .tc-side{display:none!important}
  .tc-xs-inline{display:block}
  .tc-cta{height:48px;font-size:14px;margin-top:10px;border-radius:10px}
  .tc-cont{display:none!important}
  /* Collapsible totals */
  .tc-ft-detail{display:none}
  .tc-ft-detail.tc-open{display:block}
  .tc-ft-expand{display:flex}
}

/* ── Badge ─��────────────────────────── */
.tc-badge{position:absolute;top:-5px;right:-7px;min-width:18px;height:18px;padding:0 5px;background:#1a1a1a;color:#fff;font-size:10px;font-weight:700;border-radius:9px;display:flex;align-items:center;justify-content:center;font-family:"Questrial",sans-serif;line-height:1;pointer-events:none;font-variant-numeric:tabular-nums;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.tc-badge.tc-pop{transform:scale(1.35)}
.tc-badge:empty{display:none}
.textti-cart-trigger{position:relative;cursor:pointer}

/* ── Toast ──────────���───────────────── */
.tc-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(16px);background:#1a1a1a;color:#fff;padding:10px 20px;border-radius:50px;font-size:13px;font-weight:600;z-index:9999999;opacity:0;transition:opacity .3s,transform .3s cubic-bezier(.34,1.56,.64,1);font-family:"Questrial",sans-serif;box-shadow:0 4px 24px rgba(0,0,0,.18);display:flex;align-items:center;gap:8px;pointer-events:none;white-space:nowrap}
.tc-toast.tc-show{opacity:1;transform:translateX(-50%) translateY(0)}
.tc-toast svg{color:#34d399}

/* ── Mobile drawer full width ──────── */
@media(max-width:480px){.tc-drawer{max-width:100%}}
@supports(padding-bottom:env(safe-area-inset-bottom)){.tc-ft{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}