/* Shared slide-out cart for the shop home, product catalogue, and item pages. */
.shop-cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  display: block;
  width: min(428px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  color: #f7f0fb;
  background: #09090b;
  box-shadow: -16px 0 48px rgba(0, 0, 0, .65);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(.22,1,.36,1);
}
.shop-cart-drawer:not([open]) { display: none; }
.shop-cart-drawer[open].is-open { transform: translateX(0); }
.shop-cart-drawer::backdrop {
  background: rgba(4,3,8,.68);
  backdrop-filter: blur(3px);
}
.shop-cart-drawer .shop-drawer-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.shop-cart-drawer .shop-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: none;
  padding: 29px 26px 19px;
  border-bottom: 1px solid #242229;
}
.shop-cart-drawer .shop-drawer-eyebrow {
  margin: 0 0 6px;
  color: #d3b0eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}
.shop-cart-drawer .shop-drawer-heading h2 {
  margin: 0;
  color: #fff6ff;
  font-size: 29px;
  line-height: 1.2;
}
.shop-cart-drawer .shop-drawer-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid #8e60b8;
  border-radius: 50%;
  background: #0c0b0e;
  color: #f3e4fb;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease,border-color .2s ease;
}
.shop-cart-drawer .shop-drawer-close:hover,
.shop-cart-drawer .shop-drawer-close:focus-visible {
  background: #22142d;
  border-color: #c7a0e7;
}
.shop-cart-drawer .shop-drawer-intro {
  flex: none;
  margin: 0;
  padding: 17px 26px 18px;
  color: #c7b4d2;
  font-size: 13px;
  line-height: 1.7;
}
.shop-cart-drawer .shop-drawer-items {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 25px 25px;
}
.shop-cart-drawer .cart-items > p {
  display: grid;
  place-items: center;
  min-height: 165px;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #101013;
  color: #cdbbd8;
  text-align: center;
  font-size: 14px;
}
.shop-cart-drawer .cart-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 28px;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 0 0 17px;
  border-bottom: 1px solid rgba(228, 195, 246, .16);
  background: transparent;
}
.shop-cart-drawer .shop-drawer-thumb {
  position: relative;
  display: grid;
  width: 64px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(174, 119, 210, .4);
  border-radius: 0;
  background: #111114;
}
.shop-cart-drawer .shop-drawer-thumb > span { color: #b99bd0; font-size: 26px; }
.shop-cart-drawer .shop-drawer-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-cart-drawer .shop-drawer-thumb > img[hidden] { display: none; }
.shop-cart-drawer .shop-cart-item-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}
.shop-cart-drawer .shop-cart-item-copy strong {
  color: #fdf4ff;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shop-cart-drawer .shop-cart-item-copy small {
  color: #c7b0d8;
  font-size: 13px;
}
.shop-cart-drawer .shop-quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
}
.shop-cart-drawer .shop-quantity-controls span {
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.shop-cart-drawer .cart-row button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(183, 132, 217, .6);
  border-radius: 0;
  background: #111114;
  color: #f7e8fc;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transform: none;
  animation: none;
}
.shop-cart-drawer .cart-row button:hover {
  background: #251730;
  border-color: #d9b6f0;
  transform: none;
}
.shop-cart-drawer .cart-row .shop-cart-remove {
  font-size: 21px;
  line-height: 1;
}
.shop-cart-drawer .shop-drawer-bottom {
  flex: none;
  padding: 17px 26px max(23px, env(safe-area-inset-bottom));
  border-top: 1px solid #242229;
  background: #08080a;
}
.shop-cart-drawer .cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.shop-cart-drawer .cart-total span {
  color: #d9c7e2;
  font-size: 13px;
}
.shop-cart-drawer .cart-total strong {
  color: #f6e0ff;
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shop-cart-drawer .shop-drawer-checkout.button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #e6c8f5;
  border-radius: 0;
  background: #ae7bd0;
  color: #0a080e;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.shop-cart-drawer .shop-drawer-checkout.button:hover {
  background: #d4a7ed;
  color: #09080c;
}
.shop-cart-drawer .shop-drawer-checkout[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.shop-cart-drawer .shop-drawer-clear {
  display: block;
  width: 100%;
  min-height: 37px;
  margin: 7px 0 0;
  border: 0;
  border-radius: 0;
  color: #c9b5d6;
  background: #0d0d10;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.shop-cart-drawer .shop-drawer-clear:hover { color: #fff; background: #251730; }
.shop-cart-drawer .shop-drawer-clear:disabled { opacity: .5; cursor: default; }
.shop-cart-drawer .shop-drawer-note {
  margin: 8px 0 0;
  color: #ae9cbc;
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}
body.shop-detail-page .product-detail-shell {
  grid-template-columns: minmax(0,1fr);
}
@media (max-width: 500px) {
  .shop-cart-drawer {
    width: min(100vw, 410px);
    border-radius: 0;
  }
  .shop-cart-drawer .shop-drawer-heading { padding: 22px 18px 17px; }
  .shop-cart-drawer .shop-drawer-intro { padding: 14px 18px 16px; }
  .shop-cart-drawer .shop-drawer-items { padding-inline: 17px; }
  .shop-cart-drawer .shop-drawer-bottom { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-cart-drawer { transition: none; }
}
