:root{
  --psc-accent: #7C3AED;
  --psc-accent-rgb: 124 58 237;
  --psc-bg: #F7F4EF;
  --psc-text: #0B0F14;
  --psc-border: rgba(11,15,20,.10);
  --psc-card: rgba(255,255,255,.55);
  --psc-shadow: 0 24px 70px rgba(11,15,20,.20);
}

.psc-cartBtn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--psc-border);
  background: rgba(255,255,255,.55);
  text-decoration:none;
  font-weight: 900;
  cursor:pointer;
}
.psc-cartBtn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,15,20,.10); }
.psc-cartBadge{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--psc-accent);
  color: #0B0F14;
  font-size: 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.45);
}

.psc-drawerOverlay{
  position: fixed;
  inset: 0;
  background: rgba(11,15,20,.42);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.psc-drawerOverlay.is-open{ opacity: 1; pointer-events: auto; }

.psc-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(247,244,239,.94);
  border-left: 1px solid var(--psc-border);
  box-shadow: var(--psc-shadow);
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .22s ease;
  display:flex;
  flex-direction: column;
}
.psc-drawer.is-open{ transform: translateX(0); }

.psc-drawerHeader{
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--psc-border);
  background:
    radial-gradient(520px 220px at 15% 20%, rgb(var(--psc-accent-rgb) / .18), transparent 60%),
    linear-gradient(120deg, rgba(11,15,20,.92), rgba(11,15,20,.84));
  color: #F7F4EF;
}
.psc-drawerHeader strong{ font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.psc-x{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #F7F4EF;
  font-size: 18px;
  cursor:pointer;
}

.psc-drawerBody{
  padding: 14px;
  overflow:auto;
  flex: 1;
}
.psc-line{
  display:flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--psc-border);
  border-radius: 16px;
  background: var(--psc-card);
}
.psc-line + .psc-line{ margin-top: 10px; }
.psc-line img{
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--psc-border);
}
.psc-line__meta{ flex:1; }
.psc-line__name{ font-weight: 900; margin-bottom: 4px; }
.psc-line__price{ color: rgba(11,15,20,.72); font-weight: 800; font-size: 13px; }
.psc-qty{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 10px;
}
.psc-qty button{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--psc-border);
  background: rgba(255,255,255,.65);
  font-weight: 900;
  cursor:pointer;
}
.psc-qty span{ min-width: 20px; text-align:center; font-weight: 900; }
.psc-remove{
  margin-left:auto;
  border: none;
  background: transparent;
  color: rgba(11,15,20,.60);
  cursor:pointer;
  font-weight: 900;
}

.psc-note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--psc-border);
  background: rgba(255,255,255,.45);
  font-weight: 800;
}
.psc-note.ok{
  border-color: rgb(var(--psc-accent-rgb) / .35);
  background: rgb(var(--psc-accent-rgb) / .10);
}

.psc-drawerFooter{
  padding: 14px;
  border-top: 1px solid var(--psc-border);
  background: rgba(255,255,255,.35);
}
.psc-totalRow{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 10px;
  font-weight: 950;
}
.psc-actions{ display:grid; grid-template-columns: 1fr; gap: 10px; }
.psc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 950;
  text-decoration:none;
  cursor:pointer;
}
.psc-btn.primary{ background: var(--psc-accent); color: #0B0F14; }
.psc-btn.dark{ background: rgba(11,15,20,.92); color: #F7F4EF; }
.psc-btn.ghost{ background: rgba(255,255,255,.60); border-color: var(--psc-border); }
.psc-btn[disabled]{ opacity:.55; cursor: default; }

/* Shipping form inside cart */
.psc-shipWrap{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--psc-border);
  background: rgba(255,255,255,.55);
}
.psc-shipTitle{
  font-weight: 950;
  margin: 0 0 8px 0;
  letter-spacing: .02em;
}
.psc-shipGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.psc-shipGrid .full{ grid-column: 1 / -1; }
.psc-shipField label{ display:block; font-weight: 900; font-size: 12px; margin-bottom: 6px; }
.psc-shipField input{
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--psc-border);
  background: rgba(255,255,255,.75);
  padding: 10px 12px;
  font-weight: 700;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.psc-shipField input:focus{
  border-color: rgb(var(--psc-accent-rgb) / .45);
  box-shadow: 0 0 0 4px rgb(var(--psc-accent-rgb) / .14);
}
.psc-shipField input::placeholder{ color: rgba(11,15,20,.40); font-weight: 650; }
.psc-shipHelp{ margin-top: 8px; color: rgba(11,15,20,.62); font-size: 12px; }
.psc-shipWarn{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,15,20,.10);
  background: rgba(11,15,20,.06);
  font-weight: 850;
  color: rgba(11,15,20,.78);
  display:none;
}
.psc-shipWarn.is-on{ display:block; }
