/* ============================================================
   VORO designs cart drawer + header button (cart.js).
   Self-contained: token fallbacks so it paints the same on the
   styles.css pages (/designs) and the bulk.css page (/design).
   ============================================================ */

.vc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9999px;
  border: 1.5px solid var(--border, #e3dcc9); background: var(--surface, #fff);
  color: var(--text, #2e2823); font: 600 14px/1 var(--font-body, "Figtree", Inter, system-ui, sans-serif);
  cursor: pointer; text-decoration: none; transition: border-color .15s, transform .15s;
}
.vc-btn:hover { border-color: var(--brand, #2e2823); transform: translateY(-1px); }
.vc-btn__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px;
  background: var(--brand, #2e2823); color: var(--on-brand, #fffdf0);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.vc-btn__count[hidden] { display: none; }

.vc { position: fixed; inset: 0; z-index: 90; }
.vc[hidden] { display: none; }
.vc__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 8, 0.5); }
.vc__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--background, #fbf8ec); color: var(--text, #2e2823);
  display: flex; flex-direction: column; box-shadow: -18px 0 50px rgba(46, 40, 35, 0.25);
  animation: vc-in .28s cubic-bezier(0.76, 0, 0.24, 1);
  font-family: var(--font-body, "Figtree", Inter, system-ui, sans-serif);
}
@keyframes vc-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.vc__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border, #e3dcc9); }
.vc__title { margin: 0; font-family: var(--font-display, "Fredoka", sans-serif); font-size: 22px; font-weight: 600; }
.vc__close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--text-muted, #6f665d); padding: 0 4px; }
.vc__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.vc__empty { padding: 40px 0; text-align: center; color: var(--text-muted, #6f665d); font-size: 15px; line-height: 1.7; }
.vc__empty a { color: var(--brand, #2e2823); font-weight: 600; }
.vc__line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border, #e3dcc9); }
.vc__media { width: 84px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface-muted, #efeada); }
.vc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc__name { margin: 0; font-family: var(--font-display, "Fredoka", sans-serif); font-size: 16px; font-weight: 600; }
.vc__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted, #6f665d); }
.vc__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.vc__qty { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--border, #e3dcc9); border-radius: 9999px; background: var(--surface, #fff); }
.vc__qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text, #2e2823); border-radius: 9999px; }
.vc__qty button:hover { background: var(--surface-muted, #efeada); }
.vc__qty b { min-width: 20px; text-align: center; font-size: 14px; }
.vc__price { font-weight: 700; font-size: 15px; }
.vc__actions { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted, #6f665d); }
.vc__actions a { color: inherit; }
.vc__foot { padding: 16px 22px 22px; border-top: 1px solid var(--border, #e3dcc9); background: var(--surface, #fff); }
.vc__sums { margin: 0 0 14px; }
.vc__sums > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.vc__sums dt { margin: 0; color: var(--text-muted, #6f665d); }
.vc__sums dd { margin: 0; font-weight: 600; }
.vc__disc dd { color: #3f6b34; }
.vc__total { border-top: 1px solid var(--border, #e3dcc9); margin-top: 6px; padding-top: 10px !important; }
.vc__total dt, .vc__total dd { font-family: var(--font-display, "Fredoka", sans-serif); font-size: 19px; font-weight: 600; color: var(--text, #2e2823); }
.vc__checkout { width: 100%; }
.vc__fine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted, #6f665d); text-align: center; }
@media (max-width: 560px) {
  .vc-btn { padding: 7px 11px; font-size: 13px; }
}
