/* ThomKat shop: bag drawer + sold/on-hold states on product cards (loaded by index.html). */
.tk-gone { display: none !important; }
.tk-hold-badge { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 5px 9px; border: 1px solid var(--ink, #171217); border-radius: 100px;
  background: var(--paper, #fffdfb); font: 500 10px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.product-card.tk-on-hold .quick-add { opacity: .45 !important; pointer-events: none; }

.tk-bag-backdrop { position: fixed; inset: 0; background: rgba(23, 18, 23, .38); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 70; }
.tk-bag-backdrop.open { opacity: 1; pointer-events: auto; }
.tk-bag { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--paper, #fffdfb);
  color: var(--ink, #171217); border-left: 2px solid var(--ink, #171217); transform: translateX(105%); transition: transform .3s ease; z-index: 71;
  font-family: "DM Sans", sans-serif; }
.tk-bag.open { transform: translateX(0); box-shadow: -18px 0 50px rgba(31, 15, 25, .16); }
.tk-bag-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line, #d9ced1); }
.tk-bag-head h2 { margin: 0; font: 500 30px/1 "Playfair Display", serif; letter-spacing: -.03em; }
.tk-bag-close { width: 40px; height: 40px; border: 1px solid var(--ink, #171217); border-radius: 50%; background: none; font-size: 20px; line-height: 1; }
.tk-bag-list { flex: 1; overflow-y: auto; padding: 8px 22px; margin: 0; list-style: none; }
.tk-bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line, #d9ced1); }
.tk-bag-item img { width: 64px; height: 86px; object-fit: cover; border-radius: 10px; background: var(--pink-pale, #f9d9e5); }
.tk-bag-item .tk-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tk-bag-item .tk-sub { margin: 0; color: var(--muted, #766c72); font-size: 12px; }
.tk-bag-item .tk-price { font: 500 13px "DM Mono", monospace; text-align: right; }
.tk-bag-item .tk-remove { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--pink-dark, #b52f62); font-size: 11px; font-weight: 700; }
.tk-bag-empty { padding: 34px 4px; color: var(--muted, #766c72); text-align: center; }
.tk-bag-foot { padding: 18px 22px 24px; border-top: 2px solid var(--ink, #171217); background: #fff; }
.tk-bag-total { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 700; }
.tk-bag-note { margin: 0 0 14px; color: var(--muted, #766c72); font-size: 12px; }
.tk-bag-checkout { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; border: 1px solid var(--ink, #171217); border-radius: 100px;
  background: var(--pink, #f04e8a); color: var(--ink, #171217); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.tk-bag-checkout[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tk-bag-continue { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; background: none; color: var(--ink, #171217); font-size: 12px; text-decoration: underline; }
/* the toast would sit on the Checkout button of the open drawer: lift it above the drawer's footer */
body:has(.tk-bag.open) .toast { bottom: 220px; }
.tk-count-bump { animation: tk-bump .5s ease; }
@keyframes tk-bump { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .tk-bag, .tk-bag-backdrop { transition: none; } .tk-count-bump { animation: none; } }
