/* ---------------------------------------------------------------------------
   MONO BAKEMONO — cart drawer
   Slide-in overlay from the right. Lives on every page.
   --------------------------------------------------------------------------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 60;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 61;
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.cart-drawer__close {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cart-drawer__close:hover { color: var(--accent-bright); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }

.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #0d0d0d;
}
.cart-line__thumb-fallback {
  width: 72px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 10px;
  color: var(--ink-dim);
  background: repeating-linear-gradient(45deg, #111 0 8px, #0c0c0c 8px 16px);
  padding: 6px;
}
.cart-line__title { font-family: var(--serif); font-size: 15px; margin: 0 0 4px; }
.cart-line__variant { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.04em; margin: 0 0 10px; }
.cart-line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.cart-line__qty button {
  background: none;
  border: 0;
  color: var(--ink);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 15px;
}
.cart-line__qty button:hover { color: var(--accent-bright); }
.cart-line__qty span { min-width: 26px; text-align: center; font-size: 13px; }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__price { font-size: 14px; white-space: nowrap; }
.cart-line__remove { background: none; border: 0; color: var(--ink-dim); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.cart-line__remove:hover { color: var(--accent-bright); }

.cart-empty { text-align: center; color: var(--ink-dim); padding: 80px 0; }

.cart-drawer__foot { border-top: 1px solid var(--line); padding: 22px 24px 26px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart-subtotal span:first-child { letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--ink-dim); }
.cart-subtotal span:last-child { font-size: 20px; font-family: var(--serif); }
.cart-drawer__note { color: var(--ink-dim); font-size: 12px; margin: 0 0 18px; }
.cart-drawer__foot .btn { margin-top: 4px; }

@media (max-width: 560px) {
  .cart-drawer { width: 100%; }
}
