.sidecart {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.sidecart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,38,64,.2);
  opacity: 0;
  transition: opacity .25s ease;
}

body.is-sidecart-open .sidecart {
  pointer-events: auto;
}

body.is-sidecart-open .sidecart__overlay {
  opacity: 1;
}

.sidecart__panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 420px;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,.0,.2,1);
  box-shadow: -30px 0 60px rgba(13,38,64,.10);
}

body.is-sidecart-open .sidecart__panel {
  transform: translateX(0);
}

.sidecart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.sidecart__back {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #0d2640;
  text-decoration: none;
  transition: color 180ms ease;
}

.sidecart__back:hover {
  color: #3a7cc5;
}

.sidecart__x {
  border: 0;
  background: none;
  font-size: 22px;
  color: #0d2640;
  cursor: pointer;
}

.sidecart__title {
  margin: 0;
  padding: 0 24px;
  font-family: 'Abril Fatface', serif;
  font-weight: 400;
  font-size: 26px;
  color: #0d2640;
}

.sidecart__rule {
  height: 1px;
  background: rgba(13,38,64,.1);
  margin: 16px 24px;
}

.sidecart__body {
  flex: 1;
  overflow: auto;
  padding: 0 24px;
}

.sidecart__row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(13,38,64,.08);
}

.sidecart__thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.sidecart__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidecart__name {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0d2640;
}

.sidecart__qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidecart__qbtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(13,38,64,.15);
  background: #eef5fb;
  font-size: 16px;
  color: #0d2640;
  cursor: pointer;
  transition: background 180ms ease;
}

.sidecart__qbtn:hover {
  background: #b8d4f0;
}

.sidecart__qnum {
  min-width: 14px;
  text-align: center;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0d2640;
}

.sidecart__price {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0d2640;
}

.sidecart__rm {
  border: 0;
  background: none;
  font-size: 18px;
  color: #1a3050;
  cursor: pointer;
  transition: color 180ms ease;
}

.sidecart__rm:hover {
  color: #e24b4a;
}

.sidecart__foot {
  padding: 24px;
  border-top: 1px solid rgba(13,38,64,.1);
}

.sidecart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #0d2640;
  margin-bottom: 16px;
}

.sidecart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: #b8d4f0;
  border-radius: 14px;
  text-decoration: none;
  color: #0d2640;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background 180ms ease;
}

.sidecart__checkout:hover {
  background: #8ab9e0;
}

.sidecart__empty {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(13,38,64,.5);
  padding: 20px 0;
}

@media (max-width: 520px) {
  .sidecart__panel {
    width: 100%;
  }
}