/* ==========================================================================
   Cart drawer bundle — slide-out basket, site-wide
   ========================================================================== */

/* Always rendered so it can animate — visibility keeps it out of the way
   until it's open (display:none would make the transition impossible). */
.pc-drawer-root {
  position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end;
  visibility: hidden; pointer-events: none;
  /* The closed panel is parked at translateX(100%), i.e. off to the right.
     Clip it here so it can never widen the page. */
  overflow: hidden;
  transition: visibility .38s;
}
.pc-drawer-root.open { visibility: visible; pointer-events: auto; }

.pc-drawer-overlay {
  position: absolute; inset: 0; background: rgba(46, 42, 34, .45);
  opacity: 0; transition: opacity .38s ease;
}
.pc-drawer-root.open .pc-drawer-overlay { opacity: 1; }

.pc-drawer {
  position: relative; width: 400px; max-width: 90vw; background: var(--pc-bg);
  height: 100%; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .2);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.32, .72, 0, 1);
  will-change: transform;
}
.pc-drawer-root.open .pc-drawer { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .pc-drawer, .pc-drawer-overlay, .pc-drawer-root { transition: none; }
}
.pc-drawer-inner { display: flex; flex-direction: column; height: 100%; }

.pc-drawer-head {
  padding: 22px 24px; border-bottom: 1px solid var(--pc-border);
  display: flex; align-items: center; justify-content: space-between;
}
.pc-drawer-title { font-family: var(--pc-serif); font-size: 22px; }
.pc-drawer-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--pc-muted2); line-height: 1; }
.pc-drawer-close:hover { color: var(--pc-ink); }

.pc-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }

.pc-drawer-empty { text-align: center; padding: 60px 0; color: #C3B89F; }
.pc-drawer-empty .pc-emoji { font-size: 40px; margin-bottom: 12px; }
.pc-drawer-empty-title { font-weight: 700; color: var(--pc-ink); }
.pc-drawer-empty-cta { margin-top: 16px; padding: 12px 20px; border-radius: 11px; font-size: 14px; }

.pc-drawer-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F2ECE0; align-items: center; }
.pc-drawer-item:last-child { border-bottom: none; }
.pc-drawer-item-main { flex: 1; min-width: 0; }
.pc-drawer-thumb {
  width: 56px; height: 56px; border-radius: var(--pc-radius-sm); display: flex; align-items: center;
  justify-content: center; font-family: var(--pc-serif); font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.pc-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-drawer-item-name { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--pc-ink); }
.pc-drawer-item-price { font-size: 13px; color: var(--pc-muted2); }
.pc-drawer-remove {
  background: none; border: none; color: #C3B89F; cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: underline;
}
.pc-drawer-remove:hover { color: var(--pc-ink); }
.pc-drawer-remove[disabled] { opacity: .4; cursor: default; }

.pc-drawer-foot { padding: 22px 24px; border-top: 1px solid var(--pc-border); }
.pc-drawer-subtotal { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 14px; }
.pc-drawer-subtotal .lbl { font-weight: 700; color: var(--pc-muted); }
.pc-drawer-subtotal .amt { font-family: var(--pc-serif); font-size: 22px; }
.pc-drawer-checkout,
.pc-drawer-viewcart { display: block; width: 100%; padding: 15px; border-radius: 13px; }
.pc-drawer-viewcart { margin-top: 8px; }
